blob: 62fd2b47156d21c95a5ac1471aaf4b97af5a07fa [file] [log] [blame]
Michal Simekf190eaf2018-03-28 15:55:27 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * dts file for Xilinx ZynqMP ZCU111
4 *
5 * (C) Copyright 2017 - 2018, Xilinx, Inc.
6 *
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/input/input.h>
15#include <dt-bindings/gpio/gpio.h>
16#include <dt-bindings/phy/phy.h>
17
18/ {
19 model = "ZynqMP ZCU111 RevA";
20 compatible = "xlnx,zynqmp-zcu111-revA", "xlnx,zynqmp-zcu111", "xlnx,zynqmp";
21
22 aliases {
23 ethernet0 = &gem3;
24 gpio0 = &gpio;
25 i2c0 = &i2c0;
26 i2c1 = &i2c1;
27 mmc0 = &sdhci1;
28 rtc0 = &rtc;
29 serial0 = &uart0;
30 serial1 = &dcc;
31 spi0 = &qspi;
32 usb0 = &usb0;
33 };
34
35 chosen {
36 bootargs = "earlycon";
37 stdout-path = "serial0:115200n8";
Michal Simek8bdad432019-01-18 09:10:39 +010038 xlnx,eeprom = &eeprom;
Michal Simekf190eaf2018-03-28 15:55:27 +020039 };
40
41 memory@0 {
42 device_type = "memory";
43 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
44 /* Another 4GB connected to PL */
45 };
46
47 gpio-keys {
48 compatible = "gpio-keys";
Michal Simekf190eaf2018-03-28 15:55:27 +020049 autorepeat;
50 sw19 {
51 label = "sw19";
52 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
53 linux,code = <KEY_DOWN>;
54 gpio-key,wakeup;
55 autorepeat;
56 };
57 };
58
59 leds {
60 compatible = "gpio-leds";
61 heartbeat_led {
62 label = "heartbeat";
63 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
64 linux,default-trigger = "heartbeat";
65 };
66 };
Michal Simek65c4c372019-08-26 09:45:03 +020067
68 ina226-u67 {
69 compatible = "iio-hwmon";
70 io-channels = <&u67 0>, <&u67 1>, <&u67 2>, <&u67 3>;
71 };
72 ina226-u59 {
73 compatible = "iio-hwmon";
74 io-channels = <&u59 0>, <&u59 1>, <&u59 2>, <&u59 3>;
75 };
76 ina226-u61 {
77 compatible = "iio-hwmon";
78 io-channels = <&u61 0>, <&u61 1>, <&u61 2>, <&u61 3>;
79 };
80 ina226-u60 {
81 compatible = "iio-hwmon";
82 io-channels = <&u60 0>, <&u60 1>, <&u60 2>, <&u60 3>;
83 };
84 ina226-u64 {
85 compatible = "iio-hwmon";
86 io-channels = <&u64 0>, <&u64 1>, <&u64 2>, <&u64 3>;
87 };
88 ina226-u69 {
89 compatible = "iio-hwmon";
90 io-channels = <&u69 0>, <&u69 1>, <&u69 2>, <&u69 3>;
91 };
92 ina226-u66 {
93 compatible = "iio-hwmon";
94 io-channels = <&u66 0>, <&u66 1>, <&u66 2>, <&u66 3>;
95 };
96 ina226-u65 {
97 compatible = "iio-hwmon";
98 io-channels = <&u65 0>, <&u65 1>, <&u65 2>, <&u65 3>;
99 };
100 ina226-u63 {
101 compatible = "iio-hwmon";
102 io-channels = <&u63 0>, <&u63 1>, <&u63 2>, <&u63 3>;
103 };
104 ina226-u3 {
105 compatible = "iio-hwmon";
106 io-channels = <&u3 0>, <&u3 1>, <&u3 2>, <&u3 3>;
107 };
108 ina226-u71 {
109 compatible = "iio-hwmon";
110 io-channels = <&u71 0>, <&u71 1>, <&u71 2>, <&u71 3>;
111 };
112 ina226-u77 {
113 compatible = "iio-hwmon";
114 io-channels = <&u77 0>, <&u77 1>, <&u77 2>, <&u77 3>;
115 };
116 ina226-u73 {
117 compatible = "iio-hwmon";
118 io-channels = <&u73 0>, <&u73 1>, <&u73 2>, <&u73 3>;
119 };
120 ina226-u79 {
121 compatible = "iio-hwmon";
122 io-channels = <&u79 0>, <&u79 1>, <&u79 2>, <&u79 3>;
123 };
Michal Simekf190eaf2018-03-28 15:55:27 +0200124};
125
126&dcc {
127 status = "okay";
128};
129
130&fpd_dma_chan1 {
131 status = "okay";
132};
133
134&fpd_dma_chan2 {
135 status = "okay";
136};
137
138&fpd_dma_chan3 {
139 status = "okay";
140};
141
142&fpd_dma_chan4 {
143 status = "okay";
144};
145
146&fpd_dma_chan5 {
147 status = "okay";
148};
149
150&fpd_dma_chan6 {
151 status = "okay";
152};
153
154&fpd_dma_chan7 {
155 status = "okay";
156};
157
158&fpd_dma_chan8 {
159 status = "okay";
160};
161
162&gem3 {
163 status = "okay";
164 phy-handle = <&phy0>;
165 phy-mode = "rgmii-id";
Michal Simek2975a422019-08-08 12:44:22 +0200166 phy0: ethernet-phy@c {
Michal Simekf190eaf2018-03-28 15:55:27 +0200167 reg = <0xc>;
168 ti,rx-internal-delay = <0x8>;
169 ti,tx-internal-delay = <0xa>;
170 ti,fifo-depth = <0x1>;
171 };
172};
173
174&gpio {
175 status = "okay";
176};
177
178&gpu {
179 status = "okay";
180};
181
182&i2c0 {
183 status = "okay";
184 clock-frequency = <400000>;
185
186 tca6416_u22: gpio@20 {
187 compatible = "ti,tca6416";
188 reg = <0x20>;
189 gpio-controller; /* interrupt not connected */
190 #gpio-cells = <2>;
191 /*
192 * IRQ not connected
193 * Lines:
194 * 0 - MAX6643_OT_B
195 * 1 - MAX6643_FANFAIL_B
196 * 2 - MIO26_PMU_INPUT_LS
197 * 4 - SFP_SI5382_INT_ALM
198 * 5 - IIC_MUX_RESET_B
199 * 6 - GEM3_EXP_RESET_B
200 * 10 - FMCP_HSPC_PRSNT_M2C_B
201 * 11 - CLK_SPI_MUX_SEL0
202 * 12 - CLK_SPI_MUX_SEL1
203 * 16 - IRPS5401_ALERT_B
204 * 17 - INA226_PMBUS_ALERT
205 * 3, 7, 13-15 - not connected
206 */
207 };
208
209 i2c-mux@75 { /* u23 */
210 compatible = "nxp,pca9544";
211 #address-cells = <1>;
212 #size-cells = <0>;
213 reg = <0x75>;
214 i2c@0 {
215 #address-cells = <1>;
216 #size-cells = <0>;
217 reg = <0>;
218 /* PS_PMBUS */
219 /* PMBUS_ALERT done via pca9544 */
Michal Simek65c4c372019-08-26 09:45:03 +0200220 u67: ina226@40 { /* u67 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200221 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200222 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200223 label = "ina226-u67";
Michal Simekf190eaf2018-03-28 15:55:27 +0200224 reg = <0x40>;
225 shunt-resistor = <2000>;
226 };
Michal Simek65c4c372019-08-26 09:45:03 +0200227 u59: ina226@41 { /* u59 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200228 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200229 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200230 label = "ina226-u59";
Michal Simekf190eaf2018-03-28 15:55:27 +0200231 reg = <0x41>;
232 shunt-resistor = <5000>;
233 };
Michal Simek65c4c372019-08-26 09:45:03 +0200234 u61: ina226@42 { /* u61 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200235 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200236 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200237 label = "ina226-u61";
Michal Simekf190eaf2018-03-28 15:55:27 +0200238 reg = <0x42>;
239 shunt-resistor = <5000>;
240 };
Michal Simek65c4c372019-08-26 09:45:03 +0200241 u60: ina226@43 { /* u60 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200242 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200243 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200244 label = "ina226-u60";
Michal Simekf190eaf2018-03-28 15:55:27 +0200245 reg = <0x43>;
246 shunt-resistor = <5000>;
247 };
Michal Simek65c4c372019-08-26 09:45:03 +0200248 u64: ina226@45 { /* u64 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200249 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200250 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200251 label = "ina226-u64";
Michal Simekf190eaf2018-03-28 15:55:27 +0200252 reg = <0x45>;
253 shunt-resistor = <5000>;
254 };
Michal Simek65c4c372019-08-26 09:45:03 +0200255 u69: ina226@46 { /* u69 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200256 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200257 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200258 label = "ina226-u69";
Michal Simekf190eaf2018-03-28 15:55:27 +0200259 reg = <0x46>;
260 shunt-resistor = <2000>;
261 };
Michal Simek65c4c372019-08-26 09:45:03 +0200262 u66: ina226@47 { /* u66 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200263 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200264 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200265 label = "ina226-u66";
Michal Simekf190eaf2018-03-28 15:55:27 +0200266 reg = <0x47>;
267 shunt-resistor = <5000>;
268 };
Michal Simek65c4c372019-08-26 09:45:03 +0200269 u65: ina226@48 { /* u65 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200270 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200271 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200272 label = "ina226-u65";
Michal Simekf190eaf2018-03-28 15:55:27 +0200273 reg = <0x48>;
274 shunt-resistor = <5000>;
275 };
Michal Simek65c4c372019-08-26 09:45:03 +0200276 u63: ina226@49 { /* u63 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200277 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200278 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200279 label = "ina226-u63";
Michal Simekf190eaf2018-03-28 15:55:27 +0200280 reg = <0x49>;
281 shunt-resistor = <5000>;
282 };
Michal Simek65c4c372019-08-26 09:45:03 +0200283 u3: ina226@4a { /* u3 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200284 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200285 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200286 label = "ina226-u3";
Michal Simekf190eaf2018-03-28 15:55:27 +0200287 reg = <0x4a>;
288 shunt-resistor = <5000>;
289 };
Michal Simek65c4c372019-08-26 09:45:03 +0200290 u71: ina226@4b { /* u71 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200291 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200292 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200293 label = "ina226-u71";
Michal Simekf190eaf2018-03-28 15:55:27 +0200294 reg = <0x4b>;
295 shunt-resistor = <5000>;
296 };
Michal Simek65c4c372019-08-26 09:45:03 +0200297 u77: ina226@4c { /* u77 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200298 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200299 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200300 label = "ina226-u77";
Michal Simekf190eaf2018-03-28 15:55:27 +0200301 reg = <0x4c>;
302 shunt-resistor = <5000>;
303 };
Michal Simek65c4c372019-08-26 09:45:03 +0200304 u73: ina226@4d { /* u73 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200305 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200306 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200307 label = "ina226-u73";
Michal Simekf190eaf2018-03-28 15:55:27 +0200308 reg = <0x4d>;
309 shunt-resistor = <5000>;
310 };
Michal Simek65c4c372019-08-26 09:45:03 +0200311 u79: ina226@4e { /* u79 */
Michal Simekf190eaf2018-03-28 15:55:27 +0200312 compatible = "ti,ina226";
Michal Simek65c4c372019-08-26 09:45:03 +0200313 #io-channel-cells = <1>;
Michal Simekb02ea932019-08-26 10:00:26 +0200314 label = "ina226-u79";
Michal Simekf190eaf2018-03-28 15:55:27 +0200315 reg = <0x4e>;
316 shunt-resistor = <5000>;
317 };
318 };
319 i2c@1 {
320 #address-cells = <1>;
321 #size-cells = <0>;
322 reg = <1>;
323 /* NC */
324 };
325 i2c@2 {
326 #address-cells = <1>;
327 #size-cells = <0>;
328 reg = <2>;
329 irps5401_43: irps54012@43 { /* IRPS5401 - u53 check these */
330 #clock-cells = <0>;
331 compatible = "infineon,irps5401";
332 reg = <0x43>;
333 };
334 irps5401_44: irps54012@44 { /* IRPS5401 - u55 */
335 #clock-cells = <0>;
336 compatible = "infineon,irps5401";
337 reg = <0x44>;
338 };
339 irps5401_45: irps54012@45 { /* IRPS5401 - u57 */
340 #clock-cells = <0>;
341 compatible = "infineon,irps5401";
342 reg = <0x45>;
343 };
344 /* u68 IR38064 +0 */
345 /* u70 IR38060 +1 */
346 /* u74 IR38060 +2 */
347 /* u75 IR38060 +6 */
348 /* J19 header too */
349
350 };
351 i2c@3 {
352 #address-cells = <1>;
353 #size-cells = <0>;
354 reg = <3>;
355 /* SYSMON */
356 };
357 };
358};
359
360&i2c1 {
361 status = "okay";
362 clock-frequency = <400000>;
363
364 i2c-mux@74 { /* u26 */
365 compatible = "nxp,pca9548";
366 #address-cells = <1>;
367 #size-cells = <0>;
368 reg = <0x74>;
369 i2c@0 {
370 #address-cells = <1>;
371 #size-cells = <0>;
372 reg = <0>;
373 /*
374 * IIC_EEPROM 1kB memory which uses 256B blocks
375 * where every block has different address.
376 * 0 - 256B address 0x54
377 * 256B - 512B address 0x55
378 * 512B - 768B address 0x56
379 * 768B - 1024B address 0x57
380 */
381 eeprom: eeprom@54 { /* u88 */
382 compatible = "atmel,24c08";
383 reg = <0x54>;
384 };
385 };
386 i2c@1 {
387 #address-cells = <1>;
388 #size-cells = <0>;
389 reg = <1>;
390 si5341: clock-generator@36 { /* SI5341 - u46 */
391 compatible = "si5341";
392 reg = <0x36>;
393 };
394
395 };
396 i2c@2 {
397 #address-cells = <1>;
398 #size-cells = <0>;
399 reg = <2>;
400 si570_1: clock-generator@5d { /* USER SI570 - u47 */
401 #clock-cells = <0>;
402 compatible = "silabs,si570";
403 reg = <0x5d>;
404 temperature-stability = <50>;
405 factory-fout = <300000000>;
406 clock-frequency = <300000000>;
Michal Simek6bd13ee2018-07-18 12:10:02 +0200407 clock-output-names = "si570_user";
Michal Simekf190eaf2018-03-28 15:55:27 +0200408 };
409 };
410 i2c@3 {
411 #address-cells = <1>;
412 #size-cells = <0>;
413 reg = <3>;
414 si570_2: clock-generator@5d { /* USER MGT SI570 - u49 */
415 #clock-cells = <0>;
416 compatible = "silabs,si570";
417 reg = <0x5d>;
418 temperature-stability = <50>;
419 factory-fout = <156250000>;
420 clock-frequency = <148500000>;
Michal Simek6bd13ee2018-07-18 12:10:02 +0200421 clock-output-names = "si570_mgt";
Michal Simekf190eaf2018-03-28 15:55:27 +0200422 };
423 };
424 i2c@4 {
425 #address-cells = <1>;
426 #size-cells = <0>;
427 reg = <4>;
428 si5328: clock-generator@69 { /* SI5328 - u48 */
429 compatible = "silabs,si5328";
430 reg = <0x69>;
431 };
432 };
433 i2c@5 {
434 #address-cells = <1>;
435 #size-cells = <0>;
436 reg = <5>;
437 sc18is603@2f { /* sc18is602 - u93 */
438 compatible = "nxp,sc18is603";
439 reg = <0x2f>;
440 /* 4 gpios for CS not handled by driver */
441 /*
442 * USB2ANY cable or
443 * LMK04208 - u90 or
444 * LMX2594 - u102 or
445 * LMX2594 - u103 or
446 * LMX2594 - u104
447 */
448 };
449 };
450 i2c@6 {
451 #address-cells = <1>;
452 #size-cells = <0>;
453 reg = <6>;
454 /* FMC connector */
455 };
456 /* 7 NC */
457 };
458
459 i2c-mux@75 {
460 compatible = "nxp,pca9548"; /* u27 */
461 #address-cells = <1>;
462 #size-cells = <0>;
463 reg = <0x75>;
464
465 i2c@0 {
466 #address-cells = <1>;
467 #size-cells = <0>;
468 reg = <0>;
469 /* FMCP_HSPC_IIC */
470 };
471 i2c@1 {
472 #address-cells = <1>;
473 #size-cells = <0>;
474 reg = <1>;
475 /* NC */
476 };
477 i2c@2 {
478 #address-cells = <1>;
479 #size-cells = <0>;
480 reg = <2>;
481 /* SYSMON */
482 };
483 i2c@3 {
484 #address-cells = <1>;
485 #size-cells = <0>;
486 reg = <3>;
487 /* DDR4 SODIMM */
Michal Simekf190eaf2018-03-28 15:55:27 +0200488 };
489 i2c@4 {
490 #address-cells = <1>;
491 #size-cells = <0>;
492 reg = <4>;
493 /* SFP3 */
494 };
495 i2c@5 {
496 #address-cells = <1>;
497 #size-cells = <0>;
498 reg = <5>;
499 /* SFP2 */
500 };
501 i2c@6 {
502 #address-cells = <1>;
503 #size-cells = <0>;
504 reg = <6>;
505 /* SFP1 */
506 };
507 i2c@7 {
508 #address-cells = <1>;
509 #size-cells = <0>;
510 reg = <7>;
511 /* SFP0 */
512 };
513 };
514};
515
516&qspi {
517 status = "okay";
518 is-dual = <1>;
519 flash@0 {
Neil Armstrongffd4c7c2019-02-10 10:16:20 +0000520 compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
Michal Simekf190eaf2018-03-28 15:55:27 +0200521 #address-cells = <1>;
522 #size-cells = <1>;
523 reg = <0x0>;
524 spi-tx-bus-width = <1>;
525 spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
526 spi-max-frequency = <108000000>; /* Based on DC1 spec */
527 partition@qspi-fsbl-uboot { /* for testing purpose */
528 label = "qspi-fsbl-uboot";
529 reg = <0x0 0x100000>;
530 };
531 partition@qspi-linux { /* for testing purpose */
532 label = "qspi-linux";
533 reg = <0x100000 0x500000>;
534 };
535 partition@qspi-device-tree { /* for testing purpose */
536 label = "qspi-device-tree";
537 reg = <0x600000 0x20000>;
538 };
539 partition@qspi-rootfs { /* for testing purpose */
540 label = "qspi-rootfs";
541 reg = <0x620000 0x5E0000>;
542 };
543 };
544};
545
546&rtc {
547 status = "okay";
548};
549
550&sata {
551 status = "okay";
552 /* SATA OOB timing settings */
553 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
554 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
555 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
556 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
557 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
558 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
559 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
560 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
561 phy-names = "sata-phy";
562 phys = <&lane3 PHY_TYPE_SATA 1 3 125000000>;
563};
564
565/* SD1 with level shifter */
566&sdhci1 {
567 status = "okay";
568 no-1-8-v;
Michal Simekf0d56142018-04-04 14:08:24 +0200569 disable-wp;
Michal Simekf190eaf2018-03-28 15:55:27 +0200570 xlnx,mio_bank = <1>;
571};
572
573&serdes {
574 status = "okay";
575};
576
577&uart0 {
578 status = "okay";
579};
580
581/* ULPI SMSC USB3320 */
582&usb0 {
583 status = "okay";
584};
585
586&dwc3_0 {
587 status = "okay";
588 dr_mode = "host";
589 snps,usb3_lpm_capable;
590 phy-names = "usb3-phy";
591 phys = <&lane2 PHY_TYPE_USB3 0 2 26000000>;
592};