diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-09-12 00:55:58 -0700 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-09-13 22:19:10 +0200 |
commit | fb59070466a4d50938888d9d23e592598f686019 (patch) | |
tree | cf88bd6e90808ca7c378407ebc51c90dbb96c1f3 /target/linux/ramips | |
parent | 4f42566d47999c392c8ea41dc27215b43ed9ee40 (diff) | |
download | upstream-fb59070466a4d50938888d9d23e592598f686019.tar.gz upstream-fb59070466a4d50938888d9d23e592598f686019.tar.bz2 upstream-fb59070466a4d50938888d9d23e592598f686019.zip |
mt7621: fix Belkin RT1800 GPIO
When converting this device to use both GMACs, I mistakenly removed
state_default, which prevented GPIO LEDs and keys from being used.
Add back and and extra LEDs that were missing.
Tested all LEDs by turning them on.
Fixes: 26a6a6a60ba7 ("ramips: add support for Belkin RT1800")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/dts/mt7621_belkin_rt1800.dts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_belkin_rt1800.dts b/target/linux/ramips/dts/mt7621_belkin_rt1800.dts index 7bf7d89445..16ae732429 100644 --- a/target/linux/ramips/dts/mt7621_belkin_rt1800.dts +++ b/target/linux/ramips/dts/mt7621_belkin_rt1800.dts @@ -40,12 +40,24 @@ leds { compatible = "gpio-leds"; + led-wps { + color = <LED_COLOR_ID_AMBER>; + function = LED_FUNCTION_WPS; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + }; + led_power: led-power { label = "white:power"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; default-state = "on"; }; + led-wan2 { + color = <LED_COLOR_ID_AMBER>; + function = LED_FUNCTION_WAN; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + led-wan { color = <LED_COLOR_ID_WHITE>; function = LED_FUNCTION_WAN; @@ -125,6 +137,13 @@ }; }; +&state_default { + gpio { + groups = "i2c", "uart3", "jtag", "wdt"; + function = "gpio"; + }; +}; + &gmac1 { status = "okay"; label = "wan"; |