]> git.baikalelectronics.ru Git - uboot.git/commitdiff
dts: rockchip: px30: add gpio-ranges property to gpio nodes
authorChris Morgan <macromorgan@hotmail.com>
Mon, 13 Feb 2023 22:27:35 +0000 (16:27 -0600)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:27 +0000 (18:07 +0800)
Add the gpio-ranges property to each GPIO node for use in deriving
the correct bank ID. Note that invoking "gpio status -a" no longer
causes the board to hit a "Synchronous Abort".

Fixes: 05d3172b0ce3 ("rockchip: add px30 devicetrees")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/px30.dtsi

index bfa3580429d10e010e736ad929243583287f0dea..3152bf107db53ebc0ebdad06be221f39a7a6873a 100644 (file)
                        interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&pmucru PCLK_GPIO0_PMU>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 0 32>;
                        #gpio-cells = <2>;
 
                        interrupt-controller;
                        interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cru PCLK_GPIO1>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 32 32>;
                        #gpio-cells = <2>;
 
                        interrupt-controller;
                        interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cru PCLK_GPIO2>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 64 32>;
                        #gpio-cells = <2>;
 
                        interrupt-controller;
                        interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cru PCLK_GPIO3>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 96 32>;
                        #gpio-cells = <2>;
 
                        interrupt-controller;