add definition of LAN LED to board.d/01_leds rename WiFi LED with correct color red rename status LED with correct color green (like they are used in stock firmware)
Signed-off-by: Andreas Ziegler <[email protected]> --- target/linux/ath79/base-files/etc/board.d/01_leds | 4 ++++ target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index a56fe58f76..666121e9a8 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -63,6 +63,10 @@ glinet,gl-ar150) ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02" ;; +glinet,gl-ar300m-nand|\ +glinet,gl-ar300m-nor) + ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth1" + ;; glinet,gl-x750) ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" ;; diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi index 55002b44e3..0042a1cbde 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi @@ -42,7 +42,7 @@ compatible = "gpio-leds"; wlan { - label = "gl-ar300m:green:wlan"; + label = "gl-ar300m:red:wlan"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; @@ -53,7 +53,7 @@ }; led_status: status { - label = "gl-ar300m:red:status"; + label = "gl-ar300m:green:status"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; -- 2.20.1 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
