blob: 48ab619472e057f4a12a11289f50d174edd90904 [file] [log] [blame]
Michal Simek316a9f22018-03-28 15:00:25 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * dts file for Xilinx ZynqMP zc1751-xm017-dc3
4 *
Michal Simek8676f512021-06-03 10:47:04 +02005 * (C) Copyright 2016 - 2021, Xilinx, Inc.
Michal Simek316a9f22018-03-28 15:00:25 +02006 *
Michal Simeka8c94362023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simek316a9f22018-03-28 15:00:25 +02008 */
9
10/dts-v1/;
11
12#include "zynqmp.dtsi"
13#include "zynqmp-clk-ccf.dtsi"
Piyush Mehtaf2a532e2021-06-21 10:11:27 +053014#include <dt-bindings/phy/phy.h>
Michal Simek316a9f22018-03-28 15:00:25 +020015
16/ {
17 model = "ZynqMP zc1751-xm017-dc3 RevA";
18 compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp";
19
20 aliases {
21 ethernet0 = &gem0;
Michal Simek316a9f22018-03-28 15:00:25 +020022 i2c0 = &i2c0;
23 i2c1 = &i2c1;
24 mmc0 = &sdhci1;
25 rtc0 = &rtc;
26 serial0 = &uart0;
27 serial1 = &uart1;
28 usb0 = &usb0;
29 usb1 = &usb1;
30 };
31
32 chosen {
33 bootargs = "earlycon";
34 stdout-path = "serial0:115200n8";
35 };
36
37 memory@0 {
38 device_type = "memory";
39 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
40 };
Piyush Mehtaf2a532e2021-06-21 10:11:27 +053041
42 clock_si5338_2: clk26 {
43 compatible = "fixed-clock";
44 #clock-cells = <0>;
45 clock-frequency = <26000000>;
46 };
47
48 clock_si5338_3: clk125 {
49 compatible = "fixed-clock";
50 #clock-cells = <0>;
51 clock-frequency = <125000000>;
52 };
Michal Simek316a9f22018-03-28 15:00:25 +020053};
54
55&fpd_dma_chan1 {
56 status = "okay";
57};
58
59&fpd_dma_chan2 {
60 status = "okay";
61};
62
63&fpd_dma_chan3 {
64 status = "okay";
65};
66
67&fpd_dma_chan4 {
68 status = "okay";
69};
70
71&fpd_dma_chan5 {
72 status = "okay";
73};
74
75&fpd_dma_chan6 {
76 status = "okay";
77};
78
79&fpd_dma_chan7 {
80 status = "okay";
81};
82
83&fpd_dma_chan8 {
84 status = "okay";
85};
86
87&gem0 {
88 status = "okay";
89 phy-handle = <&phy0>;
90 phy-mode = "rgmii-id";
Michal Simek0641df72023-09-22 12:35:36 +020091 mdio: mdio {
92 #address-cells = <1>;
93 #size-cells = <0>;
94 phy0: ethernet-phy@0 { /* VSC8211 */
95 reg = <0>;
96 };
Michal Simek316a9f22018-03-28 15:00:25 +020097 };
98};
99
100&gpio {
101 status = "okay";
102};
103
104/* just eeprom here */
105&i2c0 {
106 status = "okay";
107 clock-frequency = <400000>;
108
109 tca6416_u26: gpio@20 {
110 compatible = "ti,tca6416";
111 reg = <0x20>;
112 gpio-controller;
113 #gpio-cells = <2>;
114 /* IRQ not connected */
115 };
116
117 rtc@68 {
118 compatible = "dallas,ds1339";
119 reg = <0x68>;
120 };
121};
122
123/* eeprom24c02 and SE98A temp chip pca9306 */
124&i2c1 {
125 status = "okay";
126 clock-frequency = <400000>;
127};
128
129/* MT29F64G08AECDBJ4-6 */
130&nand0 {
131 status = "okay";
132 arasan,has-mdma;
133 num-cs = <2>;
134
Ashok Reddy Soma10363f92023-02-23 22:07:08 -0700135 nand@0 {
136 reg = <0x0>;
137 #address-cells = <0x2>;
138 #size-cells = <0x1>;
Venkatesh Yadav Abbarapu04965e42024-03-25 15:20:13 +0530139 nand-ecc-mode = "hw";
Ashok Reddy Soma10363f92023-02-23 22:07:08 -0700140 nand-rb = <0>;
141 label = "main-storage-0";
142 nand-ecc-step-size = <1024>;
143 nand-ecc-strength = <24>;
Ashok Reddy Soma67546662023-02-23 22:07:09 -0700144 nand-on-flash-bbt;
Michal Simek316a9f22018-03-28 15:00:25 +0200145
Ashok Reddy Soma10363f92023-02-23 22:07:08 -0700146 partition@0 { /* for testing purpose */
147 label = "nand-fsbl-uboot";
148 reg = <0x0 0x0 0x400000>;
149 };
150 partition@1 { /* for testing purpose */
151 label = "nand-linux";
152 reg = <0x0 0x400000 0x1400000>;
153 };
154 partition@2 { /* for testing purpose */
155 label = "nand-device-tree";
156 reg = <0x0 0x1800000 0x400000>;
157 };
158 partition@3 { /* for testing purpose */
159 label = "nand-rootfs";
160 reg = <0x0 0x1C00000 0x1400000>;
161 };
162 partition@4 { /* for testing purpose */
163 label = "nand-bitstream";
164 reg = <0x0 0x3000000 0x400000>;
165 };
166 partition@5 { /* for testing purpose */
167 label = "nand-misc";
168 reg = <0x0 0x3400000 0xFCC00000>;
169 };
Michal Simek316a9f22018-03-28 15:00:25 +0200170 };
Ashok Reddy Soma10363f92023-02-23 22:07:08 -0700171 nand@1 {
172 reg = <0x1>;
173 #address-cells = <0x2>;
174 #size-cells = <0x1>;
Venkatesh Yadav Abbarapu04965e42024-03-25 15:20:13 +0530175 nand-ecc-mode = "hw";
Ashok Reddy Soma10363f92023-02-23 22:07:08 -0700176 nand-rb = <0>;
177 label = "main-storage-1";
178 nand-ecc-step-size = <1024>;
179 nand-ecc-strength = <24>;
Ashok Reddy Soma67546662023-02-23 22:07:09 -0700180 nand-on-flash-bbt;
Ashok Reddy Soma10363f92023-02-23 22:07:08 -0700181
182 partition@0 { /* for testing purpose */
183 label = "nand1-fsbl-uboot";
184 reg = <0x0 0x0 0x400000>;
185 };
186 partition@1 { /* for testing purpose */
187 label = "nand1-linux";
188 reg = <0x0 0x400000 0x1400000>;
189 };
190 partition@2 { /* for testing purpose */
191 label = "nand1-device-tree";
192 reg = <0x0 0x1800000 0x400000>;
193 };
194 partition@3 { /* for testing purpose */
195 label = "nand1-rootfs";
196 reg = <0x0 0x1C00000 0x1400000>;
197 };
198 partition@4 { /* for testing purpose */
199 label = "nand1-bitstream";
200 reg = <0x0 0x3000000 0x400000>;
201 };
202 partition@5 { /* for testing purpose */
203 label = "nand1-misc";
204 reg = <0x0 0x3400000 0xFCC00000>;
205 };
Michal Simek316a9f22018-03-28 15:00:25 +0200206 };
207};
208
Piyush Mehtaf2a532e2021-06-21 10:11:27 +0530209&psgtr {
210 status = "okay";
211 /* usb3, sata */
212 clocks = <&clock_si5338_2>, <&clock_si5338_3>;
213 clock-names = "ref2", "ref3";
214};
215
Michal Simek316a9f22018-03-28 15:00:25 +0200216&rtc {
217 status = "okay";
218};
219
220&sata {
221 status = "okay";
222 /* SATA phy OOB timing settings */
223 ceva,p0-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
224 ceva,p0-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
225 ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
226 ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
227 ceva,p1-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
228 ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
229 ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
230 ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
Piyush Mehtaf2a532e2021-06-21 10:11:27 +0530231 phy-names = "sata-phy";
232 phys = <&psgtr 2 PHY_TYPE_SATA 0 3>;
Michal Simek316a9f22018-03-28 15:00:25 +0200233};
234
235&sdhci1 { /* emmc with some settings */
236 status = "okay";
237};
238
239/* main */
240&uart0 {
241 status = "okay";
242};
243
244/* DB9 */
245&uart1 {
246 status = "okay";
247};
248
249&usb0 {
250 status = "okay";
Manish Naranif3c63382021-07-14 06:17:19 -0600251 phy-names = "usb3-phy";
252 phys = <&psgtr 0 PHY_TYPE_USB3 0 2>;
Michal Simek06c5e0f2021-06-11 08:52:25 +0200253};
254
255&dwc3_0 {
256 status = "okay";
Michal Simek316a9f22018-03-28 15:00:25 +0200257 dr_mode = "host";
Michal Simek06c5e0f2021-06-11 08:52:25 +0200258 snps,usb3_lpm_capable;
259 maximum-speed = "super-speed";
Michal Simek316a9f22018-03-28 15:00:25 +0200260};
261
262/* ULPI SMSC USB3320 */
263&usb1 {
264 status = "okay";
Manish Naranif3c63382021-07-14 06:17:19 -0600265 phy-names = "usb3-phy";
266 phys = <&psgtr 3 PHY_TYPE_USB3 1 2>;
Michal Simek06c5e0f2021-06-11 08:52:25 +0200267};
268
269&dwc3_1 {
270 status = "okay";
Michal Simek316a9f22018-03-28 15:00:25 +0200271 dr_mode = "host";
Michal Simek06c5e0f2021-06-11 08:52:25 +0200272 snps,usb3_lpm_capable;
273 maximum-speed = "super-speed";
Michal Simek316a9f22018-03-28 15:00:25 +0200274};