blob: 039a8da1a9606f5d79e6320cad8fa6ad06870173 [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 Simek4f1b7f62020-02-18 08:38:06 +01005 * (C) Copyright 2015 - 2020, 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;
24 gpio0 = &gpio;
25 i2c0 = &i2c1;
26 mmc0 = &sdhci0;
27 mmc1 = &sdhci1;
28 rtc0 = &rtc;
29 serial0 = &uart0;
30 spi0 = &qspi;
31 usb0 = &usb0;
32 };
33
34 chosen {
35 bootargs = "earlycon";
36 stdout-path = "serial0:115200n8";
37 };
38
Michal Simek79c1cbf2016-11-11 13:21:04 +010039 memory@0 {
Michal Simeka335bd22016-04-07 16:00:11 +020040 device_type = "memory";
41 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
42 };
Michal Simekfe8cb0c2021-05-10 14:55:34 +020043
44 clock_si5338_0: clk27 { /* u55 SI5338-GM */
45 compatible = "fixed-clock";
46 #clock-cells = <0>;
47 clock-frequency = <27000000>;
48 };
49
50 clock_si5338_2: clk26 {
51 compatible = "fixed-clock";
52 #clock-cells = <0>;
53 clock-frequency = <26000000>;
54 };
55
56 clock_si5338_3: clk150 {
57 compatible = "fixed-clock";
58 #clock-cells = <0>;
59 clock-frequency = <150000000>;
60 };
61};
62
63&psgtr {
64 status = "okay";
65 /* dp, usb3, sata */
66 clocks = <&clock_si5338_0>, <&clock_si5338_2>, <&clock_si5338_3>;
67 clock-names = "ref1", "ref2", "ref3";
Michal Simeka335bd22016-04-07 16:00:11 +020068};
69
Michal Simeka335bd22016-04-07 16:00:11 +020070&fpd_dma_chan1 {
71 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020072};
73
74&fpd_dma_chan2 {
75 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020076};
77
78&fpd_dma_chan3 {
79 status = "okay";
80};
81
82&fpd_dma_chan4 {
83 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020084};
85
86&fpd_dma_chan5 {
87 status = "okay";
88};
89
90&fpd_dma_chan6 {
91 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +020092};
93
94&fpd_dma_chan7 {
95 status = "okay";
96};
97
98&fpd_dma_chan8 {
99 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +0200100};
101
102&gem3 {
103 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +0200104 phy-handle = <&phy0>;
105 phy-mode = "rgmii-id";
Michal Simekf7b922a2021-05-10 13:14:02 +0200106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_gem3_default>;
Michal Simek393decf2019-08-08 12:44:22 +0200108 phy0: ethernet-phy@0 {
Michal Simeka335bd22016-04-07 16:00:11 +0200109 reg = <0>;
110 };
111};
112
113&gpio {
114 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200115 pinctrl-names = "default";
116 pinctrl-0 = <&pinctrl_gpio_default>;
Michal Simeka335bd22016-04-07 16:00:11 +0200117};
118
119&gpu {
120 status = "okay";
121};
122
123&i2c1 {
124 status = "okay";
125 clock-frequency = <400000>;
Michal Simekf7b922a2021-05-10 13:14:02 +0200126 pinctrl-names = "default", "gpio";
127 pinctrl-0 = <&pinctrl_i2c1_default>;
128 pinctrl-1 = <&pinctrl_i2c1_gpio>;
129 scl-gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
130 sda-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
Michal Simekc454c6f2018-03-27 13:15:17 +0200131
132 eeprom: eeprom@55 {
Michal Simek28cf3ba2018-03-27 10:54:25 +0200133 compatible = "atmel,24c64"; /* 24AA64 */
Michal Simeka335bd22016-04-07 16:00:11 +0200134 reg = <0x55>;
135 };
136};
137
Michal Simekf7b922a2021-05-10 13:14:02 +0200138&pinctrl0 {
139 status = "okay";
140 pinctrl_i2c1_default: i2c1-default {
141 mux {
142 groups = "i2c1_9_grp";
143 function = "i2c1";
144 };
145
146 conf {
147 groups = "i2c1_9_grp";
148 bias-pull-up;
149 slew-rate = <SLEW_RATE_SLOW>;
150 power-source = <IO_STANDARD_LVCMOS18>;
151 };
152 };
153
154 pinctrl_i2c1_gpio: i2c1-gpio {
155 mux {
156 groups = "gpio0_36_grp", "gpio0_37_grp";
157 function = "gpio0";
158 };
159
160 conf {
161 groups = "gpio0_36_grp", "gpio0_37_grp";
162 slew-rate = <SLEW_RATE_SLOW>;
163 power-source = <IO_STANDARD_LVCMOS18>;
164 };
165 };
166
167 pinctrl_uart0_default: uart0-default {
168 mux {
169 groups = "uart0_8_grp";
170 function = "uart0";
171 };
172
173 conf {
174 groups = "uart0_8_grp";
175 slew-rate = <SLEW_RATE_SLOW>;
176 power-source = <IO_STANDARD_LVCMOS18>;
177 };
178
179 conf-rx {
180 pins = "MIO34";
181 bias-high-impedance;
182 };
183
184 conf-tx {
185 pins = "MIO35";
186 bias-disable;
187 };
188 };
189
190 pinctrl_usb0_default: usb0-default {
191 mux {
192 groups = "usb0_0_grp";
193 function = "usb0";
194 };
195
196 conf {
197 groups = "usb0_0_grp";
198 slew-rate = <SLEW_RATE_SLOW>;
199 power-source = <IO_STANDARD_LVCMOS18>;
200 };
201
202 conf-rx {
203 pins = "MIO52", "MIO53", "MIO55";
204 bias-high-impedance;
205 };
206
207 conf-tx {
208 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
209 "MIO60", "MIO61", "MIO62", "MIO63";
210 bias-disable;
211 };
212 };
213
214 pinctrl_gem3_default: gem3-default {
215 mux {
216 function = "ethernet3";
217 groups = "ethernet3_0_grp";
218 };
219
220 conf {
221 groups = "ethernet3_0_grp";
222 slew-rate = <SLEW_RATE_SLOW>;
223 power-source = <IO_STANDARD_LVCMOS18>;
224 };
225
226 conf-rx {
227 pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
228 "MIO75";
229 bias-high-impedance;
230 low-power-disable;
231 };
232
233 conf-tx {
234 pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
235 "MIO69";
236 bias-disable;
237 low-power-enable;
238 };
239
240 mux-mdio {
241 function = "mdio3";
242 groups = "mdio3_0_grp";
243 };
244
245 conf-mdio {
246 groups = "mdio3_0_grp";
247 slew-rate = <SLEW_RATE_SLOW>;
248 power-source = <IO_STANDARD_LVCMOS18>;
249 bias-disable;
250 };
251 };
252
253 pinctrl_sdhci0_default: sdhci0-default {
254 mux {
255 groups = "sdio0_0_grp";
256 function = "sdio0";
257 };
258
259 conf {
260 groups = "sdio0_0_grp";
261 slew-rate = <SLEW_RATE_SLOW>;
262 power-source = <IO_STANDARD_LVCMOS18>;
263 bias-disable;
264 };
265
266 mux-cd {
267 groups = "sdio0_cd_0_grp";
268 function = "sdio0_cd";
269 };
270
271 conf-cd {
272 groups = "sdio0_cd_0_grp";
273 bias-high-impedance;
274 bias-pull-up;
275 slew-rate = <SLEW_RATE_SLOW>;
276 power-source = <IO_STANDARD_LVCMOS18>;
277 };
278
279 mux-wp {
280 groups = "sdio0_wp_0_grp";
281 function = "sdio0_wp";
282 };
283
284 conf-wp {
285 groups = "sdio0_wp_0_grp";
286 bias-high-impedance;
287 bias-pull-up;
288 slew-rate = <SLEW_RATE_SLOW>;
289 power-source = <IO_STANDARD_LVCMOS18>;
290 };
291 };
292
293 pinctrl_sdhci1_default: sdhci1-default {
294 mux {
295 groups = "sdio1_0_grp";
296 function = "sdio1";
297 };
298
299 conf {
300 groups = "sdio1_0_grp";
301 slew-rate = <SLEW_RATE_SLOW>;
302 power-source = <IO_STANDARD_LVCMOS18>;
303 bias-disable;
304 };
305
306 mux-cd {
307 groups = "sdio1_cd_0_grp";
308 function = "sdio1_cd";
309 };
310
311 conf-cd {
312 groups = "sdio1_cd_0_grp";
313 bias-high-impedance;
314 bias-pull-up;
315 slew-rate = <SLEW_RATE_SLOW>;
316 power-source = <IO_STANDARD_LVCMOS18>;
317 };
318
319 mux-wp {
320 groups = "sdio1_wp_0_grp";
321 function = "sdio1_wp";
322 };
323
324 conf-wp {
325 groups = "sdio1_wp_0_grp";
326 bias-high-impedance;
327 bias-pull-up;
328 slew-rate = <SLEW_RATE_SLOW>;
329 power-source = <IO_STANDARD_LVCMOS18>;
330 };
331 };
332
333 pinctrl_gpio_default: gpio-default {
334 mux {
335 function = "gpio0";
336 groups = "gpio0_38_grp";
337 };
338
339 conf {
340 groups = "gpio0_38_grp";
341 bias-disable;
342 slew-rate = <SLEW_RATE_SLOW>;
343 power-source = <IO_STANDARD_LVCMOS18>;
344 };
345 };
346};
347
Michal Simeka335bd22016-04-07 16:00:11 +0200348&qspi {
349 status = "okay";
350 flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000351 compatible = "m25p80", "jedec,spi-nor"; /* Micron MT25QU512ABB8ESF */
Michal Simeka335bd22016-04-07 16:00:11 +0200352 #address-cells = <1>;
353 #size-cells = <1>;
354 reg = <0x0>;
355 spi-tx-bus-width = <1>;
356 spi-rx-bus-width = <4>;
357 spi-max-frequency = <108000000>; /* Based on DC1 spec */
Michal Simek70fafdf2020-02-14 14:19:56 +0100358 partition@0 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200359 label = "qspi-fsbl-uboot";
360 reg = <0x0 0x100000>;
361 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100362 partition@100000 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200363 label = "qspi-linux";
364 reg = <0x100000 0x500000>;
365 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100366 partition@600000 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200367 label = "qspi-device-tree";
368 reg = <0x600000 0x20000>;
369 };
Michal Simek70fafdf2020-02-14 14:19:56 +0100370 partition@620000 { /* for testing purpose */
Michal Simeka335bd22016-04-07 16:00:11 +0200371 label = "qspi-rootfs";
372 reg = <0x620000 0x5E0000>;
373 };
374 };
375};
376
377&rtc {
378 status = "okay";
379};
380
381&sata {
382 status = "okay";
383 /* SATA phy OOB timing settings */
384 ceva,p0-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
385 ceva,p0-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
386 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
387 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
388 ceva,p1-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
389 ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
390 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
391 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
Michal Simekfe8cb0c2021-05-10 14:55:34 +0200392 phy-names = "sata-phy";
393 phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
Michal Simeka335bd22016-04-07 16:00:11 +0200394};
395
396/* eMMC */
397&sdhci0 {
398 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200399 pinctrl-names = "default";
400 pinctrl-0 = <&pinctrl_sdhci0_default>;
Michal Simeka335bd22016-04-07 16:00:11 +0200401 bus-width = <8>;
Michal Simek3b662642020-07-22 17:42:43 +0200402 xlnx,mio-bank = <0>;
Michal Simeka335bd22016-04-07 16:00:11 +0200403};
404
405/* SD1 with level shifter */
406&sdhci1 {
407 status = "okay";
Manish Naranie2ba0932020-02-13 23:37:30 -0700408 /*
409 * This property should be removed for supporting UHS mode
410 */
411 no-1-8-v;
Michal Simekf7b922a2021-05-10 13:14:02 +0200412 pinctrl-names = "default";
413 pinctrl-0 = <&pinctrl_sdhci1_default>;
Michal Simek3b662642020-07-22 17:42:43 +0200414 xlnx,mio-bank = <1>;
Michal Simeka335bd22016-04-07 16:00:11 +0200415};
416
417&uart0 {
418 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200419 pinctrl-names = "default";
420 pinctrl-0 = <&pinctrl_uart0_default>;
Michal Simeka335bd22016-04-07 16:00:11 +0200421};
422
423/* ULPI SMSC USB3320 */
424&usb0 {
425 status = "okay";
Michal Simekf7b922a2021-05-10 13:14:02 +0200426 pinctrl-names = "default";
427 pinctrl-0 = <&pinctrl_usb0_default>;
Michal Simeka4117002016-04-05 12:01:16 +0200428};
429
430&dwc3_0 {
431 status = "okay";
Michal Simeka335bd22016-04-07 16:00:11 +0200432 dr_mode = "host";
Michal Simekfe8cb0c2021-05-10 14:55:34 +0200433 snps,usb3_lpm_capable;
434 phy-names = "usb3-phy";
435 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
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";
444};
445