blob: 38916fbffaa87156dcd786d851c15d7ee48f06c9 [file] [log] [blame]
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/include/ "skeleton.dtsi"
15
16/ {
17 interrupt-parent = <&gic>;
18
Emilio Lópeze751cce2013-11-16 15:17:29 -030019 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080020 ethernet0 = &gmac;
Maxime Ripard4566b4b2014-01-02 22:05:04 +010021 serial0 = &uart0;
22 serial1 = &uart1;
23 serial2 = &uart2;
24 serial3 = &uart3;
25 serial4 = &uart4;
26 serial5 = &uart5;
27 serial6 = &uart6;
28 serial7 = &uart7;
Emilio Lópeze751cce2013-11-16 15:17:29 -030029 };
30
Maxime Ripard4790ecf2013-07-17 10:07:10 +020031 cpus {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 cpu@0 {
36 compatible = "arm,cortex-a7";
37 device_type = "cpu";
38 reg = <0>;
39 };
40
41 cpu@1 {
42 compatible = "arm,cortex-a7";
43 device_type = "cpu";
44 reg = <1>;
45 };
46 };
47
48 memory {
49 reg = <0x40000000 0x80000000>;
50 };
51
Marc Zyngier79027632014-02-18 14:04:44 +000052 timer {
53 compatible = "arm,armv7-timer";
54 interrupts = <1 13 0xf08>,
55 <1 14 0xf08>,
56 <1 11 0xf08>,
57 <1 10 0xf08>;
58 };
59
Maxime Ripard4790ecf2013-07-17 10:07:10 +020060 clocks {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 ranges;
64
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080065 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020066 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010067 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +020068 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +020069 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080070 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020071 };
72
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080073 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020074 #clock-cells = <0>;
75 compatible = "fixed-clock";
76 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080077 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020078 };
Maxime Ripardde7dc932013-07-25 21:12:52 +020079
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080080 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020081 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010082 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +020083 reg = <0x01c20000 0x4>;
84 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080085 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +020086 };
87
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080088 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020089 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010090 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -030091 reg = <0x01c20018 0x4>;
92 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080093 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -030094 };
95
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080096 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -030097 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010098 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -030099 reg = <0x01c20020 0x4>;
100 clocks = <&osc24M>;
101 clock-output-names = "pll5_ddr", "pll5_other";
102 };
103
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800104 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300105 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100106 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300107 reg = <0x01c20028 0x4>;
108 clocks = <&osc24M>;
109 clock-output-names = "pll6_sata", "pll6_other", "pll6";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200110 };
111
112 cpu: cpu@01c20054 {
113 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100114 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200115 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300116 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800117 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200118 };
119
120 axi: axi@01c20054 {
121 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100122 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200123 reg = <0x01c20054 0x4>;
124 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800125 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200126 };
127
128 ahb: ahb@01c20054 {
129 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100130 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200131 reg = <0x01c20054 0x4>;
132 clocks = <&axi>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800133 clock-output-names = "ahb";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200134 };
135
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800136 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200137 #clock-cells = <1>;
138 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
139 reg = <0x01c20060 0x8>;
140 clocks = <&ahb>;
141 clock-output-names = "ahb_usb0", "ahb_ehci0",
142 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
143 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
144 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
145 "ahb_nand", "ahb_sdram", "ahb_ace",
146 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
147 "ahb_spi2", "ahb_spi3", "ahb_sata",
148 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
149 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
150 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
151 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
152 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
153 "ahb_mali";
154 };
155
156 apb0: apb0@01c20054 {
157 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100158 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200159 reg = <0x01c20054 0x4>;
160 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800161 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200162 };
163
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800164 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200165 #clock-cells = <1>;
166 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
167 reg = <0x01c20068 0x4>;
168 clocks = <&apb0>;
169 clock-output-names = "apb0_codec", "apb0_spdif",
170 "apb0_ac97", "apb0_iis0", "apb0_iis1",
171 "apb0_pio", "apb0_ir0", "apb0_ir1",
172 "apb0_iis2", "apb0_keypad";
173 };
174
175 apb1_mux: apb1_mux@01c20058 {
176 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100177 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200178 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300179 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800180 clock-output-names = "apb1_mux";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200181 };
182
183 apb1: apb1@01c20058 {
184 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100185 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200186 reg = <0x01c20058 0x4>;
187 clocks = <&apb1_mux>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800188 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200189 };
190
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800191 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200192 #clock-cells = <1>;
193 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
194 reg = <0x01c2006c 0x4>;
195 clocks = <&apb1>;
196 clock-output-names = "apb1_i2c0", "apb1_i2c1",
197 "apb1_i2c2", "apb1_i2c3", "apb1_can",
198 "apb1_scr", "apb1_ps20", "apb1_ps21",
199 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
200 "apb1_uart2", "apb1_uart3", "apb1_uart4",
201 "apb1_uart5", "apb1_uart6", "apb1_uart7";
202 };
Emilio López1c92b952013-12-23 00:32:43 -0300203
204 nand_clk: clk@01c20080 {
205 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100206 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300207 reg = <0x01c20080 0x4>;
208 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
209 clock-output-names = "nand";
210 };
211
212 ms_clk: clk@01c20084 {
213 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100214 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300215 reg = <0x01c20084 0x4>;
216 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
217 clock-output-names = "ms";
218 };
219
220 mmc0_clk: clk@01c20088 {
221 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100222 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300223 reg = <0x01c20088 0x4>;
224 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
225 clock-output-names = "mmc0";
226 };
227
228 mmc1_clk: clk@01c2008c {
229 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100230 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300231 reg = <0x01c2008c 0x4>;
232 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
233 clock-output-names = "mmc1";
234 };
235
236 mmc2_clk: clk@01c20090 {
237 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100238 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300239 reg = <0x01c20090 0x4>;
240 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
241 clock-output-names = "mmc2";
242 };
243
244 mmc3_clk: clk@01c20094 {
245 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100246 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300247 reg = <0x01c20094 0x4>;
248 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
249 clock-output-names = "mmc3";
250 };
251
252 ts_clk: clk@01c20098 {
253 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100254 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300255 reg = <0x01c20098 0x4>;
256 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
257 clock-output-names = "ts";
258 };
259
260 ss_clk: clk@01c2009c {
261 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100262 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300263 reg = <0x01c2009c 0x4>;
264 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
265 clock-output-names = "ss";
266 };
267
268 spi0_clk: clk@01c200a0 {
269 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100270 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300271 reg = <0x01c200a0 0x4>;
272 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
273 clock-output-names = "spi0";
274 };
275
276 spi1_clk: clk@01c200a4 {
277 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100278 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300279 reg = <0x01c200a4 0x4>;
280 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
281 clock-output-names = "spi1";
282 };
283
284 spi2_clk: clk@01c200a8 {
285 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100286 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300287 reg = <0x01c200a8 0x4>;
288 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
289 clock-output-names = "spi2";
290 };
291
292 pata_clk: clk@01c200ac {
293 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100294 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300295 reg = <0x01c200ac 0x4>;
296 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
297 clock-output-names = "pata";
298 };
299
300 ir0_clk: clk@01c200b0 {
301 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100302 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300303 reg = <0x01c200b0 0x4>;
304 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305 clock-output-names = "ir0";
306 };
307
308 ir1_clk: clk@01c200b4 {
309 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100310 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300311 reg = <0x01c200b4 0x4>;
312 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
313 clock-output-names = "ir1";
314 };
315
Roman Byshko434e41b2014-02-07 16:21:53 +0100316 usb_clk: clk@01c200cc {
317 #clock-cells = <1>;
318 #reset-cells = <1>;
319 compatible = "allwinner,sun4i-a10-usb-clk";
320 reg = <0x01c200cc 0x4>;
321 clocks = <&pll6 1>;
322 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
323 };
324
Emilio López1c92b952013-12-23 00:32:43 -0300325 spi3_clk: clk@01c200d4 {
326 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100327 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300328 reg = <0x01c200d4 0x4>;
329 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
330 clock-output-names = "spi3";
331 };
Emilio López118c07a2013-12-23 00:32:44 -0300332
333 mbus_clk: clk@01c2015c {
334 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100335 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300336 reg = <0x01c2015c 0x4>;
337 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
338 clock-output-names = "mbus";
339 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800340
341 /*
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800342 * The following two are dummy clocks, placeholders used in the gmac_tx
343 * clock. The gmac driver will choose one parent depending on the PHY
344 * interface mode, using clk_set_rate auto-reparenting.
345 * The actual TX clock rate is not controlled by the gmac_tx clock.
346 */
347 mii_phy_tx_clk: clk@2 {
348 #clock-cells = <0>;
349 compatible = "fixed-clock";
350 clock-frequency = <25000000>;
351 clock-output-names = "mii_phy_tx";
352 };
353
354 gmac_int_tx_clk: clk@3 {
355 #clock-cells = <0>;
356 compatible = "fixed-clock";
357 clock-frequency = <125000000>;
358 clock-output-names = "gmac_int_tx";
359 };
360
361 gmac_tx_clk: clk@01c20164 {
362 #clock-cells = <0>;
363 compatible = "allwinner,sun7i-a20-gmac-clk";
364 reg = <0x01c20164 0x4>;
365 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
366 clock-output-names = "gmac_tx";
367 };
368
369 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800370 * Dummy clock used by output clocks
371 */
372 osc24M_32k: clk@1 {
373 #clock-cells = <0>;
374 compatible = "fixed-factor-clock";
375 clock-div = <750>;
376 clock-mult = <1>;
377 clocks = <&osc24M>;
378 clock-output-names = "osc24M_32k";
379 };
380
381 clk_out_a: clk@01c201f0 {
382 #clock-cells = <0>;
383 compatible = "allwinner,sun7i-a20-out-clk";
384 reg = <0x01c201f0 0x4>;
385 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
386 clock-output-names = "clk_out_a";
387 };
388
389 clk_out_b: clk@01c201f4 {
390 #clock-cells = <0>;
391 compatible = "allwinner,sun7i-a20-out-clk";
392 reg = <0x01c201f4 0x4>;
393 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
394 clock-output-names = "clk_out_b";
395 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200396 };
397
398 soc@01c00000 {
399 compatible = "simple-bus";
400 #address-cells = <1>;
401 #size-cells = <1>;
402 ranges;
403
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100404 spi0: spi@01c05000 {
405 compatible = "allwinner,sun4i-a10-spi";
406 reg = <0x01c05000 0x1000>;
407 interrupts = <0 10 4>;
408 clocks = <&ahb_gates 20>, <&spi0_clk>;
409 clock-names = "ahb", "mod";
410 status = "disabled";
411 #address-cells = <1>;
412 #size-cells = <0>;
413 };
414
415 spi1: spi@01c06000 {
416 compatible = "allwinner,sun4i-a10-spi";
417 reg = <0x01c06000 0x1000>;
418 interrupts = <0 11 4>;
419 clocks = <&ahb_gates 21>, <&spi1_clk>;
420 clock-names = "ahb", "mod";
421 status = "disabled";
422 #address-cells = <1>;
423 #size-cells = <0>;
424 };
425
Maxime Ripard2e804d02013-09-11 11:10:06 +0200426 emac: ethernet@01c0b000 {
427 compatible = "allwinner,sun4i-emac";
428 reg = <0x01c0b000 0x1000>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100429 interrupts = <0 55 4>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200430 clocks = <&ahb_gates 17>;
431 status = "disabled";
432 };
433
434 mdio@01c0b080 {
435 compatible = "allwinner,sun4i-mdio";
436 reg = <0x01c0b080 0x14>;
437 status = "disabled";
438 #address-cells = <1>;
439 #size-cells = <0>;
440 };
441
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100442 spi2: spi@01c17000 {
443 compatible = "allwinner,sun4i-a10-spi";
444 reg = <0x01c17000 0x1000>;
445 interrupts = <0 12 4>;
446 clocks = <&ahb_gates 22>, <&spi2_clk>;
447 clock-names = "ahb", "mod";
448 status = "disabled";
449 #address-cells = <1>;
450 #size-cells = <0>;
451 };
452
Hans de Goede902febf2014-03-01 20:26:22 +0100453 ahci: sata@01c18000 {
454 compatible = "allwinner,sun4i-a10-ahci";
455 reg = <0x01c18000 0x1000>;
456 interrupts = <0 56 4>;
457 clocks = <&pll6 0>, <&ahb_gates 25>;
458 status = "disabled";
459 };
460
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100461 spi3: spi@01c1f000 {
462 compatible = "allwinner,sun4i-a10-spi";
463 reg = <0x01c1f000 0x1000>;
464 interrupts = <0 50 4>;
465 clocks = <&ahb_gates 23>, <&spi3_clk>;
466 clock-names = "ahb", "mod";
467 status = "disabled";
468 #address-cells = <1>;
469 #size-cells = <0>;
470 };
471
Maxime Ripard17eac032013-07-24 23:46:11 +0200472 pio: pinctrl@01c20800 {
473 compatible = "allwinner,sun7i-a20-pinctrl";
474 reg = <0x01c20800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100475 interrupts = <0 28 4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200476 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200477 gpio-controller;
478 interrupt-controller;
479 #address-cells = <1>;
480 #size-cells = <0>;
481 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200482
483 uart0_pins_a: uart0@0 {
484 allwinner,pins = "PB22", "PB23";
485 allwinner,function = "uart0";
486 allwinner,drive = <0>;
487 allwinner,pull = <0>;
488 };
489
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800490 uart2_pins_a: uart2@0 {
491 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
492 allwinner,function = "uart2";
493 allwinner,drive = <0>;
494 allwinner,pull = <0>;
495 };
496
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200497 uart6_pins_a: uart6@0 {
498 allwinner,pins = "PI12", "PI13";
499 allwinner,function = "uart6";
500 allwinner,drive = <0>;
501 allwinner,pull = <0>;
502 };
503
504 uart7_pins_a: uart7@0 {
505 allwinner,pins = "PI20", "PI21";
506 allwinner,function = "uart7";
507 allwinner,drive = <0>;
508 allwinner,pull = <0>;
509 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200510
Maxime Riparde5496a32013-08-31 23:08:49 +0200511 i2c0_pins_a: i2c0@0 {
512 allwinner,pins = "PB0", "PB1";
513 allwinner,function = "i2c0";
514 allwinner,drive = <0>;
515 allwinner,pull = <0>;
516 };
517
518 i2c1_pins_a: i2c1@0 {
519 allwinner,pins = "PB18", "PB19";
520 allwinner,function = "i2c1";
521 allwinner,drive = <0>;
522 allwinner,pull = <0>;
523 };
524
525 i2c2_pins_a: i2c2@0 {
526 allwinner,pins = "PB20", "PB21";
527 allwinner,function = "i2c2";
528 allwinner,drive = <0>;
529 allwinner,pull = <0>;
530 };
531
Maxime Ripard756084c2013-09-11 11:10:07 +0200532 emac_pins_a: emac0@0 {
533 allwinner,pins = "PA0", "PA1", "PA2",
534 "PA3", "PA4", "PA5", "PA6",
535 "PA7", "PA8", "PA9", "PA10",
536 "PA11", "PA12", "PA13", "PA14",
537 "PA15", "PA16";
538 allwinner,function = "emac";
539 allwinner,drive = <0>;
540 allwinner,pull = <0>;
541 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800542
543 clk_out_a_pins_a: clk_out_a@0 {
544 allwinner,pins = "PI12";
545 allwinner,function = "clk_out_a";
546 allwinner,drive = <0>;
547 allwinner,pull = <0>;
548 };
549
550 clk_out_b_pins_a: clk_out_b@0 {
551 allwinner,pins = "PI13";
552 allwinner,function = "clk_out_b";
553 allwinner,drive = <0>;
554 allwinner,pull = <0>;
555 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800556
557 gmac_pins_mii_a: gmac_mii@0 {
558 allwinner,pins = "PA0", "PA1", "PA2",
559 "PA3", "PA4", "PA5", "PA6",
560 "PA7", "PA8", "PA9", "PA10",
561 "PA11", "PA12", "PA13", "PA14",
562 "PA15", "PA16";
563 allwinner,function = "gmac";
564 allwinner,drive = <0>;
565 allwinner,pull = <0>;
566 };
567
568 gmac_pins_rgmii_a: gmac_rgmii@0 {
569 allwinner,pins = "PA0", "PA1", "PA2",
570 "PA3", "PA4", "PA5", "PA6",
571 "PA7", "PA8", "PA10",
572 "PA11", "PA12", "PA13",
573 "PA15", "PA16";
574 allwinner,function = "gmac";
575 /*
576 * data lines in RGMII mode use DDR mode
577 * and need a higher signal drive strength
578 */
579 allwinner,drive = <3>;
580 allwinner,pull = <0>;
581 };
Maxime Ripard412f2c62014-02-22 22:35:58 +0100582
583 spi1_pins_a: spi1@0 {
584 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
585 allwinner,function = "spi1";
586 allwinner,drive = <0>;
587 allwinner,pull = <0>;
588 };
589
590 spi2_pins_a: spi2@0 {
591 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
592 allwinner,function = "spi2";
593 allwinner,drive = <0>;
594 allwinner,pull = <0>;
595 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200596 };
597
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200598 timer@01c20c00 {
599 compatible = "allwinner,sun4i-timer";
600 reg = <0x01c20c00 0x90>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100601 interrupts = <0 22 4>,
602 <0 23 4>,
603 <0 24 4>,
604 <0 25 4>,
605 <0 67 4>,
606 <0 68 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200607 clocks = <&osc24M>;
608 };
609
610 wdt: watchdog@01c20c90 {
611 compatible = "allwinner,sun4i-wdt";
612 reg = <0x01c20c90 0x10>;
613 };
614
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200615 rtc: rtc@01c20d00 {
616 compatible = "allwinner,sun7i-a20-rtc";
617 reg = <0x01c20d00 0x20>;
618 interrupts = <0 24 1>;
619 };
620
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200621 sid: eeprom@01c23800 {
622 compatible = "allwinner,sun7i-a20-sid";
623 reg = <0x01c23800 0x200>;
624 };
625
Hans de Goede00f7ed82013-12-31 17:20:52 +0100626 rtp: rtp@01c25000 {
627 compatible = "allwinner,sun4i-ts";
628 reg = <0x01c25000 0x100>;
629 interrupts = <0 29 4>;
630 };
631
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200632 uart0: serial@01c28000 {
633 compatible = "snps,dw-apb-uart";
634 reg = <0x01c28000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100635 interrupts = <0 1 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200636 reg-shift = <2>;
637 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200638 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200639 status = "disabled";
640 };
641
642 uart1: serial@01c28400 {
643 compatible = "snps,dw-apb-uart";
644 reg = <0x01c28400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100645 interrupts = <0 2 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200646 reg-shift = <2>;
647 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200648 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200649 status = "disabled";
650 };
651
652 uart2: serial@01c28800 {
653 compatible = "snps,dw-apb-uart";
654 reg = <0x01c28800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100655 interrupts = <0 3 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200656 reg-shift = <2>;
657 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200658 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200659 status = "disabled";
660 };
661
662 uart3: serial@01c28c00 {
663 compatible = "snps,dw-apb-uart";
664 reg = <0x01c28c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100665 interrupts = <0 4 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200666 reg-shift = <2>;
667 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200668 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200669 status = "disabled";
670 };
671
672 uart4: serial@01c29000 {
673 compatible = "snps,dw-apb-uart";
674 reg = <0x01c29000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100675 interrupts = <0 17 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200676 reg-shift = <2>;
677 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200678 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200679 status = "disabled";
680 };
681
682 uart5: serial@01c29400 {
683 compatible = "snps,dw-apb-uart";
684 reg = <0x01c29400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100685 interrupts = <0 18 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200686 reg-shift = <2>;
687 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200688 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200689 status = "disabled";
690 };
691
692 uart6: serial@01c29800 {
693 compatible = "snps,dw-apb-uart";
694 reg = <0x01c29800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100695 interrupts = <0 19 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200696 reg-shift = <2>;
697 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200698 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200699 status = "disabled";
700 };
701
702 uart7: serial@01c29c00 {
703 compatible = "snps,dw-apb-uart";
704 reg = <0x01c29c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100705 interrupts = <0 20 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200706 reg-shift = <2>;
707 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200708 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200709 status = "disabled";
710 };
711
Maxime Ripard428abbb2013-08-31 23:07:24 +0200712 i2c0: i2c@01c2ac00 {
713 compatible = "allwinner,sun4i-i2c";
714 reg = <0x01c2ac00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100715 interrupts = <0 7 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200716 clocks = <&apb1_gates 0>;
717 clock-frequency = <100000>;
718 status = "disabled";
719 };
720
721 i2c1: i2c@01c2b000 {
722 compatible = "allwinner,sun4i-i2c";
723 reg = <0x01c2b000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100724 interrupts = <0 8 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200725 clocks = <&apb1_gates 1>;
726 clock-frequency = <100000>;
727 status = "disabled";
728 };
729
730 i2c2: i2c@01c2b400 {
731 compatible = "allwinner,sun4i-i2c";
732 reg = <0x01c2b400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100733 interrupts = <0 9 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200734 clocks = <&apb1_gates 2>;
735 clock-frequency = <100000>;
736 status = "disabled";
737 };
738
739 i2c3: i2c@01c2b800 {
740 compatible = "allwinner,sun4i-i2c";
741 reg = <0x01c2b800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100742 interrupts = <0 88 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200743 clocks = <&apb1_gates 3>;
744 clock-frequency = <100000>;
745 status = "disabled";
746 };
747
748 i2c4: i2c@01c2bc00 {
749 compatible = "allwinner,sun4i-i2c";
750 reg = <0x01c2bc00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100751 interrupts = <0 89 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200752 clocks = <&apb1_gates 15>;
753 clock-frequency = <100000>;
754 status = "disabled";
755 };
756
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +0800757 gmac: ethernet@01c50000 {
758 compatible = "allwinner,sun7i-a20-gmac";
759 reg = <0x01c50000 0x10000>;
760 interrupts = <0 85 4>;
761 interrupt-names = "macirq";
762 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
763 clock-names = "stmmaceth", "allwinner_gmac_tx";
764 snps,pbl = <2>;
765 snps,fixed-burst;
766 snps,force_sf_dma_mode;
767 status = "disabled";
768 #address-cells = <1>;
769 #size-cells = <0>;
770 };
771
Maxime Ripard31f8ad32013-11-07 12:01:48 +0100772 hstimer@01c60000 {
773 compatible = "allwinner,sun7i-a20-hstimer";
774 reg = <0x01c60000 0x1000>;
775 interrupts = <0 81 1>,
776 <0 82 1>,
777 <0 83 1>,
778 <0 84 1>;
779 clocks = <&ahb_gates 28>;
780 };
781
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200782 gic: interrupt-controller@01c81000 {
783 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
784 reg = <0x01c81000 0x1000>,
785 <0x01c82000 0x1000>,
786 <0x01c84000 0x2000>,
787 <0x01c86000 0x2000>;
788 interrupt-controller;
789 #interrupt-cells = <3>;
790 interrupts = <1 9 0xf04>;
791 };
792 };
793};