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