ARM: dts: gpio-ranges property is now required
authorPhil Elwell <phil@raspberrypi.com>
Tue, 4 Jan 2022 17:02:47 +0000 (18:02 +0100)
committerOlof Johansson <olof@lixom.net>
Sat, 8 Jan 2022 21:28:28 +0000 (13:28 -0800)
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 2ab73c6d8323 ("gpio: Support GPIO controllers without
    pin-ranges")

Link: https://lore.kernel.org/r/20220104170247.956760-1-linus.walleij@linaro.org
Fixes: 2ab73c6d8323 ("gpio: Support GPIO controllers without pin-ranges")
Fixes: 266423e60ea1 ("pinctrl: bcm2835: Change init order for gpio hogs")
Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Reported-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20211206092237.4105895-3-phil@raspberrypi.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/bcm2711.dtsi
arch/arm/boot/dts/bcm283x.dtsi

index 9e01dbca4a011f2794154bbfe4de89ba022d3834..dff18fc9a9065c77a1e5477da94e9159e9cc93b6 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 a3e06b6809476c3431e0a85ae9781d6bc37c600f..c113661a6668fe61f5ac9e4b7eeddc318d2fbc1f 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