summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyang Huang2025-10-19 09:41:43 +0000
committerHauke Mehrtens2026-01-05 00:00:24 +0000
commitea54b6a4786c1f6e687010a46e9f22a4d19e8219 (patch)
tree688c45a048a67a1696bc485f2c06515555ccbec3
parente2f7ad08c76593c8cb5abb70088b0813005aa09c (diff)
downloadopenwrt-ea54b6a4786c1f6e687010a46e9f22a4d19e8219.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 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/airoha/dts/an7581-evb-emmc.dts4
-rw-r--r--target/linux/airoha/dts/an7581-evb.dts4
-rw-r--r--target/linux/airoha/dts/an7581.dtsi8
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";
};
};