]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/blob - arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts
3da9bd2bfa118ef530d22ed7cecc066fd05f6432
[vajnamar/linux-xlnx.git] / arch / arm64 / boot / dts / xilinx / zynqmp-zc1751-xm017-dc3.dts
1 /*
2  * dts file for Xilinx ZynqMP zc1751-xm017-dc3
3  *
4  * (C) Copyright 2016, Xilinx, Inc.
5  *
6  * Michal Simek <michal.simek@xilinx.com>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  */
13
14 /dts-v1/;
15
16 #include "zynqmp.dtsi"
17 #include "zynqmp-clk-ccf.dtsi"
18
19 / {
20         model = "ZynqMP zc1751-xm017-dc3 RevA";
21         compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp";
22
23         aliases {
24                 ethernet0 = &gem0;
25                 gpio0 = &gpio;
26                 i2c0 = &i2c0;
27                 i2c1 = &i2c1;
28                 mmc0 = &sdhci1;
29                 rtc0 = &rtc;
30                 serial0 = &uart0;
31                 serial1 = &uart1;
32                 usb0 = &usb0;
33                 usb1 = &usb1;
34         };
35
36         chosen {
37                 bootargs = "earlycon";
38                 stdout-path = "serial0:115200n8";
39         };
40
41         memory@0 {
42                 device_type = "memory";
43                 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
44         };
45 };
46
47 /* fpd_dma clk 667MHz, lpd_dma 500MHz */
48 &fpd_dma_chan1 {
49         status = "okay";
50         xlnx,include-sg; /* for testing purpose */
51         xlnx,overfetch; /* for testing purpose */
52         xlnx,ratectrl = <0>; /* for testing purpose */
53         xlnx,src-issue = <31>;
54 };
55
56 &fpd_dma_chan2 {
57         status = "okay";
58         xlnx,ratectrl = <100>; /* for testing purpose */
59         xlnx,src-issue = <4>; /* for testing purpose */
60 };
61
62 &fpd_dma_chan3 {
63         status = "okay";
64 };
65
66 &fpd_dma_chan4 {
67         status = "okay";
68         xlnx,include-sg; /* for testing purpose */
69 };
70
71 &fpd_dma_chan5 {
72         status = "okay";
73 };
74
75 &fpd_dma_chan6 {
76         status = "okay";
77         xlnx,include-sg; /* for testing purpose */
78 };
79
80 &fpd_dma_chan7 {
81         status = "okay";
82 };
83
84 &fpd_dma_chan8 {
85         status = "okay";
86         xlnx,include-sg; /* for testing purpose */
87 };
88
89 &gem0 {
90         status = "okay";
91         phy-handle = <&phy0>;
92         phy-mode = "rgmii-id";
93         phy0: phy@0 { /* VSC8211 */
94                 reg = <0>;
95         };
96 };
97
98 &gpio {
99         status = "okay";
100 };
101
102 /* just eeprom here */
103 &i2c0 {
104         status = "okay";
105         clock-frequency = <400000>;
106
107         tca6416_u26: gpio@20 {
108                 compatible = "ti,tca6416";
109                 reg = <0x20>;
110                 gpio-controller;
111                 #gpio-cells = <2>;
112                 /* IRQ not connected */
113         };
114
115         rtc@68 {
116                 compatible = "dallas,ds1339";
117                 reg = <0x68>;
118         };
119 };
120
121 /* eeprom24c02 and SE98A temp chip pca9306 */
122 &i2c1 {
123         status = "okay";
124         clock-frequency = <400000>;
125 };
126
127 /* MT29F64G08AECDBJ4-6 */
128 &nand0 {
129         status = "okay";
130         arasan,has-mdma;
131         num-cs = <2>;
132
133         partition@0 {   /* for testing purpose */
134                 label = "nand-fsbl-uboot";
135                 reg = <0x0 0x0 0x400000>;
136         };
137         partition@1 {   /* for testing purpose */
138                 label = "nand-linux";
139                 reg = <0x0 0x400000 0x1400000>;
140         };
141         partition@2 {   /* for testing purpose */
142                 label = "nand-device-tree";
143                 reg = <0x0 0x1800000 0x400000>;
144         };
145         partition@3 {   /* for testing purpose */
146                 label = "nand-rootfs";
147                 reg = <0x0 0x1C00000 0x1400000>;
148         };
149         partition@4 {   /* for testing purpose */
150                 label = "nand-bitstream";
151                 reg = <0x0 0x3000000 0x400000>;
152         };
153         partition@5 {   /* for testing purpose */
154                 label = "nand-misc";
155                 reg = <0x0 0x3400000 0xFCC00000>;
156         };
157
158         partition@6 {   /* for testing purpose */
159                 label = "nand1-fsbl-uboot";
160                 reg = <0x1 0x0 0x400000>;
161         };
162         partition@7 {   /* for testing purpose */
163                 label = "nand1-linux";
164                 reg = <0x1 0x400000 0x1400000>;
165         };
166         partition@8 {   /* for testing purpose */
167                 label = "nand1-device-tree";
168                 reg = <0x1 0x1800000 0x400000>;
169         };
170         partition@9 {   /* for testing purpose */
171                 label = "nand1-rootfs";
172                 reg = <0x1 0x1C00000 0x1400000>;
173         };
174         partition@10 {  /* for testing purpose */
175                 label = "nand1-bitstream";
176                 reg = <0x1 0x3000000 0x400000>;
177         };
178         partition@11 {  /* for testing purpose */
179                 label = "nand1-misc";
180                 reg = <0x1 0x3400000 0xFCC00000>;
181         };
182 };
183
184 &rtc {
185         status = "okay";
186 };
187
188 &sata {
189         status = "okay";
190         /* SATA phy OOB timing settings */
191         ceva,p0-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
192         ceva,p0-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
193         ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
194         ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
195         ceva,p1-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>;
196         ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
197         ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
198         ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
199 };
200
201 &sdhci1 { /* emmc with some settings */
202         status = "okay";
203 };
204
205 /* main */
206 &uart0 {
207         status = "okay";
208 };
209
210 /* DB9 */
211 &uart1 {
212         status = "okay";
213 };
214
215 &usb0 {
216         status = "okay";
217         dr_mode = "host";
218 };
219
220 /* ULPI SMSC USB3320 */
221 &usb1 {
222         status = "okay";
223         dr_mode = "host";
224 };