1*aa3457d4SWasim Khan// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*aa3457d4SWasim Khan//
3*aa3457d4SWasim Khan// Device Tree file for LX2160A BLUEBOX3
4*aa3457d4SWasim Khan//
5*aa3457d4SWasim Khan// Copyright 2020-2021 NXP
6*aa3457d4SWasim Khan
7*aa3457d4SWasim Khan/dts-v1/;
8*aa3457d4SWasim Khan
9*aa3457d4SWasim Khan#include "fsl-lx2160a.dtsi"
10*aa3457d4SWasim Khan
11*aa3457d4SWasim Khan/ {
12*aa3457d4SWasim Khan	model = "NXP Layerscape LX2160ABLUEBOX3";
13*aa3457d4SWasim Khan	compatible = "fsl,lx2160a-bluebox3", "fsl,lx2160a";
14*aa3457d4SWasim Khan
15*aa3457d4SWasim Khan	aliases {
16*aa3457d4SWasim Khan		crypto = &crypto;
17*aa3457d4SWasim Khan		mmc0 = &esdhc0;
18*aa3457d4SWasim Khan		mmc1 = &esdhc1;
19*aa3457d4SWasim Khan		serial0 = &uart0;
20*aa3457d4SWasim Khan	};
21*aa3457d4SWasim Khan
22*aa3457d4SWasim Khan	chosen {
23*aa3457d4SWasim Khan		stdout-path = "serial0:115200n8";
24*aa3457d4SWasim Khan	};
25*aa3457d4SWasim Khan
26*aa3457d4SWasim Khan	sb_3v3: regulator-sb3v3 {
27*aa3457d4SWasim Khan		compatible = "regulator-fixed";
28*aa3457d4SWasim Khan		regulator-name = "MC34717-3.3VSB";
29*aa3457d4SWasim Khan		regulator-min-microvolt = <3300000>;
30*aa3457d4SWasim Khan		regulator-max-microvolt = <3300000>;
31*aa3457d4SWasim Khan		regulator-boot-on;
32*aa3457d4SWasim Khan		regulator-always-on;
33*aa3457d4SWasim Khan	};
34*aa3457d4SWasim Khan};
35*aa3457d4SWasim Khan
36*aa3457d4SWasim Khan&can0 {
37*aa3457d4SWasim Khan	status = "okay";
38*aa3457d4SWasim Khan
39*aa3457d4SWasim Khan	can-transceiver {
40*aa3457d4SWasim Khan		max-bitrate = <5000000>;
41*aa3457d4SWasim Khan	};
42*aa3457d4SWasim Khan};
43*aa3457d4SWasim Khan
44*aa3457d4SWasim Khan&can1 {
45*aa3457d4SWasim Khan	status = "okay";
46*aa3457d4SWasim Khan
47*aa3457d4SWasim Khan	can-transceiver {
48*aa3457d4SWasim Khan		max-bitrate = <5000000>;
49*aa3457d4SWasim Khan	};
50*aa3457d4SWasim Khan};
51*aa3457d4SWasim Khan
52*aa3457d4SWasim Khan&crypto {
53*aa3457d4SWasim Khan	status = "okay";
54*aa3457d4SWasim Khan};
55*aa3457d4SWasim Khan
56*aa3457d4SWasim Khan&dpmac5 {
57*aa3457d4SWasim Khan	phy-handle = <&aqr113c_phy1>;
58*aa3457d4SWasim Khan	phy-mode = "usxgmii";
59*aa3457d4SWasim Khan	managed = "in-band-status";
60*aa3457d4SWasim Khan};
61*aa3457d4SWasim Khan
62*aa3457d4SWasim Khan&dpmac6 {
63*aa3457d4SWasim Khan	phy-handle = <&aqr113c_phy2>;
64*aa3457d4SWasim Khan	phy-mode = "usxgmii";
65*aa3457d4SWasim Khan	managed = "in-band-status";
66*aa3457d4SWasim Khan};
67*aa3457d4SWasim Khan
68*aa3457d4SWasim Khan&dpmac9 {
69*aa3457d4SWasim Khan	phy-handle = <&aqr113c_phy3>;
70*aa3457d4SWasim Khan	phy-mode = "usxgmii";
71*aa3457d4SWasim Khan	managed = "in-band-status";
72*aa3457d4SWasim Khan};
73*aa3457d4SWasim Khan
74*aa3457d4SWasim Khan&dpmac10 {
75*aa3457d4SWasim Khan	phy-handle = <&aqr113c_phy4>;
76*aa3457d4SWasim Khan	phy-mode = "usxgmii";
77*aa3457d4SWasim Khan	managed = "in-band-status";
78*aa3457d4SWasim Khan};
79*aa3457d4SWasim Khan
80*aa3457d4SWasim Khan&dpmac17 {
81*aa3457d4SWasim Khan	phy-mode = "rgmii";
82*aa3457d4SWasim Khan	status = "okay";
83*aa3457d4SWasim Khan
84*aa3457d4SWasim Khan	fixed-link {
85*aa3457d4SWasim Khan		speed = <1000>;
86*aa3457d4SWasim Khan		full-duplex;
87*aa3457d4SWasim Khan	};
88*aa3457d4SWasim Khan};
89*aa3457d4SWasim Khan
90*aa3457d4SWasim Khan&dpmac18 {
91*aa3457d4SWasim Khan	phy-mode = "rgmii";
92*aa3457d4SWasim Khan	status = "okay";
93*aa3457d4SWasim Khan
94*aa3457d4SWasim Khan	fixed-link {
95*aa3457d4SWasim Khan		speed = <1000>;
96*aa3457d4SWasim Khan		full-duplex;
97*aa3457d4SWasim Khan	};
98*aa3457d4SWasim Khan};
99*aa3457d4SWasim Khan
100*aa3457d4SWasim Khan&emdio1 {
101*aa3457d4SWasim Khan	status = "okay";
102*aa3457d4SWasim Khan
103*aa3457d4SWasim Khan	aqr113c_phy2: ethernet-phy@0 {
104*aa3457d4SWasim Khan		compatible = "ethernet-phy-ieee802.3-c45";
105*aa3457d4SWasim Khan		reg = <0x0>;
106*aa3457d4SWasim Khan		/* IRQ_10G_PHY2 */
107*aa3457d4SWasim Khan		interrupts-extended = <&extirq 3 IRQ_TYPE_LEVEL_LOW>;
108*aa3457d4SWasim Khan	};
109*aa3457d4SWasim Khan
110*aa3457d4SWasim Khan	aqr113c_phy1: ethernet-phy@8 {
111*aa3457d4SWasim Khan		compatible = "ethernet-phy-ieee802.3-c45";
112*aa3457d4SWasim Khan		reg = <0x8>;
113*aa3457d4SWasim Khan		/* IRQ_10G_PHY1 */
114*aa3457d4SWasim Khan		interrupts-extended = <&extirq 2 IRQ_TYPE_LEVEL_LOW>;
115*aa3457d4SWasim Khan	};
116*aa3457d4SWasim Khan
117*aa3457d4SWasim Khan	sw1_mii3_phy: ethernet-phy@5 {
118*aa3457d4SWasim Khan		/* AR8035 */
119*aa3457d4SWasim Khan		compatible = "ethernet-phy-id004d.d072";
120*aa3457d4SWasim Khan		reg = <0x5>;
121*aa3457d4SWasim Khan		interrupts-extended = <&extirq 6 IRQ_TYPE_LEVEL_LOW>;
122*aa3457d4SWasim Khan	};
123*aa3457d4SWasim Khan
124*aa3457d4SWasim Khan	sw2_mii3_phy: ethernet-phy@6 {
125*aa3457d4SWasim Khan		/* AR8035 */
126*aa3457d4SWasim Khan		compatible = "ethernet-phy-id004d.d072";
127*aa3457d4SWasim Khan		reg = <0x6>;
128*aa3457d4SWasim Khan		interrupts-extended = <&extirq 7 IRQ_TYPE_LEVEL_LOW>;
129*aa3457d4SWasim Khan	};
130*aa3457d4SWasim Khan};
131*aa3457d4SWasim Khan
132*aa3457d4SWasim Khan&emdio2 {
133*aa3457d4SWasim Khan	status = "okay";
134*aa3457d4SWasim Khan
135*aa3457d4SWasim Khan	aqr113c_phy4: ethernet-phy@0 {
136*aa3457d4SWasim Khan		compatible = "ethernet-phy-ieee802.3-c45";
137*aa3457d4SWasim Khan		reg = <0x0>;
138*aa3457d4SWasim Khan		/* IRQ_10G_PHY4 */
139*aa3457d4SWasim Khan		interrupts-extended = <&extirq 5 IRQ_TYPE_LEVEL_LOW>;
140*aa3457d4SWasim Khan	};
141*aa3457d4SWasim Khan
142*aa3457d4SWasim Khan	aqr113c_phy3: ethernet-phy@8 {
143*aa3457d4SWasim Khan		compatible = "ethernet-phy-ieee802.3-c45";
144*aa3457d4SWasim Khan		reg = <0x8>;
145*aa3457d4SWasim Khan		/* IRQ_10G_PHY3 */
146*aa3457d4SWasim Khan		interrupts-extended = <&extirq 4 IRQ_TYPE_LEVEL_LOW>;
147*aa3457d4SWasim Khan	};
148*aa3457d4SWasim Khan};
149*aa3457d4SWasim Khan
150*aa3457d4SWasim Khan&esdhc0 {
151*aa3457d4SWasim Khan	sd-uhs-sdr104;
152*aa3457d4SWasim Khan	sd-uhs-sdr50;
153*aa3457d4SWasim Khan	sd-uhs-sdr25;
154*aa3457d4SWasim Khan	sd-uhs-sdr12;
155*aa3457d4SWasim Khan	status = "okay";
156*aa3457d4SWasim Khan};
157*aa3457d4SWasim Khan
158*aa3457d4SWasim Khan&esdhc1 {
159*aa3457d4SWasim Khan	mmc-hs200-1_8v;
160*aa3457d4SWasim Khan	mmc-hs400-1_8v;
161*aa3457d4SWasim Khan	bus-width = <8>;
162*aa3457d4SWasim Khan	status = "okay";
163*aa3457d4SWasim Khan};
164*aa3457d4SWasim Khan
165*aa3457d4SWasim Khan&fspi {
166*aa3457d4SWasim Khan	status = "okay";
167*aa3457d4SWasim Khan
168*aa3457d4SWasim Khan	mt35xu512aba0: flash@0 {
169*aa3457d4SWasim Khan		compatible = "jedec,spi-nor";
170*aa3457d4SWasim Khan		#address-cells = <1>;
171*aa3457d4SWasim Khan		#size-cells = <1>;
172*aa3457d4SWasim Khan		reg = <0>;
173*aa3457d4SWasim Khan		m25p,fast-read;
174*aa3457d4SWasim Khan		spi-max-frequency = <50000000>;
175*aa3457d4SWasim Khan		spi-rx-bus-width = <8>;
176*aa3457d4SWasim Khan		spi-tx-bus-width = <8>;
177*aa3457d4SWasim Khan	};
178*aa3457d4SWasim Khan
179*aa3457d4SWasim Khan	mt35xu512aba1: flash@1 {
180*aa3457d4SWasim Khan		compatible = "jedec,spi-nor";
181*aa3457d4SWasim Khan		#address-cells = <1>;
182*aa3457d4SWasim Khan		#size-cells = <1>;
183*aa3457d4SWasim Khan		reg = <1>;
184*aa3457d4SWasim Khan		m25p,fast-read;
185*aa3457d4SWasim Khan		spi-max-frequency = <50000000>;
186*aa3457d4SWasim Khan		spi-rx-bus-width = <8>;
187*aa3457d4SWasim Khan		spi-tx-bus-width = <8>;
188*aa3457d4SWasim Khan	};
189*aa3457d4SWasim Khan};
190*aa3457d4SWasim Khan
191*aa3457d4SWasim Khan&i2c0 {
192*aa3457d4SWasim Khan	status = "okay";
193*aa3457d4SWasim Khan
194*aa3457d4SWasim Khan	i2c-mux@77 {
195*aa3457d4SWasim Khan		compatible = "nxp,pca9547";
196*aa3457d4SWasim Khan		reg = <0x77>;
197*aa3457d4SWasim Khan		#address-cells = <1>;
198*aa3457d4SWasim Khan		#size-cells = <0>;
199*aa3457d4SWasim Khan
200*aa3457d4SWasim Khan		i2c@2 {
201*aa3457d4SWasim Khan			#address-cells = <1>;
202*aa3457d4SWasim Khan			#size-cells = <0>;
203*aa3457d4SWasim Khan			reg = <0x2>;
204*aa3457d4SWasim Khan
205*aa3457d4SWasim Khan			power-monitor@40 {
206*aa3457d4SWasim Khan				compatible = "ti,ina220";
207*aa3457d4SWasim Khan				reg = <0x40>;
208*aa3457d4SWasim Khan				shunt-resistor = <500>;
209*aa3457d4SWasim Khan			};
210*aa3457d4SWasim Khan		};
211*aa3457d4SWasim Khan
212*aa3457d4SWasim Khan		i2c@3 {
213*aa3457d4SWasim Khan			#address-cells = <1>;
214*aa3457d4SWasim Khan			#size-cells = <0>;
215*aa3457d4SWasim Khan			reg = <0x3>;
216*aa3457d4SWasim Khan
217*aa3457d4SWasim Khan			temp2: temperature-sensor@48 {
218*aa3457d4SWasim Khan				compatible = "nxp,sa56004";
219*aa3457d4SWasim Khan				reg = <0x48>;
220*aa3457d4SWasim Khan				vcc-supply = <&sb_3v3>;
221*aa3457d4SWasim Khan				#thermal-sensor-cells = <1>;
222*aa3457d4SWasim Khan			};
223*aa3457d4SWasim Khan
224*aa3457d4SWasim Khan			temp1: temperature-sensor@4c {
225*aa3457d4SWasim Khan				compatible = "nxp,sa56004";
226*aa3457d4SWasim Khan				reg = <0x4c>;
227*aa3457d4SWasim Khan				vcc-supply = <&sb_3v3>;
228*aa3457d4SWasim Khan				#thermal-sensor-cells = <1>;
229*aa3457d4SWasim Khan			};
230*aa3457d4SWasim Khan		};
231*aa3457d4SWasim Khan
232*aa3457d4SWasim Khan		i2c@4 {
233*aa3457d4SWasim Khan			#address-cells = <1>;
234*aa3457d4SWasim Khan			#size-cells = <0>;
235*aa3457d4SWasim Khan			reg = <0x4>;
236*aa3457d4SWasim Khan
237*aa3457d4SWasim Khan			rtc@51 {
238*aa3457d4SWasim Khan				compatible = "nxp,pcf2129";
239*aa3457d4SWasim Khan				reg = <0x51>;
240*aa3457d4SWasim Khan				interrupts-extended = <&extirq 11 IRQ_TYPE_LEVEL_LOW>;
241*aa3457d4SWasim Khan			};
242*aa3457d4SWasim Khan		};
243*aa3457d4SWasim Khan
244*aa3457d4SWasim Khan		i2c@7 {
245*aa3457d4SWasim Khan			#address-cells = <1>;
246*aa3457d4SWasim Khan			#size-cells = <0>;
247*aa3457d4SWasim Khan			reg = <0x7>;
248*aa3457d4SWasim Khan
249*aa3457d4SWasim Khan			i2c-mux@75 {
250*aa3457d4SWasim Khan				compatible = "nxp,pca9547";
251*aa3457d4SWasim Khan				reg = <0x75>;
252*aa3457d4SWasim Khan				#address-cells = <1>;
253*aa3457d4SWasim Khan				#size-cells = <0>;
254*aa3457d4SWasim Khan
255*aa3457d4SWasim Khan				i2c@0 {
256*aa3457d4SWasim Khan					#address-cells = <1>;
257*aa3457d4SWasim Khan					#size-cells = <0>;
258*aa3457d4SWasim Khan					reg = <0x0>;
259*aa3457d4SWasim Khan
260*aa3457d4SWasim Khan					spi_bridge: spi@28 {
261*aa3457d4SWasim Khan						compatible = "nxp,sc18is602b";
262*aa3457d4SWasim Khan						reg = <0x28>;
263*aa3457d4SWasim Khan						#address-cells = <1>;
264*aa3457d4SWasim Khan						#size-cells = <0>;
265*aa3457d4SWasim Khan					};
266*aa3457d4SWasim Khan				};
267*aa3457d4SWasim Khan			};
268*aa3457d4SWasim Khan		};
269*aa3457d4SWasim Khan	};
270*aa3457d4SWasim Khan};
271*aa3457d4SWasim Khan
272*aa3457d4SWasim Khan&i2c5 {
273*aa3457d4SWasim Khan	status = "okay";
274*aa3457d4SWasim Khan
275*aa3457d4SWasim Khan	i2c-mux@77 {
276*aa3457d4SWasim Khan		compatible = "nxp,pca9846";
277*aa3457d4SWasim Khan		reg = <0x77>;
278*aa3457d4SWasim Khan		#address-cells = <1>;
279*aa3457d4SWasim Khan		#size-cells = <0>;
280*aa3457d4SWasim Khan
281*aa3457d4SWasim Khan		i2c@1 {
282*aa3457d4SWasim Khan			#address-cells = <1>;
283*aa3457d4SWasim Khan			#size-cells = <0>;
284*aa3457d4SWasim Khan			reg = <0x1>;
285*aa3457d4SWasim Khan
286*aa3457d4SWasim Khan			/* The I2C multiplexer and temperature sensors are on
287*aa3457d4SWasim Khan			 * the T6 riser card.
288*aa3457d4SWasim Khan			 */
289*aa3457d4SWasim Khan			i2c-mux@70 {
290*aa3457d4SWasim Khan				compatible = "nxp,pca9548";
291*aa3457d4SWasim Khan				reg = <0x70>;
292*aa3457d4SWasim Khan				#address-cells = <1>;
293*aa3457d4SWasim Khan				#size-cells = <0>;
294*aa3457d4SWasim Khan
295*aa3457d4SWasim Khan				i2c@6 {
296*aa3457d4SWasim Khan					#address-cells = <1>;
297*aa3457d4SWasim Khan					#size-cells = <0>;
298*aa3457d4SWasim Khan					reg = <0x6>;
299*aa3457d4SWasim Khan
300*aa3457d4SWasim Khan					q12: temperature-sensor@4c {
301*aa3457d4SWasim Khan						compatible = "nxp,sa56004";
302*aa3457d4SWasim Khan						reg = <0x4c>;
303*aa3457d4SWasim Khan						vcc-supply = <&sb_3v3>;
304*aa3457d4SWasim Khan						#thermal-sensor-cells = <1>;
305*aa3457d4SWasim Khan					};
306*aa3457d4SWasim Khan				};
307*aa3457d4SWasim Khan
308*aa3457d4SWasim Khan				i2c@7 {
309*aa3457d4SWasim Khan					#address-cells = <1>;
310*aa3457d4SWasim Khan					#size-cells = <0>;
311*aa3457d4SWasim Khan					reg = <0x7>;
312*aa3457d4SWasim Khan
313*aa3457d4SWasim Khan					q11: temperature-sensor@4c {
314*aa3457d4SWasim Khan						compatible = "nxp,sa56004";
315*aa3457d4SWasim Khan						reg = <0x4c>;
316*aa3457d4SWasim Khan						vcc-supply = <&sb_3v3>;
317*aa3457d4SWasim Khan						#thermal-sensor-cells = <1>;
318*aa3457d4SWasim Khan					};
319*aa3457d4SWasim Khan
320*aa3457d4SWasim Khan					q13: temperature-sensor@48 {
321*aa3457d4SWasim Khan						compatible = "nxp,sa56004";
322*aa3457d4SWasim Khan						reg = <0x48>;
323*aa3457d4SWasim Khan						vcc-supply = <&sb_3v3>;
324*aa3457d4SWasim Khan						#thermal-sensor-cells = <1>;
325*aa3457d4SWasim Khan					};
326*aa3457d4SWasim Khan
327*aa3457d4SWasim Khan					q14: temperature-sensor@4a {
328*aa3457d4SWasim Khan						compatible = "nxp,sa56004";
329*aa3457d4SWasim Khan						reg = <0x4a>;
330*aa3457d4SWasim Khan						vcc-supply = <&sb_3v3>;
331*aa3457d4SWasim Khan						#thermal-sensor-cells = <1>;
332*aa3457d4SWasim Khan					};
333*aa3457d4SWasim Khan				};
334*aa3457d4SWasim Khan			};
335*aa3457d4SWasim Khan		};
336*aa3457d4SWasim Khan	};
337*aa3457d4SWasim Khan};
338*aa3457d4SWasim Khan
339*aa3457d4SWasim Khan&pcs_mdio5 {
340*aa3457d4SWasim Khan	status = "okay";
341*aa3457d4SWasim Khan};
342*aa3457d4SWasim Khan
343*aa3457d4SWasim Khan&pcs_mdio6 {
344*aa3457d4SWasim Khan	status = "okay";
345*aa3457d4SWasim Khan};
346*aa3457d4SWasim Khan
347*aa3457d4SWasim Khan&pcs_mdio9 {
348*aa3457d4SWasim Khan	status = "okay";
349*aa3457d4SWasim Khan};
350*aa3457d4SWasim Khan
351*aa3457d4SWasim Khan&pcs_mdio10 {
352*aa3457d4SWasim Khan	status = "okay";
353*aa3457d4SWasim Khan};
354*aa3457d4SWasim Khan
355*aa3457d4SWasim Khan&spi_bridge {
356*aa3457d4SWasim Khan	sw1: ethernet-switch@0 {
357*aa3457d4SWasim Khan		compatible = "nxp,sja1110a";
358*aa3457d4SWasim Khan		reg = <0>;
359*aa3457d4SWasim Khan		spi-max-frequency = <4000000>;
360*aa3457d4SWasim Khan		spi-cpol;
361*aa3457d4SWasim Khan		dsa,member = <0 0>;
362*aa3457d4SWasim Khan
363*aa3457d4SWasim Khan		ethernet-ports {
364*aa3457d4SWasim Khan			#address-cells = <1>;
365*aa3457d4SWasim Khan			#size-cells = <0>;
366*aa3457d4SWasim Khan
367*aa3457d4SWasim Khan			/* Microcontroller port */
368*aa3457d4SWasim Khan			port@0 {
369*aa3457d4SWasim Khan				reg = <0>;
370*aa3457d4SWasim Khan				status = "disabled";
371*aa3457d4SWasim Khan			};
372*aa3457d4SWasim Khan
373*aa3457d4SWasim Khan			/* SW1_P1 */
374*aa3457d4SWasim Khan			port@1 {
375*aa3457d4SWasim Khan				reg = <1>;
376*aa3457d4SWasim Khan				label = "con_2x20";
377*aa3457d4SWasim Khan				phy-mode = "sgmii";
378*aa3457d4SWasim Khan
379*aa3457d4SWasim Khan				fixed-link {
380*aa3457d4SWasim Khan					speed = <1000>;
381*aa3457d4SWasim Khan					full-duplex;
382*aa3457d4SWasim Khan				};
383*aa3457d4SWasim Khan			};
384*aa3457d4SWasim Khan
385*aa3457d4SWasim Khan			port@2 {
386*aa3457d4SWasim Khan				reg = <2>;
387*aa3457d4SWasim Khan				ethernet = <&dpmac17>;
388*aa3457d4SWasim Khan				phy-mode = "rgmii-id";
389*aa3457d4SWasim Khan
390*aa3457d4SWasim Khan				fixed-link {
391*aa3457d4SWasim Khan					speed = <1000>;
392*aa3457d4SWasim Khan					full-duplex;
393*aa3457d4SWasim Khan				};
394*aa3457d4SWasim Khan			};
395*aa3457d4SWasim Khan
396*aa3457d4SWasim Khan			port@3 {
397*aa3457d4SWasim Khan				reg = <3>;
398*aa3457d4SWasim Khan				label = "1ge_p1";
399*aa3457d4SWasim Khan				phy-mode = "rgmii-id";
400*aa3457d4SWasim Khan				phy-handle = <&sw1_mii3_phy>;
401*aa3457d4SWasim Khan			};
402*aa3457d4SWasim Khan
403*aa3457d4SWasim Khan			sw1p4: port@4 {
404*aa3457d4SWasim Khan				reg = <4>;
405*aa3457d4SWasim Khan				link = <&sw2p1>;
406*aa3457d4SWasim Khan				phy-mode = "sgmii";
407*aa3457d4SWasim Khan
408*aa3457d4SWasim Khan				fixed-link {
409*aa3457d4SWasim Khan					speed = <1000>;
410*aa3457d4SWasim Khan					full-duplex;
411*aa3457d4SWasim Khan				};
412*aa3457d4SWasim Khan			};
413*aa3457d4SWasim Khan
414*aa3457d4SWasim Khan			port@5 {
415*aa3457d4SWasim Khan				reg = <5>;
416*aa3457d4SWasim Khan				label = "trx1";
417*aa3457d4SWasim Khan				phy-mode = "internal";
418*aa3457d4SWasim Khan				phy-handle = <&sw1_port5_base_t1_phy>;
419*aa3457d4SWasim Khan			};
420*aa3457d4SWasim Khan
421*aa3457d4SWasim Khan			port@6 {
422*aa3457d4SWasim Khan				reg = <6>;
423*aa3457d4SWasim Khan				label = "trx2";
424*aa3457d4SWasim Khan				phy-mode = "internal";
425*aa3457d4SWasim Khan				phy-handle = <&sw1_port6_base_t1_phy>;
426*aa3457d4SWasim Khan			};
427*aa3457d4SWasim Khan
428*aa3457d4SWasim Khan			port@7 {
429*aa3457d4SWasim Khan				reg = <7>;
430*aa3457d4SWasim Khan				label = "trx3";
431*aa3457d4SWasim Khan				phy-mode = "internal";
432*aa3457d4SWasim Khan				phy-handle = <&sw1_port7_base_t1_phy>;
433*aa3457d4SWasim Khan			};
434*aa3457d4SWasim Khan
435*aa3457d4SWasim Khan			port@8 {
436*aa3457d4SWasim Khan				reg = <8>;
437*aa3457d4SWasim Khan				label = "trx4";
438*aa3457d4SWasim Khan				phy-mode = "internal";
439*aa3457d4SWasim Khan				phy-handle = <&sw1_port8_base_t1_phy>;
440*aa3457d4SWasim Khan			};
441*aa3457d4SWasim Khan
442*aa3457d4SWasim Khan			port@9 {
443*aa3457d4SWasim Khan				reg = <9>;
444*aa3457d4SWasim Khan				label = "trx5";
445*aa3457d4SWasim Khan				phy-mode = "internal";
446*aa3457d4SWasim Khan				phy-handle = <&sw1_port9_base_t1_phy>;
447*aa3457d4SWasim Khan			};
448*aa3457d4SWasim Khan
449*aa3457d4SWasim Khan			port@a {
450*aa3457d4SWasim Khan				reg = <10>;
451*aa3457d4SWasim Khan				label = "trx6";
452*aa3457d4SWasim Khan				phy-mode = "internal";
453*aa3457d4SWasim Khan				phy-handle = <&sw1_port10_base_t1_phy>;
454*aa3457d4SWasim Khan			};
455*aa3457d4SWasim Khan		};
456*aa3457d4SWasim Khan
457*aa3457d4SWasim Khan		mdios {
458*aa3457d4SWasim Khan			#address-cells = <1>;
459*aa3457d4SWasim Khan			#size-cells = <0>;
460*aa3457d4SWasim Khan
461*aa3457d4SWasim Khan			mdio@0 {
462*aa3457d4SWasim Khan				compatible = "nxp,sja1110-base-t1-mdio";
463*aa3457d4SWasim Khan				#address-cells = <1>;
464*aa3457d4SWasim Khan				#size-cells = <0>;
465*aa3457d4SWasim Khan				reg = <0>;
466*aa3457d4SWasim Khan
467*aa3457d4SWasim Khan				sw1_port5_base_t1_phy: ethernet-phy@1 {
468*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
469*aa3457d4SWasim Khan					reg = <0x1>;
470*aa3457d4SWasim Khan				};
471*aa3457d4SWasim Khan
472*aa3457d4SWasim Khan				sw1_port6_base_t1_phy: ethernet-phy@2 {
473*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
474*aa3457d4SWasim Khan					reg = <0x2>;
475*aa3457d4SWasim Khan				};
476*aa3457d4SWasim Khan
477*aa3457d4SWasim Khan				sw1_port7_base_t1_phy: ethernet-phy@3 {
478*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
479*aa3457d4SWasim Khan					reg = <0x3>;
480*aa3457d4SWasim Khan				};
481*aa3457d4SWasim Khan
482*aa3457d4SWasim Khan				sw1_port8_base_t1_phy: ethernet-phy@4 {
483*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
484*aa3457d4SWasim Khan					reg = <0x4>;
485*aa3457d4SWasim Khan				};
486*aa3457d4SWasim Khan
487*aa3457d4SWasim Khan				sw1_port9_base_t1_phy: ethernet-phy@5 {
488*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
489*aa3457d4SWasim Khan					reg = <0x5>;
490*aa3457d4SWasim Khan				};
491*aa3457d4SWasim Khan
492*aa3457d4SWasim Khan				sw1_port10_base_t1_phy: ethernet-phy@6 {
493*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
494*aa3457d4SWasim Khan					reg = <0x6>;
495*aa3457d4SWasim Khan				};
496*aa3457d4SWasim Khan			};
497*aa3457d4SWasim Khan		};
498*aa3457d4SWasim Khan	};
499*aa3457d4SWasim Khan
500*aa3457d4SWasim Khan	sw2: ethernet-switch@2 {
501*aa3457d4SWasim Khan		compatible = "nxp,sja1110a";
502*aa3457d4SWasim Khan		reg = <2>;
503*aa3457d4SWasim Khan		spi-max-frequency = <4000000>;
504*aa3457d4SWasim Khan		spi-cpol;
505*aa3457d4SWasim Khan		dsa,member = <0 1>;
506*aa3457d4SWasim Khan
507*aa3457d4SWasim Khan		ethernet-ports {
508*aa3457d4SWasim Khan			#address-cells = <1>;
509*aa3457d4SWasim Khan			#size-cells = <0>;
510*aa3457d4SWasim Khan
511*aa3457d4SWasim Khan			/* Microcontroller port */
512*aa3457d4SWasim Khan			port@0 {
513*aa3457d4SWasim Khan				reg = <0>;
514*aa3457d4SWasim Khan				status = "disabled";
515*aa3457d4SWasim Khan			};
516*aa3457d4SWasim Khan
517*aa3457d4SWasim Khan			sw2p1: port@1 {
518*aa3457d4SWasim Khan				reg = <1>;
519*aa3457d4SWasim Khan				link = <&sw1p4>;
520*aa3457d4SWasim Khan				phy-mode = "sgmii";
521*aa3457d4SWasim Khan
522*aa3457d4SWasim Khan				fixed-link {
523*aa3457d4SWasim Khan					speed = <1000>;
524*aa3457d4SWasim Khan					full-duplex;
525*aa3457d4SWasim Khan				};
526*aa3457d4SWasim Khan			};
527*aa3457d4SWasim Khan
528*aa3457d4SWasim Khan			port@2 {
529*aa3457d4SWasim Khan				reg = <2>;
530*aa3457d4SWasim Khan				ethernet = <&dpmac18>;
531*aa3457d4SWasim Khan				phy-mode = "rgmii-id";
532*aa3457d4SWasim Khan
533*aa3457d4SWasim Khan				fixed-link {
534*aa3457d4SWasim Khan					speed = <1000>;
535*aa3457d4SWasim Khan					full-duplex;
536*aa3457d4SWasim Khan				};
537*aa3457d4SWasim Khan			};
538*aa3457d4SWasim Khan
539*aa3457d4SWasim Khan			port@3 {
540*aa3457d4SWasim Khan				reg = <3>;
541*aa3457d4SWasim Khan				label = "1ge_p2";
542*aa3457d4SWasim Khan				phy-mode = "rgmii-id";
543*aa3457d4SWasim Khan				phy-handle = <&sw2_mii3_phy>;
544*aa3457d4SWasim Khan			};
545*aa3457d4SWasim Khan
546*aa3457d4SWasim Khan			port@4 {
547*aa3457d4SWasim Khan				reg = <4>;
548*aa3457d4SWasim Khan				label = "to_sw3";
549*aa3457d4SWasim Khan				phy-mode = "2500base-x";
550*aa3457d4SWasim Khan
551*aa3457d4SWasim Khan				fixed-link {
552*aa3457d4SWasim Khan					speed = <2500>;
553*aa3457d4SWasim Khan					full-duplex;
554*aa3457d4SWasim Khan				};
555*aa3457d4SWasim Khan			};
556*aa3457d4SWasim Khan
557*aa3457d4SWasim Khan			port@5 {
558*aa3457d4SWasim Khan				reg = <5>;
559*aa3457d4SWasim Khan				label = "trx7";
560*aa3457d4SWasim Khan				phy-mode = "internal";
561*aa3457d4SWasim Khan				phy-handle = <&sw2_port5_base_t1_phy>;
562*aa3457d4SWasim Khan			};
563*aa3457d4SWasim Khan
564*aa3457d4SWasim Khan			port@6 {
565*aa3457d4SWasim Khan				reg = <6>;
566*aa3457d4SWasim Khan				label = "trx8";
567*aa3457d4SWasim Khan				phy-mode = "internal";
568*aa3457d4SWasim Khan				phy-handle = <&sw2_port6_base_t1_phy>;
569*aa3457d4SWasim Khan			};
570*aa3457d4SWasim Khan
571*aa3457d4SWasim Khan			port@7 {
572*aa3457d4SWasim Khan				reg = <7>;
573*aa3457d4SWasim Khan				label = "trx9";
574*aa3457d4SWasim Khan				phy-mode = "internal";
575*aa3457d4SWasim Khan				phy-handle = <&sw2_port7_base_t1_phy>;
576*aa3457d4SWasim Khan			};
577*aa3457d4SWasim Khan
578*aa3457d4SWasim Khan			port@8 {
579*aa3457d4SWasim Khan				reg = <8>;
580*aa3457d4SWasim Khan				label = "trx10";
581*aa3457d4SWasim Khan				phy-mode = "internal";
582*aa3457d4SWasim Khan				phy-handle = <&sw2_port8_base_t1_phy>;
583*aa3457d4SWasim Khan			};
584*aa3457d4SWasim Khan
585*aa3457d4SWasim Khan			port@9 {
586*aa3457d4SWasim Khan				reg = <9>;
587*aa3457d4SWasim Khan				label = "trx11";
588*aa3457d4SWasim Khan				phy-mode = "internal";
589*aa3457d4SWasim Khan				phy-handle = <&sw2_port9_base_t1_phy>;
590*aa3457d4SWasim Khan			};
591*aa3457d4SWasim Khan
592*aa3457d4SWasim Khan			port@a {
593*aa3457d4SWasim Khan				reg = <10>;
594*aa3457d4SWasim Khan				label = "trx12";
595*aa3457d4SWasim Khan				phy-mode = "internal";
596*aa3457d4SWasim Khan				phy-handle = <&sw2_port10_base_t1_phy>;
597*aa3457d4SWasim Khan			};
598*aa3457d4SWasim Khan		};
599*aa3457d4SWasim Khan
600*aa3457d4SWasim Khan		mdios {
601*aa3457d4SWasim Khan			#address-cells = <1>;
602*aa3457d4SWasim Khan			#size-cells = <0>;
603*aa3457d4SWasim Khan
604*aa3457d4SWasim Khan			mdio@0 {
605*aa3457d4SWasim Khan				compatible = "nxp,sja1110-base-t1-mdio";
606*aa3457d4SWasim Khan				#address-cells = <1>;
607*aa3457d4SWasim Khan				#size-cells = <0>;
608*aa3457d4SWasim Khan				reg = <0>;
609*aa3457d4SWasim Khan
610*aa3457d4SWasim Khan				sw2_port5_base_t1_phy: ethernet-phy@1 {
611*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
612*aa3457d4SWasim Khan					reg = <0x1>;
613*aa3457d4SWasim Khan				};
614*aa3457d4SWasim Khan
615*aa3457d4SWasim Khan				sw2_port6_base_t1_phy: ethernet-phy@2 {
616*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
617*aa3457d4SWasim Khan					reg = <0x2>;
618*aa3457d4SWasim Khan				};
619*aa3457d4SWasim Khan
620*aa3457d4SWasim Khan				sw2_port7_base_t1_phy: ethernet-phy@3 {
621*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
622*aa3457d4SWasim Khan					reg = <0x3>;
623*aa3457d4SWasim Khan				};
624*aa3457d4SWasim Khan
625*aa3457d4SWasim Khan				sw2_port8_base_t1_phy: ethernet-phy@4 {
626*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
627*aa3457d4SWasim Khan					reg = <0x4>;
628*aa3457d4SWasim Khan				};
629*aa3457d4SWasim Khan
630*aa3457d4SWasim Khan				sw2_port9_base_t1_phy: ethernet-phy@5 {
631*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
632*aa3457d4SWasim Khan					reg = <0x5>;
633*aa3457d4SWasim Khan				};
634*aa3457d4SWasim Khan
635*aa3457d4SWasim Khan				sw2_port10_base_t1_phy: ethernet-phy@6 {
636*aa3457d4SWasim Khan					compatible = "ethernet-phy-ieee802.3-c45";
637*aa3457d4SWasim Khan					reg = <0x6>;
638*aa3457d4SWasim Khan				};
639*aa3457d4SWasim Khan			};
640*aa3457d4SWasim Khan		};
641*aa3457d4SWasim Khan	};
642*aa3457d4SWasim Khan};
643*aa3457d4SWasim Khan
644*aa3457d4SWasim Khan&uart0 {
645*aa3457d4SWasim Khan	status = "okay";
646*aa3457d4SWasim Khan};
647*aa3457d4SWasim Khan
648*aa3457d4SWasim Khan&uart1 {
649*aa3457d4SWasim Khan	status = "okay";
650*aa3457d4SWasim Khan};
651*aa3457d4SWasim Khan
652*aa3457d4SWasim Khan&usb0 {
653*aa3457d4SWasim Khan	status = "okay";
654*aa3457d4SWasim Khan};
655*aa3457d4SWasim Khan
656*aa3457d4SWasim Khan&usb1 {
657*aa3457d4SWasim Khan	status = "okay";
658*aa3457d4SWasim Khan};
659