2 * Copyright (c) 2016 The FreeBSD Foundation
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 compatible = "xlnx,zynq-7000";
32 interrupt-parent = <&GIC>;
34 // Reserve first half megabyte because it is not accessible to all
36 memreserve = <0x00000000 0x00080000>;
38 // Zynq PS System registers.
42 compatible = "simple-bus";
45 ranges = <0x0 0xf8000000 0xf10000>;
49 compatible = "xlnx,zy7_slcr";
53 // Interrupt controller
55 compatible = "arm,gic";
58 #interrupt-cells = <3>;
59 reg = <0xf01000 0x1000>, // distributer registers
60 <0xf00100 0x0100>; // CPU if registers
63 // L2 cache controller
65 compatible = "arm,pl310";
66 reg = <0xf02000 0x1000>;
68 interrupt-parent = <&GIC>;
73 compatible = "xlnx,zy7_devcfg";
74 reg = <0x7000 0x1000>;
76 interrupt-parent = <&GIC>;
79 // triple timer counters0,1
81 compatible = "xlnx,ttc";
82 reg = <0x1000 0x1000>;
86 compatible = "xlnx,ttc";
87 reg = <0x2000 0x1000>;
90 // ARM Cortex A9 TWD Timer
91 global_timer: timer@f00600 {
92 compatible = "arm,mpcore-timers";
95 reg = <0xf00200 0x100>, // Global Timer Regs
96 <0xf00600 0x20>; // Private Timer Regs
97 interrupts = <1 11 1>, <1 13 1>;
98 interrupt-parent = <&GIC>;
101 // system watch-dog timer
103 device_type = "watchdog";
104 compatible = "xlnx,zy7_wdt";
105 reg = <0x5000 0x1000>;
106 interrupts = <0 9 1>;
107 interrupt-parent = <&GIC>;
111 device_type = "watchdog";
112 compatible = "arm,mpcore_wdt";
113 reg = <0xf00620 0x20>;
114 interrupts = <1 14 1>;
115 interrupt-parent = <&GIC>;
121 // Zynq PS I/O Peripheral registers.
125 compatible = "simple-bus";
126 #address-cells = <1>;
128 ranges = <0x0 0xe0000000 0x300000>;
132 device_type = "serial";
133 compatible = "cadence,uart";
135 reg = <0x0000 0x1000>;
136 interrupts = <0 27 4>;
137 interrupt-parent = <&GIC>;
138 clock-frequency = <50000000>;
142 device_type = "serial";
143 compatible = "cadence,uart";
145 reg = <0x1000 0x1000>;
146 interrupts = <0 50 4>;
147 interrupt-parent = <&GIC>;
148 clock-frequency = <50000000>;
153 compatible = "xlnx,zy7_ehci";
155 reg = <0x2000 0x1000>;
156 interrupts = <0 21 4>;
157 interrupt-parent = <&GIC>;
161 compatible = "xlnx,zy7_ehci";
163 reg = <0x3000 0x1000>;
164 interrupts = <0 44 4>;
165 interrupt-parent = <&GIC>;
170 compatible = "xlnx,zy7_gpio";
171 reg = <0xa000 0x1000>;
172 interrupts = <0 20 4>;
173 interrupt-parent = <&GIC>;
176 // Gigabit Ethernet controllers
178 device_type = "network";
179 compatible = "cdns,zynq-gem", "cadence,gem";
181 reg = <0xb000 0x1000>;
182 interrupts = <0 22 4>;
183 interrupt-parent = <&GIC>;
188 device_type = "network";
189 compatible = "cdns,zynq-gem", "cadence,gem";
191 reg = <0xc000 0x1000>;
192 interrupts = <0 45 4>;
193 interrupt-parent = <&GIC>;
197 // Quad-SPI controller
199 compatible = "xlnx,zy7_qspi";
201 reg = <0xd000 0x1000>;
202 interrupts = <0 19 4>;
203 interrupt-parent = <&GIC>;
204 ref-clock = <200000000>; // 200 Mhz
205 spi-clock = <50000000>; // 50 Mhz
210 compatible = "xlnx,zy7_spi";
212 reg = <0x6000 0x100>;
213 interrupts = <0 26 4>;
214 interrupt-parent = <&GIC>;
218 compatible = "xlnx,zy7_spi";
220 reg = <0x7000 0x100>;
221 interrupts = <0 49 4>;
222 interrupt-parent = <&GIC>;
226 sdhci0: sdhci@100000 {
227 compatible = "xlnx,zy7_sdhci";
229 reg = <0x100000 0x1000>;
230 interrupts = <0 24 4>;
231 interrupt-parent = <&GIC>;
232 max-frequency = <50000000>;
235 sdhci1: sdhci@101000 {
236 compatible = "xlnx,zy7_sdhci";
238 reg = <0x101000 0x1000>;
239 interrupts = <0 47 4>;
240 interrupt-parent = <&GIC>;
241 max-frequency = <50000000>;