arm: dts: lx2160aqds: add MDIO slots
[oweals/u-boot.git] / arch / arm / dts / zynqmp-zc1751-xm016-dc2.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * dts file for Xilinx ZynqMP zc1751-xm016-dc2
4  *
5  * (C) Copyright 2015 - 2020, Xilinx, Inc.
6  *
7  * Michal Simek <michal.simek@xilinx.com>
8  */
9
10 /dts-v1/;
11
12 #include "zynqmp.dtsi"
13 #include "zynqmp-clk-ccf.dtsi"
14
15 / {
16         model = "ZynqMP zc1751-xm016-dc2 RevA";
17         compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp";
18
19         aliases {
20                 can0 = &can0;
21                 can1 = &can1;
22                 ethernet0 = &gem2;
23                 gpio0 = &gpio;
24                 i2c0 = &i2c0;
25                 rtc0 = &rtc;
26                 serial0 = &uart0;
27                 serial1 = &uart1;
28                 spi0 = &spi0;
29                 spi1 = &spi1;
30                 usb0 = &usb1;
31         };
32
33         chosen {
34                 bootargs = "earlycon";
35                 stdout-path = "serial0:115200n8";
36         };
37
38         memory@0 {
39                 device_type = "memory";
40                 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
41         };
42 };
43
44 &can0 {
45         status = "okay";
46 };
47
48 &can1 {
49         status = "okay";
50 };
51
52 &fpd_dma_chan1 {
53         status = "okay";
54 };
55
56 &fpd_dma_chan2 {
57         status = "okay";
58 };
59
60 &fpd_dma_chan3 {
61         status = "okay";
62 };
63
64 &fpd_dma_chan4 {
65         status = "okay";
66 };
67
68 &fpd_dma_chan5 {
69         status = "okay";
70 };
71
72 &fpd_dma_chan6 {
73         status = "okay";
74 };
75
76 &fpd_dma_chan7 {
77         status = "okay";
78 };
79
80 &fpd_dma_chan8 {
81         status = "okay";
82 };
83
84 &gem2 {
85         status = "okay";
86         phy-handle = <&phy0>;
87         phy-mode = "rgmii-id";
88         phy0: ethernet-phy@5 {
89                 reg = <5>;
90                 ti,rx-internal-delay = <0x8>;
91                 ti,tx-internal-delay = <0xa>;
92                 ti,fifo-depth = <0x1>;
93                 ti,dp83867-rxctrl-strap-quirk;
94         };
95 };
96
97 &gpio {
98         status = "okay";
99 };
100
101 &i2c0 {
102         status = "okay";
103         clock-frequency = <400000>;
104
105         tca6416_u26: gpio@20 {
106                 compatible = "ti,tca6416";
107                 reg = <0x20>;
108                 gpio-controller;
109                 #gpio-cells = <2>;
110                 /* IRQ not connected */
111         };
112
113         rtc@68 {
114                 compatible = "dallas,ds1339";
115                 reg = <0x68>;
116         };
117 };
118
119 &nand0 {
120         status = "okay";
121         arasan,has-mdma;
122
123         nand@0 {
124                 reg = <0x0>;
125                 #address-cells = <0x2>;
126                 #size-cells = <0x1>;
127
128                 partition@0 {   /* for testing purpose */
129                         label = "nand-fsbl-uboot";
130                         reg = <0x0 0x0 0x400000>;
131                 };
132                 partition@1 {   /* for testing purpose */
133                         label = "nand-linux";
134                         reg = <0x0 0x400000 0x1400000>;
135                 };
136                 partition@2 {   /* for testing purpose */
137                         label = "nand-device-tree";
138                         reg = <0x0 0x1800000 0x400000>;
139                 };
140                 partition@3 {   /* for testing purpose */
141                         label = "nand-rootfs";
142                         reg = <0x0 0x1c00000 0x1400000>;
143                 };
144                 partition@4 {   /* for testing purpose */
145                         label = "nand-bitstream";
146                         reg = <0x0 0x3000000 0x400000>;
147                 };
148                 partition@5 {   /* for testing purpose */
149                         label = "nand-misc";
150                         reg = <0x0 0x3400000 0xfcc00000>;
151                 };
152         };
153         nand@1 {
154                 reg = <0x1>;
155                 #address-cells = <0x2>;
156                 #size-cells = <0x1>;
157
158                 partition@0 {   /* for testing purpose */
159                         label = "nand1-fsbl-uboot";
160                         reg = <0x0 0x0 0x400000>;
161                 };
162                 partition@1 {   /* for testing purpose */
163                         label = "nand1-linux";
164                         reg = <0x0 0x400000 0x1400000>;
165                 };
166                 partition@2 {   /* for testing purpose */
167                         label = "nand1-device-tree";
168                         reg = <0x0 0x1800000 0x400000>;
169                 };
170                 partition@3 {   /* for testing purpose */
171                         label = "nand1-rootfs";
172                         reg = <0x0 0x1c00000 0x1400000>;
173                 };
174                 partition@4 {   /* for testing purpose */
175                         label = "nand1-bitstream";
176                         reg = <0x0 0x3000000 0x400000>;
177                 };
178                 partition@5 {   /* for testing purpose */
179                         label = "nand1-misc";
180                         reg = <0x0 0x3400000 0xfcc00000>;
181                 };
182         };
183 };
184
185 &rtc {
186         status = "okay";
187 };
188
189 &spi0 {
190         status = "okay";
191         num-cs = <1>;
192         spi0_flash0: flash@0 {
193                 #address-cells = <1>;
194                 #size-cells = <1>;
195                 compatible = "sst,sst25wf080", "jedec,spi-nor";
196                 spi-max-frequency = <50000000>;
197                 reg = <0>;
198
199                 partition@0 {
200                         label = "spi0-data";
201                         reg = <0x0 0x100000>;
202                 };
203         };
204 };
205
206 &spi1 {
207         status = "okay";
208         num-cs = <1>;
209         spi1_flash0: flash@0 {
210                 #address-cells = <1>;
211                 #size-cells = <1>;
212                 compatible = "atmel,at45db041e", "atmel,at45", "atmel,dataflash";
213                 spi-max-frequency = <20000000>;
214                 reg = <0>;
215
216                 partition@0 {
217                         label = "spi1-data";
218                         reg = <0x0 0x84000>;
219                 };
220         };
221 };
222
223 /* ULPI SMSC USB3320 */
224 &usb1 {
225         status = "okay";
226 };
227
228 &dwc3_1 {
229         status = "okay";
230         dr_mode = "host";
231 };
232
233 &uart0 {
234         status = "okay";
235 };
236
237 &uart1 {
238         status = "okay";
239 };