1b28d331ff5eb065cae32306ac5dfbd58372ad5d
[platform/kernel/u-boot.git] / arch / arm / dts / zynqmp-zcu102-revA.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * dts file for Xilinx ZynqMP ZCU102 RevA
4  *
5  * (C) Copyright 2015 - 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 ZCU102 RevA";
20         compatible = "xlnx,zynqmp-zcu102-revA", "xlnx,zynqmp-zcu102", "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 = &uart1;
31                 serial2 = &dcc;
32                 spi0 = &qspi;
33                 usb0 = &usb0;
34         };
35
36         chosen {
37                 bootargs = "earlycon";
38                 stdout-path = "serial0:115200n8";
39                 xlnx,eeprom = &eeprom;
40         };
41
42         memory@0 {
43                 device_type = "memory";
44                 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
45         };
46
47         gpio-keys {
48                 compatible = "gpio-keys";
49                 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         };
67 };
68
69 &can1 {
70         status = "okay";
71 };
72
73 &dcc {
74         status = "okay";
75 };
76
77 &fpd_dma_chan1 {
78         status = "okay";
79 };
80
81 &fpd_dma_chan2 {
82         status = "okay";
83 };
84
85 &fpd_dma_chan3 {
86         status = "okay";
87 };
88
89 &fpd_dma_chan4 {
90         status = "okay";
91 };
92
93 &fpd_dma_chan5 {
94         status = "okay";
95 };
96
97 &fpd_dma_chan6 {
98         status = "okay";
99 };
100
101 &fpd_dma_chan7 {
102         status = "okay";
103 };
104
105 &fpd_dma_chan8 {
106         status = "okay";
107 };
108
109 &gem3 {
110         status = "okay";
111         phy-handle = <&phy0>;
112         phy-mode = "rgmii-id";
113         phy0: phy@21 {
114                 reg = <21>;
115                 ti,rx-internal-delay = <0x8>;
116                 ti,tx-internal-delay = <0xa>;
117                 ti,fifo-depth = <0x1>;
118         };
119 };
120
121 &gpio {
122         status = "okay";
123 };
124
125 &gpu {
126         status = "okay";
127 };
128
129 &i2c0 {
130         status = "okay";
131         clock-frequency = <400000>;
132
133         tca6416_u97: gpio@20 {
134                 compatible = "ti,tca6416";
135                 reg = <0x20>;
136                 gpio-controller;
137                 #gpio-cells = <2>;
138                 /*
139                  * IRQ not connected
140                  * Lines:
141                  * 0 - PS_GTR_LAN_SEL0
142                  * 1 - PS_GTR_LAN_SEL1
143                  * 2 - PS_GTR_LAN_SEL2
144                  * 3 - PS_GTR_LAN_SEL3
145                  * 4 - PCI_CLK_DIR_SEL
146                  * 5 - IIC_MUX_RESET_B
147                  * 6 - GEM3_EXP_RESET_B
148                  * 7, 10 - 17 - not connected
149                  */
150
151                 gtr_sel0 {
152                         gpio-hog;
153                         gpios = <0 0>;
154                         output-low; /* PCIE = 0, DP = 1 */
155                         line-name = "sel0";
156                 };
157                 gtr_sel1 {
158                         gpio-hog;
159                         gpios = <1 0>;
160                         output-high; /* PCIE = 0, DP = 1 */
161                         line-name = "sel1";
162                 };
163                 gtr_sel2 {
164                         gpio-hog;
165                         gpios = <2 0>;
166                         output-high; /* PCIE = 0, USB0 = 1 */
167                         line-name = "sel2";
168                 };
169                 gtr_sel3 {
170                         gpio-hog;
171                         gpios = <3 0>;
172                         output-high; /* PCIE = 0, SATA = 1 */
173                         line-name = "sel3";
174                 };
175         };
176
177         tca6416_u61: gpio@21 {
178                 compatible = "ti,tca6416";
179                 reg = <0x21>;
180                 gpio-controller;
181                 #gpio-cells = <2>;
182                 /*
183                  * IRQ not connected
184                  * Lines:
185                  * 0 - VCCPSPLL_EN
186                  * 1 - MGTRAVCC_EN
187                  * 2 - MGTRAVTT_EN
188                  * 3 - VCCPSDDRPLL_EN
189                  * 4 - MIO26_PMU_INPUT_LS
190                  * 5 - PL_PMBUS_ALERT
191                  * 6 - PS_PMBUS_ALERT
192                  * 7 - MAXIM_PMBUS_ALERT
193                  * 10 - PL_DDR4_VTERM_EN
194                  * 11 - PL_DDR4_VPP_2V5_EN
195                  * 12 - PS_DIMM_VDDQ_TO_PSVCCO_ON
196                  * 13 - PS_DIMM_SUSPEND_EN
197                  * 14 - PS_DDR4_VTERM_EN
198                  * 15 - PS_DDR4_VPP_2V5_EN
199                  * 16 - 17 - not connected
200                  */
201         };
202
203         i2c-mux@75 { /* u60 */
204                 compatible = "nxp,pca9544";
205                 #address-cells = <1>;
206                 #size-cells = <0>;
207                 reg = <0x75>;
208                 i2c@0 {
209                         #address-cells = <1>;
210                         #size-cells = <0>;
211                         reg = <0>;
212                         /* PS_PMBUS */
213                         ina226@40 { /* u76 */
214                                 compatible = "ti,ina226";
215                                 reg = <0x40>;
216                                 shunt-resistor = <5000>;
217                         };
218                         ina226@41 { /* u77 */
219                                 compatible = "ti,ina226";
220                                 reg = <0x41>;
221                                 shunt-resistor = <5000>;
222                         };
223                         ina226@42 { /* u78 */
224                                 compatible = "ti,ina226";
225                                 reg = <0x42>;
226                                 shunt-resistor = <5000>;
227                         };
228                         ina226@43 { /* u87 */
229                                 compatible = "ti,ina226";
230                                 reg = <0x43>;
231                                 shunt-resistor = <5000>;
232                         };
233                         ina226@44 { /* u85 */
234                                 compatible = "ti,ina226";
235                                 reg = <0x44>;
236                                 shunt-resistor = <5000>;
237                         };
238                         ina226@45 { /* u86 */
239                                 compatible = "ti,ina226";
240                                 reg = <0x45>;
241                                 shunt-resistor = <5000>;
242                         };
243                         ina226@46 { /* u93 */
244                                 compatible = "ti,ina226";
245                                 reg = <0x46>;
246                                 shunt-resistor = <5000>;
247                         };
248                         ina226@47 { /* u88 */
249                                 compatible = "ti,ina226";
250                                 reg = <0x47>;
251                                 shunt-resistor = <5000>;
252                         };
253                         ina226@4a { /* u15 */
254                                 compatible = "ti,ina226";
255                                 reg = <0x4a>;
256                                 shunt-resistor = <5000>;
257                         };
258                         ina226@4b { /* u92 */
259                                 compatible = "ti,ina226";
260                                 reg = <0x4b>;
261                                 shunt-resistor = <5000>;
262                         };
263                 };
264                 i2c@1 {
265                         #address-cells = <1>;
266                         #size-cells = <0>;
267                         reg = <1>;
268                         /* PL_PMBUS */
269                         ina226@40 { /* u79 */
270                                 compatible = "ti,ina226";
271                                 reg = <0x40>;
272                                 shunt-resistor = <2000>;
273                         };
274                         ina226@41 { /* u81 */
275                                 compatible = "ti,ina226";
276                                 reg = <0x41>;
277                                 shunt-resistor = <5000>;
278                         };
279                         ina226@42 { /* u80 */
280                                 compatible = "ti,ina226";
281                                 reg = <0x42>;
282                                 shunt-resistor = <5000>;
283                         };
284                         ina226@43 { /* u84 */
285                                 compatible = "ti,ina226";
286                                 reg = <0x43>;
287                                 shunt-resistor = <5000>;
288                         };
289                         ina226@44 { /* u16 */
290                                 compatible = "ti,ina226";
291                                 reg = <0x44>;
292                                 shunt-resistor = <5000>;
293                         };
294                         ina226@45 { /* u65 */
295                                 compatible = "ti,ina226";
296                                 reg = <0x45>;
297                                 shunt-resistor = <5000>;
298                         };
299                         ina226@46 { /* u74 */
300                                 compatible = "ti,ina226";
301                                 reg = <0x46>;
302                                 shunt-resistor = <5000>;
303                         };
304                         ina226@47 { /* u75 */
305                                 compatible = "ti,ina226";
306                                 reg = <0x47>;
307                                 shunt-resistor = <5000>;
308                         };
309                 };
310                 i2c@2 {
311                         #address-cells = <1>;
312                         #size-cells = <0>;
313                         reg = <2>;
314                         /* MAXIM_PMBUS - 00 */
315                         max15301@a { /* u46 */
316                                 compatible = "maxim,max15301";
317                                 reg = <0xa>;
318                         };
319                         max15303@b { /* u4 */
320                                 compatible = "maxim,max15303";
321                                 reg = <0xb>;
322                         };
323                         max15303@10 { /* u13 */
324                                 compatible = "maxim,max15303";
325                                 reg = <0x10>;
326                         };
327                         max15301@13 { /* u47 */
328                                 compatible = "maxim,max15301";
329                                 reg = <0x13>;
330                         };
331                         max15303@14 { /* u7 */
332                                 compatible = "maxim,max15303";
333                                 reg = <0x14>;
334                         };
335                         max15303@15 { /* u6 */
336                                 compatible = "maxim,max15303";
337                                 reg = <0x15>;
338                         };
339                         max15303@16 { /* u10 */
340                                 compatible = "maxim,max15303";
341                                 reg = <0x16>;
342                         };
343                         max15303@17 { /* u9 */
344                                 compatible = "maxim,max15303";
345                                 reg = <0x17>;
346                         };
347                         max15301@18 { /* u63 */
348                                 compatible = "maxim,max15301";
349                                 reg = <0x18>;
350                         };
351                         max15303@1a { /* u49 */
352                                 compatible = "maxim,max15303";
353                                 reg = <0x1a>;
354                         };
355                         max15303@1d { /* u18 */
356                                 compatible = "maxim,max15303";
357                                 reg = <0x1d>;
358                         };
359                         max15303@20 { /* u8 */
360                                 compatible = "maxim,max15303";
361                                 status = "disabled"; /* unreachable */
362                                 reg = <0x20>;
363                         };
364
365                         max20751@72 { /* u95 */
366                                 compatible = "maxim,max20751";
367                                 reg = <0x72>;
368                         };
369                         max20751@73 { /* u96 */
370                                 compatible = "maxim,max20751";
371                                 reg = <0x73>;
372                         };
373                 };
374                 /* Bus 3 is not connected */
375         };
376 };
377
378 &i2c1 {
379         status = "okay";
380         clock-frequency = <400000>;
381
382         /* PL i2c via PCA9306 - u45 */
383         i2c-mux@74 { /* u34 */
384                 compatible = "nxp,pca9548";
385                 #address-cells = <1>;
386                 #size-cells = <0>;
387                 reg = <0x74>;
388                 i2c@0 {
389                         #address-cells = <1>;
390                         #size-cells = <0>;
391                         reg = <0>;
392                         /*
393                          * IIC_EEPROM 1kB memory which uses 256B blocks
394                          * where every block has different address.
395                          *    0 - 256B address 0x54
396                          * 256B - 512B address 0x55
397                          * 512B - 768B address 0x56
398                          * 768B - 1024B address 0x57
399                          */
400                         eeprom: eeprom@54 { /* u23 */
401                                 compatible = "atmel,24c08";
402                                 reg = <0x54>;
403                         };
404                 };
405                 i2c@1 {
406                         #address-cells = <1>;
407                         #size-cells = <0>;
408                         reg = <1>;
409                         si5341: clock-generator@36 { /* SI5341 - u69 */
410                                 compatible = "silabs,si5341";
411                                 reg = <0x36>;
412                         };
413
414                 };
415                 i2c@2 {
416                         #address-cells = <1>;
417                         #size-cells = <0>;
418                         reg = <2>;
419                         si570_1: clock-generator@5d { /* USER SI570 - u42 */
420                                 #clock-cells = <0>;
421                                 compatible = "silabs,si570";
422                                 reg = <0x5d>;
423                                 temperature-stability = <50>;
424                                 factory-fout = <300000000>;
425                                 clock-frequency = <300000000>;
426                                 clock-output-names = "si570_user";
427                         };
428                 };
429                 i2c@3 {
430                         #address-cells = <1>;
431                         #size-cells = <0>;
432                         reg = <3>;
433                         si570_2: clock-generator@5d { /* USER MGT SI570 - u56 */
434                                 #clock-cells = <0>;
435                                 compatible = "silabs,si570";
436                                 reg = <0x5d>;
437                                 temperature-stability = <50>; /* copy from zc702 */
438                                 factory-fout = <156250000>;
439                                 clock-frequency = <148500000>;
440                                 clock-output-names = "si570_mgt";
441                         };
442                 };
443                 i2c@4 {
444                         #address-cells = <1>;
445                         #size-cells = <0>;
446                         reg = <4>;
447                         si5328: clock-generator@69 {/* SI5328 - u20 */
448                                 compatible = "silabs,si5328";
449                                 reg = <0x69>;
450                                 /*
451                                  * Chip has interrupt present connected to PL
452                                  * interrupt-parent = <&>;
453                                  * interrupts = <>;
454                                  */
455                         };
456                 };
457                 /* 5 - 7 unconnected */
458         };
459
460         i2c-mux@75 {
461                 compatible = "nxp,pca9548"; /* u135 */
462                 #address-cells = <1>;
463                 #size-cells = <0>;
464                 reg = <0x75>;
465
466                 i2c@0 {
467                         #address-cells = <1>;
468                         #size-cells = <0>;
469                         reg = <0>;
470                         /* HPC0_IIC */
471                 };
472                 i2c@1 {
473                         #address-cells = <1>;
474                         #size-cells = <0>;
475                         reg = <1>;
476                         /* HPC1_IIC */
477                 };
478                 i2c@2 {
479                         #address-cells = <1>;
480                         #size-cells = <0>;
481                         reg = <2>;
482                         /* SYSMON */
483                 };
484                 i2c@3 {
485                         #address-cells = <1>;
486                         #size-cells = <0>;
487                         reg = <3>;
488                         /* DDR4 SODIMM */
489                         dev@19 {
490                                 reg = <0x19>;
491                         };
492                         dev@30 {
493                                 reg = <0x30>;
494                         };
495                         dev@35 {
496                                 reg = <0x35>;
497                         };
498                         dev@36 {
499                                 reg = <0x36>;
500                         };
501                         dev@51 {
502                                 reg = <0x51>;
503                         };
504                 };
505                 i2c@4 {
506                         #address-cells = <1>;
507                         #size-cells = <0>;
508                         reg = <4>;
509                         /* SEP 3 */
510                 };
511                 i2c@5 {
512                         #address-cells = <1>;
513                         #size-cells = <0>;
514                         reg = <5>;
515                         /* SEP 2 */
516                 };
517                 i2c@6 {
518                         #address-cells = <1>;
519                         #size-cells = <0>;
520                         reg = <6>;
521                         /* SEP 1 */
522                 };
523                 i2c@7 {
524                         #address-cells = <1>;
525                         #size-cells = <0>;
526                         reg = <7>;
527                         /* SEP 0 */
528                 };
529         };
530 };
531
532 &pcie {
533         status = "okay";
534 };
535
536 &qspi {
537         status = "okay";
538         is-dual = <1>;
539         flash@0 {
540                 compatible = "m25p80", "spi-flash"; /* 32MB */
541                 #address-cells = <1>;
542                 #size-cells = <1>;
543                 reg = <0x0>;
544                 spi-tx-bus-width = <1>;
545                 spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
546                 spi-max-frequency = <108000000>; /* Based on DC1 spec */
547                 partition@qspi-fsbl-uboot { /* for testing purpose */
548                         label = "qspi-fsbl-uboot";
549                         reg = <0x0 0x100000>;
550                 };
551                 partition@qspi-linux { /* for testing purpose */
552                         label = "qspi-linux";
553                         reg = <0x100000 0x500000>;
554                 };
555                 partition@qspi-device-tree { /* for testing purpose */
556                         label = "qspi-device-tree";
557                         reg = <0x600000 0x20000>;
558                 };
559                 partition@qspi-rootfs { /* for testing purpose */
560                         label = "qspi-rootfs";
561                         reg = <0x620000 0x5E0000>;
562                 };
563         };
564 };
565
566 &rtc {
567         status = "okay";
568 };
569
570 &sata {
571         status = "okay";
572         /* SATA OOB timing settings */
573         ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
574         ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
575         ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
576         ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
577         ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
578         ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
579         ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
580         ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
581         phy-names = "sata-phy";
582         phys = <&lane3 PHY_TYPE_SATA 1 1 125000000>;
583 };
584
585 /* SD1 with level shifter */
586 &sdhci1 {
587         status = "okay";
588         no-1-8-v;       /* for 1.0 silicon */
589         xlnx,mio_bank = <1>;
590 };
591
592 &serdes {
593         status = "okay";
594 };
595
596 &uart0 {
597         status = "okay";
598 };
599
600 &uart1 {
601         status = "okay";
602 };
603
604 /* ULPI SMSC USB3320 */
605 &usb0 {
606         status = "okay";
607 };
608
609 &dwc3_0 {
610         status = "okay";
611         dr_mode = "host";
612         snps,usb3_lpm_capable;
613         phy-names = "usb3-phy";
614         phys = <&lane2 PHY_TYPE_USB3 0 2 26000000>;
615         maximum-speed = "super-speed";
616 };
617
618 &watchdog0 {
619         status = "okay";
620 };
621
622 &xilinx_ams {
623         status = "okay";
624 };
625
626 &ams_ps {
627         status = "okay";
628 };
629
630 &ams_pl {
631         status = "okay";
632 };
633
634 &xilinx_drm {
635         status = "okay";
636         clocks = <&si570_1>;
637 };
638
639 &xlnx_dp {
640         status = "okay";
641 };
642
643 &xlnx_dp_sub {
644         status = "okay";
645         xlnx,vid-clk-pl;
646 };
647
648 &xlnx_dp_snd_pcm0 {
649         status = "okay";
650 };
651
652 &xlnx_dp_snd_pcm1 {
653         status = "okay";
654 };
655
656 &xlnx_dp_snd_card {
657         status = "okay";
658 };
659
660 &xlnx_dp_snd_codec0 {
661         status = "okay";
662 };
663
664 &xlnx_dpdma {
665         status = "okay";
666 };