xref: /freebsd/sys/contrib/device-tree/Bindings/net/dsa/mediatek,mt7530.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b97ee269SEmmanuel Vadot%YAML 1.2
3*b97ee269SEmmanuel Vadot---
4*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml#
5*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b97ee269SEmmanuel Vadot
7*b97ee269SEmmanuel Vadottitle: Mediatek MT7530 Ethernet switch
8*b97ee269SEmmanuel Vadot
9*b97ee269SEmmanuel Vadotmaintainers:
10*b97ee269SEmmanuel Vadot  - Sean Wang <sean.wang@mediatek.com>
11*b97ee269SEmmanuel Vadot  - Landen Chao <Landen.Chao@mediatek.com>
12*b97ee269SEmmanuel Vadot  - DENG Qingfang <dqfext@gmail.com>
13*b97ee269SEmmanuel Vadot
14*b97ee269SEmmanuel Vadotdescription: |
15*b97ee269SEmmanuel Vadot  Port 5 of mt7530 and mt7621 switch is muxed between:
16*b97ee269SEmmanuel Vadot  1. GMAC5: GMAC5 can interface with another external MAC or PHY.
17*b97ee269SEmmanuel Vadot  2. PHY of port 0 or port 4: PHY interfaces with an external MAC like 2nd GMAC
18*b97ee269SEmmanuel Vadot     of the SOC. Used in many setups where port 0/4 becomes the WAN port.
19*b97ee269SEmmanuel Vadot     Note: On a MT7621 SOC with integrated switch: 2nd GMAC can only connected to
20*b97ee269SEmmanuel Vadot       GMAC5 when the gpios for RGMII2 (GPIO 22-33) are not used and not
21*b97ee269SEmmanuel Vadot       connected to external component!
22*b97ee269SEmmanuel Vadot
23*b97ee269SEmmanuel Vadot  Port 5 modes/configurations:
24*b97ee269SEmmanuel Vadot  1. Port 5 is disabled and isolated: An external phy can interface to the 2nd
25*b97ee269SEmmanuel Vadot     GMAC of the SOC.
26*b97ee269SEmmanuel Vadot     In the case of a build-in MT7530 switch, port 5 shares the RGMII bus with 2nd
27*b97ee269SEmmanuel Vadot     GMAC and an optional external phy. Mind the GPIO/pinctl settings of the SOC!
28*b97ee269SEmmanuel Vadot  2. Port 5 is muxed to PHY of port 0/4: Port 0/4 interfaces with 2nd GMAC.
29*b97ee269SEmmanuel Vadot     It is a simple MAC to PHY interface, port 5 needs to be setup for xMII mode
30*b97ee269SEmmanuel Vadot     and RGMII delay.
31*b97ee269SEmmanuel Vadot  3. Port 5 is muxed to GMAC5 and can interface to an external phy.
32*b97ee269SEmmanuel Vadot     Port 5 becomes an extra switch port.
33*b97ee269SEmmanuel Vadot     Only works on platform where external phy TX<->RX lines are swapped.
34*b97ee269SEmmanuel Vadot     Like in the Ubiquiti ER-X-SFP.
35*b97ee269SEmmanuel Vadot  4. Port 5 is muxed to GMAC5 and interfaces with the 2nd GAMC as 2nd CPU port.
36*b97ee269SEmmanuel Vadot     Currently a 2nd CPU port is not supported by DSA code.
37*b97ee269SEmmanuel Vadot
38*b97ee269SEmmanuel Vadot  Depending on how the external PHY is wired:
39*b97ee269SEmmanuel Vadot  1. normal: The PHY can only connect to 2nd GMAC but not to the switch
40*b97ee269SEmmanuel Vadot  2. swapped: RGMII TX, RX are swapped; external phy interface with the switch as
41*b97ee269SEmmanuel Vadot     a ethernet port. But can't interface to the 2nd GMAC.
42*b97ee269SEmmanuel Vadot
43*b97ee269SEmmanuel Vadot    Based on the DT the port 5 mode is configured.
44*b97ee269SEmmanuel Vadot
45*b97ee269SEmmanuel Vadot  Driver tries to lookup the phy-handle of the 2nd GMAC of the master device.
46*b97ee269SEmmanuel Vadot  When phy-handle matches PHY of port 0 or 4 then port 5 set-up as mode 2.
47*b97ee269SEmmanuel Vadot  phy-mode must be set, see also example 2 below!
48*b97ee269SEmmanuel Vadot  * mt7621: phy-mode = "rgmii-txid";
49*b97ee269SEmmanuel Vadot  * mt7623: phy-mode = "rgmii";
50*b97ee269SEmmanuel Vadot
51*b97ee269SEmmanuel Vadot  CPU-Ports need a phy-mode property:
52*b97ee269SEmmanuel Vadot    Allowed values on mt7530 and mt7621:
53*b97ee269SEmmanuel Vadot      - "rgmii"
54*b97ee269SEmmanuel Vadot      - "trgmii"
55*b97ee269SEmmanuel Vadot    On mt7531:
56*b97ee269SEmmanuel Vadot      - "1000base-x"
57*b97ee269SEmmanuel Vadot      - "2500base-x"
58*b97ee269SEmmanuel Vadot      - "rgmii"
59*b97ee269SEmmanuel Vadot      - "sgmii"
60*b97ee269SEmmanuel Vadot
61*b97ee269SEmmanuel Vadot
62*b97ee269SEmmanuel Vadotproperties:
63*b97ee269SEmmanuel Vadot  compatible:
64*b97ee269SEmmanuel Vadot    enum:
65*b97ee269SEmmanuel Vadot      - mediatek,mt7530
66*b97ee269SEmmanuel Vadot      - mediatek,mt7531
67*b97ee269SEmmanuel Vadot      - mediatek,mt7621
68*b97ee269SEmmanuel Vadot
69*b97ee269SEmmanuel Vadot  reg:
70*b97ee269SEmmanuel Vadot    maxItems: 1
71*b97ee269SEmmanuel Vadot
72*b97ee269SEmmanuel Vadot  core-supply:
73*b97ee269SEmmanuel Vadot    description:
74*b97ee269SEmmanuel Vadot      Phandle to the regulator node necessary for the core power.
75*b97ee269SEmmanuel Vadot
76*b97ee269SEmmanuel Vadot  "#gpio-cells":
77*b97ee269SEmmanuel Vadot    const: 2
78*b97ee269SEmmanuel Vadot
79*b97ee269SEmmanuel Vadot  gpio-controller:
80*b97ee269SEmmanuel Vadot    type: boolean
81*b97ee269SEmmanuel Vadot    description:
82*b97ee269SEmmanuel Vadot      if defined, MT7530's LED controller will run on GPIO mode.
83*b97ee269SEmmanuel Vadot
84*b97ee269SEmmanuel Vadot  "#interrupt-cells":
85*b97ee269SEmmanuel Vadot    const: 1
86*b97ee269SEmmanuel Vadot
87*b97ee269SEmmanuel Vadot  interrupt-controller: true
88*b97ee269SEmmanuel Vadot
89*b97ee269SEmmanuel Vadot  interrupts:
90*b97ee269SEmmanuel Vadot    maxItems: 1
91*b97ee269SEmmanuel Vadot
92*b97ee269SEmmanuel Vadot  io-supply:
93*b97ee269SEmmanuel Vadot    description:
94*b97ee269SEmmanuel Vadot      Phandle to the regulator node necessary for the I/O power.
95*b97ee269SEmmanuel Vadot      See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
96*b97ee269SEmmanuel Vadot      for details for the regulator setup on these boards.
97*b97ee269SEmmanuel Vadot
98*b97ee269SEmmanuel Vadot  mediatek,mcm:
99*b97ee269SEmmanuel Vadot    type: boolean
100*b97ee269SEmmanuel Vadot    description:
101*b97ee269SEmmanuel Vadot      if defined, indicates that either MT7530 is the part on multi-chip
102*b97ee269SEmmanuel Vadot      module belong to MT7623A has or the remotely standalone chip as the
103*b97ee269SEmmanuel Vadot      function MT7623N reference board provided for.
104*b97ee269SEmmanuel Vadot
105*b97ee269SEmmanuel Vadot  reset-gpios:
106*b97ee269SEmmanuel Vadot    maxItems: 1
107*b97ee269SEmmanuel Vadot
108*b97ee269SEmmanuel Vadot  reset-names:
109*b97ee269SEmmanuel Vadot    const: mcm
110*b97ee269SEmmanuel Vadot
111*b97ee269SEmmanuel Vadot  resets:
112*b97ee269SEmmanuel Vadot    description:
113*b97ee269SEmmanuel Vadot      Phandle pointing to the system reset controller with line index for
114*b97ee269SEmmanuel Vadot      the ethsys.
115*b97ee269SEmmanuel Vadot    maxItems: 1
116*b97ee269SEmmanuel Vadot
117*b97ee269SEmmanuel VadotpatternProperties:
118*b97ee269SEmmanuel Vadot  "^(ethernet-)?ports$":
119*b97ee269SEmmanuel Vadot    type: object
120*b97ee269SEmmanuel Vadot
121*b97ee269SEmmanuel Vadot    patternProperties:
122*b97ee269SEmmanuel Vadot      "^(ethernet-)?port@[0-9]+$":
123*b97ee269SEmmanuel Vadot        type: object
124*b97ee269SEmmanuel Vadot        description: Ethernet switch ports
125*b97ee269SEmmanuel Vadot
126*b97ee269SEmmanuel Vadot        unevaluatedProperties: false
127*b97ee269SEmmanuel Vadot
128*b97ee269SEmmanuel Vadot        properties:
129*b97ee269SEmmanuel Vadot          reg:
130*b97ee269SEmmanuel Vadot            description:
131*b97ee269SEmmanuel Vadot              Port address described must be 5 or 6 for CPU port and from 0
132*b97ee269SEmmanuel Vadot              to 5 for user ports.
133*b97ee269SEmmanuel Vadot
134*b97ee269SEmmanuel Vadot        allOf:
135*b97ee269SEmmanuel Vadot          - $ref: dsa-port.yaml#
136*b97ee269SEmmanuel Vadot          - if:
137*b97ee269SEmmanuel Vadot              properties:
138*b97ee269SEmmanuel Vadot                label:
139*b97ee269SEmmanuel Vadot                  items:
140*b97ee269SEmmanuel Vadot                    - const: cpu
141*b97ee269SEmmanuel Vadot            then:
142*b97ee269SEmmanuel Vadot              required:
143*b97ee269SEmmanuel Vadot                - reg
144*b97ee269SEmmanuel Vadot                - phy-mode
145*b97ee269SEmmanuel Vadot
146*b97ee269SEmmanuel Vadotrequired:
147*b97ee269SEmmanuel Vadot  - compatible
148*b97ee269SEmmanuel Vadot  - reg
149*b97ee269SEmmanuel Vadot
150*b97ee269SEmmanuel VadotallOf:
151*b97ee269SEmmanuel Vadot  - $ref: "dsa.yaml#"
152*b97ee269SEmmanuel Vadot  - if:
153*b97ee269SEmmanuel Vadot      required:
154*b97ee269SEmmanuel Vadot        - mediatek,mcm
155*b97ee269SEmmanuel Vadot    then:
156*b97ee269SEmmanuel Vadot      required:
157*b97ee269SEmmanuel Vadot        - resets
158*b97ee269SEmmanuel Vadot        - reset-names
159*b97ee269SEmmanuel Vadot
160*b97ee269SEmmanuel Vadot  - dependencies:
161*b97ee269SEmmanuel Vadot      interrupt-controller: [ interrupts ]
162*b97ee269SEmmanuel Vadot
163*b97ee269SEmmanuel Vadot  - if:
164*b97ee269SEmmanuel Vadot      properties:
165*b97ee269SEmmanuel Vadot        compatible:
166*b97ee269SEmmanuel Vadot          items:
167*b97ee269SEmmanuel Vadot            - const: mediatek,mt7530
168*b97ee269SEmmanuel Vadot    then:
169*b97ee269SEmmanuel Vadot      required:
170*b97ee269SEmmanuel Vadot        - core-supply
171*b97ee269SEmmanuel Vadot        - io-supply
172*b97ee269SEmmanuel Vadot
173*b97ee269SEmmanuel VadotunevaluatedProperties: false
174*b97ee269SEmmanuel Vadot
175*b97ee269SEmmanuel Vadotexamples:
176*b97ee269SEmmanuel Vadot  - |
177*b97ee269SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
178*b97ee269SEmmanuel Vadot    mdio {
179*b97ee269SEmmanuel Vadot        #address-cells = <1>;
180*b97ee269SEmmanuel Vadot        #size-cells = <0>;
181*b97ee269SEmmanuel Vadot        switch@0 {
182*b97ee269SEmmanuel Vadot            compatible = "mediatek,mt7530";
183*b97ee269SEmmanuel Vadot            reg = <0>;
184*b97ee269SEmmanuel Vadot
185*b97ee269SEmmanuel Vadot            core-supply = <&mt6323_vpa_reg>;
186*b97ee269SEmmanuel Vadot            io-supply = <&mt6323_vemc3v3_reg>;
187*b97ee269SEmmanuel Vadot            reset-gpios = <&pio 33 GPIO_ACTIVE_HIGH>;
188*b97ee269SEmmanuel Vadot
189*b97ee269SEmmanuel Vadot            ethernet-ports {
190*b97ee269SEmmanuel Vadot                #address-cells = <1>;
191*b97ee269SEmmanuel Vadot                #size-cells = <0>;
192*b97ee269SEmmanuel Vadot                port@0 {
193*b97ee269SEmmanuel Vadot                    reg = <0>;
194*b97ee269SEmmanuel Vadot                    label = "lan0";
195*b97ee269SEmmanuel Vadot                };
196*b97ee269SEmmanuel Vadot
197*b97ee269SEmmanuel Vadot                port@1 {
198*b97ee269SEmmanuel Vadot                    reg = <1>;
199*b97ee269SEmmanuel Vadot                    label = "lan1";
200*b97ee269SEmmanuel Vadot                };
201*b97ee269SEmmanuel Vadot
202*b97ee269SEmmanuel Vadot                port@2 {
203*b97ee269SEmmanuel Vadot                    reg = <2>;
204*b97ee269SEmmanuel Vadot                    label = "lan2";
205*b97ee269SEmmanuel Vadot                };
206*b97ee269SEmmanuel Vadot
207*b97ee269SEmmanuel Vadot                port@3 {
208*b97ee269SEmmanuel Vadot                    reg = <3>;
209*b97ee269SEmmanuel Vadot                    label = "lan3";
210*b97ee269SEmmanuel Vadot                };
211*b97ee269SEmmanuel Vadot
212*b97ee269SEmmanuel Vadot                port@4 {
213*b97ee269SEmmanuel Vadot                    reg = <4>;
214*b97ee269SEmmanuel Vadot                    label = "wan";
215*b97ee269SEmmanuel Vadot                };
216*b97ee269SEmmanuel Vadot
217*b97ee269SEmmanuel Vadot                port@6 {
218*b97ee269SEmmanuel Vadot                    reg = <6>;
219*b97ee269SEmmanuel Vadot                    label = "cpu";
220*b97ee269SEmmanuel Vadot                    ethernet = <&gmac0>;
221*b97ee269SEmmanuel Vadot                    phy-mode = "trgmii";
222*b97ee269SEmmanuel Vadot                    fixed-link {
223*b97ee269SEmmanuel Vadot                        speed = <1000>;
224*b97ee269SEmmanuel Vadot                        full-duplex;
225*b97ee269SEmmanuel Vadot                    };
226*b97ee269SEmmanuel Vadot                };
227*b97ee269SEmmanuel Vadot            };
228*b97ee269SEmmanuel Vadot        };
229*b97ee269SEmmanuel Vadot    };
230*b97ee269SEmmanuel Vadot
231*b97ee269SEmmanuel Vadot  - |
232*b97ee269SEmmanuel Vadot    //Example 2: MT7621: Port 4 is WAN port: 2nd GMAC -> Port 5 -> PHY port 4.
233*b97ee269SEmmanuel Vadot
234*b97ee269SEmmanuel Vadot    ethernet {
235*b97ee269SEmmanuel Vadot        #address-cells = <1>;
236*b97ee269SEmmanuel Vadot        #size-cells = <0>;
237*b97ee269SEmmanuel Vadot        gmac0: mac@0 {
238*b97ee269SEmmanuel Vadot            compatible = "mediatek,eth-mac";
239*b97ee269SEmmanuel Vadot            reg = <0>;
240*b97ee269SEmmanuel Vadot            phy-mode = "rgmii";
241*b97ee269SEmmanuel Vadot
242*b97ee269SEmmanuel Vadot            fixed-link {
243*b97ee269SEmmanuel Vadot                speed = <1000>;
244*b97ee269SEmmanuel Vadot                full-duplex;
245*b97ee269SEmmanuel Vadot                pause;
246*b97ee269SEmmanuel Vadot            };
247*b97ee269SEmmanuel Vadot        };
248*b97ee269SEmmanuel Vadot
249*b97ee269SEmmanuel Vadot        gmac1: mac@1 {
250*b97ee269SEmmanuel Vadot            compatible = "mediatek,eth-mac";
251*b97ee269SEmmanuel Vadot            reg = <1>;
252*b97ee269SEmmanuel Vadot            phy-mode = "rgmii-txid";
253*b97ee269SEmmanuel Vadot            phy-handle = <&phy4>;
254*b97ee269SEmmanuel Vadot        };
255*b97ee269SEmmanuel Vadot
256*b97ee269SEmmanuel Vadot        mdio: mdio-bus {
257*b97ee269SEmmanuel Vadot            #address-cells = <1>;
258*b97ee269SEmmanuel Vadot            #size-cells = <0>;
259*b97ee269SEmmanuel Vadot
260*b97ee269SEmmanuel Vadot            /* Internal phy */
261*b97ee269SEmmanuel Vadot            phy4: ethernet-phy@4 {
262*b97ee269SEmmanuel Vadot                reg = <4>;
263*b97ee269SEmmanuel Vadot            };
264*b97ee269SEmmanuel Vadot
265*b97ee269SEmmanuel Vadot            mt7530: switch@1f {
266*b97ee269SEmmanuel Vadot                compatible = "mediatek,mt7621";
267*b97ee269SEmmanuel Vadot                reg = <0x1f>;
268*b97ee269SEmmanuel Vadot                mediatek,mcm;
269*b97ee269SEmmanuel Vadot
270*b97ee269SEmmanuel Vadot                resets = <&rstctrl 2>;
271*b97ee269SEmmanuel Vadot                reset-names = "mcm";
272*b97ee269SEmmanuel Vadot
273*b97ee269SEmmanuel Vadot                ethernet-ports {
274*b97ee269SEmmanuel Vadot                    #address-cells = <1>;
275*b97ee269SEmmanuel Vadot                    #size-cells = <0>;
276*b97ee269SEmmanuel Vadot
277*b97ee269SEmmanuel Vadot                    port@0 {
278*b97ee269SEmmanuel Vadot                        reg = <0>;
279*b97ee269SEmmanuel Vadot                        label = "lan0";
280*b97ee269SEmmanuel Vadot                    };
281*b97ee269SEmmanuel Vadot
282*b97ee269SEmmanuel Vadot                    port@1 {
283*b97ee269SEmmanuel Vadot                        reg = <1>;
284*b97ee269SEmmanuel Vadot                        label = "lan1";
285*b97ee269SEmmanuel Vadot                    };
286*b97ee269SEmmanuel Vadot
287*b97ee269SEmmanuel Vadot                    port@2 {
288*b97ee269SEmmanuel Vadot                        reg = <2>;
289*b97ee269SEmmanuel Vadot                        label = "lan2";
290*b97ee269SEmmanuel Vadot                    };
291*b97ee269SEmmanuel Vadot
292*b97ee269SEmmanuel Vadot                    port@3 {
293*b97ee269SEmmanuel Vadot                        reg = <3>;
294*b97ee269SEmmanuel Vadot                        label = "lan3";
295*b97ee269SEmmanuel Vadot                    };
296*b97ee269SEmmanuel Vadot
297*b97ee269SEmmanuel Vadot                    /* Commented out. Port 4 is handled by 2nd GMAC.
298*b97ee269SEmmanuel Vadot                    port@4 {
299*b97ee269SEmmanuel Vadot                        reg = <4>;
300*b97ee269SEmmanuel Vadot                        label = "lan4";
301*b97ee269SEmmanuel Vadot                    };
302*b97ee269SEmmanuel Vadot                    */
303*b97ee269SEmmanuel Vadot
304*b97ee269SEmmanuel Vadot                    port@6 {
305*b97ee269SEmmanuel Vadot                        reg = <6>;
306*b97ee269SEmmanuel Vadot                        label = "cpu";
307*b97ee269SEmmanuel Vadot                        ethernet = <&gmac0>;
308*b97ee269SEmmanuel Vadot                        phy-mode = "rgmii";
309*b97ee269SEmmanuel Vadot
310*b97ee269SEmmanuel Vadot                        fixed-link {
311*b97ee269SEmmanuel Vadot                            speed = <1000>;
312*b97ee269SEmmanuel Vadot                            full-duplex;
313*b97ee269SEmmanuel Vadot                            pause;
314*b97ee269SEmmanuel Vadot                        };
315*b97ee269SEmmanuel Vadot                    };
316*b97ee269SEmmanuel Vadot                };
317*b97ee269SEmmanuel Vadot            };
318*b97ee269SEmmanuel Vadot        };
319*b97ee269SEmmanuel Vadot    };
320*b97ee269SEmmanuel Vadot
321*b97ee269SEmmanuel Vadot  - |
322*b97ee269SEmmanuel Vadot    //Example 3: MT7621: Port 5 is connected to external PHY: Port 5 -> external PHY.
323*b97ee269SEmmanuel Vadot
324*b97ee269SEmmanuel Vadot    ethernet {
325*b97ee269SEmmanuel Vadot        #address-cells = <1>;
326*b97ee269SEmmanuel Vadot        #size-cells = <0>;
327*b97ee269SEmmanuel Vadot        gmac_0: mac@0 {
328*b97ee269SEmmanuel Vadot            compatible = "mediatek,eth-mac";
329*b97ee269SEmmanuel Vadot            reg = <0>;
330*b97ee269SEmmanuel Vadot            phy-mode = "rgmii";
331*b97ee269SEmmanuel Vadot
332*b97ee269SEmmanuel Vadot            fixed-link {
333*b97ee269SEmmanuel Vadot                speed = <1000>;
334*b97ee269SEmmanuel Vadot                full-duplex;
335*b97ee269SEmmanuel Vadot                pause;
336*b97ee269SEmmanuel Vadot            };
337*b97ee269SEmmanuel Vadot        };
338*b97ee269SEmmanuel Vadot
339*b97ee269SEmmanuel Vadot        mdio0: mdio-bus {
340*b97ee269SEmmanuel Vadot            #address-cells = <1>;
341*b97ee269SEmmanuel Vadot            #size-cells = <0>;
342*b97ee269SEmmanuel Vadot
343*b97ee269SEmmanuel Vadot            /* External phy */
344*b97ee269SEmmanuel Vadot            ephy5: ethernet-phy@7 {
345*b97ee269SEmmanuel Vadot                reg = <7>;
346*b97ee269SEmmanuel Vadot            };
347*b97ee269SEmmanuel Vadot
348*b97ee269SEmmanuel Vadot            switch@1f {
349*b97ee269SEmmanuel Vadot                compatible = "mediatek,mt7621";
350*b97ee269SEmmanuel Vadot                reg = <0x1f>;
351*b97ee269SEmmanuel Vadot                mediatek,mcm;
352*b97ee269SEmmanuel Vadot
353*b97ee269SEmmanuel Vadot                resets = <&rstctrl 2>;
354*b97ee269SEmmanuel Vadot                reset-names = "mcm";
355*b97ee269SEmmanuel Vadot
356*b97ee269SEmmanuel Vadot                ethernet-ports {
357*b97ee269SEmmanuel Vadot                    #address-cells = <1>;
358*b97ee269SEmmanuel Vadot                    #size-cells = <0>;
359*b97ee269SEmmanuel Vadot
360*b97ee269SEmmanuel Vadot                    port@0 {
361*b97ee269SEmmanuel Vadot                        reg = <0>;
362*b97ee269SEmmanuel Vadot                        label = "lan0";
363*b97ee269SEmmanuel Vadot                    };
364*b97ee269SEmmanuel Vadot
365*b97ee269SEmmanuel Vadot                    port@1 {
366*b97ee269SEmmanuel Vadot                        reg = <1>;
367*b97ee269SEmmanuel Vadot                        label = "lan1";
368*b97ee269SEmmanuel Vadot                    };
369*b97ee269SEmmanuel Vadot
370*b97ee269SEmmanuel Vadot                    port@2 {
371*b97ee269SEmmanuel Vadot                        reg = <2>;
372*b97ee269SEmmanuel Vadot                        label = "lan2";
373*b97ee269SEmmanuel Vadot                    };
374*b97ee269SEmmanuel Vadot
375*b97ee269SEmmanuel Vadot                    port@3 {
376*b97ee269SEmmanuel Vadot                        reg = <3>;
377*b97ee269SEmmanuel Vadot                        label = "lan3";
378*b97ee269SEmmanuel Vadot                    };
379*b97ee269SEmmanuel Vadot
380*b97ee269SEmmanuel Vadot                    port@4 {
381*b97ee269SEmmanuel Vadot                        reg = <4>;
382*b97ee269SEmmanuel Vadot                        label = "lan4";
383*b97ee269SEmmanuel Vadot                    };
384*b97ee269SEmmanuel Vadot
385*b97ee269SEmmanuel Vadot                    port@5 {
386*b97ee269SEmmanuel Vadot                        reg = <5>;
387*b97ee269SEmmanuel Vadot                        label = "lan5";
388*b97ee269SEmmanuel Vadot                        phy-mode = "rgmii";
389*b97ee269SEmmanuel Vadot                        phy-handle = <&ephy5>;
390*b97ee269SEmmanuel Vadot                    };
391*b97ee269SEmmanuel Vadot
392*b97ee269SEmmanuel Vadot                    cpu_port0: port@6 {
393*b97ee269SEmmanuel Vadot                        reg = <6>;
394*b97ee269SEmmanuel Vadot                        label = "cpu";
395*b97ee269SEmmanuel Vadot                        ethernet = <&gmac_0>;
396*b97ee269SEmmanuel Vadot                        phy-mode = "rgmii";
397*b97ee269SEmmanuel Vadot
398*b97ee269SEmmanuel Vadot                        fixed-link {
399*b97ee269SEmmanuel Vadot                            speed = <1000>;
400*b97ee269SEmmanuel Vadot                            full-duplex;
401*b97ee269SEmmanuel Vadot                            pause;
402*b97ee269SEmmanuel Vadot                        };
403*b97ee269SEmmanuel Vadot                    };
404*b97ee269SEmmanuel Vadot                };
405*b97ee269SEmmanuel Vadot            };
406*b97ee269SEmmanuel Vadot        };
407*b97ee269SEmmanuel Vadot    };
408