1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-15 19:53:59 +02:00

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: Alexey Belyaev <spider@spider.vc>
This commit is contained in:
Alexey Belyaev 2017-04-23 02:46:23 +06:00 committed by Mathias Kresin
parent 3549bad814
commit 187624f759
2 changed files with 22 additions and 6 deletions

View File

@ -13,17 +13,17 @@
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 {
@ -69,6 +69,14 @@
};
};
&gpio1 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&spi0 {
status = "okay";

View File

@ -13,7 +13,7 @@
wan {
label = "kn_rc:green:wan";
gpios = <&gpio0 38 GPIO_ACTIVE_LOW>;
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
usb {
@ -23,12 +23,12 @@
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>;
};
};
@ -69,6 +69,14 @@
};
};
&gpio1 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&spi0 {
status = "okay";