From: Ziyang Huang Date: Sun, 19 Oct 2025 09:41:43 +0000 (+0800) Subject: airoha: an7581: move the switch led label from soc-level to board-level X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ea54b6a4786c1f6e687010a46e9f22a4d19e8219;p=openwrt%2Fstaging%2Fxback.git airoha: an7581: move the switch led label from soc-level to board-level Different boards use different port map. For example, some board may use a GE port as WAN. So defining the led label in board-level is better. Signed-off-by: Ziyang Huang Link: https://github.com/openwrt/openwrt/pull/20482 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/airoha/dts/an7581-evb-emmc.dts b/target/linux/airoha/dts/an7581-evb-emmc.dts index 554d05b778..3a532e74f9 100644 --- a/target/linux/airoha/dts/an7581-evb-emmc.dts +++ b/target/linux/airoha/dts/an7581-evb-emmc.dts @@ -266,6 +266,7 @@ &gsw_phy1_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; &gsw_port2 { @@ -281,6 +282,7 @@ &gsw_phy2_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; &gsw_port3 { @@ -296,6 +298,7 @@ &gsw_phy3_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; &gsw_port4 { @@ -311,4 +314,5 @@ &gsw_phy4_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; diff --git a/target/linux/airoha/dts/an7581-evb.dts b/target/linux/airoha/dts/an7581-evb.dts index 7e22f0ce75..9ab54a8394 100644 --- a/target/linux/airoha/dts/an7581-evb.dts +++ b/target/linux/airoha/dts/an7581-evb.dts @@ -231,6 +231,7 @@ &gsw_phy1_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; &gsw_port2 { @@ -246,6 +247,7 @@ &gsw_phy2_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; &gsw_port3 { @@ -261,6 +263,7 @@ &gsw_phy3_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; &gsw_port4 { @@ -276,4 +279,5 @@ &gsw_phy4_led0 { status = "okay"; + function = LED_FUNCTION_LAN; }; diff --git a/target/linux/airoha/dts/an7581.dtsi b/target/linux/airoha/dts/an7581.dtsi index 25ff26af7d..6d7875b6c1 100644 --- a/target/linux/airoha/dts/an7581.dtsi +++ b/target/linux/airoha/dts/an7581.dtsi @@ -997,13 +997,11 @@ gsw_phy1_led0: gsw-phy1-led0@0 { reg = <0>; - function = "phy1_led0"; status = "disabled"; }; gsw_phy1_led1: gsw-phy1-led1@1 { reg = <1>; - function = "phy1_led1"; status = "disabled"; }; }; @@ -1021,13 +1019,11 @@ gsw_phy2_led0: gsw-phy2-led0@0 { reg = <0>; - function = "phy2_led0"; status = "disabled"; }; gsw_phy2_led1: gsw-phy2-led1@1 { reg = <1>; - function = "phy2_led1"; status = "disabled"; }; }; @@ -1045,13 +1041,11 @@ gsw_phy3_led0: gsw-phy3-led0@0 { reg = <0>; - function = LED_FUNCTION_LAN; status = "disabled"; }; gsw_phy3_led1: gsw-phy3-led1@1 { reg = <1>; - function = LED_FUNCTION_LAN; status = "disabled"; }; }; @@ -1069,13 +1063,11 @@ gsw_phy4_led0: gsw-phy4-led0@0 { reg = <0>; - function = LED_FUNCTION_LAN; status = "disabled"; }; gsw_phy4_led1: gsw-phy4-led1@1 { reg = <1>; - function = LED_FUNCTION_LAN; status = "disabled"; }; };