Skip to content

Commit c801335

Browse files
pelwellolofj
authored andcommitted
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. Add those properties for BCM283x and BCM2711 devices. [1] commit 2ab73c6 ("gpio: Support GPIO controllers without pin-ranges") Link: https://lore.kernel.org/r/[email protected] Fixes: 2ab73c6 ("gpio: Support GPIO controllers without pin-ranges") Fixes: 266423e ("pinctrl: bcm2835: Change init order for gpio hogs") Reported-by: Stefan Wahren <[email protected]> Reported-by: Florian Fainelli <[email protected]> Reported-by: Jan Kiszka <[email protected]> Signed-off-by: Phil Elwell <[email protected]> Acked-by: Florian Fainelli <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent 8922bb6 commit c801335

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

arch/arm/boot/dts/bcm2711.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,8 @@
582582
<GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
583583
<GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
584584

585+
gpio-ranges = <&gpio 0 0 58>;
586+
585587
gpclk0_gpio49: gpclk0_gpio49 {
586588
pin-gpclk {
587589
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)