Debian Codegraph @

arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Device Tree file for Travese Ten64 (LS1088) board
4 * Based on fsl-ls1088a-rdb.dts
5 * Copyright 2017-2020 NXP
6 * Copyright 2019-2021 Traverse Technologies
7 *
8 * Author: Mathew McBride <[email protected]>
9 */
10
11 /dts-v1/;
12
13 #include "fsl-ls1088a.dtsi"
14
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
17
18 / {
19 model = "Traverse Ten64";
20 compatible = "traverse,ten64", "fsl,ls1088a";
21
22 aliases {
23 serial0 = &duart0;
24 serial1 = &duart1;
25 };
26
27 chosen {
28 stdout-path = "serial0:115200n8";
29 };
30
31 buttons {
32 compatible = "gpio-keys";
33
34 /* Fired by system controller when
35 * external power off (e.g ATX Power Button)
36 * asserted
37 */
38 button-powerdn {
39 label = "External Power Down";
40 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_POWER>;
42 };
43
44 /* Rear Panel 'ADMIN' button (GPIO_H) */
45 button-admin {
46 label = "ADMIN button";
47 gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
48 linux,code = <KEY_WPS_BUTTON>;
49 };
50 };
51
52 leds {
53 compatible = "gpio-leds";
54
55 led-0 {
56 label = "ten64:green:sfp1:down";
57 gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>;
58 };
59
60 led-1 {
61 label = "ten64:green:sfp2:up";
62 gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>;
63 };
64
65 led-2 {
66 label = "ten64:admin";
67 gpios = <&sfpgpio 12 GPIO_ACTIVE_HIGH>;
68 };
69 };
70
71 sfp_xg0: dpmac2-sfp {
72 compatible = "sff,sfp";
73 i2c-bus = <&sfplower_i2c>;
74 tx-fault-gpios = <&sfpgpio 0 GPIO_ACTIVE_HIGH>;
75 tx-disable-gpios = <&sfpgpio 1 GPIO_ACTIVE_HIGH>;
76 mod-def0-gpios = <&sfpgpio 2 GPIO_ACTIVE_LOW>;
77 los-gpios = <&sfpgpio 3 GPIO_ACTIVE_HIGH>;
78 maximum-power-milliwatt = <2000>;
79 };
80
81 sfp_xg1: dpmac1-sfp {
82 compatible = "sff,sfp";
83 i2c-bus = <&sfpupper_i2c>;
84 tx-fault-gpios = <&sfpgpio 4 GPIO_ACTIVE_HIGH>;
85 tx-disable-gpios = <&sfpgpio 5 GPIO_ACTIVE_HIGH>;
86 mod-def0-gpios = <&sfpgpio 6 GPIO_ACTIVE_LOW>;
87 los-gpios = <&sfpgpio 7 GPIO_ACTIVE_HIGH>;
88 maximum-power-milliwatt = <2000>;
89 };
90
91 usb1v2_supply: regulator-usbhub-1v2 {
92 compatible = "regulator-fixed";
93 regulator-name = "usbhub_1v2";
94 regulator-min-microvolt = <1200000>;
95 regulator-max-microvolt = <1200000>;
96 regulator-always-on;
97 };
98
99 system3v3_supply: regulator-system-3v3 {
100 compatible = "regulator-fixed";
101 regulator-name = "system_3v3";
102 regulator-min-microvolt = <3300000>;
103 regulator-max-microvolt = <3300000>;
104 regulator-always-on;
105 };
106 };
107
108 /* XG1 - Upper SFP */
109 &dpmac1 {
110 sfp = <&sfp_xg1>;
111 pcs-handle = <&pcs1>;
112 phy-connection-type = "10gbase-r";
113 managed = "in-band-status";
114 };
115
116 /* XG0 - Lower SFP */
117 &dpmac2 {
118 sfp = <&sfp_xg0>;
119 pcs-handle = <&pcs2>;
120 phy-connection-type = "10gbase-r";
121 managed = "in-band-status";
122 };
123
124 /* DPMAC3..6 is GE4 to GE8 */
125 &dpmac3 {
126 phy-handle = <&mdio1_phy5>;
127 phy-connection-type = "qsgmii";
128 managed = "in-band-status";
129 pcs-handle = <&pcs3_0>;
130 };
131
132 &dpmac4 {
133 phy-handle = <&mdio1_phy6>;
134 phy-connection-type = "qsgmii";
135 managed = "in-band-status";
136 pcs-handle = <&pcs3_1>;
137 };
138
139 &dpmac5 {
140 phy-handle = <&mdio1_phy7>;
141 phy-connection-type = "qsgmii";
142 managed = "in-band-status";
143 pcs-handle = <&pcs3_2>;
144 };
145
146 &dpmac6 {
147 phy-handle = <&mdio1_phy8>;
148 phy-connection-type = "qsgmii";
149 managed = "in-band-status";
150 pcs-handle = <&pcs3_3>;
151 };
152
153 /* DPMAC7..10 is GE0 to GE3 */
154 &dpmac7 {
155 phy-handle = <&mdio1_phy1>;
156 phy-connection-type = "qsgmii";
157 managed = "in-band-status";
158 pcs-handle = <&pcs7_0>;
159 };
160
161 &dpmac8 {
162 phy-handle = <&mdio1_phy2>;
163 phy-connection-type = "qsgmii";
164 managed = "in-band-status";
165 pcs-handle = <&pcs7_1>;
166 };
167
168 &dpmac9 {
169 phy-handle = <&mdio1_phy3>;
170 phy-connection-type = "qsgmii";
171 managed = "in-band-status";
172 pcs-handle = <&pcs7_2>;
173 };
174
175 &dpmac10 {
176 phy-handle = <&mdio1_phy4>;
177 phy-connection-type = "qsgmii";
178 managed = "in-band-status";
179 pcs-handle = <&pcs7_3>;
180 };
181
182 &duart0 {
183 status = "okay";
184 };
185
186 &duart1 {
187 status = "okay";
188 };
189
190 &emdio1 {
191 status = "okay";
192
193 mdio1_phy5: ethernet-phy@c {
194 reg = <0xc>;
195 };
196
197 mdio1_phy6: ethernet-phy@d {
198 reg = <0xd>;
199 };
200
201 mdio1_phy7: ethernet-phy@e {
202 reg = <0xe>;
203 };
204
205 mdio1_phy8: ethernet-phy@f {
206 reg = <0xf>;
207 };
208
209 mdio1_phy1: ethernet-phy@1c {
210 reg = <0x1c>;
211 };
212
213 mdio1_phy2: ethernet-phy@1d {
214 reg = <0x1d>;
215 };
216
217 mdio1_phy3: ethernet-phy@1e {
218 reg = <0x1e>;
219 };
220
221 mdio1_phy4: ethernet-phy@1f {
222 reg = <0x1f>;
223 };
224 };
225
226 &esdhc {
227 status = "okay";
228 };
229
230 &i2c0 {
231 status = "okay";
232
233 sfpgpio: gpio@76 {
234 compatible = "ti,tca9539";
235 reg = <0x76>;
236 #gpio-cells = <2>;
237 gpio-controller;
238
239 admin-led-lower-hog {
240 gpio-hog;
241 gpios = <13 GPIO_ACTIVE_HIGH>;
242 output-low;
243 };
244 };
245
246 at97sc: tpm@29 {
247 compatible = "atmel,at97sc3204t";
248 reg = <0x29>;
249 };
250
251 usbhub: usb-hub@2d {
252 compatible = "microchip,usb5744";
253 reg = <0x2d>;
254 };
255
256 uc: board-controller@7e {
257 compatible = "traverse,ten64-controller";
258 reg = <0x7e>;
259 };
260 };
261
262 &i2c2 {
263 status = "okay";
264
265 rx8035: rtc@32 {
266 compatible = "epson,rx8035";
267 reg = <0x32>;
268 };
269 };
270
271 &i2c3 {
272 status = "okay";
273
274 i2c-mux@70 {
275 compatible = "nxp,pca9540";
276 #address-cells = <1>;
277 #size-cells = <0>;
278 reg = <0x70>;
279
280 sfpupper_i2c: i2c@0 {
281 #address-cells = <1>;
282 #size-cells = <0>;
283 reg = <0>;
284 };
285
286 sfplower_i2c: i2c@1 {
287 #address-cells = <1>;
288 #size-cells = <0>;
289 reg = <1>;
290 };
291 };
292 };
293
294 &pcs_mdio1 {
295 status = "okay";
296 };
297
298 &pcs_mdio2 {
299 status = "okay";
300 };
301
302 &pcs_mdio3 {
303 status = "okay";
304 };
305
306 &pcs_mdio7 {
307 status = "okay";
308 };
309
310 &qspi {
311 status = "okay";
312
313 en25s64: flash@0 {
314 compatible = "jedec,spi-nor";
315 #address-cells = <1>;
316 #size-cells = <1>;
317 reg = <0>;
318 spi-max-frequency = <20000000>;
319 spi-rx-bus-width = <4>;
320 spi-tx-bus-width = <4>;
321
322 partitions {
323 compatible = "fixed-partitions";
324 #address-cells = <1>;
325 #size-cells = <1>;
326
327 partition@0 {
328 label = "bl2";
329 reg = <0 0x100000>;
330 };
331
332 partition@100000 {
333 label = "bl3";
334 reg = <0x100000 0x200000>;
335 };
336
337 partition@300000 {
338 label = "mcfirmware";
339 reg = <0x300000 0x200000>;
340 };
341
342 partition@500000 {
343 label = "ubootenv";
344 reg = <0x500000 0x80000>;
345 };
346
347 partition@580000 {
348 label = "dpl";
349 reg = <0x580000 0x40000>;
350 };
351
352 partition@5c0000 {
353 label = "dpc";
354 reg = <0x5c0000 0x40000>;
355 };
356
357 partition@600000 {
358 label = "devicetree";
359 reg = <0x600000 0x40000>;
360 };
361 };
362 };
363
364 nand: flash@1 {
365 compatible = "spi-nand";
366 #address-cells = <1>;
367 #size-cells = <1>;
368 reg = <1>;
369 spi-max-frequency = <20000000>;
370 spi-rx-bus-width = <4>;
371 spi-tx-bus-width = <4>;
372
373 partitions {
374 compatible = "fixed-partitions";
375 #address-cells = <1>;
376 #size-cells = <1>;
377
378 /* reserved for future boot direct from NAND flash
379 * (this would use the same layout as the 8MiB NOR flash)
380 */
381 partition@0 {
382 label = "nand-boot-reserved";
383 reg = <0 0x800000>;
384 };
385
386 /* recovery / install environment */
387 partition@800000 {
388 label = "recovery";
389 reg = <0x800000 0x2000000>;
390 };
391
392 /* ubia (first OpenWrt) - a/b names to prevent confusion with ubi0/1/etc. */
393 partition@2800000 {
394 label = "ubia";
395 reg = <0x2800000 0x6c00000>;
396 };
397
398 /* ubib (second OpenWrt) */
399 partition@9400000 {
400 label = "ubib";
401 reg = <0x9400000 0x6c00000>;
402 };
403 };
404 };
405 };
406
407 /* LS1088A USB Port 0 - direct to bottom USB-A port */
408 &usb0 {
409 status = "okay";
410 };
411
412 /* LS1088A USB Port 1 - to Microchip USB5744 USB Hub */
413 &usb1 {
414 #address-cells = <1>;
415 #size-cells = <0>;
416 status = "okay";
417
418 hub_2_0: hub@1 {
419 compatible = "usb424,2744";
420 reg = <1>;
421 peer-hub = <&hub_3_0>;
422 i2c-bus = <&usbhub>;
423 vdd-supply = <&system3v3_supply>;
424 vdd2-supply = <&usb1v2_supply>;
425 };
426
427 hub_3_0: hub@2 {
428 compatible = "usb424,5744";
429 reg = <2>;
430 peer-hub = <&hub_2_0>;
431 i2c-bus = <&usbhub>;
432 vdd-supply = <&system3v3_supply>;
433 vdd2-supply = <&usb1v2_supply>;
434 };
435 };