blob: 8c4a9c3c069c79c61668d98150ce349050194545 [file] [log] [blame]
Maxime Ripardd4da2eb2012-11-14 20:17:04 +01001/*
2 * Copyright 2012 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
Maxime Ripard69144e32013-03-13 20:07:37 +010014/include/ "skeleton.dtsi"
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010015
16/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010017 interrupt-parent = <&intc>;
18
19 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +020020 #address-cells = <1>;
21 #size-cells = <0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010022 cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010023 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +010024 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010025 reg = <0x0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010026 };
27 };
28
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010029 memory {
30 reg = <0x40000000 0x20000000>;
31 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +010032
Maxime Ripard69144e32013-03-13 20:07:37 +010033 clocks {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 ranges;
37
38 /*
39 * This is a dummy clock, to be used as placeholder on
40 * other mux clocks when a specific parent clock is not
41 * yet implemented. It should be dropped when the driver
42 * is complete.
43 */
44 dummy: dummy {
45 #clock-cells = <0>;
46 compatible = "fixed-clock";
47 clock-frequency = <0>;
48 };
49
Maxime Ripard69144e32013-03-13 20:07:37 +010050 osc24M: osc24M@01c20050 {
51 #clock-cells = <0>;
52 compatible = "allwinner,sun4i-osc-clk";
53 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -030054 clock-frequency = <24000000>;
Maxime Ripard69144e32013-03-13 20:07:37 +010055 };
56
57 osc32k: osc32k {
58 #clock-cells = <0>;
59 compatible = "fixed-clock";
60 clock-frequency = <32768>;
61 };
62
63 pll1: pll1@01c20000 {
64 #clock-cells = <0>;
65 compatible = "allwinner,sun4i-pll1-clk";
66 reg = <0x01c20000 0x4>;
67 clocks = <&osc24M>;
68 };
69
Emilio Lópezec5589f2013-12-23 00:32:35 -030070 pll4: pll4@01c20018 {
71 #clock-cells = <0>;
72 compatible = "allwinner,sun4i-pll1-clk";
73 reg = <0x01c20018 0x4>;
74 clocks = <&osc24M>;
75 };
76
Maxime Ripard69144e32013-03-13 20:07:37 +010077 /* dummy is 200M */
78 cpu: cpu@01c20054 {
79 #clock-cells = <0>;
80 compatible = "allwinner,sun4i-cpu-clk";
81 reg = <0x01c20054 0x4>;
82 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
83 };
84
85 axi: axi@01c20054 {
86 #clock-cells = <0>;
87 compatible = "allwinner,sun4i-axi-clk";
88 reg = <0x01c20054 0x4>;
89 clocks = <&cpu>;
90 };
91
92 axi_gates: axi_gates@01c2005c {
93 #clock-cells = <1>;
94 compatible = "allwinner,sun4i-axi-gates-clk";
95 reg = <0x01c2005c 0x4>;
96 clocks = <&axi>;
97 clock-output-names = "axi_dram";
98 };
99
100 ahb: ahb@01c20054 {
101 #clock-cells = <0>;
102 compatible = "allwinner,sun4i-ahb-clk";
103 reg = <0x01c20054 0x4>;
104 clocks = <&axi>;
105 };
106
107 ahb_gates: ahb_gates@01c20060 {
108 #clock-cells = <1>;
Maxime Ripard70be4ee2013-04-19 22:14:41 +0200109 compatible = "allwinner,sun5i-a13-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100110 reg = <0x01c20060 0x8>;
111 clocks = <&ahb>;
Maxime Ripard70be4ee2013-04-19 22:14:41 +0200112 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
113 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
114 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
115 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer",
116 "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be",
117 "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripard69144e32013-03-13 20:07:37 +0100118 };
119
120 apb0: apb0@01c20054 {
121 #clock-cells = <0>;
122 compatible = "allwinner,sun4i-apb0-clk";
123 reg = <0x01c20054 0x4>;
124 clocks = <&ahb>;
125 };
126
127 apb0_gates: apb0_gates@01c20068 {
128 #clock-cells = <1>;
Maxime Ripard70be4ee2013-04-19 22:14:41 +0200129 compatible = "allwinner,sun5i-a13-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100130 reg = <0x01c20068 0x4>;
131 clocks = <&apb0>;
Maxime Ripard70be4ee2013-04-19 22:14:41 +0200132 clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir";
Maxime Ripard69144e32013-03-13 20:07:37 +0100133 };
134
Maxime Ripard70be4ee2013-04-19 22:14:41 +0200135 /* dummy is pll6 */
Maxime Ripard69144e32013-03-13 20:07:37 +0100136 apb1_mux: apb1_mux@01c20058 {
137 #clock-cells = <0>;
138 compatible = "allwinner,sun4i-apb1-mux-clk";
139 reg = <0x01c20058 0x4>;
140 clocks = <&osc24M>, <&dummy>, <&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>;
Maxime Ripard70be4ee2013-04-19 22:14:41 +0200152 compatible = "allwinner,sun5i-a13-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100153 reg = <0x01c2006c 0x4>;
154 clocks = <&apb1>;
155 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard70be4ee2013-04-19 22:14:41 +0200156 "apb1_i2c2", "apb1_uart1", "apb1_uart3";
Maxime Ripard69144e32013-03-13 20:07:37 +0100157 };
158 };
159
Maxime Ripard278fe8b2013-08-03 16:07:36 +0200160 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100161 compatible = "simple-bus";
162 #address-cells = <1>;
163 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100164 ranges;
165
166 intc: interrupt-controller@01c20400 {
Maxime Ripard6def1262013-03-24 19:20:52 +0100167 compatible = "allwinner,sun4i-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100168 reg = <0x01c20400 0x400>;
169 interrupt-controller;
170 #interrupt-cells = <1>;
171 };
172
Maxime Riparde10911e2013-01-27 19:26:05 +0100173 pio: pinctrl@01c20800 {
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100174 compatible = "allwinner,sun5i-a13-pinctrl";
175 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200176 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300177 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100178 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200179 interrupt-controller;
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100180 #address-cells = <1>;
181 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100182 #gpio-cells = <3>;
Maxime Ripard4348cc62013-01-18 22:30:37 +0100183
184 uart1_pins_a: uart1@0 {
185 allwinner,pins = "PE10", "PE11";
186 allwinner,function = "uart1";
187 allwinner,drive = <0>;
188 allwinner,pull = <0>;
189 };
190
191 uart1_pins_b: uart1@1 {
192 allwinner,pins = "PG3", "PG4";
193 allwinner,function = "uart1";
194 allwinner,drive = <0>;
195 allwinner,pull = <0>;
196 };
Maxime Ripardb4d7c232013-03-10 13:36:02 +0100197
198 i2c0_pins_a: i2c0@0 {
199 allwinner,pins = "PB0", "PB1";
200 allwinner,function = "i2c0";
201 allwinner,drive = <0>;
202 allwinner,pull = <0>;
203 };
204
205 i2c1_pins_a: i2c1@0 {
206 allwinner,pins = "PB15", "PB16";
207 allwinner,function = "i2c1";
208 allwinner,drive = <0>;
209 allwinner,pull = <0>;
210 };
211
212 i2c2_pins_a: i2c2@0 {
213 allwinner,pins = "PB17", "PB18";
214 allwinner,function = "i2c2";
215 allwinner,drive = <0>;
216 allwinner,pull = <0>;
217 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100218 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100219
220 timer@01c20c00 {
Maxime Ripardb6e1a532013-03-24 19:00:17 +0100221 compatible = "allwinner,sun4i-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +0100222 reg = <0x01c20c00 0x90>;
223 interrupts = <22>;
224 clocks = <&osc24M>;
225 };
226
227 wdt: watchdog@01c20c90 {
Maxime Ripard0b19b7c2013-03-24 19:32:34 +0100228 compatible = "allwinner,sun4i-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +0100229 reg = <0x01c20c90 0x10>;
230 };
231
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200232 sid: eeprom@01c23800 {
233 compatible = "allwinner,sun4i-sid";
234 reg = <0x01c23800 0x10>;
235 };
236
Maxime Ripard69144e32013-03-13 20:07:37 +0100237 uart1: serial@01c28400 {
238 compatible = "snps,dw-apb-uart";
239 reg = <0x01c28400 0x400>;
240 interrupts = <2>;
241 reg-shift = <2>;
242 reg-io-width = <4>;
243 clocks = <&apb1_gates 17>;
244 status = "disabled";
245 };
246
247 uart3: serial@01c28c00 {
248 compatible = "snps,dw-apb-uart";
249 reg = <0x01c28c00 0x400>;
250 interrupts = <4>;
251 reg-shift = <2>;
252 reg-io-width = <4>;
253 clocks = <&apb1_gates 19>;
254 status = "disabled";
255 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100256
257 i2c0: i2c@01c2ac00 {
258 compatible = "allwinner,sun4i-i2c";
259 reg = <0x01c2ac00 0x400>;
260 interrupts = <7>;
261 clocks = <&apb1_gates 0>;
262 clock-frequency = <100000>;
263 status = "disabled";
264 };
265
266 i2c1: i2c@01c2b000 {
267 compatible = "allwinner,sun4i-i2c";
268 reg = <0x01c2b000 0x400>;
269 interrupts = <8>;
270 clocks = <&apb1_gates 1>;
271 clock-frequency = <100000>;
272 status = "disabled";
273 };
274
275 i2c2: i2c@01c2b400 {
276 compatible = "allwinner,sun4i-i2c";
277 reg = <0x01c2b400 0x400>;
278 interrupts = <9>;
279 clocks = <&apb1_gates 2>;
280 clock-frequency = <100000>;
281 status = "disabled";
282 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100283 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +0100284};