]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm64: dts: rockchip: add gpio-ranges property to gpio nodes
authorChris Morgan <macromorgan@hotmail.com>
Mon, 13 Feb 2023 22:27:41 +0000 (16:27 -0600)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:27 +0000 (18:07 +0800)
Add gpio-ranges property to GPIO nodes so that the bank ID can
be correctly derived for each GPIO bank.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk356x.dtsi

index 5706c3e24f0a090e8003496c519bd27d5aad1c20..6492ace0de6b3de57422f70ea72667f121aed7b8 100644 (file)
                        interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&pmucru PCLK_GPIO0>, <&pmucru DBCLK_GPIO0>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 0 32>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
                        interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 32 32>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
                        interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 64 32>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
                        interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 96 32>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
                        interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
                        gpio-controller;
+                       gpio-ranges = <&pinctrl 0 128 32>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;