diff options
| author | Ziyang Huang | 2025-10-19 09:41:43 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-02-07 16:00:53 +0000 |
| commit | 045a938c057979900f0cd34439f5e8d7a94caf60 (patch) | |
| tree | 773b43c5c018e4703c1552eab2e28ca336bda4b2 | |
| parent | 768f427773eb7d7e27f2c28819a68dd4a0a9f555 (diff) | |
| download | openwrt-045a938c057979900f0cd34439f5e8d7a94caf60.tar.gz | |
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 <hzyitc@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20482
(cherry picked from commit ea54b6a4786c1f6e687010a46e9f22a4d19e8219)
Link: https://github.com/openwrt/openwrt/pull/21838
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | target/linux/airoha/dts/an7581-evb-emmc.dts | 4 | ||||
| -rw-r--r-- | target/linux/airoha/dts/an7581-evb.dts | 4 | ||||
| -rw-r--r-- | target/linux/airoha/dts/an7581.dtsi | 8 |
3 files changed, 8 insertions, 8 deletions
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"; }; }; |