blob: d20f6675687bfc366a3d0f5b40d3f1edd8d3f9ee [file] [log] [blame]
Michal Simek090a2d72018-03-27 10:36:39 +02001// SPDX-License-Identifier: GPL-2.0+
Michal Simeka335bd22016-04-07 16:00:11 +02002/*
3 * dts file for Xilinx ZynqMP zc1751-xm015-dc1
4 *
Michal Simek821e32a2021-05-31 09:50:01 +02005 * (C) Copyright 2015 - 2021, Xilinx, Inc.
Michal Simeka335bd22016-04-07 16:00:11 +02006 *
7 * Michal Simek <michal.simek@xilinx.com>
Michal Simeka335bd22016-04-07 16:00:11 +02008 */
9
10/dts-v1/;
11
12#include "zynqmp.dtsi"
Michal Simeka6604b62017-12-08 14:50:42 +010013#include "zynqmp-clk-ccf.dtsi"
Michal Simekfe8cb0c2021-05-10 14:55:34 +020014#include <dt-bindings/phy/phy.h>
Michal Simekf7b922a2021-05-10 13:14:02 +020015#include <dt-bindings/gpio/gpio.h>
16#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simeka335bd22016-04-07 16:00:11 +020017
18/ {
19 model = "ZynqMP zc1751-xm015-dc1 RevA";
20 compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp";
21
22 aliases {
23 ethernet0 = &gem3;
Michal Simeka335bd22016-04-07 16:00:11 +020024 i2c0 = &i2c1;
25 mmc0 = &sdhci0;
26 mmc1 = &sdhci1;
27 rtc0 = &rtc;
28 serial0 = &uart0;
29 spi0 = &qspi;
30 usb0 = &usb0;
31 };
32
33 chosen {
34 bootargs = "earlycon";
35 stdout-path = "serial0:115200n8";
36 };
37
Michal Simek79c1cbf2016-11-11 13:21:04 +010038 memory@0 {
Michal Simeka335bd22016-04-07 16:00:11 +020039 device_type = "memory";
40 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
41 };
Michal Simekfe8cb0c2021-05-10 14:55:34 +020042
43 clock_si5338_0: clk27 { /* u55 SI5338-GM */
44 compatible = "fixed-clock";
45 #clock-cells = <0>;
46 clock-frequency = <27000000>;
47 };
48
49 clock_si5338_2: clk26 {
50 compatible = "fixed-clock";
51 #clock-cells = <0>;
52 clock-frequency = <26000000>;
53 };
54
55 clock_si5338_3: clk150 {
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <150000000>;
59 };
60};
61
Michal Simeka335bd22016-04-07 16:00:11 +020062&fpd_dma_chan1 {
63 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020064};
65
66&fpd_dma_chan2 {
67 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020068};
69
70&fpd_dma_chan3 {
71 status = "okay";
72};
73
74&fpd_dma_chan4 {
75 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020076};
77
78&fpd_dma_chan5 {
79 status = "okay";
80};
81
82&fpd_dma_chan6 {
83 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020084};
85
86&fpd_dma_chan7 {
87 status = "okay";
88};
89
90&fpd_dma_chan8 {
91 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020092};
93
94&gem3 {
95 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020096 phy-handle = <&phy0>;
97 phy-mode = "rgmii-id";
Michal Simekf7b922a2021-05-10 13:14:02 +020098 pinctrl-names = "default";
99 pinctrl-0 = <&pinctrl_gem3_default>;
Michal Simek393decf2019-08-08 12:44:22 +0200100 phy0: ethernet-phy@0 {
Michal Simeka335bd22016-04-07 16:00:11 +0200101 reg = <0>;
102 };
103};
104
105&gpio {
106 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_gpio_default>;
Michal Simeka335bd22016-04-07 16:00:11 +0200109};
110
111&gpu {
112 status = "okay";
113};
114
115&i2c1 {
116 status = "okay";
117 clock-frequency = <400000>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200118 pinctrl-names = "default", "gpio";
119 pinctrl-0 = <&pinctrl_i2c1_default>;
120 pinctrl-1 = <&pinctrl_i2c1_gpio>;
121 scl-gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
122 sda-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
Michal Simekc454c6f2018-03-27 13:15:17 +0200123
124 eeprom: eeprom@55 {
Michal Simek28cf3ba2018-03-27 10:54:25 +0200125 compatible = "atmel,24c64"; /* 24AA64 */
Michal Simeka335bd22016-04-07 16:00:11 +0200126 reg = <0x55>;
127 };
128};
129
Michal Simekf7b922a2021-05-10 13:14:02 +0200130&pinctrl0 {
131 status = "okay";
132 pinctrl_i2c1_default: i2c1-default {
133 mux {
134 groups = "i2c1_9_grp";
135 function = "i2c1";
136 };
137
138 conf {
139 groups = "i2c1_9_grp";
140 bias-pull-up;
141 slew-rate = <SLEW_RATE_SLOW>;
142 power-source = <IO_STANDARD_LVCMOS18>;
143 };
144 };
145
146 pinctrl_i2c1_gpio: i2c1-gpio {
147 mux {
148 groups = "gpio0_36_grp", "gpio0_37_grp";
149 function = "gpio0";
150 };
151
152 conf {
153 groups = "gpio0_36_grp", "gpio0_37_grp";
154 slew-rate = <SLEW_RATE_SLOW>;
155 power-source = <IO_STANDARD_LVCMOS18>;
156 };
157 };
158
159 pinctrl_uart0_default: uart0-default {
160 mux {
161 groups = "uart0_8_grp";
162 function = "uart0";
163 };
164
165 conf {
166 groups = "uart0_8_grp";
167 slew-rate = <SLEW_RATE_SLOW>;
168 power-source = <IO_STANDARD_LVCMOS18>;
169 };
170
171 conf-rx {
172 pins = "MIO34";
173 bias-high-impedance;
174 };
175
176 conf-tx {
177 pins = "MIO35";
178 bias-disable;
179 };
180 };
181
182 pinctrl_usb0_default: usb0-default {
183 mux {
184 groups = "usb0_0_grp";
185 function = "usb0";
186 };
187
188 conf {
189 groups = "usb0_0_grp";
190 slew-rate = <SLEW_RATE_SLOW>;
191 power-source = <IO_STANDARD_LVCMOS18>;
192 };
193
194 conf-rx {
195 pins = "MIO52", "MIO53", "MIO55";
196 bias-high-impedance;
197 };
198
199 conf-tx {
200 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
201 "MIO60", "MIO61", "MIO62", "MIO63";
202 bias-disable;
203 };
204 };
205
206 pinctrl_gem3_default: gem3-default {
207 mux {
208 function = "ethernet3";
209 groups = "ethernet3_0_grp";
210 };
211
212 conf {
213 groups = "ethernet3_0_grp";
214 slew-rate = <SLEW_RATE_SLOW>;
215 power-source = <IO_STANDARD_LVCMOS18>;
216 };
217
218 conf-rx {
219 pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
220 "MIO75";
221 bias-high-impedance;
222 low-power-disable;
223 };
224
225 conf-tx {
226 pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
227 "MIO69";
228 bias-disable;
229 low-power-enable;
230 };
231
232 mux-mdio {
233 function = "mdio3";
234 groups = "mdio3_0_grp";
235 };
236
237 conf-mdio {
238 groups = "mdio3_0_grp";
239 slew-rate = <SLEW_RATE_SLOW>;
240 power-source = <IO_STANDARD_LVCMOS18>;
241 bias-disable;
242 };
243 };
244
245 pinctrl_sdhci0_default: sdhci0-default {
246 mux {
247 groups = "sdio0_0_grp";
248 function = "sdio0";
249 };
250
251 conf {
252 groups = "sdio0_0_grp";
253 slew-rate = <SLEW_RATE_SLOW>;
254 power-source = <IO_STANDARD_LVCMOS18>;
255 bias-disable;
256 };
257
258 mux-cd {
259 groups = "sdio0_cd_0_grp";
260 function = "sdio0_cd";
261 };
262
263 conf-cd {
264 groups = "sdio0_cd_0_grp";
265 bias-high-impedance;
266 bias-pull-up;
267 slew-rate = <SLEW_RATE_SLOW>;
268 power-source = <IO_STANDARD_LVCMOS18>;
269 };
270
271 mux-wp {
272 groups = "sdio0_wp_0_grp";
273 function = "sdio0_wp";
274 };
275
276 conf-wp {
277 groups = "sdio0_wp_0_grp";
278 bias-high-impedance;
279 bias-pull-up;
280 slew-rate = <SLEW_RATE_SLOW>;
281 power-source = <IO_STANDARD_LVCMOS18>;
282 };
283 };
284
285 pinctrl_sdhci1_default: sdhci1-default {
286 mux {
287 groups = "sdio1_0_grp";
288 function = "sdio1";
289 };
290
291 conf {
292 groups = "sdio1_0_grp";
293 slew-rate = <SLEW_RATE_SLOW>;
294 power-source = <IO_STANDARD_LVCMOS18>;
295 bias-disable;
296 };
297
298 mux-cd {
299 groups = "sdio1_cd_0_grp";
300 function = "sdio1_cd";
301 };
302
303 conf-cd {
304 groups = "sdio1_cd_0_grp";
305 bias-high-impedance;
306 bias-pull-up;
307 slew-rate = <SLEW_RATE_SLOW>;
308 power-source = <IO_STANDARD_LVCMOS18>;
309 };
310
311 mux-wp {
312 groups = "sdio1_wp_0_grp";
313 function = "sdio1_wp";
314 };
315
316 conf-wp {
317 groups = "sdio1_wp_0_grp";
318 bias-high-impedance;
319 bias-pull-up;
320 slew-rate = <SLEW_RATE_SLOW>;
321 power-source = <IO_STANDARD_LVCMOS18>;
322 };
323 };
324
325 pinctrl_gpio_default: gpio-default {
326 mux {
327 function = "gpio0";
328 groups = "gpio0_38_grp";
329 };
330
331 conf {
332 groups = "gpio0_38_grp";
333 bias-disable;
334 slew-rate = <SLEW_RATE_SLOW>;
335 power-source = <IO_STANDARD_LVCMOS18>;
336 };
337 };
338};
339
Michal Simekae7230c2021-06-03 15:18:04 +0200340&psgtr {
341 status = "okay";
342 /* dp, usb3, sata */
343 clocks = <&clock_si5338_0>, <&clock_si5338_2>, <&clock_si5338_3>;
344 clock-names = "ref1", "ref2", "ref3";
345};
346
Michal Simeka335bd22016-04-07 16:00:11 +0200347&qspi {
348 status = "okay";
349 flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000350 compatible = "m25p80", "jedec,spi-nor"; /* Micron MT25QU512ABB8ESF */
Michal Simeka335bd22016-04-07 16:00:11 +0200351 #address-cells = <1>;
352 #size-cells = <1>;
353 reg = <0x0>;
Amit Kumar Mahapatraa02408b2022-05-10 16:33:01 +0200354 spi-tx-bus-width = <4>;
Michal Simeka335bd22016-04-07 16:00:11 +0200355 spi-rx-bus-width = <4>;
356 spi-max-frequency = <108000000>; /* Based on DC1 spec */
Michal Simek70fafdf2020-02-14 14:19:56 +0100357 partition@0 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200358 label = "qspi-fsbl-uboot";
359 reg = <0x0 0x100000>;
360 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100361 partition@100000 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200362 label = "qspi-linux";
363 reg = <0x100000 0x500000>;
364 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100365 partition@600000 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200366 label = "qspi-device-tree";
367 reg = <0x600000 0x20000>;
368 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100369 partition@620000 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200370 label = "qspi-rootfs";
371 reg = <0x620000 0x5E0000>;
372 };
373 };
374};
375
376&rtc {
377 status = "okay";
378};
379
380&sata {
381 status = "okay";
382 /* SATA phy OOB timing settings */
383 ceva,p0-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
384 ceva,p0-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
385 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
386 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
387 ceva,p1-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
388 ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
389 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
390 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
Michal Simekfe8cb0c2021-05-10 14:55:34 +0200391 phy-names = "sata-phy";
392 phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
Michal Simeka335bd22016-04-07 16:00:11 +0200393};
394
395/* eMMC */
396&sdhci0 {
397 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200398 pinctrl-names = "default";
399 pinctrl-0 = <&pinctrl_sdhci0_default>;
Michal Simeka335bd22016-04-07 16:00:11 +0200400 bus-width = <8>;
Michal Simek3b662642020-07-22 17:42:43 +0200401 xlnx,mio-bank = <0>;
Michal Simeka335bd22016-04-07 16:00:11 +0200402};
403
404/* SD1 with level shifter */
405&sdhci1 {
406 status = "okay";
Manish Naranie2ba0932020-02-13 23:37:30 -0700407 /*
408 * This property should be removed for supporting UHS mode
409 */
410 no-1-8-v;
Michal Simekf7b922a2021-05-10 13:14:02 +0200411 pinctrl-names = "default";
412 pinctrl-0 = <&pinctrl_sdhci1_default>;
Michal Simek3b662642020-07-22 17:42:43 +0200413 xlnx,mio-bank = <1>;
Michal Simeka335bd22016-04-07 16:00:11 +0200414};
415
416&uart0 {
417 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200418 pinctrl-names = "default";
419 pinctrl-0 = <&pinctrl_uart0_default>;
Michal Simeka335bd22016-04-07 16:00:11 +0200420};
421
422/* ULPI SMSC USB3320 */
423&usb0 {
424 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200425 pinctrl-names = "default";
426 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Naranif3c63382021-07-14 06:17:19 -0600427 phy-names = "usb3-phy";
428 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
Michal Simeka4117002016-04-05 12:01:16 +0200429};
430
431&dwc3_0 {
432 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +0200433 dr_mode = "host";
Michal Simekfe8cb0c2021-05-10 14:55:34 +0200434 snps,usb3_lpm_capable;
Michal Simekeb4b55c2021-05-31 17:51:58 +0200435 maximum-speed = "super-speed";
Michal Simeka335bd22016-04-07 16:00:11 +0200436};
437
Michal Simek958c0e92020-11-26 14:25:02 +0100438&zynqmp_dpdma {
Michal Simeka335bd22016-04-07 16:00:11 +0200439 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +0200440};
441
Michal Simek958c0e92020-11-26 14:25:02 +0100442&zynqmp_dpsub {
Michal Simeka335bd22016-04-07 16:00:11 +0200443 status = "okay";
Michal Simek51dd1e02021-06-14 14:58:35 +0200444 phy-names = "dp-phy0", "dp-phy1";
445 phys = <&psgtr 1 PHY_TYPE_DP 0 0>,
446 <&psgtr 0 PHY_TYPE_DP 1 1>;
Michal Simeka335bd22016-04-07 16:00:11 +0200447};