ramips: fix ZyXEL Keenetic Omni/Omni II GPIOs
authorAlexey Belyaev <spider@spider.vc>
Sat, 22 Apr 2017 20:46:23 +0000 (02:46 +0600)
committerMathias Kresin <dev@kresin.me>
Tue, 25 Apr 2017 17:29:59 +0000 (19:29 +0200)
Each GPIO bank has only 24 gpios. Use and enable the correct banks for
GPIOs > 24.

Signed-off-by: Alexey Belyaev <spider@spider.vc>
target/linux/ramips/dts/kn_rc.dts
target/linux/ramips/dts/kn_rf.dts

index 3c9dfb4d241da112a6e36217cc0b6236479cc185..d275902d1b6d74b22e946cdee8ba7df7e5c9145b 100644 (file)
 
                wan {
                        label = "kn_rc:green:wan";
-                       gpios = <&gpio0 38 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "kn_rc:green:usb";
-                       gpios = <&gpio0 39 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "kn_rc:green:wifi";
-                       gpios = <&gpio0 72 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                power {
        };
 };
 
+&gpio1 {
+       status = "okay";
+};
+
+&gpio3 {
+       status = "okay";
+};
+
 &spi0 {
        status = "okay";
 
index 4f2b71035ef3bdc586a6e83fa6b565299fc1166f..a65fda14f6d057143d94066ed4dbb66f09f5a922 100644 (file)
@@ -13,7 +13,7 @@
 
                wan {
                        label = "kn_rc:green:wan";
-                       gpios = <&gpio0 38 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
 
                wifi {
                        label = "kn_rc:green:wifi";
-                       gpios = <&gpio0 72 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "kn_rc:green:power";
-                       gpios = <&gpio0 39 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
 
        };
 };
 
+&gpio1 {
+       status = "okay";
+};
+
+&gpio3 {
+       status = "okay";
+};
+
 &spi0 {
        status = "okay";