Skip to content

Commit 586407b

Browse files
committed
[Edgecore] Add as4561-52p DTS
Signed-off-by: Brandon Chuang <brandon_chuang@edge-core.com>
1 parent e6ed169 commit 586407b

2 files changed

Lines changed: 2098 additions & 0 deletions

File tree

Lines changed: 314 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,314 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
//
3+
// Device Tree file for LX2160ARDB
4+
//
5+
// Copyright 2018-2020 NXP
6+
7+
/dts-v1/;
8+
9+
#include "accton-as4561-52p5.dtsi"
10+
11+
/ {
12+
model = "NXP Layerscape LX2160ARDB";
13+
compatible = "fsl,lx2160a-rdb", "fsl,lx2160a";
14+
15+
aliases {
16+
crypto = &crypto;
17+
serial0 = &uart0;
18+
};
19+
20+
chosen {
21+
stdout-path = "serial0:115200n8";
22+
};
23+
24+
sb_3v3: regulator-sb3v3 {
25+
compatible = "regulator-fixed";
26+
regulator-name = "MC34717-3.3VSB";
27+
regulator-min-microvolt = <3300000>;
28+
regulator-max-microvolt = <3300000>;
29+
regulator-boot-on;
30+
regulator-always-on;
31+
};
32+
};
33+
34+
&can0 {
35+
status = "okay";
36+
37+
can-transceiver {
38+
max-bitrate = <5000000>;
39+
};
40+
};
41+
42+
&can1 {
43+
status = "okay";
44+
45+
can-transceiver {
46+
max-bitrate = <5000000>;
47+
};
48+
};
49+
50+
&crypto {
51+
status = "okay";
52+
};
53+
54+
&dpmac7 {
55+
status = "okay";
56+
/*phy-handle = <&aquantia_phy1>;*/
57+
fixed-link = <10 1 10000 0 0>;
58+
phy-connection-type = "usxgmii";
59+
/*managed = "in-band-status";*/
60+
};
61+
&dpmac8 {
62+
status = "okay";
63+
/*phy-handle = <&aquantia_phy2>;*/
64+
fixed-link = <11 1 10000 0 0>;
65+
phy-connection-type = "usxgmii";
66+
/*managed = "in-band-status";*/
67+
};
68+
&dpmac9 {
69+
status = "okay";
70+
/*phy-handle = <&aquantia_phy1>;*/
71+
fixed-link = <12 1 10000 0 0>;
72+
phy-connection-type = "usxgmii";
73+
/*managed = "in-band-status";*/
74+
};
75+
&dpmac10 {
76+
status = "okay";
77+
/*phy-handle = <&aquantia_phy2>;*/
78+
fixed-link = <13 1 10000 0 0>;
79+
phy-connection-type = "usxgmii";
80+
/*managed = "in-band-status";*/
81+
};
82+
&dpmac17 {
83+
status = "okay";
84+
phy-handle = <&rgmii_phy1>;
85+
phy-connection-type = "rgmii-id";
86+
};
87+
/*
88+
&dpmac18 {
89+
phy-handle = <&rgmii_phy2>;
90+
phy-connection-type = "rgmii-id";
91+
};
92+
*/
93+
94+
&emdio1 {
95+
status = "okay";
96+
97+
rgmii_phy1: ethernet-phy@1 {
98+
/* AR8035 PHY */
99+
/*compatible = "ethernet-phy-id004d.d072";*/
100+
compatible = "ethernet-phy-id0141.0dd1";
101+
reg = <0x1>;
102+
eee-broken-1000t;
103+
};
104+
/*
105+
rgmii_phy2: ethernet-phy@2 {
106+
# AR8035 PHY
107+
compatible = "ethernet-phy-id004d.d072";
108+
reg = <0x2>;
109+
eee-broken-1000t;
110+
};
111+
112+
aquantia_phy1: ethernet-phy@4 {
113+
# AQR107 PHY
114+
compatible = "ethernet-phy-ieee802.3-c45";
115+
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
116+
reg = <0x4>;
117+
};
118+
119+
aquantia_phy2: ethernet-phy@5 {
120+
# AQR107 PHY
121+
compatible = "ethernet-phy-ieee802.3-c45";
122+
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
123+
reg = <0x5>;
124+
};
125+
*/
126+
};
127+
128+
&emdio2 {
129+
status = "okay";
130+
};
131+
132+
/*
133+
&esdhc0 {
134+
sd-uhs-sdr104;
135+
sd-uhs-sdr50;
136+
sd-uhs-sdr25;
137+
sd-uhs-sdr12;
138+
status = "okay";
139+
};
140+
*/
141+
&esdhc0 {
142+
status = "okay";
143+
};
144+
145+
&fspi {
146+
status = "okay";
147+
148+
flash@0 {
149+
#address-cells = <1>;
150+
#size-cells = <1>;
151+
compatible = "jedec,spi-nor";
152+
reg = <0>;
153+
spi-max-frequency = <50000000>;
154+
#spi-rx-bus-width = <4>;
155+
partition@0 {
156+
reg = <0x0 0x1000000>;
157+
label = "uboot";
158+
};
159+
160+
partition@1 {
161+
reg = <0x1000000 0x100000>;
162+
label = "uboot-env";
163+
};
164+
165+
partition@2 {
166+
reg = <0x1100000 0x2800000>;
167+
label = "onie";
168+
};
169+
};
170+
};
171+
172+
&dspi1 {
173+
status = "okay";
174+
spi-tpm@0 {
175+
compatible = "infineon,slb9670";
176+
/*mode 0*/
177+
reg = <0>;
178+
/*spi-max-frequency = <38000000>;*/
179+
spi-max-frequency = <4000000>;
180+
};
181+
dflash1: flash@1 {
182+
#address-cells = <1>;
183+
#size-cells = <1>;
184+
compatible = "jedec,spi-nor";
185+
reg = <1>;
186+
spi-max-frequency = <1000000>;
187+
};
188+
};
189+
190+
&i2c0 {
191+
status = "okay";
192+
/*
193+
i2c-mux@77 {
194+
compatible = "nxp,pca9547";
195+
reg = <0x77>;
196+
#address-cells = <1>;
197+
#size-cells = <0>;
198+
199+
i2c@2 {
200+
#address-cells = <1>;
201+
#size-cells = <0>;
202+
reg = <0x2>;
203+
204+
power-monitor@40 {
205+
compatible = "ti,ina220";
206+
reg = <0x40>;
207+
shunt-resistor = <500>;
208+
};
209+
};
210+
211+
i2c@3 {
212+
#address-cells = <1>;
213+
#size-cells = <0>;
214+
reg = <0x3>;
215+
216+
temperature-sensor@4c {
217+
compatible = "nxp,sa56004";
218+
reg = <0x4c>;
219+
vcc-supply = <&sb_3v3>;
220+
};
221+
222+
temperature-sensor@4d {
223+
compatible = "nxp,sa56004";
224+
reg = <0x4d>;
225+
vcc-supply = <&sb_3v3>;
226+
};
227+
};
228+
};
229+
*/
230+
};
231+
&i2c1 {
232+
status = "okay";
233+
};
234+
&i2c2 {
235+
status = "okay";
236+
};
237+
&i2c3 {
238+
status = "okay";
239+
};
240+
&i2c4 {
241+
status = "okay";
242+
/*
243+
rtc@51 {
244+
compatible = "nxp,pcf2129";
245+
reg = <0x51>;
246+
# IRQ_RTC_B -> IRQ08, active low
247+
interrupts-extended = <&extirq 8 IRQ_TYPE_LEVEL_LOW>;
248+
};
249+
*/
250+
};
251+
&i2c5 {
252+
status = "okay";
253+
};
254+
&i2c6 {
255+
status = "okay";
256+
};
257+
&i2c7 {
258+
status = "okay";
259+
};
260+
261+
&pcs_mdio3 {
262+
status = "okay";
263+
};
264+
265+
&pcs_mdio4 {
266+
status = "okay";
267+
};
268+
269+
&sata0 {
270+
status = "okay";
271+
};
272+
273+
&sata1 {
274+
status = "okay";
275+
};
276+
277+
&sata2 {
278+
status = "okay";
279+
};
280+
281+
&sata3 {
282+
status = "okay";
283+
};
284+
285+
&uart0 {
286+
status = "okay";
287+
};
288+
289+
&uart1 {
290+
status = "okay";
291+
};
292+
293+
&usb0 {
294+
status = "okay";
295+
};
296+
297+
&usb1 {
298+
status = "okay";
299+
};
300+
301+
&emdio2 {
302+
inphi_phy: ethernet-phy@0 {
303+
compatible = "ethernet-phy-id0210.7440";
304+
reg = <0x0>;
305+
};
306+
};
307+
308+
&dpmac5 {
309+
phy-handle = <&inphi_phy>;
310+
};
311+
312+
&dpmac6 {
313+
phy-handle = <&inphi_phy>;
314+
};

0 commit comments

Comments
 (0)