blob: 367611a0730bc0c978d24737fa611c1beeac7417 [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
19 cpus {
20 #address-cells = <1>;
21 #size-cells = <0>;
22
23 cpu@0 {
24 compatible = "arm,cortex-a7";
25 device_type = "cpu";
26 reg = <0>;
27 };
28
29 cpu@1 {
30 compatible = "arm,cortex-a7";
31 device_type = "cpu";
32 reg = <1>;
33 };
34 };
35
36 memory {
37 reg = <0x40000000 0x80000000>;
38 };
39
40 clocks {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 ranges;
44
45 osc24M: osc24M@01c20050 {
46 #clock-cells = <0>;
Maxime Ripardde7dc932013-07-25 21:12:52 +020047 compatible = "allwinner,sun4i-osc-clk";
48 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +020049 clock-frequency = <24000000>;
50 };
51
52 osc32k: osc32k {
53 #clock-cells = <0>;
54 compatible = "fixed-clock";
55 clock-frequency = <32768>;
56 };
Maxime Ripardde7dc932013-07-25 21:12:52 +020057
58 pll1: pll1@01c20000 {
59 #clock-cells = <0>;
60 compatible = "allwinner,sun4i-pll1-clk";
61 reg = <0x01c20000 0x4>;
62 clocks = <&osc24M>;
63 };
64
65 /*
66 * This is a dummy clock, to be used as placeholder on
67 * other mux clocks when a specific parent clock is not
68 * yet implemented. It should be dropped when the driver
69 * is complete.
70 */
71 pll6: pll6 {
72 #clock-cells = <0>;
73 compatible = "fixed-clock";
74 clock-frequency = <0>;
75 };
76
77 cpu: cpu@01c20054 {
78 #clock-cells = <0>;
79 compatible = "allwinner,sun4i-cpu-clk";
80 reg = <0x01c20054 0x4>;
81 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6>;
82 };
83
84 axi: axi@01c20054 {
85 #clock-cells = <0>;
86 compatible = "allwinner,sun4i-axi-clk";
87 reg = <0x01c20054 0x4>;
88 clocks = <&cpu>;
89 };
90
91 ahb: ahb@01c20054 {
92 #clock-cells = <0>;
93 compatible = "allwinner,sun4i-ahb-clk";
94 reg = <0x01c20054 0x4>;
95 clocks = <&axi>;
96 };
97
98 ahb_gates: ahb_gates@01c20060 {
99 #clock-cells = <1>;
100 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
101 reg = <0x01c20060 0x8>;
102 clocks = <&ahb>;
103 clock-output-names = "ahb_usb0", "ahb_ehci0",
104 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
105 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
106 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
107 "ahb_nand", "ahb_sdram", "ahb_ace",
108 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
109 "ahb_spi2", "ahb_spi3", "ahb_sata",
110 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
111 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
112 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
113 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
114 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
115 "ahb_mali";
116 };
117
118 apb0: apb0@01c20054 {
119 #clock-cells = <0>;
120 compatible = "allwinner,sun4i-apb0-clk";
121 reg = <0x01c20054 0x4>;
122 clocks = <&ahb>;
123 };
124
125 apb0_gates: apb0_gates@01c20068 {
126 #clock-cells = <1>;
127 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
128 reg = <0x01c20068 0x4>;
129 clocks = <&apb0>;
130 clock-output-names = "apb0_codec", "apb0_spdif",
131 "apb0_ac97", "apb0_iis0", "apb0_iis1",
132 "apb0_pio", "apb0_ir0", "apb0_ir1",
133 "apb0_iis2", "apb0_keypad";
134 };
135
136 apb1_mux: apb1_mux@01c20058 {
137 #clock-cells = <0>;
138 compatible = "allwinner,sun4i-apb1-mux-clk";
139 reg = <0x01c20058 0x4>;
140 clocks = <&osc24M>, <&pll6>, <&osc32k>;
141 };
142
143 apb1: apb1@01c20058 {
144 #clock-cells = <0>;
145 compatible = "allwinner,sun4i-apb1-clk";
146 reg = <0x01c20058 0x4>;
147 clocks = <&apb1_mux>;
148 };
149
150 apb1_gates: apb1_gates@01c2006c {
151 #clock-cells = <1>;
152 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
153 reg = <0x01c2006c 0x4>;
154 clocks = <&apb1>;
155 clock-output-names = "apb1_i2c0", "apb1_i2c1",
156 "apb1_i2c2", "apb1_i2c3", "apb1_can",
157 "apb1_scr", "apb1_ps20", "apb1_ps21",
158 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
159 "apb1_uart2", "apb1_uart3", "apb1_uart4",
160 "apb1_uart5", "apb1_uart6", "apb1_uart7";
161 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200162 };
163
164 soc@01c00000 {
165 compatible = "simple-bus";
166 #address-cells = <1>;
167 #size-cells = <1>;
168 ranges;
169
Maxime Ripard2e804d02013-09-11 11:10:06 +0200170 emac: ethernet@01c0b000 {
171 compatible = "allwinner,sun4i-emac";
172 reg = <0x01c0b000 0x1000>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100173 interrupts = <0 55 4>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200174 clocks = <&ahb_gates 17>;
175 status = "disabled";
176 };
177
178 mdio@01c0b080 {
179 compatible = "allwinner,sun4i-mdio";
180 reg = <0x01c0b080 0x14>;
181 status = "disabled";
182 #address-cells = <1>;
183 #size-cells = <0>;
184 };
185
Maxime Ripard17eac032013-07-24 23:46:11 +0200186 pio: pinctrl@01c20800 {
187 compatible = "allwinner,sun7i-a20-pinctrl";
188 reg = <0x01c20800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100189 interrupts = <0 28 4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200190 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200191 gpio-controller;
192 interrupt-controller;
193 #address-cells = <1>;
194 #size-cells = <0>;
195 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200196
197 uart0_pins_a: uart0@0 {
198 allwinner,pins = "PB22", "PB23";
199 allwinner,function = "uart0";
200 allwinner,drive = <0>;
201 allwinner,pull = <0>;
202 };
203
204 uart6_pins_a: uart6@0 {
205 allwinner,pins = "PI12", "PI13";
206 allwinner,function = "uart6";
207 allwinner,drive = <0>;
208 allwinner,pull = <0>;
209 };
210
211 uart7_pins_a: uart7@0 {
212 allwinner,pins = "PI20", "PI21";
213 allwinner,function = "uart7";
214 allwinner,drive = <0>;
215 allwinner,pull = <0>;
216 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200217
Maxime Riparde5496a32013-08-31 23:08:49 +0200218 i2c0_pins_a: i2c0@0 {
219 allwinner,pins = "PB0", "PB1";
220 allwinner,function = "i2c0";
221 allwinner,drive = <0>;
222 allwinner,pull = <0>;
223 };
224
225 i2c1_pins_a: i2c1@0 {
226 allwinner,pins = "PB18", "PB19";
227 allwinner,function = "i2c1";
228 allwinner,drive = <0>;
229 allwinner,pull = <0>;
230 };
231
232 i2c2_pins_a: i2c2@0 {
233 allwinner,pins = "PB20", "PB21";
234 allwinner,function = "i2c2";
235 allwinner,drive = <0>;
236 allwinner,pull = <0>;
237 };
238
Maxime Ripard756084c2013-09-11 11:10:07 +0200239 emac_pins_a: emac0@0 {
240 allwinner,pins = "PA0", "PA1", "PA2",
241 "PA3", "PA4", "PA5", "PA6",
242 "PA7", "PA8", "PA9", "PA10",
243 "PA11", "PA12", "PA13", "PA14",
244 "PA15", "PA16";
245 allwinner,function = "emac";
246 allwinner,drive = <0>;
247 allwinner,pull = <0>;
248 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200249 };
250
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200251 timer@01c20c00 {
252 compatible = "allwinner,sun4i-timer";
253 reg = <0x01c20c00 0x90>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100254 interrupts = <0 22 4>,
255 <0 23 4>,
256 <0 24 4>,
257 <0 25 4>,
258 <0 67 4>,
259 <0 68 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200260 clocks = <&osc24M>;
261 };
262
263 wdt: watchdog@01c20c90 {
264 compatible = "allwinner,sun4i-wdt";
265 reg = <0x01c20c90 0x10>;
266 };
267
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200268 sid: eeprom@01c23800 {
269 compatible = "allwinner,sun7i-a20-sid";
270 reg = <0x01c23800 0x200>;
271 };
272
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200273 uart0: serial@01c28000 {
274 compatible = "snps,dw-apb-uart";
275 reg = <0x01c28000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100276 interrupts = <0 1 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200277 reg-shift = <2>;
278 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200279 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200280 status = "disabled";
281 };
282
283 uart1: serial@01c28400 {
284 compatible = "snps,dw-apb-uart";
285 reg = <0x01c28400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100286 interrupts = <0 2 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200287 reg-shift = <2>;
288 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200289 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200290 status = "disabled";
291 };
292
293 uart2: serial@01c28800 {
294 compatible = "snps,dw-apb-uart";
295 reg = <0x01c28800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100296 interrupts = <0 3 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200297 reg-shift = <2>;
298 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200299 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200300 status = "disabled";
301 };
302
303 uart3: serial@01c28c00 {
304 compatible = "snps,dw-apb-uart";
305 reg = <0x01c28c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100306 interrupts = <0 4 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200307 reg-shift = <2>;
308 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200309 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200310 status = "disabled";
311 };
312
313 uart4: serial@01c29000 {
314 compatible = "snps,dw-apb-uart";
315 reg = <0x01c29000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100316 interrupts = <0 17 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200317 reg-shift = <2>;
318 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200319 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200320 status = "disabled";
321 };
322
323 uart5: serial@01c29400 {
324 compatible = "snps,dw-apb-uart";
325 reg = <0x01c29400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100326 interrupts = <0 18 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200327 reg-shift = <2>;
328 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200329 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200330 status = "disabled";
331 };
332
333 uart6: serial@01c29800 {
334 compatible = "snps,dw-apb-uart";
335 reg = <0x01c29800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100336 interrupts = <0 19 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200337 reg-shift = <2>;
338 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200339 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200340 status = "disabled";
341 };
342
343 uart7: serial@01c29c00 {
344 compatible = "snps,dw-apb-uart";
345 reg = <0x01c29c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100346 interrupts = <0 20 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200347 reg-shift = <2>;
348 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200349 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200350 status = "disabled";
351 };
352
Maxime Ripard428abbb2013-08-31 23:07:24 +0200353 i2c0: i2c@01c2ac00 {
354 compatible = "allwinner,sun4i-i2c";
355 reg = <0x01c2ac00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100356 interrupts = <0 7 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200357 clocks = <&apb1_gates 0>;
358 clock-frequency = <100000>;
359 status = "disabled";
360 };
361
362 i2c1: i2c@01c2b000 {
363 compatible = "allwinner,sun4i-i2c";
364 reg = <0x01c2b000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100365 interrupts = <0 8 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200366 clocks = <&apb1_gates 1>;
367 clock-frequency = <100000>;
368 status = "disabled";
369 };
370
371 i2c2: i2c@01c2b400 {
372 compatible = "allwinner,sun4i-i2c";
373 reg = <0x01c2b400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100374 interrupts = <0 9 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200375 clocks = <&apb1_gates 2>;
376 clock-frequency = <100000>;
377 status = "disabled";
378 };
379
380 i2c3: i2c@01c2b800 {
381 compatible = "allwinner,sun4i-i2c";
382 reg = <0x01c2b800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100383 interrupts = <0 88 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200384 clocks = <&apb1_gates 3>;
385 clock-frequency = <100000>;
386 status = "disabled";
387 };
388
389 i2c4: i2c@01c2bc00 {
390 compatible = "allwinner,sun4i-i2c";
391 reg = <0x01c2bc00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100392 interrupts = <0 89 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200393 clocks = <&apb1_gates 15>;
394 clock-frequency = <100000>;
395 status = "disabled";
396 };
397
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200398 gic: interrupt-controller@01c81000 {
399 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
400 reg = <0x01c81000 0x1000>,
401 <0x01c82000 0x1000>,
402 <0x01c84000 0x2000>,
403 <0x01c86000 0x2000>;
404 interrupt-controller;
405 #interrupt-cells = <3>;
406 interrupts = <1 9 0xf04>;
407 };
408 };
409};