blob: 0bf70ee041eda3398df059cf7a6391f60cdae4e7 [file] [log] [blame]
Stefan Roese7423d2d2012-11-26 15:46:12 +01001/*
2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
4 *
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
Maxime Ripard69144e32013-03-13 20:07:37 +010013/include/ "skeleton.dtsi"
Stefan Roese7423d2d2012-11-26 15:46:12 +010014
15/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010016 interrupt-parent = <&intc>;
17
Emilio Lópeze751cce2013-11-16 15:17:29 -030018 aliases {
19 ethernet0 = &emac;
20 };
21
Maxime Ripard69144e32013-03-13 20:07:37 +010022 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +020023 #address-cells = <1>;
24 #size-cells = <0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010025 cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010026 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +010027 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010028 reg = <0x0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010029 };
30 };
31
Stefan Roese7423d2d2012-11-26 15:46:12 +010032 memory {
33 reg = <0x40000000 0x80000000>;
34 };
Maxime Ripard874b4e42013-01-26 15:36:54 +010035
Maxime Ripard69144e32013-03-13 20:07:37 +010036 clocks {
37 #address-cells = <1>;
38 #size-cells = <1>;
39 ranges;
40
41 /*
42 * This is a dummy clock, to be used as placeholder on
43 * other mux clocks when a specific parent clock is not
44 * yet implemented. It should be dropped when the driver
45 * is complete.
46 */
47 dummy: dummy {
48 #clock-cells = <0>;
49 compatible = "fixed-clock";
50 clock-frequency = <0>;
51 };
52
Maxime Ripard69144e32013-03-13 20:07:37 +010053 osc24M: osc24M@01c20050 {
54 #clock-cells = <0>;
55 compatible = "allwinner,sun4i-osc-clk";
56 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -030057 clock-frequency = <24000000>;
Maxime Ripard69144e32013-03-13 20:07:37 +010058 };
59
60 osc32k: osc32k {
61 #clock-cells = <0>;
62 compatible = "fixed-clock";
63 clock-frequency = <32768>;
64 };
65
66 pll1: pll1@01c20000 {
67 #clock-cells = <0>;
68 compatible = "allwinner,sun4i-pll1-clk";
69 reg = <0x01c20000 0x4>;
70 clocks = <&osc24M>;
71 };
72
73 /* dummy is 200M */
74 cpu: cpu@01c20054 {
75 #clock-cells = <0>;
76 compatible = "allwinner,sun4i-cpu-clk";
77 reg = <0x01c20054 0x4>;
78 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
79 };
80
81 axi: axi@01c20054 {
82 #clock-cells = <0>;
83 compatible = "allwinner,sun4i-axi-clk";
84 reg = <0x01c20054 0x4>;
85 clocks = <&cpu>;
86 };
87
88 axi_gates: axi_gates@01c2005c {
89 #clock-cells = <1>;
90 compatible = "allwinner,sun4i-axi-gates-clk";
91 reg = <0x01c2005c 0x4>;
92 clocks = <&axi>;
93 clock-output-names = "axi_dram";
94 };
95
96 ahb: ahb@01c20054 {
97 #clock-cells = <0>;
98 compatible = "allwinner,sun4i-ahb-clk";
99 reg = <0x01c20054 0x4>;
100 clocks = <&axi>;
101 };
102
103 ahb_gates: ahb_gates@01c20060 {
104 #clock-cells = <1>;
105 compatible = "allwinner,sun4i-ahb-gates-clk";
106 reg = <0x01c20060 0x8>;
107 clocks = <&ahb>;
108 clock-output-names = "ahb_usb0", "ahb_ehci0",
109 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
110 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
111 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
112 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
113 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
114 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
115 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
116 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
117 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
118 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
119 };
120
121 apb0: apb0@01c20054 {
122 #clock-cells = <0>;
123 compatible = "allwinner,sun4i-apb0-clk";
124 reg = <0x01c20054 0x4>;
125 clocks = <&ahb>;
126 };
127
128 apb0_gates: apb0_gates@01c20068 {
129 #clock-cells = <1>;
130 compatible = "allwinner,sun4i-apb0-gates-clk";
131 reg = <0x01c20068 0x4>;
132 clocks = <&apb0>;
133 clock-output-names = "apb0_codec", "apb0_spdif",
134 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
135 "apb0_ir1", "apb0_keypad";
136 };
137
138 /* dummy is pll62 */
139 apb1_mux: apb1_mux@01c20058 {
140 #clock-cells = <0>;
141 compatible = "allwinner,sun4i-apb1-mux-clk";
142 reg = <0x01c20058 0x4>;
143 clocks = <&osc24M>, <&dummy>, <&osc32k>;
144 };
145
146 apb1: apb1@01c20058 {
147 #clock-cells = <0>;
148 compatible = "allwinner,sun4i-apb1-clk";
149 reg = <0x01c20058 0x4>;
150 clocks = <&apb1_mux>;
151 };
152
153 apb1_gates: apb1_gates@01c2006c {
154 #clock-cells = <1>;
155 compatible = "allwinner,sun4i-apb1-gates-clk";
156 reg = <0x01c2006c 0x4>;
157 clocks = <&apb1>;
158 clock-output-names = "apb1_i2c0", "apb1_i2c1",
159 "apb1_i2c2", "apb1_can", "apb1_scr",
160 "apb1_ps20", "apb1_ps21", "apb1_uart0",
161 "apb1_uart1", "apb1_uart2", "apb1_uart3",
162 "apb1_uart4", "apb1_uart5", "apb1_uart6",
163 "apb1_uart7";
164 };
165 };
166
Maxime Ripardb74aec12013-08-03 16:07:36 +0200167 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100168 compatible = "simple-bus";
169 #address-cells = <1>;
170 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100171 ranges;
172
Maxime Riparde38afcb2013-05-30 03:49:23 +0000173 emac: ethernet@01c0b000 {
174 compatible = "allwinner,sun4i-emac";
175 reg = <0x01c0b000 0x1000>;
176 interrupts = <55>;
177 clocks = <&ahb_gates 17>;
178 status = "disabled";
179 };
180
181 mdio@01c0b080 {
182 compatible = "allwinner,sun4i-mdio";
183 reg = <0x01c0b080 0x14>;
184 status = "disabled";
185 #address-cells = <1>;
186 #size-cells = <0>;
187 };
188
Maxime Ripard69144e32013-03-13 20:07:37 +0100189 intc: interrupt-controller@01c20400 {
Maxime Ripard6def1262013-03-24 19:20:52 +0100190 compatible = "allwinner,sun4i-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100191 reg = <0x01c20400 0x400>;
192 interrupt-controller;
193 #interrupt-cells = <1>;
194 };
195
Maxime Riparde10911e2013-01-27 19:26:05 +0100196 pio: pinctrl@01c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100197 compatible = "allwinner,sun4i-a10-pinctrl";
198 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200199 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300200 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100201 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200202 interrupt-controller;
Maxime Ripard874b4e42013-01-26 15:36:54 +0100203 #address-cells = <1>;
204 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100205 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100206
207 uart0_pins_a: uart0@0 {
208 allwinner,pins = "PB22", "PB23";
209 allwinner,function = "uart0";
210 allwinner,drive = <0>;
211 allwinner,pull = <0>;
212 };
213
214 uart0_pins_b: uart0@1 {
215 allwinner,pins = "PF2", "PF4";
216 allwinner,function = "uart0";
217 allwinner,drive = <0>;
218 allwinner,pull = <0>;
219 };
220
221 uart1_pins_a: uart1@0 {
222 allwinner,pins = "PA10", "PA11";
223 allwinner,function = "uart1";
224 allwinner,drive = <0>;
225 allwinner,pull = <0>;
226 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100227
228 i2c0_pins_a: i2c0@0 {
229 allwinner,pins = "PB0", "PB1";
230 allwinner,function = "i2c0";
231 allwinner,drive = <0>;
232 allwinner,pull = <0>;
233 };
234
235 i2c1_pins_a: i2c1@0 {
236 allwinner,pins = "PB18", "PB19";
237 allwinner,function = "i2c1";
238 allwinner,drive = <0>;
239 allwinner,pull = <0>;
240 };
241
242 i2c2_pins_a: i2c2@0 {
243 allwinner,pins = "PB20", "PB21";
244 allwinner,function = "i2c2";
245 allwinner,drive = <0>;
246 allwinner,pull = <0>;
247 };
Linus Torvalds496322b2013-07-09 18:24:39 -0700248
Maxime Ripardb21da662013-05-30 03:49:22 +0000249 emac_pins_a: emac0@0 {
250 allwinner,pins = "PA0", "PA1", "PA2",
251 "PA3", "PA4", "PA5", "PA6",
252 "PA7", "PA8", "PA9", "PA10",
253 "PA11", "PA12", "PA13", "PA14",
254 "PA15", "PA16";
255 allwinner,function = "emac";
256 allwinner,drive = <0>;
257 allwinner,pull = <0>;
258 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100259 };
Maxime Ripard89b3c992013-02-20 17:25:03 -0800260
Maxime Ripard69144e32013-03-13 20:07:37 +0100261 timer@01c20c00 {
Maxime Ripardb6e1a532013-03-24 19:00:17 +0100262 compatible = "allwinner,sun4i-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +0100263 reg = <0x01c20c00 0x90>;
264 interrupts = <22>;
265 clocks = <&osc24M>;
266 };
267
268 wdt: watchdog@01c20c90 {
Maxime Ripard0b19b7c2013-03-24 19:32:34 +0100269 compatible = "allwinner,sun4i-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +0100270 reg = <0x01c20c90 0x10>;
271 };
272
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200273 rtc: rtc@01c20d00 {
274 compatible = "allwinner,sun4i-rtc";
275 reg = <0x01c20d00 0x20>;
276 interrupts = <24>;
277 };
278
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200279 sid: eeprom@01c23800 {
280 compatible = "allwinner,sun4i-sid";
281 reg = <0x01c23800 0x10>;
282 };
283
Maxime Ripard89b3c992013-02-20 17:25:03 -0800284 uart0: serial@01c28000 {
285 compatible = "snps,dw-apb-uart";
286 reg = <0x01c28000 0x400>;
287 interrupts = <1>;
288 reg-shift = <2>;
289 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300290 clocks = <&apb1_gates 16>;
Maxime Ripard89b3c992013-02-20 17:25:03 -0800291 status = "disabled";
292 };
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800293
Maxime Ripard69144e32013-03-13 20:07:37 +0100294 uart1: serial@01c28400 {
295 compatible = "snps,dw-apb-uart";
296 reg = <0x01c28400 0x400>;
297 interrupts = <2>;
298 reg-shift = <2>;
299 reg-io-width = <4>;
300 clocks = <&apb1_gates 17>;
301 status = "disabled";
302 };
303
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800304 uart2: serial@01c28800 {
305 compatible = "snps,dw-apb-uart";
306 reg = <0x01c28800 0x400>;
307 interrupts = <3>;
308 reg-shift = <2>;
309 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300310 clocks = <&apb1_gates 18>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800311 status = "disabled";
312 };
313
Maxime Ripard69144e32013-03-13 20:07:37 +0100314 uart3: serial@01c28c00 {
315 compatible = "snps,dw-apb-uart";
316 reg = <0x01c28c00 0x400>;
317 interrupts = <4>;
318 reg-shift = <2>;
319 reg-io-width = <4>;
320 clocks = <&apb1_gates 19>;
321 status = "disabled";
322 };
323
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800324 uart4: serial@01c29000 {
325 compatible = "snps,dw-apb-uart";
326 reg = <0x01c29000 0x400>;
327 interrupts = <17>;
328 reg-shift = <2>;
329 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300330 clocks = <&apb1_gates 20>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800331 status = "disabled";
332 };
333
334 uart5: serial@01c29400 {
335 compatible = "snps,dw-apb-uart";
336 reg = <0x01c29400 0x400>;
337 interrupts = <18>;
338 reg-shift = <2>;
339 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300340 clocks = <&apb1_gates 21>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800341 status = "disabled";
342 };
343
344 uart6: serial@01c29800 {
345 compatible = "snps,dw-apb-uart";
346 reg = <0x01c29800 0x400>;
347 interrupts = <19>;
348 reg-shift = <2>;
349 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300350 clocks = <&apb1_gates 22>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800351 status = "disabled";
352 };
353
354 uart7: serial@01c29c00 {
355 compatible = "snps,dw-apb-uart";
356 reg = <0x01c29c00 0x400>;
357 interrupts = <20>;
358 reg-shift = <2>;
359 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300360 clocks = <&apb1_gates 23>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800361 status = "disabled";
362 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100363
364 i2c0: i2c@01c2ac00 {
365 compatible = "allwinner,sun4i-i2c";
366 reg = <0x01c2ac00 0x400>;
367 interrupts = <7>;
368 clocks = <&apb1_gates 0>;
369 clock-frequency = <100000>;
370 status = "disabled";
371 };
372
373 i2c1: i2c@01c2b000 {
374 compatible = "allwinner,sun4i-i2c";
375 reg = <0x01c2b000 0x400>;
376 interrupts = <8>;
377 clocks = <&apb1_gates 1>;
378 clock-frequency = <100000>;
379 status = "disabled";
380 };
381
382 i2c2: i2c@01c2b400 {
383 compatible = "allwinner,sun4i-i2c";
384 reg = <0x01c2b400 0x400>;
385 interrupts = <9>;
386 clocks = <&apb1_gates 2>;
387 clock-frequency = <100000>;
388 status = "disabled";
389 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100390 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100391};