blob: dc6577f576886660700c8ae401cd3ef85a4225b0 [file] [log] [blame]
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +09001/*
Masahiro Yamadacea59bd2016-08-30 07:13:09 +09002 * Device Tree Source for UniPhier LD20 SoC
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +09003 *
Masahiro Yamadacea59bd2016-08-30 07:13:09 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +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
Masahiro Yamadaffd8a5e2016-06-14 12:01:43 +090046/memreserve/ 0x80000000 0x00000008; /* cpu-release-addr */
47
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +090048/ {
Masahiro Yamadacea59bd2016-08-30 07:13:09 +090049 compatible = "socionext,uniphier-ld20";
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +090050 #address-cells = <2>;
51 #size-cells = <2>;
52 interrupt-parent = <&gic>;
53
54 cpus {
55 #address-cells = <2>;
56 #size-cells = <0>;
57
58 cpu-map {
59 cluster0 {
60 core0 {
61 cpu = <&cpu0>;
62 };
63 core1 {
64 cpu = <&cpu1>;
65 };
66 };
67
68 cluster1 {
69 core0 {
70 cpu = <&cpu2>;
71 };
72 core1 {
73 cpu = <&cpu3>;
74 };
75 };
76 };
77
78 cpu0: cpu@0 {
79 device_type = "cpu";
80 compatible = "arm,cortex-a72", "arm,armv8";
81 reg = <0 0x000>;
82 enable-method = "spin-table";
Masahiro Yamada1388ea22016-06-14 12:01:42 +090083 cpu-release-addr = <0 0x80000000>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +090084 };
85
86 cpu1: cpu@1 {
87 device_type = "cpu";
88 compatible = "arm,cortex-a72", "arm,armv8";
89 reg = <0 0x001>;
90 enable-method = "spin-table";
Masahiro Yamada1388ea22016-06-14 12:01:42 +090091 cpu-release-addr = <0 0x80000000>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +090092 };
93
94 cpu2: cpu@100 {
95 device_type = "cpu";
96 compatible = "arm,cortex-a53", "arm,armv8";
97 reg = <0 0x100>;
98 enable-method = "spin-table";
Masahiro Yamada1388ea22016-06-14 12:01:42 +090099 cpu-release-addr = <0 0x80000000>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900100 };
101
102 cpu3: cpu@101 {
103 device_type = "cpu";
104 compatible = "arm,cortex-a53", "arm,armv8";
105 reg = <0 0x101>;
106 enable-method = "spin-table";
Masahiro Yamada1388ea22016-06-14 12:01:42 +0900107 cpu-release-addr = <0 0x80000000>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900108 };
109 };
110
111 clocks {
Masahiro Yamadafb89cf32016-04-21 15:01:09 +0900112 refclk: ref {
113 compatible = "fixed-clock";
114 #clock-cells = <0>;
115 clock-frequency = <25000000>;
116 };
117
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900118 uart_clk: uart_clk {
119 #clock-cells = <0>;
120 compatible = "fixed-clock";
121 clock-frequency = <58820000>;
122 };
123
124 i2c_clk: i2c_clk {
125 #clock-cells = <0>;
126 compatible = "fixed-clock";
127 clock-frequency = <50000000>;
128 };
129 };
130
131 timer {
132 compatible = "arm,armv8-timer";
133 interrupts = <1 13 0xf01>,
134 <1 14 0xf01>,
135 <1 11 0xf01>,
136 <1 10 0xf01>;
137 };
138
139 soc {
140 compatible = "simple-bus";
141 #address-cells = <1>;
142 #size-cells = <1>;
143 ranges = <0 0 0 0xffffffff>;
144
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900145 serial0: serial@54006800 {
146 compatible = "socionext,uniphier-uart";
147 status = "disabled";
148 reg = <0x54006800 0x40>;
149 interrupts = <0 33 4>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&pinctrl_uart0>;
152 clocks = <&uart_clk>;
153 };
154
155 serial1: serial@54006900 {
156 compatible = "socionext,uniphier-uart";
157 status = "disabled";
158 reg = <0x54006900 0x40>;
159 interrupts = <0 35 4>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&pinctrl_uart1>;
162 clocks = <&uart_clk>;
163 };
164
165 serial2: serial@54006a00 {
166 compatible = "socionext,uniphier-uart";
167 status = "disabled";
168 reg = <0x54006a00 0x40>;
169 interrupts = <0 37 4>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&pinctrl_uart2>;
172 clocks = <&uart_clk>;
173 };
174
175 serial3: serial@54006b00 {
176 compatible = "socionext,uniphier-uart";
177 status = "disabled";
178 reg = <0x54006b00 0x40>;
179 interrupts = <0 177 4>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&pinctrl_uart3>;
182 clocks = <&uart_clk>;
183 };
184
185 i2c0: i2c@58780000 {
186 compatible = "socionext,uniphier-fi2c";
187 status = "disabled";
188 reg = <0x58780000 0x80>;
189 #address-cells = <1>;
190 #size-cells = <0>;
191 interrupts = <0 41 4>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&pinctrl_i2c0>;
194 clocks = <&i2c_clk>;
195 clock-frequency = <100000>;
196 };
197
198 i2c1: i2c@58781000 {
199 compatible = "socionext,uniphier-fi2c";
200 status = "disabled";
201 reg = <0x58781000 0x80>;
202 #address-cells = <1>;
203 #size-cells = <0>;
204 interrupts = <0 42 4>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&pinctrl_i2c1>;
207 clocks = <&i2c_clk>;
208 clock-frequency = <100000>;
209 };
210
211 i2c2: i2c@58782000 {
212 compatible = "socionext,uniphier-fi2c";
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900213 reg = <0x58782000 0x80>;
214 #address-cells = <1>;
215 #size-cells = <0>;
216 interrupts = <0 43 4>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900217 clocks = <&i2c_clk>;
Masahiro Yamada56896ef2016-04-15 19:30:46 +0900218 clock-frequency = <400000>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900219 };
220
221 i2c3: i2c@58783000 {
222 compatible = "socionext,uniphier-fi2c";
223 status = "disabled";
224 reg = <0x58783000 0x80>;
225 #address-cells = <1>;
226 #size-cells = <0>;
227 interrupts = <0 44 4>;
228 pinctrl-names = "default";
229 pinctrl-0 = <&pinctrl_i2c3>;
230 clocks = <&i2c_clk>;
231 clock-frequency = <100000>;
232 };
233
234 i2c4: i2c@58784000 {
235 compatible = "socionext,uniphier-fi2c";
Masahiro Yamada56896ef2016-04-15 19:30:46 +0900236 status = "disabled";
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900237 reg = <0x58784000 0x80>;
238 #address-cells = <1>;
239 #size-cells = <0>;
240 interrupts = <0 45 4>;
Masahiro Yamada56896ef2016-04-15 19:30:46 +0900241 pinctrl-names = "default";
242 pinctrl-0 = <&pinctrl_i2c4>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900243 clocks = <&i2c_clk>;
Masahiro Yamada56896ef2016-04-15 19:30:46 +0900244 clock-frequency = <100000>;
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900245 };
246
247 i2c5: i2c@58785000 {
248 compatible = "socionext,uniphier-fi2c";
249 reg = <0x58785000 0x80>;
250 #address-cells = <1>;
251 #size-cells = <0>;
252 interrupts = <0 25 4>;
253 clocks = <&i2c_clk>;
254 clock-frequency = <400000>;
255 };
256
Masahiro Yamada14bae132016-02-26 16:18:30 +0900257 system_bus: system-bus@58c00000 {
258 compatible = "socionext,uniphier-system-bus";
259 status = "disabled";
260 reg = <0x58c00000 0x400>;
261 #address-cells = <2>;
262 #size-cells = <1>;
263 };
264
265 smpctrl@59800000 {
266 compatible = "socionext,uniphier-smpctrl";
267 reg = <0x59801000 0x400>;
268 };
269
Masahiro Yamadaed6cca52016-06-14 12:01:41 +0900270 soc-glue@5f800000 {
271 compatible = "simple-mfd", "syscon";
272 reg = <0x5f800000 0x2000>;
273
274 pinctrl: pinctrl {
Masahiro Yamadacea59bd2016-08-30 07:13:09 +0900275 compatible = "socionext,uniphier-ld20-pinctrl";
Masahiro Yamadaed6cca52016-06-14 12:01:41 +0900276 };
Masahiro Yamadae1a0ebc2015-11-28 02:22:31 +0900277 };
278
279 gic: interrupt-controller@5fe00000 {
280 compatible = "arm,gic-v3";
281 reg = <0x5fe00000 0x10000>, /* GICD */
282 <0x5fe80000 0x80000>; /* GICR */
283 interrupt-controller;
284 #interrupt-cells = <3>;
285 interrupts = <1 9 4>;
286 };
287 };
288};
289
290/include/ "uniphier-pinctrl.dtsi"