aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2020-04-09 17:10:03 +0800
committerChuanhong Guo <gch981213@gmail.com>2020-04-12 22:27:18 +0800
commit0b68d081eb598c1a5a1cfb13d1494d9228c67b05 (patch)
tree6c1c513e0cca4246cdbfd3cf8492b115910adfd0 /target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
parente320435a6a5858e7b80c296c5f5e35d8d4c845b6 (diff)
downloadupstream-0b68d081eb598c1a5a1cfb13d1494d9228c67b05.tar.gz
upstream-0b68d081eb598c1a5a1cfb13d1494d9228c67b05.tar.bz2
upstream-0b68d081eb598c1a5a1cfb13d1494d9228c67b05.zip
ramips: mt7628: update dts for upstream gpio-mt7621 driver
upstream driver merged 3 separated gpio banks into one gpio node. and gpioX Y in our local driver should be replaced with gpio X*32+Y. This patch is created using the following sed command: sed -i -r 's/(.*)gpio([0-9]) ([0-9]+)(.*)/echo "\1gpio $((\2*32+\3))\4"/ge' Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts')
-rw-r--r--target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts22
1 files changed, 11 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
index 25c3c403d2..f511833757 100644
--- a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
+++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
@@ -21,20 +21,20 @@
aoss {
label = "aoss";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
ap {
label = "ap";
- gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
linux,input-type = <EV_SW>;
};
reset {
label = "reset";
- gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
@@ -44,42 +44,42 @@
router_o {
label = "wcr-1166ds:orange:router";
- gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
router_g {
label = "wcr-1166ds:green:router";
- gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
};
internet_o {
label = "wcr-1166ds:orange:internet";
- gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
internet_g {
label = "wcr-1166ds:green:internet";
- gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wireless_o {
label = "wcr-1166ds:orange:wireless";
- gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
};
wireless_g {
label = "wcr-1166ds:green:wireless";
- gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
diag {
label = "wcr-1166ds:orange:diag";
- gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "wcr-1166ds:green:power";
- gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
};
};