]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/rk3xxx.dtsi
Merge tag 'mvebu-fixes-4.17-2' of git://git.infradead.org/linux-mvebu into fixes
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / rk3xxx.dtsi
CommitLineData
f75efdd7
HS
1/*
2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
d6250a1f
HS
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
f75efdd7 9 *
d6250a1f
HS
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
f75efdd7
HS
42 */
43
44#include <dt-bindings/interrupt-controller/irq.h>
45#include <dt-bindings/interrupt-controller/arm-gic.h>
b60ab70b 46#include <dt-bindings/soc/rockchip,boot-mode.h>
f75efdd7
HS
47
48/ {
80f6defc
JMC
49 #address-cells = <1>;
50 #size-cells = <1>;
51
f75efdd7
HS
52 interrupt-parent = <&gic>;
53
9cdffd8c 54 aliases {
b3e4b953 55 ethernet0 = &emac;
9cdffd8c
HS
56 i2c0 = &i2c0;
57 i2c1 = &i2c1;
58 i2c2 = &i2c2;
59 i2c3 = &i2c3;
60 i2c4 = &i2c4;
4ff4ae12
HS
61 mshc0 = &emmc;
62 mshc1 = &mmc0;
63 mshc2 = &mmc1;
e5b0deda
JC
64 serial0 = &uart0;
65 serial1 = &uart1;
66 serial2 = &uart2;
67 serial3 = &uart3;
39c2bd78
HS
68 spi0 = &spi0;
69 spi1 = &spi1;
9cdffd8c
HS
70 };
71
ac42f481 72 amba {
2ef7d5f3 73 compatible = "simple-bus";
ac42f481
HS
74 #address-cells = <1>;
75 #size-cells = <1>;
76 ranges;
77
78 dmac1_s: dma-controller@20018000 {
79 compatible = "arm,pl330", "arm,primecell";
80 reg = <0x20018000 0x4000>;
81 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
82 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
83 #dma-cells = <1>;
9bed8b41 84 arm,pl330-broken-no-flushp;
ac42f481
HS
85 clocks = <&cru ACLK_DMA1>;
86 clock-names = "apb_pclk";
87 };
88
89 dmac1_ns: dma-controller@2001c000 {
90 compatible = "arm,pl330", "arm,primecell";
91 reg = <0x2001c000 0x4000>;
92 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
93 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
94 #dma-cells = <1>;
9bed8b41 95 arm,pl330-broken-no-flushp;
ac42f481
HS
96 clocks = <&cru ACLK_DMA1>;
97 clock-names = "apb_pclk";
98 status = "disabled";
99 };
100
101 dmac2: dma-controller@20078000 {
102 compatible = "arm,pl330", "arm,primecell";
103 reg = <0x20078000 0x4000>;
104 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
105 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
106 #dma-cells = <1>;
9bed8b41 107 arm,pl330-broken-no-flushp;
ac42f481
HS
108 clocks = <&cru ACLK_DMA2>;
109 clock-names = "apb_pclk";
110 };
111 };
112
560106c1
HS
113 xin24m: oscillator {
114 compatible = "fixed-clock";
115 clock-frequency = <24000000>;
116 #clock-cells = <0>;
117 clock-output-names = "xin24m";
118 };
119
4fcac83b
HS
120 gpu: gpu@10090000 {
121 compatible = "arm,mali-400";
122 reg = <0x10090000 0x10000>;
123 clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
124 clock-names = "core", "bus";
125 assigned-clocks = <&cru ACLK_GPU>;
126 assigned-clock-rates = <100000000>;
127 resets = <&cru SRST_GPU>;
128 status = "disabled";
129 };
130
c3030d30
HS
131 L2: l2-cache-controller@10138000 {
132 compatible = "arm,pl310-cache";
133 reg = <0x10138000 0x1000>;
134 cache-unified;
135 cache-level = <2>;
136 };
137
ff84b90e
HS
138 scu@1013c000 {
139 compatible = "arm,cortex-a9-scu";
140 reg = <0x1013c000 0x100>;
141 };
142
e40b43d6 143 global_timer: global-timer@1013c200 {
c3030d30
HS
144 compatible = "arm,cortex-a9-global-timer";
145 reg = <0x1013c200 0x20>;
2e1aa605 146 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
c3030d30
HS
147 clocks = <&cru CORE_PERI>;
148 };
149
e40b43d6 150 local_timer: local-timer@1013c600 {
c3030d30
HS
151 compatible = "arm,cortex-a9-twd-timer";
152 reg = <0x1013c600 0x20>;
2e1aa605 153 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
c3030d30
HS
154 clocks = <&cru CORE_PERI>;
155 };
156
ff84b90e
HS
157 gic: interrupt-controller@1013d000 {
158 compatible = "arm,cortex-a9-gic";
159 interrupt-controller;
160 #interrupt-cells = <3>;
161 reg = <0x1013d000 0x1000>,
162 <0x1013c100 0x0100>;
163 };
164
c3030d30
HS
165 uart0: serial@10124000 {
166 compatible = "snps,dw-apb-uart";
167 reg = <0x10124000 0x400>;
168 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
169 reg-shift = <2>;
170 reg-io-width = <1>;
69667ca2
HS
171 clock-names = "baudclk", "apb_pclk";
172 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
c3030d30
HS
173 status = "disabled";
174 };
175
176 uart1: serial@10126000 {
177 compatible = "snps,dw-apb-uart";
178 reg = <0x10126000 0x400>;
179 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
180 reg-shift = <2>;
181 reg-io-width = <1>;
69667ca2
HS
182 clock-names = "baudclk", "apb_pclk";
183 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
c3030d30
HS
184 status = "disabled";
185 };
186
fd14e6f9
HS
187 usb_otg: usb@10180000 {
188 compatible = "rockchip,rk3066-usb", "snps,dwc2";
189 reg = <0x10180000 0x40000>;
190 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
191 clocks = <&cru HCLK_OTG0>;
192 clock-names = "otg";
ec32bd9f
HS
193 dr_mode = "otg";
194 g-np-tx-fifo-size = <16>;
195 g-rx-fifo-size = <275>;
196 g-tx-fifo-size = <256 128 128 64 64 32>;
760bb977
HS
197 phys = <&usbphy0>;
198 phy-names = "usb2-phy";
fd14e6f9
HS
199 status = "disabled";
200 };
201
202 usb_host: usb@101c0000 {
203 compatible = "snps,dwc2";
204 reg = <0x101c0000 0x40000>;
205 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
206 clocks = <&cru HCLK_OTG1>;
207 clock-names = "otg";
ec32bd9f 208 dr_mode = "host";
760bb977
HS
209 phys = <&usbphy1>;
210 phy-names = "usb2-phy";
fd14e6f9
HS
211 status = "disabled";
212 };
213
18ec91e1
RP
214 emac: ethernet@10204000 {
215 compatible = "snps,arc-emac";
216 reg = <0x10204000 0x3c>;
217 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
218 #address-cells = <1>;
219 #size-cells = <0>;
220
221 rockchip,grf = <&grf>;
222
223 clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
224 clock-names = "hclk", "macref";
225 max-speed = <100>;
226 phy-mode = "rmii";
227
228 status = "disabled";
229 };
230
e40b43d6 231 mmc0: dwmmc@10214000 {
c3030d30
HS
232 compatible = "rockchip,rk2928-dw-mshc";
233 reg = <0x10214000 0x1000>;
234 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
c3030d30
HS
235 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
236 clock-names = "biu", "ciu";
94bbdd77
AK
237 dmas = <&dmac2 1>;
238 dma-names = "rx-tx";
4c1e3ff7 239 fifo-depth = <256>;
ee0024fd
HS
240 resets = <&cru SRST_SDMMC>;
241 reset-names = "reset";
c3030d30
HS
242 status = "disabled";
243 };
244
e40b43d6 245 mmc1: dwmmc@10218000 {
c3030d30
HS
246 compatible = "rockchip,rk2928-dw-mshc";
247 reg = <0x10218000 0x1000>;
248 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
c3030d30
HS
249 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
250 clock-names = "biu", "ciu";
94bbdd77
AK
251 dmas = <&dmac2 3>;
252 dma-names = "rx-tx";
4c1e3ff7 253 fifo-depth = <256>;
ee0024fd
HS
254 resets = <&cru SRST_SDIO>;
255 reset-names = "reset";
c3030d30 256 status = "disabled";
f75efdd7 257 };
ff84b90e 258
4ff4ae12
HS
259 emmc: dwmmc@1021c000 {
260 compatible = "rockchip,rk2928-dw-mshc";
261 reg = <0x1021c000 0x1000>;
262 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
4ff4ae12
HS
263 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
264 clock-names = "biu", "ciu";
94bbdd77
AK
265 dmas = <&dmac2 4>;
266 dma-names = "rx-tx";
4c1e3ff7 267 fifo-depth = <256>;
ee0024fd
HS
268 resets = <&cru SRST_EMMC>;
269 reset-names = "reset";
4ff4ae12
HS
270 status = "disabled";
271 };
272
ff84b90e 273 pmu: pmu@20004000 {
b60ab70b 274 compatible = "rockchip,rk3066-pmu", "syscon", "simple-mfd";
ff84b90e 275 reg = <0x20004000 0x100>;
b60ab70b
AY
276
277 reboot-mode {
278 compatible = "syscon-reboot-mode";
279 offset = <0x40>;
280 mode-normal = <BOOT_NORMAL>;
281 mode-recovery = <BOOT_RECOVERY>;
282 mode-bootloader = <BOOT_FASTBOOT>;
283 mode-loader = <BOOT_BL_DOWNLOAD>;
284 };
ff84b90e
HS
285 };
286
287 grf: grf@20008000 {
288 compatible = "syscon";
289 reg = <0x20008000 0x200>;
290 };
291
9cdffd8c
HS
292 i2c0: i2c@2002d000 {
293 compatible = "rockchip,rk3066-i2c";
294 reg = <0x2002d000 0x1000>;
295 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
296 #address-cells = <1>;
297 #size-cells = <0>;
298
299 rockchip,grf = <&grf>;
9cdffd8c
HS
300
301 clock-names = "i2c";
302 clocks = <&cru PCLK_I2C0>;
303
304 status = "disabled";
305 };
306
307 i2c1: i2c@2002f000 {
308 compatible = "rockchip,rk3066-i2c";
309 reg = <0x2002f000 0x1000>;
310 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
311 #address-cells = <1>;
312 #size-cells = <0>;
313
314 rockchip,grf = <&grf>;
315
316 clocks = <&cru PCLK_I2C1>;
317 clock-names = "i2c";
318
319 status = "disabled";
320 };
321
550c7f4e
BG
322 pwm0: pwm@20030000 {
323 compatible = "rockchip,rk2928-pwm";
324 reg = <0x20030000 0x10>;
325 #pwm-cells = <2>;
326 clocks = <&cru PCLK_PWM01>;
327 status = "disabled";
328 };
329
330 pwm1: pwm@20030010 {
331 compatible = "rockchip,rk2928-pwm";
332 reg = <0x20030010 0x10>;
333 #pwm-cells = <2>;
334 clocks = <&cru PCLK_PWM01>;
335 status = "disabled";
336 };
337
eb2b9d47
HS
338 wdt: watchdog@2004c000 {
339 compatible = "snps,dw-wdt";
340 reg = <0x2004c000 0x100>;
341 clocks = <&cru PCLK_WDT>;
342 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
343 status = "disabled";
344 };
345
550c7f4e
BG
346 pwm2: pwm@20050020 {
347 compatible = "rockchip,rk2928-pwm";
348 reg = <0x20050020 0x10>;
349 #pwm-cells = <2>;
350 clocks = <&cru PCLK_PWM23>;
351 status = "disabled";
352 };
353
354 pwm3: pwm@20050030 {
355 compatible = "rockchip,rk2928-pwm";
356 reg = <0x20050030 0x10>;
357 #pwm-cells = <2>;
358 clocks = <&cru PCLK_PWM23>;
359 status = "disabled";
360 };
361
9cdffd8c
HS
362 i2c2: i2c@20056000 {
363 compatible = "rockchip,rk3066-i2c";
364 reg = <0x20056000 0x1000>;
365 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
366 #address-cells = <1>;
367 #size-cells = <0>;
368
369 rockchip,grf = <&grf>;
370
371 clocks = <&cru PCLK_I2C2>;
372 clock-names = "i2c";
373
374 status = "disabled";
375 };
376
377 i2c3: i2c@2005a000 {
378 compatible = "rockchip,rk3066-i2c";
379 reg = <0x2005a000 0x1000>;
380 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
381 #address-cells = <1>;
382 #size-cells = <0>;
383
384 rockchip,grf = <&grf>;
385
386 clocks = <&cru PCLK_I2C3>;
387 clock-names = "i2c";
388
389 status = "disabled";
390 };
391
392 i2c4: i2c@2005e000 {
393 compatible = "rockchip,rk3066-i2c";
394 reg = <0x2005e000 0x1000>;
395 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
396 #address-cells = <1>;
397 #size-cells = <0>;
398
399 rockchip,grf = <&grf>;
400
401 clocks = <&cru PCLK_I2C4>;
402 clock-names = "i2c";
403
404 status = "disabled";
405 };
406
ff84b90e
HS
407 uart2: serial@20064000 {
408 compatible = "snps,dw-apb-uart";
409 reg = <0x20064000 0x400>;
410 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
411 reg-shift = <2>;
412 reg-io-width = <1>;
69667ca2
HS
413 clock-names = "baudclk", "apb_pclk";
414 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
ff84b90e
HS
415 status = "disabled";
416 };
417
418 uart3: serial@20068000 {
419 compatible = "snps,dw-apb-uart";
420 reg = <0x20068000 0x400>;
421 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
422 reg-shift = <2>;
423 reg-io-width = <1>;
69667ca2
HS
424 clock-names = "baudclk", "apb_pclk";
425 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
ff84b90e
HS
426 status = "disabled";
427 };
f23a6179
HS
428
429 saradc: saradc@2006c000 {
430 compatible = "rockchip,saradc";
431 reg = <0x2006c000 0x100>;
432 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
433 #io-channel-cells = <1>;
434 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
435 clock-names = "saradc", "apb_pclk";
3d4267a5
CW
436 resets = <&cru SRST_SARADC>;
437 reset-names = "saradc-apb";
f23a6179
HS
438 status = "disabled";
439 };
39c2bd78
HS
440
441 spi0: spi@20070000 {
442 compatible = "rockchip,rk3066-spi";
443 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
444 clock-names = "spiclk", "apb_pclk";
445 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
446 reg = <0x20070000 0x1000>;
447 #address-cells = <1>;
448 #size-cells = <0>;
b3e3a7b2
JC
449 dmas = <&dmac2 10>, <&dmac2 11>;
450 dma-names = "tx", "rx";
39c2bd78
HS
451 status = "disabled";
452 };
453
454 spi1: spi@20074000 {
455 compatible = "rockchip,rk3066-spi";
456 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
457 clock-names = "spiclk", "apb_pclk";
458 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
459 reg = <0x20074000 0x1000>;
460 #address-cells = <1>;
461 #size-cells = <0>;
b3e3a7b2
JC
462 dmas = <&dmac2 12>, <&dmac2 13>;
463 dma-names = "tx", "rx";
39c2bd78
HS
464 status = "disabled";
465 };
f75efdd7 466};