arm: dts: rockchip: rk3066a-u-boot: add gpio-ranges
authorJohan Jonker <jbx6244@gmail.com>
Sun, 19 Mar 2023 15:05:27 +0000 (16:05 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:16:01 +0000 (15:16 +0800)
The gpio node names are made generic, but without
gpio bank ID. Add gpio-ranges to rk3066a-u-boot.dtsi
for now till a better method is found.
Disable gpio6 as the driver gives an error code
on return as status.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3066a-u-boot.dtsi

index bc6e609..06f405c 100644 (file)
@@ -2,3 +2,28 @@
 
 #include "rockchip-u-boot.dtsi"
 #include "rk3xxx-u-boot.dtsi"
+
+&gpio0 {
+       gpio-ranges = <&pinctrl 0 0 32>;
+};
+
+&gpio1 {
+       gpio-ranges = <&pinctrl 0 32 32>;
+};
+
+&gpio2 {
+       gpio-ranges = <&pinctrl 0 64 32>;
+};
+
+&gpio3 {
+       gpio-ranges = <&pinctrl 0 96 32>;
+};
+
+&gpio4 {
+       gpio-ranges = <&pinctrl 0 128 32>;
+};
+
+&gpio6 {
+       status = "disabled";
+};
+