From 32f120b783f1a0467993cdfd15efdef06cad56d8 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 24 Jan 2018 01:27:51 +0100 Subject: 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 Signed-off-by: Daniel Golle --- target/linux/ramips/dts/ZBT-WE1226.dts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'target/linux/ramips/dts') diff --git a/target/linux/ramips/dts/ZBT-WE1226.dts b/target/linux/ramips/dts/ZBT-WE1226.dts index 67e4353c12..5ece7567f3 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"; }; }; -- cgit v1.2.3