diff options
author | Alexey Belyaev <spider@spider.vc> | 2017-04-23 02:46:23 +0600 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-04-25 19:29:59 +0200 |
commit | 187624f759f6ee3ede1697d9cfbc648a92a18ef1 (patch) | |
tree | aeedce70d1c8f6cb3d3f464b5bc3fcacd7ec30ab /target/linux | |
parent | 3549bad8147f7795dc6334cd8f73ea389b1a62e0 (diff) | |
download | upstream-187624f759f6ee3ede1697d9cfbc648a92a18ef1.tar.gz upstream-187624f759f6ee3ede1697d9cfbc648a92a18ef1.tar.bz2 upstream-187624f759f6ee3ede1697d9cfbc648a92a18ef1.zip |
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>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ramips/dts/kn_rc.dts | 14 | ||||
-rw-r--r-- | target/linux/ramips/dts/kn_rf.dts | 14 |
2 files changed, 22 insertions, 6 deletions
diff --git a/target/linux/ramips/dts/kn_rc.dts b/target/linux/ramips/dts/kn_rc.dts index 3c9dfb4d24..d275902d1b 100644 --- a/target/linux/ramips/dts/kn_rc.dts +++ b/target/linux/ramips/dts/kn_rc.dts @@ -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"; diff --git a/target/linux/ramips/dts/kn_rf.dts b/target/linux/ramips/dts/kn_rf.dts index 4f2b71035e..a65fda14f6 100644 --- a/target/linux/ramips/dts/kn_rf.dts +++ b/target/linux/ramips/dts/kn_rf.dts @@ -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"; |