mediatek: fix support for gmac1 using external PHY
[openwrt/staging/dedeckeh.git] / target / linux / mediatek / files / arch / arm / boot / dts / mt7623-NAND.dts
index d90e0fbcb5cabbe8a5b3396e0089baa8a2399576..072ebe764d274f81a7716e0029efc405a493f344 100644 (file)
 &gmac1 {
        mac-address = [00 11 22 33 44 56];
        status = "okay";
+
+       phy-mode = "trgmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+               pause;
+       };
 };
 
 &gmac2 {
                        port@0 {
                                reg = <0>;
                                label = "lan0";
+                               cpu = <&cpu_port0>;
                        };
 
                        port@1 {
                                reg = <1>;
                                label = "lan1";
+                               cpu = <&cpu_port0>;
                        };
 
                        port@2 {
                                reg = <2>;
                                label = "lan2";
+                               cpu = <&cpu_port0>;
                        };
 
                        port@3 {
                                reg = <3>;
                                label = "lan3";
+                               cpu = <&cpu_port0>;
                        };
 
                        port@4 {
                                reg = <4>;
                                label = "wan";
+                               cpu = <&cpu_port1>;
                        };
 
-                       port@6 {
+                       cpu_port1: port@5 {
+                               reg = <5>;
+                               label = "cpu";
+                               ethernet = <&gmac2>;
+                               phy-mode = "trgmii";
+                               fixed-link {
+                                       speed = <1000>;
+                                       full-duplex;
+                               };
+                       };
+
+                       cpu_port0: port@6 {
                                reg = <6>;
                                label = "cpu";
                                ethernet = <&gmac1>;
        };
 };
 
-
 &pwm {
        pinctrl-names = "default";
        pinctrl-0 = <&pwm_pins>;