blob: 2ac788a947671f261d628b31215915f3edc37210 [file] [log] [blame]
Michal Simek7531f862018-03-28 15:55:27 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * dts file for Xilinx ZynqMP ZCU111
4 *
Michal Simek821e32a2021-05-31 09:50:01 +02005 * (C) Copyright 2017 - 2021, Xilinx, Inc.
Michal Simek7531f862018-03-28 15:55:27 +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/input/input.h>
15#include <dt-bindings/gpio/gpio.h>
Michal Simekf7b922a2021-05-10 13:14:02 +020016#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simek7531f862018-03-28 15:55:27 +020017#include <dt-bindings/phy/phy.h>
18
19/ {
20 model = "ZynqMP ZCU111 RevA";
21 compatible = "xlnx,zynqmp-zcu111-revA", "xlnx,zynqmp-zcu111", "xlnx,zynqmp";
22
23 aliases {
24 ethernet0 = &gem3;
25 gpio0 = &gpio;
26 i2c0 = &i2c0;
27 i2c1 = &i2c1;
28 mmc0 = &sdhci1;
Michal Simek53b145d2021-06-03 11:46:50 +020029 nvmem0 = &eeprom;
Michal Simek7531f862018-03-28 15:55:27 +020030 rtc0 = &rtc;
31 serial0 = &uart0;
32 serial1 = &dcc;
33 spi0 = &qspi;
34 usb0 = &usb0;
35 };
36
37 chosen {
38 bootargs = "earlycon";
39 stdout-path = "serial0:115200n8";
40 };
41
42 memory@0 {
43 device_type = "memory";
44 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
45 /* Another 4GB connected to PL */
46 };
47
48 gpio-keys {
49 compatible = "gpio-keys";
Michal Simek7531f862018-03-28 15:55:27 +020050 autorepeat;
51 sw19 {
52 label = "sw19";
53 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
54 linux,code = <KEY_DOWN>;
Sudeep Holla13104ce2018-10-24 12:45:40 +010055 wakeup-source;
Michal Simek7531f862018-03-28 15:55:27 +020056 autorepeat;
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
Michal Simek2ef53362018-11-08 10:06:53 +010062 heartbeat-led {
Michal Simek7531f862018-03-28 15:55:27 +020063 label = "heartbeat";
64 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
65 linux,default-trigger = "heartbeat";
66 };
67 };
Michal Simek923ab2b2019-08-26 09:45:03 +020068
69 ina226-u67 {
70 compatible = "iio-hwmon";
71 io-channels = <&u67 0>, <&u67 1>, <&u67 2>, <&u67 3>;
72 };
73 ina226-u59 {
74 compatible = "iio-hwmon";
75 io-channels = <&u59 0>, <&u59 1>, <&u59 2>, <&u59 3>;
76 };
77 ina226-u61 {
78 compatible = "iio-hwmon";
79 io-channels = <&u61 0>, <&u61 1>, <&u61 2>, <&u61 3>;
80 };
81 ina226-u60 {
82 compatible = "iio-hwmon";
83 io-channels = <&u60 0>, <&u60 1>, <&u60 2>, <&u60 3>;
84 };
85 ina226-u64 {
86 compatible = "iio-hwmon";
87 io-channels = <&u64 0>, <&u64 1>, <&u64 2>, <&u64 3>;
88 };
89 ina226-u69 {
90 compatible = "iio-hwmon";
91 io-channels = <&u69 0>, <&u69 1>, <&u69 2>, <&u69 3>;
92 };
93 ina226-u66 {
94 compatible = "iio-hwmon";
95 io-channels = <&u66 0>, <&u66 1>, <&u66 2>, <&u66 3>;
96 };
97 ina226-u65 {
98 compatible = "iio-hwmon";
99 io-channels = <&u65 0>, <&u65 1>, <&u65 2>, <&u65 3>;
100 };
101 ina226-u63 {
102 compatible = "iio-hwmon";
103 io-channels = <&u63 0>, <&u63 1>, <&u63 2>, <&u63 3>;
104 };
105 ina226-u3 {
106 compatible = "iio-hwmon";
107 io-channels = <&u3 0>, <&u3 1>, <&u3 2>, <&u3 3>;
108 };
109 ina226-u71 {
110 compatible = "iio-hwmon";
111 io-channels = <&u71 0>, <&u71 1>, <&u71 2>, <&u71 3>;
112 };
113 ina226-u77 {
114 compatible = "iio-hwmon";
115 io-channels = <&u77 0>, <&u77 1>, <&u77 2>, <&u77 3>;
116 };
117 ina226-u73 {
118 compatible = "iio-hwmon";
119 io-channels = <&u73 0>, <&u73 1>, <&u73 2>, <&u73 3>;
120 };
121 ina226-u79 {
122 compatible = "iio-hwmon";
123 io-channels = <&u79 0>, <&u79 1>, <&u79 2>, <&u79 3>;
124 };
Michal Simek958c0e92020-11-26 14:25:02 +0100125
126 /* 48MHz reference crystal */
127 ref48: ref48M {
128 compatible = "fixed-clock";
129 #clock-cells = <0>;
130 clock-frequency = <48000000>;
131 };
Michal Simek7531f862018-03-28 15:55:27 +0200132};
133
134&dcc {
135 status = "okay";
136};
137
138&fpd_dma_chan1 {
139 status = "okay";
140};
141
142&fpd_dma_chan2 {
143 status = "okay";
144};
145
146&fpd_dma_chan3 {
147 status = "okay";
148};
149
150&fpd_dma_chan4 {
151 status = "okay";
152};
153
154&fpd_dma_chan5 {
155 status = "okay";
156};
157
158&fpd_dma_chan6 {
159 status = "okay";
160};
161
162&fpd_dma_chan7 {
163 status = "okay";
164};
165
166&fpd_dma_chan8 {
167 status = "okay";
168};
169
170&gem3 {
171 status = "okay";
172 phy-handle = <&phy0>;
173 phy-mode = "rgmii-id";
Michal Simekf7b922a2021-05-10 13:14:02 +0200174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_gem3_default>;
Michal Simek393decf2019-08-08 12:44:22 +0200176 phy0: ethernet-phy@c {
Michal Simek7531f862018-03-28 15:55:27 +0200177 reg = <0xc>;
178 ti,rx-internal-delay = <0x8>;
179 ti,tx-internal-delay = <0xa>;
180 ti,fifo-depth = <0x1>;
Harini Katakam991a1612019-02-13 17:02:21 +0530181 ti,dp83867-rxctrl-strap-quirk;
Michal Simek7531f862018-03-28 15:55:27 +0200182 };
183};
184
185&gpio {
186 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200187 pinctrl-names = "default";
188 pinctrl-0 = <&pinctrl_gpio_default>;
Michal Simek7531f862018-03-28 15:55:27 +0200189};
190
191&gpu {
192 status = "okay";
193};
194
195&i2c0 {
196 status = "okay";
197 clock-frequency = <400000>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200198 pinctrl-names = "default", "gpio";
199 pinctrl-0 = <&pinctrl_i2c0_default>;
200 pinctrl-1 = <&pinctrl_i2c0_gpio>;
201 scl-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
202 sda-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
Michal Simek7531f862018-03-28 15:55:27 +0200203
204 tca6416_u22: gpio@20 {
205 compatible = "ti,tca6416";
206 reg = <0x20>;
207 gpio-controller; /* interrupt not connected */
208 #gpio-cells = <2>;
209 /*
210 * IRQ not connected
211 * Lines:
212 * 0 - MAX6643_OT_B
213 * 1 - MAX6643_FANFAIL_B
214 * 2 - MIO26_PMU_INPUT_LS
215 * 4 - SFP_SI5382_INT_ALM
216 * 5 - IIC_MUX_RESET_B
217 * 6 - GEM3_EXP_RESET_B
218 * 10 - FMCP_HSPC_PRSNT_M2C_B
219 * 11 - CLK_SPI_MUX_SEL0
220 * 12 - CLK_SPI_MUX_SEL1
221 * 16 - IRPS5401_ALERT_B
222 * 17 - INA226_PMBUS_ALERT
223 * 3, 7, 13-15 - not connected
224 */
225 };
226
227 i2c-mux@75 { /* u23 */
228 compatible = "nxp,pca9544";
229 #address-cells = <1>;
230 #size-cells = <0>;
231 reg = <0x75>;
232 i2c@0 {
233 #address-cells = <1>;
234 #size-cells = <0>;
235 reg = <0>;
236 /* PS_PMBUS */
237 /* PMBUS_ALERT done via pca9544 */
Michal Simek923ab2b2019-08-26 09:45:03 +0200238 u67: ina226@40 { /* u67 */
Michal Simek7531f862018-03-28 15:55:27 +0200239 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200240 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200241 label = "ina226-u67";
Michal Simek7531f862018-03-28 15:55:27 +0200242 reg = <0x40>;
243 shunt-resistor = <2000>;
244 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200245 u59: ina226@41 { /* u59 */
Michal Simek7531f862018-03-28 15:55:27 +0200246 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200247 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200248 label = "ina226-u59";
Michal Simek7531f862018-03-28 15:55:27 +0200249 reg = <0x41>;
250 shunt-resistor = <5000>;
251 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200252 u61: ina226@42 { /* u61 */
Michal Simek7531f862018-03-28 15:55:27 +0200253 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200254 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200255 label = "ina226-u61";
Michal Simek7531f862018-03-28 15:55:27 +0200256 reg = <0x42>;
257 shunt-resistor = <5000>;
258 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200259 u60: ina226@43 { /* u60 */
Michal Simek7531f862018-03-28 15:55:27 +0200260 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200261 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200262 label = "ina226-u60";
Michal Simek7531f862018-03-28 15:55:27 +0200263 reg = <0x43>;
264 shunt-resistor = <5000>;
265 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200266 u64: ina226@45 { /* u64 */
Michal Simek7531f862018-03-28 15:55:27 +0200267 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200268 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200269 label = "ina226-u64";
Michal Simek7531f862018-03-28 15:55:27 +0200270 reg = <0x45>;
271 shunt-resistor = <5000>;
272 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200273 u69: ina226@46 { /* u69 */
Michal Simek7531f862018-03-28 15:55:27 +0200274 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200275 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200276 label = "ina226-u69";
Michal Simek7531f862018-03-28 15:55:27 +0200277 reg = <0x46>;
278 shunt-resistor = <2000>;
279 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200280 u66: ina226@47 { /* u66 */
Michal Simek7531f862018-03-28 15:55:27 +0200281 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200282 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200283 label = "ina226-u66";
Michal Simek7531f862018-03-28 15:55:27 +0200284 reg = <0x47>;
285 shunt-resistor = <5000>;
286 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200287 u65: ina226@48 { /* u65 */
Michal Simek7531f862018-03-28 15:55:27 +0200288 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200289 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200290 label = "ina226-u65";
Michal Simek7531f862018-03-28 15:55:27 +0200291 reg = <0x48>;
292 shunt-resistor = <5000>;
293 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200294 u63: ina226@49 { /* u63 */
Michal Simek7531f862018-03-28 15:55:27 +0200295 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200296 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200297 label = "ina226-u63";
Michal Simek7531f862018-03-28 15:55:27 +0200298 reg = <0x49>;
299 shunt-resistor = <5000>;
300 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200301 u3: ina226@4a { /* u3 */
Michal Simek7531f862018-03-28 15:55:27 +0200302 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200303 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200304 label = "ina226-u3";
Michal Simek7531f862018-03-28 15:55:27 +0200305 reg = <0x4a>;
306 shunt-resistor = <5000>;
307 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200308 u71: ina226@4b { /* u71 */
Michal Simek7531f862018-03-28 15:55:27 +0200309 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200310 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200311 label = "ina226-u71";
Michal Simek7531f862018-03-28 15:55:27 +0200312 reg = <0x4b>;
313 shunt-resistor = <5000>;
314 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200315 u77: ina226@4c { /* u77 */
Michal Simek7531f862018-03-28 15:55:27 +0200316 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200317 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200318 label = "ina226-u77";
Michal Simek7531f862018-03-28 15:55:27 +0200319 reg = <0x4c>;
320 shunt-resistor = <5000>;
321 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200322 u73: ina226@4d { /* u73 */
Michal Simek7531f862018-03-28 15:55:27 +0200323 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200324 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200325 label = "ina226-u73";
Michal Simek7531f862018-03-28 15:55:27 +0200326 reg = <0x4d>;
327 shunt-resistor = <5000>;
328 };
Michal Simek923ab2b2019-08-26 09:45:03 +0200329 u79: ina226@4e { /* u79 */
Michal Simek7531f862018-03-28 15:55:27 +0200330 compatible = "ti,ina226";
Michal Simek923ab2b2019-08-26 09:45:03 +0200331 #io-channel-cells = <1>;
Michal Simek11068892019-08-26 10:00:26 +0200332 label = "ina226-u79";
Michal Simek7531f862018-03-28 15:55:27 +0200333 reg = <0x4e>;
334 shunt-resistor = <5000>;
335 };
336 };
337 i2c@1 {
338 #address-cells = <1>;
339 #size-cells = <0>;
340 reg = <1>;
341 /* NC */
342 };
343 i2c@2 {
344 #address-cells = <1>;
345 #size-cells = <0>;
346 reg = <2>;
Michal Simek3514e4e2020-03-30 11:35:38 +0200347 irps5401_43: irps5401@43 { /* IRPS5401 - u53 check these */
Michal Simek7531f862018-03-28 15:55:27 +0200348 compatible = "infineon,irps5401";
349 reg = <0x43>;
350 };
Michal Simek3514e4e2020-03-30 11:35:38 +0200351 irps5401_44: irps5401@44 { /* IRPS5401 - u55 */
Michal Simek7531f862018-03-28 15:55:27 +0200352 compatible = "infineon,irps5401";
353 reg = <0x44>;
354 };
Michal Simek3514e4e2020-03-30 11:35:38 +0200355 irps5401_45: irps5401@45 { /* IRPS5401 - u57 */
Michal Simek7531f862018-03-28 15:55:27 +0200356 compatible = "infineon,irps5401";
357 reg = <0x45>;
358 };
359 /* u68 IR38064 +0 */
360 /* u70 IR38060 +1 */
361 /* u74 IR38060 +2 */
362 /* u75 IR38060 +6 */
363 /* J19 header too */
364
365 };
366 i2c@3 {
367 #address-cells = <1>;
368 #size-cells = <0>;
369 reg = <3>;
370 /* SYSMON */
371 };
372 };
373};
374
375&i2c1 {
376 status = "okay";
377 clock-frequency = <400000>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200378 pinctrl-names = "default", "gpio";
379 pinctrl-0 = <&pinctrl_i2c1_default>;
380 pinctrl-1 = <&pinctrl_i2c1_gpio>;
381 scl-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
382 sda-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
Michal Simek7531f862018-03-28 15:55:27 +0200383
384 i2c-mux@74 { /* u26 */
385 compatible = "nxp,pca9548";
386 #address-cells = <1>;
387 #size-cells = <0>;
388 reg = <0x74>;
389 i2c@0 {
390 #address-cells = <1>;
391 #size-cells = <0>;
392 reg = <0>;
393 /*
394 * IIC_EEPROM 1kB memory which uses 256B blocks
395 * where every block has different address.
396 * 0 - 256B address 0x54
397 * 256B - 512B address 0x55
398 * 512B - 768B address 0x56
399 * 768B - 1024B address 0x57
400 */
401 eeprom: eeprom@54 { /* u88 */
402 compatible = "atmel,24c08";
403 reg = <0x54>;
404 };
405 };
406 i2c@1 {
407 #address-cells = <1>;
408 #size-cells = <0>;
409 reg = <1>;
410 si5341: clock-generator@36 { /* SI5341 - u46 */
Michal Simek958c0e92020-11-26 14:25:02 +0100411 compatible = "silabs,si5341";
Michal Simek7531f862018-03-28 15:55:27 +0200412 reg = <0x36>;
Michal Simek958c0e92020-11-26 14:25:02 +0100413 #clock-cells = <2>;
414 #address-cells = <1>;
415 #size-cells = <0>;
416 clocks = <&ref48>;
417 clock-names = "xtal";
418 clock-output-names = "si5341";
Michal Simek7531f862018-03-28 15:55:27 +0200419
Michal Simek958c0e92020-11-26 14:25:02 +0100420 si5341_0: out@0 {
421 /* refclk0 for PS-GT, used for DP */
422 reg = <0>;
423 always-on;
424 };
425 si5341_2: out@2 {
426 /* refclk2 for PS-GT, used for USB3 */
427 reg = <2>;
428 always-on;
429 };
430 si5341_3: out@3 {
431 /* refclk3 for PS-GT, used for SATA */
432 reg = <3>;
433 always-on;
434 };
435 si5341_5: out@5 {
436 /* refclk5 PL CLK100 */
437 reg = <5>;
438 always-on;
439 };
440 si5341_6: out@6 {
441 /* refclk6 PL CLK125 */
442 reg = <6>;
443 always-on;
444 };
445 si5341_9: out@9 {
446 /* refclk9 used for PS_REF_CLK 33.3 MHz */
447 reg = <9>;
448 always-on;
449 };
450 };
Michal Simek7531f862018-03-28 15:55:27 +0200451 };
452 i2c@2 {
453 #address-cells = <1>;
454 #size-cells = <0>;
455 reg = <2>;
456 si570_1: clock-generator@5d { /* USER SI570 - u47 */
457 #clock-cells = <0>;
458 compatible = "silabs,si570";
459 reg = <0x5d>;
460 temperature-stability = <50>;
461 factory-fout = <300000000>;
462 clock-frequency = <300000000>;
Michal Simek3cf07bf2018-07-18 12:10:02 +0200463 clock-output-names = "si570_user";
Michal Simek7531f862018-03-28 15:55:27 +0200464 };
465 };
466 i2c@3 {
467 #address-cells = <1>;
468 #size-cells = <0>;
469 reg = <3>;
470 si570_2: clock-generator@5d { /* USER MGT SI570 - u49 */
471 #clock-cells = <0>;
472 compatible = "silabs,si570";
473 reg = <0x5d>;
474 temperature-stability = <50>;
475 factory-fout = <156250000>;
Venkatesh Yadav Abbarapue55126a2019-09-05 08:30:38 +0530476 clock-frequency = <156250000>;
Michal Simek3cf07bf2018-07-18 12:10:02 +0200477 clock-output-names = "si570_mgt";
Michal Simek7531f862018-03-28 15:55:27 +0200478 };
479 };
480 i2c@4 {
481 #address-cells = <1>;
482 #size-cells = <0>;
483 reg = <4>;
Michal Simek2add7442021-06-03 11:58:08 +0200484 /* SI5382 - u48 */
Michal Simek7531f862018-03-28 15:55:27 +0200485 };
486 i2c@5 {
487 #address-cells = <1>;
488 #size-cells = <0>;
489 reg = <5>;
490 sc18is603@2f { /* sc18is602 - u93 */
491 compatible = "nxp,sc18is603";
492 reg = <0x2f>;
493 /* 4 gpios for CS not handled by driver */
494 /*
495 * USB2ANY cable or
496 * LMK04208 - u90 or
497 * LMX2594 - u102 or
498 * LMX2594 - u103 or
499 * LMX2594 - u104
500 */
501 };
502 };
503 i2c@6 {
504 #address-cells = <1>;
505 #size-cells = <0>;
506 reg = <6>;
507 /* FMC connector */
508 };
509 /* 7 NC */
510 };
511
512 i2c-mux@75 {
513 compatible = "nxp,pca9548"; /* u27 */
514 #address-cells = <1>;
515 #size-cells = <0>;
516 reg = <0x75>;
517
518 i2c@0 {
519 #address-cells = <1>;
520 #size-cells = <0>;
521 reg = <0>;
522 /* FMCP_HSPC_IIC */
523 };
524 i2c@1 {
525 #address-cells = <1>;
526 #size-cells = <0>;
527 reg = <1>;
528 /* NC */
529 };
530 i2c@2 {
531 #address-cells = <1>;
532 #size-cells = <0>;
533 reg = <2>;
534 /* SYSMON */
535 };
536 i2c@3 {
537 #address-cells = <1>;
538 #size-cells = <0>;
539 reg = <3>;
540 /* DDR4 SODIMM */
Michal Simek7531f862018-03-28 15:55:27 +0200541 };
542 i2c@4 {
543 #address-cells = <1>;
544 #size-cells = <0>;
545 reg = <4>;
546 /* SFP3 */
547 };
548 i2c@5 {
549 #address-cells = <1>;
550 #size-cells = <0>;
551 reg = <5>;
552 /* SFP2 */
553 };
554 i2c@6 {
555 #address-cells = <1>;
556 #size-cells = <0>;
557 reg = <6>;
558 /* SFP1 */
559 };
560 i2c@7 {
561 #address-cells = <1>;
562 #size-cells = <0>;
563 reg = <7>;
564 /* SFP0 */
565 };
566 };
567};
568
Michal Simekf7b922a2021-05-10 13:14:02 +0200569&pinctrl0 {
570 status = "okay";
571 pinctrl_i2c0_default: i2c0-default {
572 mux {
573 groups = "i2c0_3_grp";
574 function = "i2c0";
575 };
576
577 conf {
578 groups = "i2c0_3_grp";
579 bias-pull-up;
580 slew-rate = <SLEW_RATE_SLOW>;
581 power-source = <IO_STANDARD_LVCMOS18>;
582 };
583 };
584
585 pinctrl_i2c0_gpio: i2c0-gpio {
586 mux {
587 groups = "gpio0_14_grp", "gpio0_15_grp";
588 function = "gpio0";
589 };
590
591 conf {
592 groups = "gpio0_14_grp", "gpio0_15_grp";
593 slew-rate = <SLEW_RATE_SLOW>;
594 power-source = <IO_STANDARD_LVCMOS18>;
595 };
596 };
597
598 pinctrl_i2c1_default: i2c1-default {
599 mux {
600 groups = "i2c1_4_grp";
601 function = "i2c1";
602 };
603
604 conf {
605 groups = "i2c1_4_grp";
606 bias-pull-up;
607 slew-rate = <SLEW_RATE_SLOW>;
608 power-source = <IO_STANDARD_LVCMOS18>;
609 };
610 };
611
612 pinctrl_i2c1_gpio: i2c1-gpio {
613 mux {
614 groups = "gpio0_16_grp", "gpio0_17_grp";
615 function = "gpio0";
616 };
617
618 conf {
619 groups = "gpio0_16_grp", "gpio0_17_grp";
620 slew-rate = <SLEW_RATE_SLOW>;
621 power-source = <IO_STANDARD_LVCMOS18>;
622 };
623 };
624
625 pinctrl_uart0_default: uart0-default {
626 mux {
627 groups = "uart0_4_grp";
628 function = "uart0";
629 };
630
631 conf {
632 groups = "uart0_4_grp";
633 slew-rate = <SLEW_RATE_SLOW>;
634 power-source = <IO_STANDARD_LVCMOS18>;
635 };
636
637 conf-rx {
638 pins = "MIO18";
639 bias-high-impedance;
640 };
641
642 conf-tx {
643 pins = "MIO19";
644 bias-disable;
645 };
646 };
647
648 pinctrl_usb0_default: usb0-default {
649 mux {
650 groups = "usb0_0_grp";
651 function = "usb0";
652 };
653
654 conf {
655 groups = "usb0_0_grp";
656 slew-rate = <SLEW_RATE_SLOW>;
657 power-source = <IO_STANDARD_LVCMOS18>;
658 };
659
660 conf-rx {
661 pins = "MIO52", "MIO53", "MIO55";
662 bias-high-impedance;
663 };
664
665 conf-tx {
666 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
667 "MIO60", "MIO61", "MIO62", "MIO63";
668 bias-disable;
669 };
670 };
671
672 pinctrl_gem3_default: gem3-default {
673 mux {
674 function = "ethernet3";
675 groups = "ethernet3_0_grp";
676 };
677
678 conf {
679 groups = "ethernet3_0_grp";
680 slew-rate = <SLEW_RATE_SLOW>;
681 power-source = <IO_STANDARD_LVCMOS18>;
682 };
683
684 conf-rx {
685 pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
686 "MIO75";
687 bias-high-impedance;
688 low-power-disable;
689 };
690
691 conf-tx {
692 pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
693 "MIO69";
694 bias-disable;
695 low-power-enable;
696 };
697
698 mux-mdio {
699 function = "mdio3";
700 groups = "mdio3_0_grp";
701 };
702
703 conf-mdio {
704 groups = "mdio3_0_grp";
705 slew-rate = <SLEW_RATE_SLOW>;
706 power-source = <IO_STANDARD_LVCMOS18>;
707 bias-disable;
708 };
709 };
710
711 pinctrl_sdhci1_default: sdhci1-default {
712 mux {
713 groups = "sdio1_0_grp";
714 function = "sdio1";
715 };
716
717 conf {
718 groups = "sdio1_0_grp";
719 slew-rate = <SLEW_RATE_SLOW>;
720 power-source = <IO_STANDARD_LVCMOS18>;
721 bias-disable;
722 };
723
724 mux-cd {
725 groups = "sdio1_cd_0_grp";
726 function = "sdio1_cd";
727 };
728
729 conf-cd {
730 groups = "sdio1_cd_0_grp";
731 bias-high-impedance;
732 bias-pull-up;
733 slew-rate = <SLEW_RATE_SLOW>;
734 power-source = <IO_STANDARD_LVCMOS18>;
735 };
736 };
737
738 pinctrl_gpio_default: gpio-default {
739 mux {
740 function = "gpio0";
741 groups = "gpio0_22_grp", "gpio0_23_grp";
742 };
743
744 conf {
745 groups = "gpio0_22_grp", "gpio0_23_grp";
746 slew-rate = <SLEW_RATE_SLOW>;
747 power-source = <IO_STANDARD_LVCMOS18>;
748 };
749
750 mux-msp {
751 function = "gpio0";
752 groups = "gpio0_13_grp", "gpio0_38_grp";
753 };
754
755 conf-msp {
756 groups = "gpio0_13_grp", "gpio0_38_grp";
757 slew-rate = <SLEW_RATE_SLOW>;
758 power-source = <IO_STANDARD_LVCMOS18>;
759 };
760
761 conf-pull-up {
762 pins = "MIO22";
763 bias-pull-up;
764 };
765
766 conf-pull-none {
767 pins = "MIO13", "MIO23", "MIO38";
768 bias-disable;
769 };
770 };
771};
772
Michal Simekae7230c2021-06-03 15:18:04 +0200773&psgtr {
774 status = "okay";
775 /* nc, dp, usb3, sata */
776 clocks = <&si5341 0 0>, <&si5341 0 2>, <&si5341 0 3>;
777 clock-names = "ref1", "ref2", "ref3";
778};
779
Michal Simek7531f862018-03-28 15:55:27 +0200780&qspi {
781 status = "okay";
782 is-dual = <1>;
783 flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000784 compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
Michal Simek7531f862018-03-28 15:55:27 +0200785 #address-cells = <1>;
786 #size-cells = <1>;
787 reg = <0x0>;
788 spi-tx-bus-width = <1>;
789 spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
790 spi-max-frequency = <108000000>; /* Based on DC1 spec */
Michal Simek70fafdf2020-02-14 14:19:56 +0100791 partition@0 { /* for testing purpose */
Michal Simek7531f862018-03-28 15:55:27 +0200792 label = "qspi-fsbl-uboot";
793 reg = <0x0 0x100000>;
794 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100795 partition@100000 { /* for testing purpose */
Michal Simek7531f862018-03-28 15:55:27 +0200796 label = "qspi-linux";
797 reg = <0x100000 0x500000>;
798 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100799 partition@600000 { /* for testing purpose */
Michal Simek7531f862018-03-28 15:55:27 +0200800 label = "qspi-device-tree";
801 reg = <0x600000 0x20000>;
802 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100803 partition@620000 { /* for testing purpose */
Michal Simek7531f862018-03-28 15:55:27 +0200804 label = "qspi-rootfs";
805 reg = <0x620000 0x5E0000>;
806 };
807 };
808};
809
810&rtc {
811 status = "okay";
812};
813
814&sata {
815 status = "okay";
816 /* SATA OOB timing settings */
817 ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
818 ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
819 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
820 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
821 ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
822 ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
823 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
824 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
825 phy-names = "sata-phy";
Michal Simekfe8cb0c2021-05-10 14:55:34 +0200826 phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
Michal Simek7531f862018-03-28 15:55:27 +0200827};
828
829/* SD1 with level shifter */
830&sdhci1 {
831 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200832 pinctrl-names = "default";
833 pinctrl-0 = <&pinctrl_sdhci1_default>;
Michal Simek259fb212018-04-04 14:08:24 +0200834 disable-wp;
Manish Naranie2ba0932020-02-13 23:37:30 -0700835 /*
836 * This property should be removed for supporting UHS mode
837 */
838 no-1-8-v;
Michal Simek3b662642020-07-22 17:42:43 +0200839 xlnx,mio-bank = <1>;
Michal Simek7531f862018-03-28 15:55:27 +0200840};
841
Michal Simek7531f862018-03-28 15:55:27 +0200842&uart0 {
843 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200844 pinctrl-names = "default";
845 pinctrl-0 = <&pinctrl_uart0_default>;
Michal Simek7531f862018-03-28 15:55:27 +0200846};
847
848/* ULPI SMSC USB3320 */
849&usb0 {
850 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200851 pinctrl-names = "default";
852 pinctrl-0 = <&pinctrl_usb0_default>;
Michal Simekfe8cb0c2021-05-10 14:55:34 +0200853};
854
855&dwc3_0 {
856 status = "okay";
Michal Simek958c0e92020-11-26 14:25:02 +0100857 dr_mode = "host";
Michal Simekfe8cb0c2021-05-10 14:55:34 +0200858 snps,usb3_lpm_capable;
859 phy-names = "usb3-phy";
860 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
Michal Simekeb4b55c2021-05-31 17:51:58 +0200861 maximum-speed = "super-speed";
Michal Simek7531f862018-03-28 15:55:27 +0200862};
863
Michal Simek958c0e92020-11-26 14:25:02 +0100864&zynqmp_dpdma {
Michal Simek7531f862018-03-28 15:55:27 +0200865 status = "okay";
Michal Simek958c0e92020-11-26 14:25:02 +0100866};
867
868&zynqmp_dpsub {
869 status = "okay";
870 phy-names = "dp-phy0", "dp-phy1";
871 phys = <&psgtr 1 PHY_TYPE_DP 0 1>,
872 <&psgtr 0 PHY_TYPE_DP 1 1>;
Michal Simek7531f862018-03-28 15:55:27 +0200873};