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>
&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 {
&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 {
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";