blob: 5fa96c939b5c253dd76cb1c730ad9f532b358486 [file] [log] [blame]
Masahiro Yamada8e678e02015-05-08 13:07:13 +09001/*
Masahiro Yamada77896e42016-08-30 14:02:41 +09002 * Device Tree Source for UniPhier sLD3 SoC
Masahiro Yamada8e678e02015-05-08 13:07:13 +09003 *
Masahiro Yamada77896e42016-08-30 14:02:41 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada8e678e02015-05-08 13:07:13 +09006 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
16 *
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
31 * conditions:
32 *
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
44 */
45
46/include/ "skeleton.dtsi"
47
48/ {
Masahiro Yamada77896e42016-08-30 14:02:41 +090049 compatible = "socionext,uniphier-sld3";
Masahiro Yamada8e678e02015-05-08 13:07:13 +090050
51 cpus {
52 #address-cells = <1>;
53 #size-cells = <0>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +090054
55 cpu@0 {
56 device_type = "cpu";
57 compatible = "arm,cortex-a9";
58 reg = <0>;
Masahiro Yamada3bdba5a2016-08-29 03:27:42 +090059 enable-method = "psci";
Masahiro Yamada7c62f292015-10-02 13:42:21 +090060 next-level-cache = <&l2>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +090061 };
62
63 cpu@1 {
64 device_type = "cpu";
65 compatible = "arm,cortex-a9";
66 reg = <1>;
Masahiro Yamada3bdba5a2016-08-29 03:27:42 +090067 enable-method = "psci";
Masahiro Yamada7c62f292015-10-02 13:42:21 +090068 next-level-cache = <&l2>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +090069 };
70 };
71
Masahiro Yamada3bdba5a2016-08-29 03:27:42 +090072 psci {
73 compatible = "arm,psci-0.2";
74 method = "smc";
75 };
76
Masahiro Yamada8e678e02015-05-08 13:07:13 +090077 clocks {
Masahiro Yamada61f838c2016-02-26 16:18:31 +090078 refclk: ref {
79 #clock-cells = <0>;
80 compatible = "fixed-clock";
81 clock-frequency = <24576000>;
82 };
83
Masahiro Yamada8e678e02015-05-08 13:07:13 +090084 arm_timer_clk: arm_timer_clk {
85 #clock-cells = <0>;
86 compatible = "fixed-clock";
87 clock-frequency = <50000000>;
88 };
89 };
90
91 soc {
92 compatible = "simple-bus";
93 #address-cells = <1>;
94 #size-cells = <1>;
95 ranges;
96 interrupt-parent = <&intc>;
97
Masahiro Yamada8e678e02015-05-08 13:07:13 +090098 timer@20000200 {
99 compatible = "arm,cortex-a9-global-timer";
100 reg = <0x20000200 0x20>;
101 interrupts = <1 11 0x304>;
102 clocks = <&arm_timer_clk>;
103 };
104
105 timer@20000600 {
106 compatible = "arm,cortex-a9-twd-timer";
107 reg = <0x20000600 0x20>;
108 interrupts = <1 13 0x304>;
109 clocks = <&arm_timer_clk>;
110 };
111
112 intc: interrupt-controller@20001000 {
113 compatible = "arm,cortex-a9-gic";
114 #interrupt-cells = <3>;
115 interrupt-controller;
116 reg = <0x20001000 0x1000>,
117 <0x20000100 0x100>;
118 };
119
Masahiro Yamada7c62f292015-10-02 13:42:21 +0900120 l2: l2-cache@500c0000 {
121 compatible = "socionext,uniphier-system-cache";
122 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
123 <0x506c0000 0x400>;
124 interrupts = <0 174 4>, <0 175 4>;
125 cache-unified;
126 cache-size = <(512 * 1024)>;
127 cache-sets = <256>;
128 cache-line-size = <128>;
129 cache-level = <2>;
130 };
131
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900132 serial0: serial@54006800 {
133 compatible = "socionext,uniphier-uart";
134 status = "disabled";
135 reg = <0x54006800 0x40>;
136 interrupts = <0 33 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900137 clocks = <&sys_clk 0>;
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900138 fifo-size = <64>;
139 };
140
141 serial1: serial@54006900 {
142 compatible = "socionext,uniphier-uart";
143 status = "disabled";
144 reg = <0x54006900 0x40>;
145 interrupts = <0 35 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900146 clocks = <&sys_clk 0>;
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900147 fifo-size = <64>;
148 };
149
150 serial2: serial@54006a00 {
151 compatible = "socionext,uniphier-uart";
152 status = "disabled";
153 reg = <0x54006a00 0x40>;
154 interrupts = <0 37 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900155 clocks = <&sys_clk 0>;
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900156 fifo-size = <64>;
157 };
158
Masahiro Yamada68f46892015-08-04 20:21:02 +0900159 i2c0: i2c@58400000 {
160 compatible = "socionext,uniphier-i2c";
161 status = "disabled";
162 reg = <0x58400000 0x40>;
163 #address-cells = <1>;
164 #size-cells = <0>;
165 interrupts = <0 41 1>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900166 clocks = <&sys_clk 1>;
Masahiro Yamada68f46892015-08-04 20:21:02 +0900167 clock-frequency = <100000>;
168 };
169
170 i2c1: i2c@58480000 {
171 compatible = "socionext,uniphier-i2c";
172 status = "disabled";
173 reg = <0x58480000 0x40>;
174 #address-cells = <1>;
175 #size-cells = <0>;
176 interrupts = <0 42 1>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900177 clocks = <&sys_clk 1>;
Masahiro Yamada68f46892015-08-04 20:21:02 +0900178 clock-frequency = <100000>;
179 };
180
181 i2c2: i2c@58500000 {
182 compatible = "socionext,uniphier-i2c";
183 status = "disabled";
184 reg = <0x58500000 0x40>;
185 #address-cells = <1>;
186 #size-cells = <0>;
187 interrupts = <0 43 1>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900188 clocks = <&sys_clk 1>;
Masahiro Yamada68f46892015-08-04 20:21:02 +0900189 clock-frequency = <100000>;
190 };
191
192 i2c3: i2c@58580000 {
193 compatible = "socionext,uniphier-i2c";
194 status = "disabled";
195 reg = <0x58580000 0x40>;
196 #address-cells = <1>;
197 #size-cells = <0>;
198 interrupts = <0 44 1>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900199 clocks = <&sys_clk 1>;
Masahiro Yamada68f46892015-08-04 20:21:02 +0900200 clock-frequency = <100000>;
201 };
202
203 /* chip-internal connection for DMD */
204 i2c4: i2c@58600000 {
205 compatible = "socionext,uniphier-i2c";
206 reg = <0x58600000 0x40>;
207 #address-cells = <1>;
208 #size-cells = <0>;
209 interrupts = <0 45 1>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900210 clocks = <&sys_clk 1>;
Masahiro Yamada68f46892015-08-04 20:21:02 +0900211 clock-frequency = <400000>;
212 };
213
Masahiro Yamada14bae132016-02-26 16:18:30 +0900214 system_bus: system-bus@58c00000 {
215 compatible = "socionext,uniphier-system-bus";
216 status = "disabled";
217 reg = <0x58c00000 0x400>;
218 #address-cells = <2>;
219 #size-cells = <1>;
220 };
221
222 smpctrl@59800000 {
223 compatible = "socionext,uniphier-smpctrl";
224 reg = <0x59801000 0x400>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +0900225 };
Masahiro Yamada3fbf02a2015-07-10 13:54:00 +0900226
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900227 mioctrl@59810000 {
228 compatible = "socionext,uniphier-mioctrl",
229 "simple-mfd", "syscon";
230 reg = <0x59810000 0x800>;
231
232 mio_clk: clock {
233 compatible = "socionext,uniphier-sld3-mio-clock";
234 #clock-cells = <1>;
235 };
236
237 mio_rst: reset {
238 compatible = "socionext,uniphier-sld3-mio-reset";
239 #reset-cells = <1>;
240 };
241 };
242
Masahiro Yamada3fbf02a2015-07-10 13:54:00 +0900243 usb0: usb@5a800100 {
244 compatible = "socionext,uniphier-ehci", "generic-ehci";
245 status = "disabled";
246 reg = <0x5a800100 0x100>;
247 interrupts = <0 80 4>;
248 };
249
250 usb1: usb@5a810100 {
251 compatible = "socionext,uniphier-ehci", "generic-ehci";
252 status = "disabled";
253 reg = <0x5a810100 0x100>;
254 interrupts = <0 81 4>;
255 };
256
257 usb2: usb@5a820100 {
258 compatible = "socionext,uniphier-ehci", "generic-ehci";
259 status = "disabled";
260 reg = <0x5a820100 0x100>;
261 interrupts = <0 82 4>;
262 };
263
264 usb3: usb@5a830100 {
265 compatible = "socionext,uniphier-ehci", "generic-ehci";
266 status = "disabled";
267 reg = <0x5a830100 0x100>;
268 interrupts = <0 83 4>;
269 };
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900270
271 sysctrl@f1840000 {
272 compatible = "socionext,uniphier-sysctrl",
273 "simple-mfd", "syscon";
274 reg = <0xf1840000 0x4000>;
275
276 sys_clk: clock {
277 compatible = "socionext,uniphier-sld3-clock";
278 #clock-cells = <1>;
279 };
280
281 sys_rst: reset {
282 compatible = "socionext,uniphier-sld3-reset";
283 #reset-cells = <1>;
284 };
285 };
Masahiro Yamada8e678e02015-05-08 13:07:13 +0900286 };
287};