]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: an7583: move the switch port label from soc-level to board-level
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tue, 30 Jun 2026 12:56:16 +0000 (14:56 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 7 Aug 2026 10:02:48 +0000 (12:02 +0200)
Different boards use different port maps. Defining the port labels in
board-level is better.

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
[ adapted from commit e2f7ad08c765 ("airoha: move the switch port label from soc-level to ...-") ]
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24264
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/airoha/dts/an7583-evb-emmc.dts
target/linux/airoha/dts/an7583-evb.dts
target/linux/airoha/dts/an7583.dtsi

index 62e9f3495d7b337f1f37436e5b9cbc75a45ab52e..f8ce387efaa4e201f996c8cda179bed9a381d28e 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 e9a08eea8dab1cc30ac8960b5122517d7fbdfa23..5cbf4828709183c04e25ef2ddefa7fd59cacd696 100644 (file)
 
 &gsw_port1 {
        status = "okay";
+       label = "lan1";
 };
 
 &gsw_phy1 {
index 868afaea0e0ab17ac2e46b47b7e142044316fcd8..c7d3bcd645758fd9215d381af4a6752ddd7fc5e1 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";