Skip to content
Snippets Groups Projects
Commit 187624f7 authored by Alexey Belyaev's avatar Alexey Belyaev Committed by Mathias Kresin
Browse files

ramips: fix ZyXEL Keenetic Omni/Omni II GPIOs


Each GPIO bank has only 24 gpios. Use and enable the correct banks for
GPIOs > 24.

Signed-off-by: default avatarAlexey Belyaev <spider@spider.vc>
parent 3549bad8
No related branches found
No related tags found
No related merge requests found
...@@ -13,17 +13,17 @@ ...@@ -13,17 +13,17 @@
wan { wan {
label = "kn_rc:green:wan"; label = "kn_rc:green:wan";
gpios = <&gpio0 38 GPIO_ACTIVE_LOW>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "kn_rc:green:usb"; label = "kn_rc:green:usb";
gpios = <&gpio0 39 GPIO_ACTIVE_LOW>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "kn_rc:green:wifi"; label = "kn_rc:green:wifi";
gpios = <&gpio0 72 GPIO_ACTIVE_LOW>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
power { power {
...@@ -69,6 +69,14 @@ ...@@ -69,6 +69,14 @@
}; };
}; };
&gpio1 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&spi0 { &spi0 {
status = "okay"; status = "okay";
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
wan { wan {
label = "kn_rc:green:wan"; label = "kn_rc:green:wan";
gpios = <&gpio0 38 GPIO_ACTIVE_LOW>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
wifi { wifi {
label = "kn_rc:green:wifi"; label = "kn_rc:green:wifi";
gpios = <&gpio0 72 GPIO_ACTIVE_LOW>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "kn_rc:green:power"; label = "kn_rc:green:power";
gpios = <&gpio0 39 GPIO_ACTIVE_LOW>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -69,6 +69,14 @@ ...@@ -69,6 +69,14 @@
}; };
}; };
&gpio1 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&spi0 { &spi0 {
status = "okay"; status = "okay";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment