diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts | 8 | ||||
-rwxr-xr-x | target/linux/ramips/mt7620/base-files/etc/board.d/01_leds | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts index 82b8a6b83f..0078103da3 100644 --- a/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts +++ b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts @@ -11,6 +11,10 @@ aliases { label-mac-device = ðernet; + led-boot = &led_wifi_blue; + led-failsafe = &led_wifi_blue; + led-running = &led_wifi_blue; + led-upgrade = &led_wifi_blue; }; chosen { @@ -20,12 +24,12 @@ leds { compatible = "gpio-leds"; - green-wifi { + wifi_green { label = "rp-wd03:green:wifi"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; }; - blue-wifi { + led_wifi_blue: wifi_blue { label = "rp-wd03:blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; }; diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index 90d1596783..ec86ed4b3f 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -179,6 +179,9 @@ planex,mzk-ex750np|\ zbtlink,zbt-we826-e) set_wifi_led "$boardname:red:wifi" ;; +ravpower,rp-wd03) + ucidef_set_led_netdev "internet" "internet" "$boardname:green:wifi" "eth0" + ;; tplink,archer-c2-v1) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01" |