blob: 90fbfca87f2b982a405a7c263fa6af5130d173fa [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 *
Michal Simeka8c94362023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simeke116c542018-03-28 15:36:36 +02008 */
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;
Michal Simekf7a45b82022-09-09 13:05:49 +0200123 reset-gpios = <&tca6416_u97 6 GPIO_ACTIVE_LOW>;
Michal Simeka4224f22022-09-09 13:05:48 +0200124 };
Michal Simeke116c542018-03-28 15:36:36 +0200125 };
126};
127
128&gpio {
129 status = "okay";
130};
131
132&gpu {
133 status = "okay";
134};
135
136&i2c1 {
137 status = "okay";
138 clock-frequency = <400000>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200139 pinctrl-names = "default", "gpio";
140 pinctrl-0 = <&pinctrl_i2c1_default>;
141 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +0200142 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
143 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simeke116c542018-03-28 15:36:36 +0200144
145 /* Another connection to this bus via PL i2c via PCA9306 - u45 */
146 i2c-mux@74 { /* u34 */
147 compatible = "nxp,pca9548";
148 #address-cells = <1>;
149 #size-cells = <0>;
150 reg = <0x74>;
151 i2c@0 {
152 #address-cells = <1>;
153 #size-cells = <0>;
154 reg = <0>;
155 /*
156 * IIC_EEPROM 1kB memory which uses 256B blocks
157 * where every block has different address.
158 * 0 - 256B address 0x54
159 * 256B - 512B address 0x55
160 * 512B - 768B address 0x56
161 * 768B - 1024B address 0x57
162 */
163 eeprom: eeprom@54 { /* u23 */
164 compatible = "atmel,24c08";
165 reg = <0x54>;
166 #address-cells = <1>;
167 #size-cells = <1>;
168 };
169 };
170
171 i2c@1 {
172 #address-cells = <1>;
173 #size-cells = <0>;
174 reg = <1>;
Michal Simek2add7442021-06-03 11:58:08 +0200175 /* 8T49N287 - u182 */
Michal Simeke116c542018-03-28 15:36:36 +0200176 };
177
178 i2c@2 {
179 #address-cells = <1>;
180 #size-cells = <0>;
181 reg = <2>;
Michal Simek3514e4e2020-03-30 11:35:38 +0200182 irps5401_43: irps5401@43 { /* IRPS5401 - u175 */
Michal Simeke116c542018-03-28 15:36:36 +0200183 compatible = "infineon,irps5401";
Michal Simek3514e4e2020-03-30 11:35:38 +0200184 reg = <0x43>; /* pmbus / i2c 0x13 */
Michal Simeke116c542018-03-28 15:36:36 +0200185 };
Michal Simek3514e4e2020-03-30 11:35:38 +0200186 irps5401_44: irps5401@44 { /* IRPS5401 - u180 */
Michal Simeke116c542018-03-28 15:36:36 +0200187 compatible = "infineon,irps5401";
Michal Simek3514e4e2020-03-30 11:35:38 +0200188 reg = <0x44>; /* pmbus / i2c 0x14 */
Michal Simeke116c542018-03-28 15:36:36 +0200189 };
190 };
191
192 i2c@4 {
193 #address-cells = <1>;
194 #size-cells = <0>;
195 reg = <4>;
Michal Simekbea57132018-05-29 15:28:43 +0200196 tca6416_u97: gpio@20 {
Michal Simeke116c542018-03-28 15:36:36 +0200197 compatible = "ti,tca6416";
Michal Simekbea57132018-05-29 15:28:43 +0200198 reg = <0x20>;
Michal Simeke116c542018-03-28 15:36:36 +0200199 gpio-controller;
200 #gpio-cells = <2>;
201 /*
202 * IRQ not connected
203 * Lines:
204 * 0 - IRPS5401_ALERT_B
205 * 1 - HDMI_8T49N241_INT_ALM
206 * 2 - MAX6643_OT_B
207 * 3 - MAX6643_FANFAIL_B
208 * 5 - IIC_MUX_RESET_B
209 * 6 - GEM3_EXP_RESET_B
210 * 7 - FMC_LPC_PRSNT_M2C_B
211 * 4, 10 - 17 - not connected
212 */
213 };
214 };
215
216 i2c@5 {
217 #address-cells = <1>;
218 #size-cells = <0>;
219 reg = <5>;
220 };
221
222 i2c@7 {
223 #address-cells = <1>;
224 #size-cells = <0>;
225 reg = <7>;
226 };
227
228 /* 3, 6 not connected */
229 };
230};
231
Michal Simekf7b922a2021-05-10 13:14:02 +0200232&pinctrl0 {
233 status = "okay";
234
235 pinctrl_can1_default: can1-default {
236 mux {
237 function = "can1";
238 groups = "can1_6_grp";
239 };
240
241 conf {
242 groups = "can1_6_grp";
243 slew-rate = <SLEW_RATE_SLOW>;
244 power-source = <IO_STANDARD_LVCMOS18>;
245 drive-strength = <12>;
246 };
247
248 conf-rx {
249 pins = "MIO25";
250 bias-high-impedance;
251 };
252
253 conf-tx {
254 pins = "MIO24";
255 bias-disable;
256 };
257 };
258
259 pinctrl_i2c1_default: i2c1-default {
260 mux {
261 groups = "i2c1_4_grp";
262 function = "i2c1";
263 };
264
265 conf {
266 groups = "i2c1_4_grp";
267 bias-pull-up;
268 slew-rate = <SLEW_RATE_SLOW>;
269 power-source = <IO_STANDARD_LVCMOS18>;
270 drive-strength = <12>;
271 };
272 };
273
274 pinctrl_i2c1_gpio: i2c1-gpio {
275 mux {
276 groups = "gpio0_16_grp", "gpio0_17_grp";
277 function = "gpio0";
278 };
279
280 conf {
281 groups = "gpio0_16_grp", "gpio0_17_grp";
282 slew-rate = <SLEW_RATE_SLOW>;
283 power-source = <IO_STANDARD_LVCMOS18>;
284 drive-strength = <12>;
285 };
286 };
287
288 pinctrl_gem3_default: gem3-default {
289 mux {
290 function = "ethernet3";
291 groups = "ethernet3_0_grp";
292 };
293
294 conf {
295 groups = "ethernet3_0_grp";
296 slew-rate = <SLEW_RATE_SLOW>;
297 power-source = <IO_STANDARD_LVCMOS18>;
298 drive-strength = <12>;
299 };
300
301 conf-rx {
302 pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
303 "MIO75";
304 bias-high-impedance;
305 low-power-disable;
306 };
307
308 conf-tx {
309 pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
310 "MIO69";
311 bias-disable;
312 low-power-enable;
313 };
314
315 mux-mdio {
316 function = "mdio3";
317 groups = "mdio3_0_grp";
318 };
319
320 conf-mdio {
321 groups = "mdio3_0_grp";
322 slew-rate = <SLEW_RATE_SLOW>;
323 power-source = <IO_STANDARD_LVCMOS18>;
324 bias-disable;
325 };
326 };
327
328 pinctrl_sdhci1_default: sdhci1-default {
329 mux {
330 groups = "sdio1_0_grp";
331 function = "sdio1";
332 };
333
334 conf {
335 groups = "sdio1_0_grp";
336 slew-rate = <SLEW_RATE_SLOW>;
337 power-source = <IO_STANDARD_LVCMOS18>;
338 bias-disable;
339 drive-strength = <12>;
340 };
341
342 mux-cd {
343 groups = "sdio1_cd_0_grp";
344 function = "sdio1_cd";
345 };
346
347 conf-cd {
348 groups = "sdio1_cd_0_grp";
349 bias-high-impedance;
350 bias-pull-up;
351 slew-rate = <SLEW_RATE_SLOW>;
352 power-source = <IO_STANDARD_LVCMOS18>;
353 };
354 };
355
356 pinctrl_uart0_default: uart0-default {
357 mux {
358 groups = "uart0_4_grp";
359 function = "uart0";
360 };
361
362 conf {
363 groups = "uart0_4_grp";
364 slew-rate = <SLEW_RATE_SLOW>;
365 power-source = <IO_STANDARD_LVCMOS18>;
366 drive-strength = <12>;
367 };
368
369 conf-rx {
370 pins = "MIO18";
371 bias-high-impedance;
372 };
373
374 conf-tx {
375 pins = "MIO19";
376 bias-disable;
377 };
378 };
379
380 pinctrl_uart1_default: uart1-default {
381 mux {
382 groups = "uart1_5_grp";
383 function = "uart1";
384 };
385
386 conf {
387 groups = "uart1_5_grp";
388 slew-rate = <SLEW_RATE_SLOW>;
389 power-source = <IO_STANDARD_LVCMOS18>;
390 drive-strength = <12>;
391 };
392
393 conf-rx {
394 pins = "MIO21";
395 bias-high-impedance;
396 };
397
398 conf-tx {
399 pins = "MIO20";
400 bias-disable;
401 };
402 };
403
404 pinctrl_usb0_default: usb0-default {
405 mux {
406 groups = "usb0_0_grp";
407 function = "usb0";
408 };
409
410 conf {
411 groups = "usb0_0_grp";
Michal Simekf7b922a2021-05-10 13:14:02 +0200412 power-source = <IO_STANDARD_LVCMOS18>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200413 };
414
415 conf-rx {
416 pins = "MIO52", "MIO53", "MIO55";
417 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200418 drive-strength = <12>;
419 slew-rate = <SLEW_RATE_FAST>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200420 };
421
422 conf-tx {
423 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
424 "MIO60", "MIO61", "MIO62", "MIO63";
425 bias-disable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200426 drive-strength = <4>;
427 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200428 };
429 };
430};
431
Michal Simekae7230c2021-06-03 15:18:04 +0200432&psgtr {
433 status = "okay";
434 /* nc, sata, usb3, dp */
435 clocks = <&clock_8t49n287_5>, <&clock_8t49n287_2>, <&clock_8t49n287_3>;
436 clock-names = "ref1", "ref2", "ref3";
437};
438
Michal Simeke116c542018-03-28 15:36:36 +0200439&qspi {
440 status = "okay";
441 flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000442 compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
Michal Simeke116c542018-03-28 15:36:36 +0200443 #address-cells = <1>;
444 #size-cells = <1>;
445 reg = <0x0>;
Amit Kumar Mahapatraa02408b2022-05-10 16:33:01 +0200446 spi-tx-bus-width = <4>;
Michal Simeke116c542018-03-28 15:36:36 +0200447 spi-rx-bus-width = <4>;
448 spi-max-frequency = <108000000>; /* Based on DC1 spec */
Michal Simek70fafdf2020-02-14 14:19:56 +0100449 partition@0 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200450 label = "qspi-fsbl-uboot";
451 reg = <0x0 0x100000>;
452 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100453 partition@100000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200454 label = "qspi-linux";
455 reg = <0x100000 0x500000>;
456 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100457 partition@600000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200458 label = "qspi-device-tree";
459 reg = <0x600000 0x20000>;
460 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100461 partition@620000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200462 label = "qspi-rootfs";
463 reg = <0x620000 0x5E0000>;
464 };
465 };
466};
467
468&rtc {
469 status = "okay";
470};
471
472&sata {
473 status = "okay";
474 /* SATA OOB timing settings */
475 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
476 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
477 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
478 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
479 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
480 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
481 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
482 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
483 phy-names = "sata-phy";
Michal Simek958c0e92020-11-26 14:25:02 +0100484 phys = <&psgtr 3 PHY_TYPE_SATA 1 1>;
Michal Simeke116c542018-03-28 15:36:36 +0200485};
486
487/* SD1 with level shifter */
488&sdhci1 {
489 status = "okay";
490 no-1-8-v;
Michal Simekf7b922a2021-05-10 13:14:02 +0200491 pinctrl-names = "default";
492 pinctrl-0 = <&pinctrl_sdhci1_default>;
Michal Simek3b662642020-07-22 17:42:43 +0200493 xlnx,mio-bank = <1>;
Michal Simeke116c542018-03-28 15:36:36 +0200494 disable-wp;
495};
496
Michal Simeke116c542018-03-28 15:36:36 +0200497&uart0 {
498 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200499 pinctrl-names = "default";
500 pinctrl-0 = <&pinctrl_uart0_default>;
Michal Simeke116c542018-03-28 15:36:36 +0200501};
502
503&uart1 {
504 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200505 pinctrl-names = "default";
506 pinctrl-0 = <&pinctrl_uart1_default>;
Michal Simeke116c542018-03-28 15:36:36 +0200507};
508
509/* ULPI SMSC USB3320 */
510&usb0 {
511 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200512 pinctrl-names = "default";
513 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600514 phy-names = "usb3-phy";
515 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
Michal Simeke116c542018-03-28 15:36:36 +0200516};
517
518&dwc3_0 {
519 status = "okay";
520 dr_mode = "host";
521 snps,usb3_lpm_capable;
Michal Simeke116c542018-03-28 15:36:36 +0200522 maximum-speed = "super-speed";
523};
524
525&watchdog0 {
526 status = "okay";
527};
528
529&xilinx_ams {
530 status = "okay";
531};
532
533&ams_ps {
534 status = "okay";
535};
536
537&ams_pl {
538 status = "okay";
Michal Simek958c0e92020-11-26 14:25:02 +0100539};
540
541&zynqmp_dpdma {
542 status = "okay";
543};
544
545&zynqmp_dpsub {
546 status = "okay";
547 phy-names = "dp-phy0", "dp-phy1";
548 phys = <&psgtr 1 PHY_TYPE_DP 0 3>,
549 <&psgtr 0 PHY_TYPE_DP 1 3>;
Michal Simeke116c542018-03-28 15:36:36 +0200550};