Add all ports, rename DSA ports to start at lan1
Signed-off-by: Felix Fietkau <nbd@nbd.name>
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
phy5: phy@5 {
compatible = "ethernet-phy-id67c9.de0a";
reg = <5>;
phy5: phy@5 {
compatible = "ethernet-phy-id67c9.de0a";
reg = <5>;
reset-gpios = <&pio 6 1>;
reset-deassert-us = <20000>;
reset-gpios = <&pio 6 1>;
reset-deassert-us = <20000>;
- phy-mode = "2500base-x";
};
phy6: phy@6 {
compatible = "ethernet-phy-id67c9.de0a";
reg = <6>;
};
phy6: phy@6 {
compatible = "ethernet-phy-id67c9.de0a";
reg = <6>;
- phy-mode = "2500base-x";
+&gmac1 {
+ phy-mode = "2500base-x";
+ phy-connection-type = "2500base-x";
+ phy-handle = <&phy6>;
+};
+
&switch {
ports {
#address-cells = <1>;
&switch {
ports {
#address-cells = <1>;
+ label = "lan4";
+ };
+
+ port@4 {
+ reg = <4>;
+ label = "wan";
+ };
+
+ port@5 {
+ reg = <5>;
+ label = "lan6";
+
+ phy-mode = "2500base-x";
+ phy-handle = <&phy5>;