summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyang Huang2025-10-19 09:41:43 +0000
committerChristian Marangi2026-03-10 23:18:59 +0000
commit0dbc3f8a3c01afb5141f4feb80a0d6edfd04c247 (patch)
treefb1f184931f59812cf42fd257baa9d6ef83cbd57
parent90b84588082233019268ab14c6ab60727756159a (diff)
downloadopenwrt-0dbc3f8a3c01afb5141f4feb80a0d6edfd04c247.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> (cherry picked from commit ea54b6a4786c1f6e687010a46e9f22a4d19e8219)
-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 8ff0170711..5465aacb7a 100644
--- a/target/linux/airoha/dts/an7581-evb-emmc.dts
+++ b/target/linux/airoha/dts/an7581-evb-emmc.dts
@@ -248,6 +248,7 @@
&gsw_phy1_led0 {
status = "okay";
+ function = LED_FUNCTION_LAN;
};
&gsw_port2 {
@@ -263,6 +264,7 @@
&gsw_phy2_led0 {
status = "okay";
+ function = LED_FUNCTION_LAN;
};
&gsw_port3 {
@@ -278,6 +280,7 @@
&gsw_phy3_led0 {
status = "okay";
+ function = LED_FUNCTION_LAN;
};
&gsw_port4 {
@@ -293,4 +296,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 168881cd9d..9d2962eeb3 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 8de16e4a95..98725e060d 100644
--- a/target/linux/airoha/dts/an7581.dtsi
+++ b/target/linux/airoha/dts/an7581.dtsi
@@ -981,13 +981,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";
};
};
@@ -1005,13 +1003,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 = "phy1_led1";
status = "disabled";
};
};
@@ -1029,13 +1025,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";
};
};
@@ -1053,13 +1047,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";
};
};