blob: 0721516bd1091fa3e6bc7616e92418f5f99c41c8 [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 RevC";
20 compatible = "xlnx,zynqmp-zcu104-revC", "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 Simek9d66a4c2019-08-26 09:40:23 +020044
45 ina226 {
46 compatible = "iio-hwmon";
47 io-channels = <&u183 0>, <&u183 1>, <&u183 2>, <&u183 3>;
48 };
Michal Simek958c0e92020-11-26 14:25:02 +010049
50 clock_8t49n287_5: clk125 {
51 compatible = "fixed-clock";
52 #clock-cells = <0>;
53 clock-frequency = <125000000>;
54 };
55
56 clock_8t49n287_2: clk26 {
57 compatible = "fixed-clock";
58 #clock-cells = <0>;
59 clock-frequency = <26000000>;
60 };
61
62 clock_8t49n287_3: clk27 {
63 compatible = "fixed-clock";
64 #clock-cells = <0>;
65 clock-frequency = <27000000>;
66 };
Michal Simeke116c542018-03-28 15:36:36 +020067};
68
69&can1 {
70 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +020071 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_can1_default>;
Michal Simeke116c542018-03-28 15:36:36 +020073};
74
75&dcc {
76 status = "okay";
77};
78
Michal Simekf390a212019-03-07 08:15:52 +010079&fpd_dma_chan1 {
80 status = "okay";
81};
82
83&fpd_dma_chan2 {
84 status = "okay";
85};
86
87&fpd_dma_chan3 {
88 status = "okay";
89};
90
91&fpd_dma_chan4 {
92 status = "okay";
93};
94
95&fpd_dma_chan5 {
96 status = "okay";
97};
98
99&fpd_dma_chan6 {
100 status = "okay";
101};
102
103&fpd_dma_chan7 {
104 status = "okay";
105};
106
107&fpd_dma_chan8 {
108 status = "okay";
109};
110
Michal Simeke116c542018-03-28 15:36:36 +0200111&gem3 {
112 status = "okay";
113 phy-handle = <&phy0>;
114 phy-mode = "rgmii-id";
Michal Simekf7b922a2021-05-10 13:14:02 +0200115 pinctrl-names = "default";
116 pinctrl-0 = <&pinctrl_gem3_default>;
Michal Simeka4224f22022-09-09 13:05:48 +0200117 mdio: mdio {
118 #address-cells = <1>;
119 #size-cells = <0>;
120 phy0: ethernet-phy@c {
121 #phy-cells = <1>;
122 compatible = "ethernet-phy-id2000.a231";
123 reg = <0xc>;
124 ti,rx-internal-delay = <0x8>;
125 ti,tx-internal-delay = <0xa>;
126 ti,fifo-depth = <0x1>;
127 ti,dp83867-rxctrl-strap-quirk;
128 };
Michal Simeke116c542018-03-28 15:36:36 +0200129 };
130};
131
132&gpio {
133 status = "okay";
134};
135
136&gpu {
137 status = "okay";
138};
139
140&i2c1 {
141 status = "okay";
142 clock-frequency = <400000>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200143 pinctrl-names = "default", "gpio";
144 pinctrl-0 = <&pinctrl_i2c1_default>;
145 pinctrl-1 = <&pinctrl_i2c1_gpio>;
146 scl-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
147 sda-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
Michal Simeke116c542018-03-28 15:36:36 +0200148
Michal Simekbea57132018-05-29 15:28:43 +0200149 tca6416_u97: gpio@20 {
Michal Simeke116c542018-03-28 15:36:36 +0200150 compatible = "ti,tca6416";
Michal Simekbea57132018-05-29 15:28:43 +0200151 reg = <0x20>;
Michal Simeke116c542018-03-28 15:36:36 +0200152 gpio-controller;
153 #gpio-cells = <2>;
154 /*
155 * IRQ not connected
156 * Lines:
157 * 0 - IRPS5401_ALERT_B
158 * 1 - HDMI_8T49N241_INT_ALM
159 * 2 - MAX6643_OT_B
160 * 3 - MAX6643_FANFAIL_B
161 * 5 - IIC_MUX_RESET_B
162 * 6 - GEM3_EXP_RESET_B
163 * 7 - FMC_LPC_PRSNT_M2C_B
164 * 4, 10 - 17 - not connected
165 */
166 };
167
168 /* Another connection to this bus via PL i2c via PCA9306 - u45 */
169 i2c-mux@74 { /* u34 */
170 compatible = "nxp,pca9548";
171 #address-cells = <1>;
172 #size-cells = <0>;
173 reg = <0x74>;
174 i2c@0 {
175 #address-cells = <1>;
176 #size-cells = <0>;
177 reg = <0>;
178 /*
179 * IIC_EEPROM 1kB memory which uses 256B blocks
180 * where every block has different address.
181 * 0 - 256B address 0x54
182 * 256B - 512B address 0x55
183 * 512B - 768B address 0x56
184 * 768B - 1024B address 0x57
185 */
186 eeprom: eeprom@54 { /* u23 */
187 compatible = "atmel,24c08";
188 reg = <0x54>;
189 #address-cells = <1>;
190 #size-cells = <1>;
191 };
192 };
193
194 i2c@1 {
195 #address-cells = <1>;
196 #size-cells = <0>;
197 reg = <1>;
Michal Simek2add7442021-06-03 11:58:08 +0200198 /* 8T49N287 - u182 */
Michal Simeke116c542018-03-28 15:36:36 +0200199 };
200
201 i2c@2 {
202 #address-cells = <1>;
203 #size-cells = <0>;
204 reg = <2>;
Michal Simek3514e4e2020-03-30 11:35:38 +0200205 irps5401_43: irps5401@43 { /* IRPS5401 - u175 */
Michal Simeke116c542018-03-28 15:36:36 +0200206 compatible = "infineon,irps5401";
Michal Simek3514e4e2020-03-30 11:35:38 +0200207 reg = <0x43>; /* pmbus / i2c 0x13 */
Michal Simeke116c542018-03-28 15:36:36 +0200208 };
Michal Simek3514e4e2020-03-30 11:35:38 +0200209 irps5401_44: irps5401@44 { /* IRPS5401 - u180 */
Michal Simeke116c542018-03-28 15:36:36 +0200210 compatible = "infineon,irps5401";
Michal Simek3514e4e2020-03-30 11:35:38 +0200211 reg = <0x44>; /* pmbus / i2c 0x14 */
Michal Simeke116c542018-03-28 15:36:36 +0200212 };
213 };
214
Michal Simekee29db12018-05-29 14:45:13 +0200215 i2c@3 {
Michal Simeke116c542018-03-28 15:36:36 +0200216 #address-cells = <1>;
217 #size-cells = <0>;
Michal Simekee29db12018-05-29 14:45:13 +0200218 reg = <3>;
Michal Simek9d66a4c2019-08-26 09:40:23 +0200219 u183: ina226@40 { /* u183 */
Michal Simekee29db12018-05-29 14:45:13 +0200220 compatible = "ti,ina226";
Michal Simek9d66a4c2019-08-26 09:40:23 +0200221 #io-channel-cells = <1>;
Michal Simekee29db12018-05-29 14:45:13 +0200222 reg = <0x40>;
223 shunt-resistor = <5000>;
224 };
Michal Simeke116c542018-03-28 15:36:36 +0200225 };
226
227 i2c@5 {
228 #address-cells = <1>;
229 #size-cells = <0>;
230 reg = <5>;
231 };
232
233 i2c@7 {
234 #address-cells = <1>;
235 #size-cells = <0>;
236 reg = <7>;
237 };
238
Michal Simekee29db12018-05-29 14:45:13 +0200239 /* 4, 6 not connected */
Michal Simeke116c542018-03-28 15:36:36 +0200240 };
241};
242
Michal Simekf7b922a2021-05-10 13:14:02 +0200243&pinctrl0 {
244 status = "okay";
245
246 pinctrl_can1_default: can1-default {
247 mux {
248 function = "can1";
249 groups = "can1_6_grp";
250 };
251
252 conf {
253 groups = "can1_6_grp";
254 slew-rate = <SLEW_RATE_SLOW>;
255 power-source = <IO_STANDARD_LVCMOS18>;
256 drive-strength = <12>;
257 };
258
259 conf-rx {
260 pins = "MIO25";
261 bias-high-impedance;
262 };
263
264 conf-tx {
265 pins = "MIO24";
266 bias-disable;
267 };
268 };
269
270 pinctrl_i2c1_default: i2c1-default {
271 mux {
272 groups = "i2c1_4_grp";
273 function = "i2c1";
274 };
275
276 conf {
277 groups = "i2c1_4_grp";
278 bias-pull-up;
279 slew-rate = <SLEW_RATE_SLOW>;
280 power-source = <IO_STANDARD_LVCMOS18>;
281 drive-strength = <12>;
282 };
283 };
284
285 pinctrl_i2c1_gpio: i2c1-gpio {
286 mux {
287 groups = "gpio0_16_grp", "gpio0_17_grp";
288 function = "gpio0";
289 };
290
291 conf {
292 groups = "gpio0_16_grp", "gpio0_17_grp";
293 slew-rate = <SLEW_RATE_SLOW>;
294 power-source = <IO_STANDARD_LVCMOS18>;
295 drive-strength = <12>;
296 };
297 };
298
299 pinctrl_gem3_default: gem3-default {
300 mux {
301 function = "ethernet3";
302 groups = "ethernet3_0_grp";
303 };
304
305 conf {
306 groups = "ethernet3_0_grp";
307 slew-rate = <SLEW_RATE_SLOW>;
308 power-source = <IO_STANDARD_LVCMOS18>;
309 drive-strength = <12>;
310 };
311
312 conf-rx {
313 pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
314 "MIO75";
315 bias-high-impedance;
316 low-power-disable;
317 };
318
319 conf-tx {
320 pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
321 "MIO69";
322 bias-disable;
323 low-power-enable;
324 };
325
326 mux-mdio {
327 function = "mdio3";
328 groups = "mdio3_0_grp";
329 };
330
331 conf-mdio {
332 groups = "mdio3_0_grp";
333 slew-rate = <SLEW_RATE_SLOW>;
334 power-source = <IO_STANDARD_LVCMOS18>;
335 bias-disable;
336 };
337 };
338
339 pinctrl_sdhci1_default: sdhci1-default {
340 mux {
341 groups = "sdio1_0_grp";
342 function = "sdio1";
343 };
344
345 conf {
346 groups = "sdio1_0_grp";
347 slew-rate = <SLEW_RATE_SLOW>;
348 power-source = <IO_STANDARD_LVCMOS18>;
349 bias-disable;
350 drive-strength = <12>;
351 };
352
353 mux-cd {
354 groups = "sdio1_cd_0_grp";
355 function = "sdio1_cd";
356 };
357
358 conf-cd {
359 groups = "sdio1_cd_0_grp";
360 bias-high-impedance;
361 bias-pull-up;
362 slew-rate = <SLEW_RATE_SLOW>;
363 power-source = <IO_STANDARD_LVCMOS18>;
364 };
365 };
366
367 pinctrl_uart0_default: uart0-default {
368 mux {
369 groups = "uart0_4_grp";
370 function = "uart0";
371 };
372
373 conf {
374 groups = "uart0_4_grp";
375 slew-rate = <SLEW_RATE_SLOW>;
376 power-source = <IO_STANDARD_LVCMOS18>;
377 drive-strength = <12>;
378 };
379
380 conf-rx {
381 pins = "MIO18";
382 bias-high-impedance;
383 };
384
385 conf-tx {
386 pins = "MIO19";
387 bias-disable;
388 };
389 };
390
391 pinctrl_uart1_default: uart1-default {
392 mux {
393 groups = "uart1_5_grp";
394 function = "uart1";
395 };
396
397 conf {
398 groups = "uart1_5_grp";
399 slew-rate = <SLEW_RATE_SLOW>;
400 power-source = <IO_STANDARD_LVCMOS18>;
401 drive-strength = <12>;
402 };
403
404 conf-rx {
405 pins = "MIO21";
406 bias-high-impedance;
407 };
408
409 conf-tx {
410 pins = "MIO20";
411 bias-disable;
412 };
413 };
414
415 pinctrl_usb0_default: usb0-default {
416 mux {
417 groups = "usb0_0_grp";
418 function = "usb0";
419 };
420
421 conf {
422 groups = "usb0_0_grp";
Michal Simekf7b922a2021-05-10 13:14:02 +0200423 power-source = <IO_STANDARD_LVCMOS18>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200424 };
425
426 conf-rx {
427 pins = "MIO52", "MIO53", "MIO55";
428 bias-high-impedance;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200429 drive-strength = <12>;
430 slew-rate = <SLEW_RATE_FAST>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200431 };
432
433 conf-tx {
434 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
435 "MIO60", "MIO61", "MIO62", "MIO63";
436 bias-disable;
Ashok Reddy Soma4d0ecf62022-06-15 12:16:13 +0200437 drive-strength = <4>;
438 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200439 };
440 };
441};
442
Michal Simekae7230c2021-06-03 15:18:04 +0200443&psgtr {
444 status = "okay";
445 /* nc, sata, usb3, dp */
446 clocks = <&clock_8t49n287_5>, <&clock_8t49n287_2>, <&clock_8t49n287_3>;
447 clock-names = "ref1", "ref2", "ref3";
448};
449
Michal Simeke116c542018-03-28 15:36:36 +0200450&qspi {
451 status = "okay";
452 flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000453 compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
Michal Simeke116c542018-03-28 15:36:36 +0200454 #address-cells = <1>;
455 #size-cells = <1>;
456 reg = <0x0>;
Amit Kumar Mahapatraa02408b2022-05-10 16:33:01 +0200457 spi-tx-bus-width = <4>;
Michal Simeke116c542018-03-28 15:36:36 +0200458 spi-rx-bus-width = <4>;
459 spi-max-frequency = <108000000>; /* Based on DC1 spec */
Michal Simek70fafdf2020-02-14 14:19:56 +0100460 partition@0 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200461 label = "qspi-fsbl-uboot";
462 reg = <0x0 0x100000>;
463 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100464 partition@100000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200465 label = "qspi-linux";
466 reg = <0x100000 0x500000>;
467 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100468 partition@600000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200469 label = "qspi-device-tree";
470 reg = <0x600000 0x20000>;
471 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100472 partition@620000 { /* for testing purpose */
Michal Simeke116c542018-03-28 15:36:36 +0200473 label = "qspi-rootfs";
474 reg = <0x620000 0x5E0000>;
475 };
476 };
477};
478
479&rtc {
480 status = "okay";
Michal Simek958c0e92020-11-26 14:25:02 +0100481};
482
Michal Simeke116c542018-03-28 15:36:36 +0200483&sata {
484 status = "okay";
485 /* SATA OOB timing settings */
486 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
487 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
488 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
489 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
490 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
491 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
492 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
493 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
494 phy-names = "sata-phy";
Michal Simek958c0e92020-11-26 14:25:02 +0100495 phys = <&psgtr 3 PHY_TYPE_SATA 1 1>;
Michal Simeke116c542018-03-28 15:36:36 +0200496};
497
498/* SD1 with level shifter */
499&sdhci1 {
500 status = "okay";
501 no-1-8-v;
Michal Simekf7b922a2021-05-10 13:14:02 +0200502 pinctrl-names = "default";
503 pinctrl-0 = <&pinctrl_sdhci1_default>;
Michal Simek3b662642020-07-22 17:42:43 +0200504 xlnx,mio-bank = <1>;
Michal Simeke116c542018-03-28 15:36:36 +0200505 disable-wp;
506};
507
Michal Simeke116c542018-03-28 15:36:36 +0200508&uart0 {
509 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200510 pinctrl-names = "default";
511 pinctrl-0 = <&pinctrl_uart0_default>;
Michal Simeke116c542018-03-28 15:36:36 +0200512};
513
514&uart1 {
515 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200516 pinctrl-names = "default";
517 pinctrl-0 = <&pinctrl_uart1_default>;
Michal Simeke116c542018-03-28 15:36:36 +0200518};
519
520/* ULPI SMSC USB3320 */
521&usb0 {
522 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200523 pinctrl-names = "default";
524 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600525 phy-names = "usb3-phy";
526 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
Michal Simeke116c542018-03-28 15:36:36 +0200527};
528
529&dwc3_0 {
530 status = "okay";
531 dr_mode = "host";
532 snps,usb3_lpm_capable;
Michal Simeke116c542018-03-28 15:36:36 +0200533 maximum-speed = "super-speed";
534};
535
536&watchdog0 {
537 status = "okay";
538};
539
540&xilinx_ams {
541 status = "okay";
542};
543
544&ams_ps {
545 status = "okay";
546};
547
548&ams_pl {
549 status = "okay";
Michal Simek958c0e92020-11-26 14:25:02 +0100550};
551
552&zynqmp_dpdma {
553 status = "okay";
554};
555
556&zynqmp_dpsub {
557 status = "okay";
558 phy-names = "dp-phy0", "dp-phy1";
559 phys = <&psgtr 1 PHY_TYPE_DP 0 3>,
560 <&psgtr 0 PHY_TYPE_DP 1 3>;
Michal Simeke116c542018-03-28 15:36:36 +0200561};