airoha: an7581: move the switch port label from soc-level to board-level
authorZiyang Huang <hzyitc@outlook.com>
Sun, 19 Oct 2025 09:37:39 +0000 (17:37 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 5 Jan 2026 00:00:24 +0000 (01:00 +0100)
Different boards use different port map. Defining the port labels 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>
target/linux/airoha/dts/an7581-evb-emmc.dts
target/linux/airoha/dts/an7581-evb.dts
target/linux/airoha/dts/an7581.dtsi

index c2709c4264f7db8e8536bfb6d7ba2560de6f1d00..554d05b7786040a922d8b0b826c48caec175c10c 100644 (file)
 
 &gsw_port1 {
        status = "okay";
+       label = "lan1";
 };
 
 &gsw_phy1 {
 
 &gsw_port2 {
        status = "okay";
+       label = "lan2";
 };
 
 &gsw_phy2 {
 
 &gsw_port3 {
        status = "okay";
+       label = "lan3";
 };
 
 &gsw_phy3 {
 
 &gsw_port4 {
        status = "okay";
+       label = "lan4";
 };
 
 &gsw_phy4 {
index 8dcdce2a275b92f85633e3c9243051c146ba2689..7e22f0ce7551db7533a38858d866dab1fece54cd 100644 (file)
 
 &gsw_port1 {
        status = "okay";
+       label = "lan1";
 };
 
 &gsw_phy1 {
 
 &gsw_port2 {
        status = "okay";
+       label = "lan2";
 };
 
 &gsw_phy2 {
 
 &gsw_port3 {
        status = "okay";
+       label = "lan3";
 };
 
 &gsw_phy3 {
 
 &gsw_port4 {
        status = "okay";
+       label = "lan4";
 };
 
 &gsw_phy4 {
index 2f61a2c2f42f1ae51e059ace5ce72e542544faa2..25ff26af7dc0f17c268a4a1ef421a0daefa91b11 100644 (file)
 
                                gsw_port1: port@1 {
                                        reg = <1>;
-                                       label = "lan1";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy1>;
                                        status = "disabled";
 
                                gsw_port2: port@2 {
                                        reg = <2>;
-                                       label = "lan2";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy2>;
                                        status = "disabled";
 
                                gsw_port3: port@3 {
                                        reg = <3>;
-                                       label = "lan3";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy3>;
                                        status = "disabled";
 
                                gsw_port4: port@4 {
                                        reg = <4>;
-                                       label = "lan4";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy4>;
                                        status = "disabled";
 
                                port@6 {
                                        reg = <6>;
-                                       label = "cpu";
                                        ethernet = <&gdm1>;
                                        phy-mode = "internal";