[openwrt/openwrt] airoha: an7581: move the switch led label from soc-level to board-level
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 4 16:01:36 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ea54b6a4786c1f6e687010a46e9f22a4d19e8219
commit ea54b6a4786c1f6e687010a46e9f22a4d19e8219
Author: Ziyang Huang <hzyitc at outlook.com>
AuthorDate: Sun Oct 19 17:41:43 2025 +0800
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 at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20482
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/airoha/dts/an7581-evb-emmc.dts | 4 ++++
target/linux/airoha/dts/an7581-evb.dts | 4 ++++
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 at 0 {
reg = <0>;
- function = "phy1_led0";
status = "disabled";
};
gsw_phy1_led1: gsw-phy1-led1 at 1 {
reg = <1>;
- function = "phy1_led1";
status = "disabled";
};
};
@@ -1021,13 +1019,11 @@
gsw_phy2_led0: gsw-phy2-led0 at 0 {
reg = <0>;
- function = "phy2_led0";
status = "disabled";
};
gsw_phy2_led1: gsw-phy2-led1 at 1 {
reg = <1>;
- function = "phy2_led1";
status = "disabled";
};
};
@@ -1045,13 +1041,11 @@
gsw_phy3_led0: gsw-phy3-led0 at 0 {
reg = <0>;
- function = LED_FUNCTION_LAN;
status = "disabled";
};
gsw_phy3_led1: gsw-phy3-led1 at 1 {
reg = <1>;
- function = LED_FUNCTION_LAN;
status = "disabled";
};
};
@@ -1069,13 +1063,11 @@
gsw_phy4_led0: gsw-phy4-led0 at 0 {
reg = <0>;
- function = LED_FUNCTION_LAN;
status = "disabled";
};
gsw_phy4_led1: gsw-phy4-led1 at 1 {
reg = <1>;
- function = LED_FUNCTION_LAN;
status = "disabled";
};
};
More information about the lede-commits
mailing list