blob: 6df9a134385955f3744f226bc296a4a86cea3937 [file] [log] [blame]
Michal Simeke116c542018-03-28 15:36:36 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * dts file for Xilinx ZynqMP ZCU104
4 *
Michal Simek821e32a2021-05-31 09:50:01 +02005 * (C) Copyright 2017 - 2021, Xilinx, Inc.
Michal Simeke116c542018-03-28 15:36:36 +02006 *
7 * Michal Simek <michal.simek@xilinx.com>
8 */
9
10/dts-v1/;
11
12#include "zynqmp.dtsi"
13#include "zynqmp-clk-ccf.dtsi"
14#include <dt-bindings/gpio/gpio.h>
Michal Simekf7b922a2021-05-10 13:14:02 +020015#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simeke116c542018-03-28 15:36:36 +020016#include <dt-bindings/phy/phy.h>
17
18/ {
19 model = "ZynqMP ZCU104 RevA";
20 compatible = "xlnx,zynqmp-zcu104-revA", "xlnx,zynqmp-zcu104", "xlnx,zynqmp";
21
22 aliases {
23 ethernet0 = &gem3;
Michal Simeke116c542018-03-28 15:36:36 +020024 i2c0 = &i2c1;
25 mmc0 = &sdhci1;
Michal Simek53b145d2021-06-03 11:46:50 +020026 nvmem0 = &eeprom;
Michal Simeke116c542018-03-28 15:36:36 +020027 rtc0 = &rtc;
28 serial0 = &uart0;
29 serial1 = &uart1;
30 serial2 = &dcc;
31 spi0 = &qspi;
32 usb0 = &usb0;
33 };
34
35 chosen {
36 bootargs = "earlycon";
37 stdout-path = "serial0:115200n8";
38 };
39
40 memory@0 {
41 device_type = "memory";
42 reg = <0x0 0x0 0x0 0x80000000>;
43 };
Michal Simek958c0e92020-11-26 14:25:02 +010044
45 clock_8t49n287_5: clk125 {
46 compatible = "fixed-clock";
47 #clock-cells = <0>;
48 clock-frequency = <125000000>;
49 };
50
51 clock_8t49n287_2: clk26 {
52 compatible = "fixed-clock";
53 #clock-cells = <0>;
54 clock-frequency = <26000000>;
55 };
56
57 clock_8t49n287_3: clk27 {
58 compatible = "fixed-clock";
59 #clock-cells = <0>;
60 clock-frequency = <27000000>;
61 };
Michal Simeke116c542018-03-28 15:36:36 +020062};
63
64&can1 {
65 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +020066 pinctrl-names = "default";
67 pinctrl-0 = <&pinctrl_can1_default>;
Michal Simeke116c542018-03-28 15:36:36 +020068};
69
70&dcc {
71 status = "okay";
72};
73
Michal Simekf390a212019-03-07 08:15:52 +010074&fpd_dma_chan1 {
75 status = "okay";
76};
77
78&fpd_dma_chan2 {
79 status = "okay";
80};
81
82&fpd_dma_chan3 {
83 status = "okay";
84};
85
86&fpd_dma_chan4 {
87 status = "okay";
88};
89
90&fpd_dma_chan5 {
91 status = "okay";
92};
93
94&fpd_dma_chan6 {
95 status = "okay";
96};
97
98&fpd_dma_chan7 {
99 status = "okay";
100};
101
102&fpd_dma_chan8 {
103 status = "okay";
104};
105
Michal Simeke116c542018-03-28 15:36:36 +0200106&gem3 {
107 status = "okay";
108 phy-handle = <&phy0>;
109 phy-mode = "rgmii-id";
Michal Simekf7b922a2021-05-10 13:14:02 +0200110 pinctrl-names = "default";
111 pinctrl-0 = <&pinctrl_gem3_default>;
Michal Simeka4224f22022-09-09 13:05:48 +0200112 mdio: mdio {
113 #address-cells = <1>;
114 #size-cells = <0>;
115 phy0: ethernet-phy@c {
116 #phy-cells = <1>;
117 compatible = "ethernet-phy-id2000.a231";
118 reg = <0xc>;
119 ti,rx-internal-delay = <0x8>;
120 ti,tx-internal-delay = <0xa>;
121 ti,fifo-depth = <0x1>;
122 ti,dp83867-rxctrl-strap-quirk;
123 };
Michal Simeke116c542018-03-28 15:36:36 +0200124 };
125};
126
127&gpio {
128 status = "okay";
129};
130
131&gpu {
132 status = "okay";
133};
134
135&i2c1 {
136 status = "okay";
137 clock-frequency = <400000>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200138 pinctrl-names = "default", "gpio";
139 pinctrl-0 = <&pinctrl_i2c1_default>;
140 pinctrl-1 = <&pinctrl_i2c1_gpio>;
141 scl-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
142 sda-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
Michal Simeke116c542018-03-28 15:36:36 +0200143
144 /* Another connection to this bus via PL i2c via PCA9306 - u45 */
145 i2c-mux@74 { /* u34 */
146 compatible = "nxp,pca9548";
147 #address-cells = <1>;
148 #size-cells = <0>;
149 reg = <0x74>;
150 i2c@0 {
151 #address-cells = <1>;
152 #size-cells = <0>;
153 reg = <0>;
154 /*
155 * IIC_EEPROM 1kB memory which uses 256B blocks
156 * where every block has different address.
157 * 0 - 256B address 0x54
158 * 256B - 512B address 0x55
159 * 512B - 768B address 0x56
160 * 768B - 1024B address 0x57
161 */
162 eeprom: eeprom@54 { /* u23 */
163 compatible = "atmel,24c08";
164 reg = <0x54>;
165 #address-cells = <1>;
166 #size-cells = <1>;
167 };
168 };
169
170 i2c@1 {
171 #address-cells = <1>;
172 #size-cells = <0>;
173 reg = <1>;
Michal Simek2add7442021-06-03 11:58:08 +0200174 /* 8T49N287 - u182 */
Michal Simeke116c542018-03-28 15:36:36 +0200175 };
176
177 i2c@2 {
178 #address-cells = <1>;
179 #size-cells = <0>;
180 reg = <2>;
Michal Simek3514e4e2020-03-30 11:35:38 +0200181 irps5401_43: irps5401@43 { /* IRPS5401 - u175 */
Michal Simeke116c542018-03-28 15:36:36 +0200182 compatible = "infineon,irps5401";
Michal Simek3514e4e2020-03-30 11:35:38 +0200183 reg = <0x43>; /* pmbus / i2c 0x13 */
Michal Simeke116c542018-03-28 15:36:36 +0200184 };
Michal Simek3514e4e2020-03-30 11:35:38 +0200185 irps5401_44: irps5401@44 { /* IRPS5401 - u180 */
Michal Simeke116c542018-03-28 15:36:36 +0200186 compatible = "infineon,irps5401";
Michal Simek3514e4e2020-03-30 11:35:38 +0200187 reg = <0x44>; /* pmbus / i2c 0x14 */
Michal Simeke116c542018-03-28 15:36:36 +0200188 };
189 };
190
191 i2c@4 {
192 #address-cells = <1>;
193 #size-cells = <0>;
194 reg = <4>;
Michal Simekbea57132018-05-29 15:28:43 +0200195 tca6416_u97: gpio@20 {
Michal Simeke116c542018-03-28 15:36:36 +0200196 compatible = "ti,tca6416";
Michal Simekbea57132018-05-29 15:28:43 +0200197 reg = <0x20>;
Michal Simeke116c542018-03-28 15:36:36 +0200198 gpio-controller;
199 #gpio-cells = <2>;
200 /*
201 * IRQ not connected
202 * Lines:
203 * 0 - IRPS5401_ALERT_B
204 * 1 - HDMI_8T49N241_INT_ALM
205 * 2 - MAX6643_OT_B
206 * 3 - MAX6643_FANFAIL_B
207 * 5 - IIC_MUX_RESET_B
208 * 6 - GEM3_EXP_RESET_B
209 * 7 - FMC_LPC_PRSNT_M2C_B
210 * 4, 10 - 17 - not connected
211 */
212 };
213 };
214
215 i2c@5 {
216 #address-cells = <1>;
217 #size-cells = <0>;
218 reg = <5>;
219 };
220
221 i2c@7 {
222 #address-cells = <1>;
223 #size-cells = <0>;
224 reg = <7>;
225 };
226
227 /* 3, 6 not connected */
228 };
229};
230
Michal Simekf7b922a2021-05-10 13:14:02 +0200231&pinctrl0 {
232 status = "okay";
233
234 pinctrl_can1_default: can1-default {
235 mux {
236 function = "can1";
237 groups = "can1_6_grp";
238 };
239
240 conf {
241 groups = "can1_6_grp";
242 slew-rate = <SLEW_RATE_SLOW>;
243 power-source = <IO_STANDARD_LVCMOS18>;
244 drive-strength = <12>;
245 };
246
247 conf-rx {
248 pins = "MIO25";
249 bias-high-impedance;
250 };
251
252 conf-tx {
253 pins = "MIO24";
254 bias-disable;
255 };
256 };
257
258 pinctrl_i2c1_default: i2c1-default {
259 mux {
260 groups = "i2c1_4_grp";
261 function = "i2c1";
262 };
263
264 conf {
265 groups = "i2c1_4_grp";
266 bias-pull-up;
267 slew-rate = <SLEW_RATE_SLOW>;
268 power-source = <IO_STANDARD_LVCMOS18>;
269 drive-strength = <12>;
270 };
271 };
272
273 pinctrl_i2c1_gpio: i2c1-gpio {
274 mux {
275 groups = "gpio0_16_grp", "gpio0_17_grp";
276 function = "gpio0";
277 };
278
279 conf {
280 groups = "gpio0_16_grp", "gpio0_17_grp";
281 slew-rate = <SLEW_RATE_SLOW>;
282 power-source = <IO_STANDARD_LVCMOS18>;
283 drive-strength = <12>;
284 };
285 };
286
287 pinctrl_gem3_default: gem3-default {
288 mux {
289 function = "ethernet3";
290 groups = "ethernet3_0_grp";
291 };
292
293 conf {
294 groups = "ethernet3_0_grp";
295 slew-rate = <SLEW_RATE_SLOW>;
296 power-source = <IO_STANDARD_LVCMOS18>;
297 drive-strength = <12>;
298 };
299
300 conf-rx {
301 pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
302 "MIO75";
303 bias-high-impedance;
304 low-power-disable;
305 };
306
307 conf-tx {
308 pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
309 "MIO69";
310 bias-disable;
311 low-power-enable;
312 };
313
314 mux-mdio {
315 function = "mdio3";
316 groups = "mdio3_0_grp";
317 };
318
319 conf-mdio {
320 groups = "mdio3_0_grp";
321 slew-rate = <SLEW_RATE_SLOW>;
322 power-source = <IO_STANDARD_LVCMOS18>;
323 bias-disable;
324 };
325 };
326
327 pinctrl_sdhci1_default: sdhci1-default {
328 mux {
329 groups = "sdio1_0_grp";
330 function = "sdio1";
331 };
332
333 conf {
334 groups = "sdio1_0_grp";
335 slew-rate = <SLEW_RATE_SLOW>;
336 power-source = <IO_STANDARD_LVCMOS18>;
337 bias-disable;
338 drive-strength = <12>;
339 };
340
341 mux-cd {
342 groups = "sdio1_cd_0_grp";
343 function = "sdio1_cd";
344 };
345
346 conf-cd {
347 groups = "sdio1_cd_0_grp";
348 bias-high-impedance;
349 bias-pull-up;
350 slew-rate = <SLEW_RATE_SLOW>;
351 power-source = <IO_STANDARD_LVCMOS18>;
352 };
353 };
354
355 pinctrl_uart0_default: uart0-default {
356 mux {
357 groups = "uart0_4_grp";
358 function = "uart0";
359 };
360
361 conf {
362 groups = "uart0_4_grp";
363 slew-rate = <SLEW_RATE_SLOW>;
364 power-source = <IO_STANDARD_LVCMOS18>;
365 drive-strength = <12>;
366 };
367
368 conf-rx {
369 pins = "MIO18";
370 bias-high-impedance;
371 };
372
373 conf-tx {
374 pins = "MIO19";
375 bias-disable;
376 };
377 };
378
379 pinctrl_uart1_default: uart1-default {
380 mux {
381 groups = "uart1_5_grp";
382 function = "uart1";
383 };
384
385 conf {
386 groups = "uart1_5_grp";
387 slew-rate = <SLEW_RATE_SLOW>;
388 power-source = <IO_STANDARD_LVCMOS18>;
389 drive-strength = <12>;
390 };
391
392 conf-rx {
393 pins = "MIO21";
394 bias-high-impedance;
395 };
396
397 conf-tx {
398 pins = "MIO20";
399 bias-disable;
400 };
401 };
402
403 pinctrl_usb0_default: usb0-default {
404 mux {
405 groups = "usb0_0_grp";
406 function = "usb0";
407 };
408
409 conf {
410 groups = "usb0_0_grp";
Michal Simekf7b922a2021-05-10 13:14:02 +0200411 power-source = <IO_STANDARD_LVCMOS18>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200412 };
413
414 conf-rx {
415 pins = "MIO52", "MIO53", "MIO55";
416 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200417 drive-strength = <12>;
418 slew-rate = <SLEW_RATE_FAST>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200419 };
420
421 conf-tx {
422 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
423 "MIO60", "MIO61", "MIO62", "MIO63";
424 bias-disable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200425 drive-strength = <4>;
426 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200427 };
428 };
429};
430
Michal Simekae7230c2021-06-03 15:18:04 +0200431&psgtr {
432 status = "okay";
433 /* nc, sata, usb3, dp */
434 clocks = <&clock_8t49n287_5>, <&clock_8t49n287_2>, <&clock_8t49n287_3>;
435 clock-names = "ref1", "ref2", "ref3";
436};
437
Michal Simeke116c542018-03-28 15:36:36 +0200438&qspi {
439 status = "okay";
440 flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000441 compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
Michal Simeke116c542018-03-28 15:36:36 +0200442 #address-cells = <1>;
443 #size-cells = <1>;
444 reg = <0x0>;
Amit Kumar Mahapatraa02408b2022-05-10 16:33:01 +0200445 spi-tx-bus-width = <4>;
Michal Simeke116c542018-03-28 15:36:36 +0200446 spi-rx-bus-width = <4>;
447 spi-max-frequency = <108000000>; /* Based on DC1 spec */
Michal Simek70fafdf2020-02-14 14:19:56 +0100448 partition@0 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200449 label = "qspi-fsbl-uboot";
450 reg = <0x0 0x100000>;
451 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100452 partition@100000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200453 label = "qspi-linux";
454 reg = <0x100000 0x500000>;
455 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100456 partition@600000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200457 label = "qspi-device-tree";
458 reg = <0x600000 0x20000>;
459 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100460 partition@620000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200461 label = "qspi-rootfs";
462 reg = <0x620000 0x5E0000>;
463 };
464 };
465};
466
467&rtc {
468 status = "okay";
469};
470
471&sata {
472 status = "okay";
473 /* SATA OOB timing settings */
474 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
475 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
476 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
477 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
478 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
479 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
480 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
481 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
482 phy-names = "sata-phy";
Michal Simek958c0e92020-11-26 14:25:02 +0100483 phys = <&psgtr 3 PHY_TYPE_SATA 1 1>;
Michal Simeke116c542018-03-28 15:36:36 +0200484};
485
486/* SD1 with level shifter */
487&sdhci1 {
488 status = "okay";
489 no-1-8-v;
Michal Simekf7b922a2021-05-10 13:14:02 +0200490 pinctrl-names = "default";
491 pinctrl-0 = <&pinctrl_sdhci1_default>;
Michal Simek3b662642020-07-22 17:42:43 +0200492 xlnx,mio-bank = <1>;
Michal Simeke116c542018-03-28 15:36:36 +0200493 disable-wp;
494};
495
Michal Simeke116c542018-03-28 15:36:36 +0200496&uart0 {
497 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200498 pinctrl-names = "default";
499 pinctrl-0 = <&pinctrl_uart0_default>;
Michal Simeke116c542018-03-28 15:36:36 +0200500};
501
502&uart1 {
503 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200504 pinctrl-names = "default";
505 pinctrl-0 = <&pinctrl_uart1_default>;
Michal Simeke116c542018-03-28 15:36:36 +0200506};
507
508/* ULPI SMSC USB3320 */
509&usb0 {
510 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200511 pinctrl-names = "default";
512 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600513 phy-names = "usb3-phy";
514 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
Michal Simeke116c542018-03-28 15:36:36 +0200515};
516
517&dwc3_0 {
518 status = "okay";
519 dr_mode = "host";
520 snps,usb3_lpm_capable;
Michal Simeke116c542018-03-28 15:36:36 +0200521 maximum-speed = "super-speed";
522};
523
524&watchdog0 {
525 status = "okay";
526};
527
528&xilinx_ams {
529 status = "okay";
530};
531
532&ams_ps {
533 status = "okay";
534};
535
536&ams_pl {
537 status = "okay";
Michal Simek958c0e92020-11-26 14:25:02 +0100538};
539
540&zynqmp_dpdma {
541 status = "okay";
542};
543
544&zynqmp_dpsub {
545 status = "okay";
546 phy-names = "dp-phy0", "dp-phy1";
547 phys = <&psgtr 1 PHY_TYPE_DP 0 3>,
548 <&psgtr 0 PHY_TYPE_DP 1 3>;
Michal Simeke116c542018-03-28 15:36:36 +0200549};