Skip to content

Commit 7f035a5

Browse files
committed
ARM: dts: gpio-ranges property is now required
Since [1], added in 5.7, the absence of a gpio-ranges property has prevented GPIOs from being restored to inputs when released. See: https://forums.raspberrypi.com/viewtopic.php?t=324585 [1] commit 2ab73c6 ("gpio: Support GPIO controllers without pin-ranges") Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 6a58cb8 commit 7f035a5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/arm/boot/dts/bcm2711.dtsi‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@
595595
<GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
596596
<GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
597597

598+
gpio-ranges = <&gpio 0 0 58>;
599+
598600
gpclk0_gpio49: gpclk0_gpio49 {
599601
pin-gpclk {
600602
pins = "gpio49";

‎arch/arm/boot/dts/bcm283x.dtsi‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
interrupt-controller;
127127
#interrupt-cells = <2>;
128128

129+
gpio-ranges = <&gpio 0 0 54>;
130+
129131
/* Defines common pin muxing groups
130132
*
131133
* While each pin can have its mux selected

0 commit comments

Comments
 (0)