ARM: dts: gpio-ranges property is now required
authorPhil Elwell <phil@raspberrypi.com>
Thu, 25 Nov 2021 11:06:50 +0000 (11:06 +0000)
committerPhil Elwell <phil@raspberrypi.com>
Fri, 26 Nov 2021 14:39:14 +0000 (14:39 +0000)
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 2ab73c6d8323 ("gpio: Support GPIO controllers without
    pin-ranges")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
arch/arm/boot/dts/bcm2711.dtsi
arch/arm/boot/dts/bcm283x.dtsi

index 7ec5145..544633a 100644 (file)
                     <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
 
+       gpio-ranges = <&gpio 0 0 58>;
+
        gpclk0_gpio49: gpclk0_gpio49 {
                pin-gpclk {
                        pins = "gpio49";
index 06d04cd..62d7ee5 100644 (file)
                        interrupt-controller;
                        #interrupt-cells = <2>;
 
+                       gpio-ranges = <&gpio 0 0 54>;
+
                        /* Defines common pin muxing groups
                         *
                         * While each pin can have its mux selected