blob: 5b592324021ae44b0fd51235c03e91bb4dafa872 [file] [log] [blame]
Michal Simek18a952c2018-03-27 10:36:39 +02001// SPDX-License-Identifier: GPL-2.0+
Michal Simek6c0c9582016-04-07 16:00:11 +02002/*
3 * dts file for Xilinx ZynqMP zc1751-xm015-dc1
4 *
Michal Simek447fb8d2021-05-31 09:50:01 +02005 * (C) Copyright 2015 - 2021, Xilinx, Inc.
Michal Simek6c0c9582016-04-07 16:00:11 +02006 *
Michal Simek174d72842023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simek6c0c9582016-04-07 16:00:11 +02008 */
9
10/dts-v1/;
11
12#include "zynqmp.dtsi"
Michal Simekee4983f2017-12-08 14:50:42 +010013#include "zynqmp-clk-ccf.dtsi"
Michal Simek31958402021-05-10 14:55:34 +020014#include <dt-bindings/phy/phy.h>
Michal Simekbd008492021-05-10 13:14:02 +020015#include <dt-bindings/gpio/gpio.h>
16#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simek6c0c9582016-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 Simek6c0c9582016-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 Simekc926e6f2016-11-11 13:21:04 +010038 memory@0 {
Michal Simek6c0c9582016-04-07 16:00:11 +020039 device_type = "memory";
40 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
41 };
Michal Simek31958402021-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 Simek6c0c9582016-04-07 16:00:11 +020062&fpd_dma_chan1 {
63 status = "okay";
Michal Simek6c0c9582016-04-07 16:00:11 +020064};
65
66&fpd_dma_chan2 {
67 status = "okay";
Michal Simek6c0c9582016-04-07 16:00:11 +020068};
69
70&fpd_dma_chan3 {
71 status = "okay";
72};
73
74&fpd_dma_chan4 {
75 status = "okay";
Michal Simek6c0c9582016-04-07 16:00:11 +020076};
77
78&fpd_dma_chan5 {
79 status = "okay";
80};
81
82&fpd_dma_chan6 {
83 status = "okay";
Michal Simek6c0c9582016-04-07 16:00:11 +020084};
85
86&fpd_dma_chan7 {
87 status = "okay";
88};
89
90&fpd_dma_chan8 {
91 status = "okay";
Michal Simek6c0c9582016-04-07 16:00:11 +020092};
93
94&gem3 {
95 status = "okay";
Michal Simek6c0c9582016-04-07 16:00:11 +020096 phy-handle = <&phy0>;
97 phy-mode = "rgmii-id";
Michal Simekbd008492021-05-10 13:14:02 +020098 pinctrl-names = "default";
99 pinctrl-0 = <&pinctrl_gem3_default>;
Michal Simek5c214ba2023-09-22 12:35:36 +0200100 mdio: mdio {
101 #address-cells = <1>;
102 #size-cells = <0>;
103 phy0: ethernet-phy@0 {
104 reg = <0>;
105 };
Michal Simek6c0c9582016-04-07 16:00:11 +0200106 };
107};
108
109&gpio {
110 status = "okay";
Michal Simekbd008492021-05-10 13:14:02 +0200111 pinctrl-names = "default";
112 pinctrl-0 = <&pinctrl_gpio_default>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200113};
114
115&gpu {
116 status = "okay";
117};
118
119&i2c1 {
120 status = "okay";
121 clock-frequency = <400000>;
Michal Simekbd008492021-05-10 13:14:02 +0200122 pinctrl-names = "default", "gpio";
123 pinctrl-0 = <&pinctrl_i2c1_default>;
124 pinctrl-1 = <&pinctrl_i2c1_gpio>;
Manikanta Guntupalli28dc3562023-07-10 14:37:28 +0200125 scl-gpios = <&gpio 36 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
126 sda-gpios = <&gpio 37 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simek43bf4392018-03-27 13:15:17 +0200127
128 eeprom: eeprom@55 {
Michal Simek098505f2018-03-27 10:54:25 +0200129 compatible = "atmel,24c64"; /* 24AA64 */
Michal Simek6c0c9582016-04-07 16:00:11 +0200130 reg = <0x55>;
131 };
132};
133
Michal Simekbd008492021-05-10 13:14:02 +0200134&pinctrl0 {
135 status = "okay";
136 pinctrl_i2c1_default: i2c1-default {
137 mux {
138 groups = "i2c1_9_grp";
139 function = "i2c1";
140 };
141
142 conf {
143 groups = "i2c1_9_grp";
144 bias-pull-up;
145 slew-rate = <SLEW_RATE_SLOW>;
146 power-source = <IO_STANDARD_LVCMOS18>;
147 };
148 };
149
150 pinctrl_i2c1_gpio: i2c1-gpio {
151 mux {
152 groups = "gpio0_36_grp", "gpio0_37_grp";
153 function = "gpio0";
154 };
155
156 conf {
157 groups = "gpio0_36_grp", "gpio0_37_grp";
158 slew-rate = <SLEW_RATE_SLOW>;
159 power-source = <IO_STANDARD_LVCMOS18>;
160 };
161 };
162
163 pinctrl_uart0_default: uart0-default {
164 mux {
165 groups = "uart0_8_grp";
166 function = "uart0";
167 };
168
169 conf {
170 groups = "uart0_8_grp";
171 slew-rate = <SLEW_RATE_SLOW>;
172 power-source = <IO_STANDARD_LVCMOS18>;
173 };
174
175 conf-rx {
176 pins = "MIO34";
177 bias-high-impedance;
178 };
179
180 conf-tx {
181 pins = "MIO35";
182 bias-disable;
183 };
184 };
185
186 pinctrl_usb0_default: usb0-default {
187 mux {
188 groups = "usb0_0_grp";
189 function = "usb0";
190 };
191
192 conf {
193 groups = "usb0_0_grp";
Michal Simekbd008492021-05-10 13:14:02 +0200194 power-source = <IO_STANDARD_LVCMOS18>;
195 };
196
197 conf-rx {
198 pins = "MIO52", "MIO53", "MIO55";
199 bias-high-impedance;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200200 drive-strength = <12>;
201 slew-rate = <SLEW_RATE_FAST>;
Michal Simekbd008492021-05-10 13:14:02 +0200202 };
203
204 conf-tx {
205 pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
206 "MIO60", "MIO61", "MIO62", "MIO63";
207 bias-disable;
Ashok Reddy Somab8745e72022-06-15 12:16:13 +0200208 drive-strength = <4>;
209 slew-rate = <SLEW_RATE_SLOW>;
Michal Simekbd008492021-05-10 13:14:02 +0200210 };
211 };
212
213 pinctrl_gem3_default: gem3-default {
214 mux {
215 function = "ethernet3";
216 groups = "ethernet3_0_grp";
217 };
218
219 conf {
220 groups = "ethernet3_0_grp";
221 slew-rate = <SLEW_RATE_SLOW>;
222 power-source = <IO_STANDARD_LVCMOS18>;
223 };
224
225 conf-rx {
226 pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
227 "MIO75";
228 bias-high-impedance;
229 low-power-disable;
230 };
231
232 conf-tx {
233 pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
234 "MIO69";
235 bias-disable;
236 low-power-enable;
237 };
238
239 mux-mdio {
240 function = "mdio3";
241 groups = "mdio3_0_grp";
242 };
243
244 conf-mdio {
245 groups = "mdio3_0_grp";
246 slew-rate = <SLEW_RATE_SLOW>;
247 power-source = <IO_STANDARD_LVCMOS18>;
248 bias-disable;
249 };
250 };
251
252 pinctrl_sdhci0_default: sdhci0-default {
253 mux {
254 groups = "sdio0_0_grp";
255 function = "sdio0";
256 };
257
258 conf {
259 groups = "sdio0_0_grp";
260 slew-rate = <SLEW_RATE_SLOW>;
261 power-source = <IO_STANDARD_LVCMOS18>;
262 bias-disable;
263 };
264
265 mux-cd {
266 groups = "sdio0_cd_0_grp";
267 function = "sdio0_cd";
268 };
269
270 conf-cd {
271 groups = "sdio0_cd_0_grp";
272 bias-high-impedance;
273 bias-pull-up;
274 slew-rate = <SLEW_RATE_SLOW>;
275 power-source = <IO_STANDARD_LVCMOS18>;
276 };
277
278 mux-wp {
279 groups = "sdio0_wp_0_grp";
280 function = "sdio0_wp";
281 };
282
283 conf-wp {
284 groups = "sdio0_wp_0_grp";
285 bias-high-impedance;
286 bias-pull-up;
287 slew-rate = <SLEW_RATE_SLOW>;
288 power-source = <IO_STANDARD_LVCMOS18>;
289 };
290 };
291
292 pinctrl_sdhci1_default: sdhci1-default {
293 mux {
294 groups = "sdio1_0_grp";
295 function = "sdio1";
296 };
297
298 conf {
299 groups = "sdio1_0_grp";
300 slew-rate = <SLEW_RATE_SLOW>;
301 power-source = <IO_STANDARD_LVCMOS18>;
302 bias-disable;
303 };
304
305 mux-cd {
306 groups = "sdio1_cd_0_grp";
307 function = "sdio1_cd";
308 };
309
310 conf-cd {
311 groups = "sdio1_cd_0_grp";
312 bias-high-impedance;
313 bias-pull-up;
314 slew-rate = <SLEW_RATE_SLOW>;
315 power-source = <IO_STANDARD_LVCMOS18>;
316 };
317
318 mux-wp {
319 groups = "sdio1_wp_0_grp";
320 function = "sdio1_wp";
321 };
322
323 conf-wp {
324 groups = "sdio1_wp_0_grp";
325 bias-high-impedance;
326 bias-pull-up;
327 slew-rate = <SLEW_RATE_SLOW>;
328 power-source = <IO_STANDARD_LVCMOS18>;
329 };
330 };
331
332 pinctrl_gpio_default: gpio-default {
333 mux {
334 function = "gpio0";
335 groups = "gpio0_38_grp";
336 };
337
338 conf {
339 groups = "gpio0_38_grp";
340 bias-disable;
341 slew-rate = <SLEW_RATE_SLOW>;
342 power-source = <IO_STANDARD_LVCMOS18>;
343 };
344 };
345};
346
Michal Simek6a2ce6e2021-06-03 15:18:04 +0200347&psgtr {
348 status = "okay";
349 /* dp, usb3, sata */
350 clocks = <&clock_si5338_0>, <&clock_si5338_2>, <&clock_si5338_3>;
351 clock-names = "ref1", "ref2", "ref3";
352};
353
Michal Simek6c0c9582016-04-07 16:00:11 +0200354&qspi {
355 status = "okay";
356 flash@0 {
Neil Armstrongffd4c7c2019-02-10 10:16:20 +0000357 compatible = "m25p80", "jedec,spi-nor"; /* Micron MT25QU512ABB8ESF */
Michal Simek6c0c9582016-04-07 16:00:11 +0200358 #address-cells = <1>;
359 #size-cells = <1>;
360 reg = <0x0>;
Amit Kumar Mahapatra6e38e2e2022-05-10 16:33:01 +0200361 spi-tx-bus-width = <4>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200362 spi-rx-bus-width = <4>;
363 spi-max-frequency = <108000000>; /* Based on DC1 spec */
Michal Simek5df63a62020-02-14 14:19:56 +0100364 partition@0 { /* for testing purpose */
Michal Simek6c0c9582016-04-07 16:00:11 +0200365 label = "qspi-fsbl-uboot";
366 reg = <0x0 0x100000>;
367 };
Michal Simek5df63a62020-02-14 14:19:56 +0100368 partition@100000 { /* for testing purpose */
Michal Simek6c0c9582016-04-07 16:00:11 +0200369 label = "qspi-linux";
370 reg = <0x100000 0x500000>;
371 };
Michal Simek5df63a62020-02-14 14:19:56 +0100372 partition@600000 { /* for testing purpose */
Michal Simek6c0c9582016-04-07 16:00:11 +0200373 label = "qspi-device-tree";
374 reg = <0x600000 0x20000>;
375 };
Michal Simek5df63a62020-02-14 14:19:56 +0100376 partition@620000 { /* for testing purpose */
Michal Simek6c0c9582016-04-07 16:00:11 +0200377 label = "qspi-rootfs";
378 reg = <0x620000 0x5E0000>;
379 };
380 };
381};
382
383&rtc {
384 status = "okay";
385};
386
387&sata {
388 status = "okay";
389 /* SATA phy OOB timing settings */
390 ceva,p0-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
391 ceva,p0-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
392 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
393 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
394 ceva,p1-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
395 ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
396 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
397 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
Michal Simek31958402021-05-10 14:55:34 +0200398 phy-names = "sata-phy";
399 phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200400};
401
402/* eMMC */
403&sdhci0 {
404 status = "okay";
Michal Simekbd008492021-05-10 13:14:02 +0200405 pinctrl-names = "default";
406 pinctrl-0 = <&pinctrl_sdhci0_default>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200407 bus-width = <8>;
Michal Simek01a6da12020-07-22 17:42:43 +0200408 xlnx,mio-bank = <0>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200409};
410
411/* SD1 with level shifter */
412&sdhci1 {
413 status = "okay";
Manish Narani12ffe752020-02-13 23:37:30 -0700414 /*
415 * This property should be removed for supporting UHS mode
416 */
417 no-1-8-v;
Michal Simekbd008492021-05-10 13:14:02 +0200418 pinctrl-names = "default";
419 pinctrl-0 = <&pinctrl_sdhci1_default>;
Michal Simek01a6da12020-07-22 17:42:43 +0200420 xlnx,mio-bank = <1>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200421};
422
423&uart0 {
424 status = "okay";
Michal Simekbd008492021-05-10 13:14:02 +0200425 pinctrl-names = "default";
426 pinctrl-0 = <&pinctrl_uart0_default>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200427};
428
429/* ULPI SMSC USB3320 */
430&usb0 {
431 status = "okay";
Michal Simekbd008492021-05-10 13:14:02 +0200432 pinctrl-names = "default";
433 pinctrl-0 = <&pinctrl_usb0_default>;
Manish Narani15ca9eb2021-07-14 06:17:19 -0600434 phy-names = "usb3-phy";
435 phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
Michal Simek8925e592016-04-05 12:01:16 +0200436};
437
438&dwc3_0 {
439 status = "okay";
Michal Simek6c0c9582016-04-07 16:00:11 +0200440 dr_mode = "host";
Michal Simek31958402021-05-10 14:55:34 +0200441 snps,usb3_lpm_capable;
Michal Simek184309b2021-05-31 17:51:58 +0200442 maximum-speed = "super-speed";
Michal Simek6c0c9582016-04-07 16:00:11 +0200443};
444
Michal Simekce906542020-11-26 14:25:02 +0100445&zynqmp_dpdma {
446 status = "okay";
447};
448
Michal Simek04437de2020-02-18 09:24:08 +0100449&zynqmp_dpsub {
Michal Simek6c0c9582016-04-07 16:00:11 +0200450 status = "okay";
Michal Simek9899f3e2021-06-14 14:58:35 +0200451 phy-names = "dp-phy0", "dp-phy1";
452 phys = <&psgtr 1 PHY_TYPE_DP 0 0>,
453 <&psgtr 0 PHY_TYPE_DP 1 1>;
Michal Simek6c0c9582016-04-07 16:00:11 +0200454};