blob: ad204da6c60f045cce7b66f0aed35c49056b54ed [file] [log] [blame]
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +02001/*
2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <dt-bindings/interrupt-controller/irq.h>
17#include <dt-bindings/interrupt-controller/arm-gic.h>
18#include "skeleton.dtsi"
19
20/ {
21 interrupt-parent = <&gic>;
22
Heiko Stuebner560106c2014-04-15 19:44:59 +020023 xin24m: oscillator {
24 compatible = "fixed-clock";
25 clock-frequency = <24000000>;
26 #clock-cells = <0>;
27 clock-output-names = "xin24m";
28 };
29
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020030 L2: l2-cache-controller@10138000 {
31 compatible = "arm,pl310-cache";
32 reg = <0x10138000 0x1000>;
33 cache-unified;
34 cache-level = <2>;
35 };
36
Heiko Stuebnerff84b902014-07-26 23:28:03 +020037 scu@1013c000 {
38 compatible = "arm,cortex-a9-scu";
39 reg = <0x1013c000 0x100>;
40 };
41
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020042 global_timer: global-timer@1013c200 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020043 compatible = "arm,cortex-a9-global-timer";
44 reg = <0x1013c200 0x20>;
45 interrupts = <GIC_PPI 11 0x304>;
46 clocks = <&cru CORE_PERI>;
47 };
48
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020049 local_timer: local-timer@1013c600 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020050 compatible = "arm,cortex-a9-twd-timer";
51 reg = <0x1013c600 0x20>;
52 interrupts = <GIC_PPI 13 0x304>;
53 clocks = <&cru CORE_PERI>;
54 };
55
Heiko Stuebnerff84b902014-07-26 23:28:03 +020056 gic: interrupt-controller@1013d000 {
57 compatible = "arm,cortex-a9-gic";
58 interrupt-controller;
59 #interrupt-cells = <3>;
60 reg = <0x1013d000 0x1000>,
61 <0x1013c100 0x0100>;
62 };
63
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020064 uart0: serial@10124000 {
65 compatible = "snps,dw-apb-uart";
66 reg = <0x10124000 0x400>;
67 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
68 reg-shift = <2>;
69 reg-io-width = <1>;
70 clocks = <&cru SCLK_UART0>;
71 status = "disabled";
72 };
73
74 uart1: serial@10126000 {
75 compatible = "snps,dw-apb-uart";
76 reg = <0x10126000 0x400>;
77 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
78 reg-shift = <2>;
79 reg-io-width = <1>;
80 clocks = <&cru SCLK_UART1>;
81 status = "disabled";
82 };
83
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020084 mmc0: dwmmc@10214000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020085 compatible = "rockchip,rk2928-dw-mshc";
86 reg = <0x10214000 0x1000>;
87 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +020088 #address-cells = <1>;
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020089 #size-cells = <0>;
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +020090
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020091 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
92 clock-names = "biu", "ciu";
Heiko Stuebnerf6f70cf2013-06-17 21:28:57 +020093
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020094 status = "disabled";
95 };
Heiko Stuebner46b82192013-06-17 22:17:16 +020096
Heiko Stuebnere40b43d2014-07-26 18:53:07 +020097 mmc1: dwmmc@10218000 {
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020098 compatible = "rockchip,rk2928-dw-mshc";
99 reg = <0x10218000 0x1000>;
100 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
101 #address-cells = <1>;
102 #size-cells = <0>;
Heiko Stuebner56f2b892014-04-29 22:02:52 +0200103
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200104 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
105 clock-names = "biu", "ciu";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200106
Heiko Stuebnerc3030d32014-07-26 18:44:35 +0200107 status = "disabled";
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200108 };
Heiko Stuebnerff84b902014-07-26 23:28:03 +0200109
110 pmu: pmu@20004000 {
111 compatible = "rockchip,rk3066-pmu", "syscon";
112 reg = <0x20004000 0x100>;
113 };
114
115 grf: grf@20008000 {
116 compatible = "syscon";
117 reg = <0x20008000 0x200>;
118 };
119
120 uart2: serial@20064000 {
121 compatible = "snps,dw-apb-uart";
122 reg = <0x20064000 0x400>;
123 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
124 reg-shift = <2>;
125 reg-io-width = <1>;
126 clocks = <&cru SCLK_UART2>;
127 status = "disabled";
128 };
129
130 uart3: serial@20068000 {
131 compatible = "snps,dw-apb-uart";
132 reg = <0x20068000 0x400>;
133 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
134 reg-shift = <2>;
135 reg-io-width = <1>;
136 clocks = <&cru SCLK_UART3>;
137 status = "disabled";
138 };
Heiko Stuebnerf75efdd2013-09-29 13:25:08 +0200139};