aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorTobias Welz <tw@wiznet.eu>2020-08-04 17:55:40 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-06 13:33:26 +0200
commitd0b229f553a814b22c16976e40a197f892c0c0df (patch)
tree47b92ceb50924dd0a44324a6b298a17beac28427 /target
parent6c29604438a0c2cbf95930244319c41d57756d7d (diff)
downloadupstream-d0b229f553a814b22c16976e40a197f892c0c0df.tar.gz
upstream-d0b229f553a814b22c16976e40a197f892c0c0df.tar.bz2
upstream-d0b229f553a814b22c16976e40a197f892c0c0df.zip
ramips: correct WizFi630S pin mappings
WizFi630S had some pins changed in the release version of the board. The run led, wps button and a slide switch where affected. This patch is correcting this. i2c is removed as it is sharing a pin with the run (system) led. uart2 is enabled as it is also enabled in the OEM firmware. Signed-off-by: Tobias Welz <tw@wiznet.eu>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts34
1 files changed, 8 insertions, 26 deletions
diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
index 41634c6002..684a70cffe 100644
--- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
+++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
@@ -28,7 +28,7 @@
led_run: run {
label = "wizfi630s:green:run";
- gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
ledwps {
@@ -61,47 +61,29 @@
wps {
label = "wps";
- gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
scm1 {
label = "SCM1";
- gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
+ linux,input-type = <EV_SW>;
};
scm2 {
label = "SCM2";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_2>;
+ linux,input-type = <EV_SW>;
};
};
};
&state_default {
gpio {
- groups = "gpio";
- function = "gpio";
- };
-
- i2s {
- groups = "i2s";
- function = "gpio";
- };
-
- wdt {
- groups = "wdt";
- function = "gpio";
- };
-
- i2c {
- groups = "i2c";
- function = "gpio";
- };
-
- refclk {
- groups = "refclk";
+ groups = "gpio", "i2s", "i2c", "wdt", "refclk", "p1led_an", "p2led_an";
function = "gpio";
};
};
@@ -150,11 +132,11 @@
};
};
-&i2c {
+&uart1 {
status = "okay";
};
-&uart1 {
+&uart2 {
status = "okay";
};