[openwrt/openwrt] airoha: an7581: move the switch port label from soc-level to board-level

LEDE Commits lede-commits at lists.infradead.org
Sun Jan 4 16:01:35 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e2f7ad08c76593c8cb5abb70088b0813005aa09c

commit e2f7ad08c76593c8cb5abb70088b0813005aa09c
Author: Ziyang Huang <hzyitc at outlook.com>
AuthorDate: Sun Oct 19 17:37:39 2025 +0800

    airoha: an7581: move the switch port label from soc-level to board-level
    
    Different boards use different port map. Defining the port labels 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         | 5 -----
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/target/linux/airoha/dts/an7581-evb-emmc.dts b/target/linux/airoha/dts/an7581-evb-emmc.dts
index c2709c4264..554d05b778 100644
--- a/target/linux/airoha/dts/an7581-evb-emmc.dts
+++ b/target/linux/airoha/dts/an7581-evb-emmc.dts
@@ -255,6 +255,7 @@
 
 &gsw_port1 {
 	status = "okay";
+	label = "lan1";
 };
 
 &gsw_phy1 {
@@ -269,6 +270,7 @@
 
 &gsw_port2 {
 	status = "okay";
+	label = "lan2";
 };
 
 &gsw_phy2 {
@@ -283,6 +285,7 @@
 
 &gsw_port3 {
 	status = "okay";
+	label = "lan3";
 };
 
 &gsw_phy3 {
@@ -297,6 +300,7 @@
 
 &gsw_port4 {
 	status = "okay";
+	label = "lan4";
 };
 
 &gsw_phy4 {
diff --git a/target/linux/airoha/dts/an7581-evb.dts b/target/linux/airoha/dts/an7581-evb.dts
index 8dcdce2a27..7e22f0ce75 100644
--- a/target/linux/airoha/dts/an7581-evb.dts
+++ b/target/linux/airoha/dts/an7581-evb.dts
@@ -220,6 +220,7 @@
 
 &gsw_port1 {
 	status = "okay";
+	label = "lan1";
 };
 
 &gsw_phy1 {
@@ -234,6 +235,7 @@
 
 &gsw_port2 {
 	status = "okay";
+	label = "lan2";
 };
 
 &gsw_phy2 {
@@ -248,6 +250,7 @@
 
 &gsw_port3 {
 	status = "okay";
+	label = "lan3";
 };
 
 &gsw_phy3 {
@@ -262,6 +265,7 @@
 
 &gsw_port4 {
 	status = "okay";
+	label = "lan4";
 };
 
 &gsw_phy4 {
diff --git a/target/linux/airoha/dts/an7581.dtsi b/target/linux/airoha/dts/an7581.dtsi
index 2f61a2c2f4..25ff26af7d 100644
--- a/target/linux/airoha/dts/an7581.dtsi
+++ b/target/linux/airoha/dts/an7581.dtsi
@@ -942,7 +942,6 @@
 
 				gsw_port1: port at 1 {
 					reg = <1>;
-					label = "lan1";
 					phy-mode = "internal";
 					phy-handle = <&gsw_phy1>;
 					status = "disabled";
@@ -950,7 +949,6 @@
 
 				gsw_port2: port at 2 {
 					reg = <2>;
-					label = "lan2";
 					phy-mode = "internal";
 					phy-handle = <&gsw_phy2>;
 					status = "disabled";
@@ -958,7 +956,6 @@
 
 				gsw_port3: port at 3 {
 					reg = <3>;
-					label = "lan3";
 					phy-mode = "internal";
 					phy-handle = <&gsw_phy3>;
 					status = "disabled";
@@ -966,7 +963,6 @@
 
 				gsw_port4: port at 4 {
 					reg = <4>;
-					label = "lan4";
 					phy-mode = "internal";
 					phy-handle = <&gsw_phy4>;
 					status = "disabled";
@@ -974,7 +970,6 @@
 
 				port at 6 {
 					reg = <6>;
-					label = "cpu";
 					ethernet = <&gdm1>;
 					phy-mode = "internal";
 




More information about the lede-commits mailing list