summaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2018-01-24 01:27:51 +0100
committerDaniel Golle <daniel@makrotopia.org>2018-02-06 03:00:33 +0100
commit32f120b783f1a0467993cdfd15efdef06cad56d8 (patch)
treeb748cf490bee425e61c4962a0c190555e765555c /target/linux/ramips/dts
parenta8b023272d334e47ee82449eadda01b96e9c2a90 (diff)
downloadmtk-20170518-32f120b783f1a0467993cdfd15efdef06cad56d8.zip
mtk-20170518-32f120b783f1a0467993cdfd15efdef06cad56d8.tar.gz
mtk-20170518-32f120b783f1a0467993cdfd15efdef06cad56d8.tar.bz2
ramips: various fixes for zbt-we1226
Convert userspace code to use generic device-tree compatible board detection method. Users of the existing code will have to use sysupgrade -F once to switch to the new generic board naming. Properly setup pinctrl fixing the switch port LEDs. Fixes commit 9c4fe103cb (ramips: add support for ZBT-WE1226) Reported-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/ZBT-WE1226.dts16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/ramips/dts/ZBT-WE1226.dts b/target/linux/ramips/dts/ZBT-WE1226.dts
index 67e4353..5ece756 100644
--- a/target/linux/ramips/dts/ZBT-WE1226.dts
+++ b/target/linux/ramips/dts/ZBT-WE1226.dts
@@ -5,7 +5,7 @@
#include "mt7628an.dtsi"
/ {
- compatible = "zbt,we1226", "mediatek,mt7628an-soc";
+ compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc";
model = "Zbtlink ZBT-WE1226";
chosen {
@@ -33,19 +33,19 @@
gpio-leds {
compatible = "gpio-leds";
- lan2 {
- label = "zbt-we1226:green:lan2";
+ wan {
+ label = "zbt-we1226:green:wan";
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "zbt-we1226:green:lan1";
- gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
};
- wan {
- label = "zbt-we1226:green:wan";
- gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+ lan2 {
+ label = "zbt-we1226:green:lan2";
+ gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
};
wlan {
@@ -58,7 +58,7 @@
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "i2c", "wled_an";
+ ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an";
ralink,function = "gpio";
};
};