diff --git a/target/linux/airoha/an7581/base-files/etc/board.d/01_leds b/target/linux/airoha/an7581/base-files/etc/board.d/01_leds index 36f0460b9a3..5cec5df4246 100644 --- a/target/linux/airoha/an7581/base-files/etc/board.d/01_leds +++ b/target/linux/airoha/an7581/base-files/etc/board.d/01_leds @@ -14,6 +14,10 @@ airoha,an7581-evb) ucidef_set_led_usbport "usb2" "USB 2" "green:usb-2" "usb3-port1" "usb4-port1" ;; gemtek,w1700k-ubi) + ucidef_set_led_netdev "wan-yellow" "wan" "mt7530-0:08:yellow:wan" "wan" "link_10 link_100 link_10000" + ucidef_set_led_netdev "wan-green" "wan" "mt7530-0:08:green:wan" "wan" "link_1000 link_2500 link_5000 link_10000 tx rx" + ucidef_set_led_netdev "lan2-yellow" "lan2" "mt7530-0:05:yellow:lan-2" "lan2" "link_10 link_100 link_10000" + ucidef_set_led_netdev "lan2-green" "lan2" "mt7530-0:05:green:lan-2" "lan2" "link_1000 link_2500 link_5000 link_10000 tx rx" ucidef_set_led_netdev "lan3-yellow" "lan3" "yellow:lan-3" "lan3" "link_10 link_100" ucidef_set_led_netdev "lan3-green" "lan3" "green:lan-3" "lan3" "link_1000 tx rx" ucidef_set_led_netdev "lan4-yellow" "lan4" "yellow:lan-4" "lan4" "link_10 link_100" diff --git a/target/linux/airoha/dts/an7581-w1700k-ubi.dts b/target/linux/airoha/dts/an7581-w1700k-ubi.dts index 9cc13efaf64..88e0b279e8a 100644 --- a/target/linux/airoha/dts/an7581-w1700k-ubi.dts +++ b/target/linux/airoha/dts/an7581-w1700k-ubi.dts @@ -366,6 +366,25 @@ // interrupts = <22 IRQ_TYPE_LEVEL_LOW>; tx-polarity = ; rx-polarity = ; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; + }; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; + }; + }; }; phy8: ethernet-phy@8 { @@ -378,6 +397,23 @@ // interrupts = <23 IRQ_TYPE_LEVEL_LOW>; tx-polarity = ; rx-polarity = ; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_WAN; + }; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_WAN; + }; + }; }; }; };