Commit | Line | Data |
---|---|---|
e1a0ebc8 | 1 | /* |
65e43389 | 2 | * Device Tree Source for UniPhier PH1-LD20 SoC |
e1a0ebc8 MY |
3 | * |
4 | * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com> | |
5 | * | |
6 | * This file is dual-licensed: you can use it either under the terms | |
7 | * of the GPL or the X11 license, at your option. Note that this dual | |
8 | * licensing only applies to this file, and not this project as a | |
9 | * whole. | |
10 | * | |
11 | * a) This file is free software; you can redistribute it and/or | |
12 | * modify it under the terms of the GNU General Public License as | |
13 | * published by the Free Software Foundation; either version 2 of the | |
14 | * License, or (at your option) any later version. | |
15 | * | |
16 | * This file is distributed in the hope that it will be useful, | |
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 | * GNU General Public License for more details. | |
20 | * | |
21 | * Or, alternatively, | |
22 | * | |
23 | * b) Permission is hereby granted, free of charge, to any person | |
24 | * obtaining a copy of this software and associated documentation | |
25 | * files (the "Software"), to deal in the Software without | |
26 | * restriction, including without limitation the rights to use, | |
27 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
28 | * sell copies of the Software, and to permit persons to whom the | |
29 | * Software is furnished to do so, subject to the following | |
30 | * conditions: | |
31 | * | |
32 | * The above copyright notice and this permission notice shall be | |
33 | * included in all copies or substantial portions of the Software. | |
34 | * | |
35 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
36 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
37 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
38 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
39 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
40 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
41 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
42 | * OTHER DEALINGS IN THE SOFTWARE. | |
43 | */ | |
44 | ||
45 | / { | |
65e43389 | 46 | compatible = "socionext,ph1-ld20"; |
e1a0ebc8 MY |
47 | #address-cells = <2>; |
48 | #size-cells = <2>; | |
49 | interrupt-parent = <&gic>; | |
50 | ||
51 | cpus { | |
52 | #address-cells = <2>; | |
53 | #size-cells = <0>; | |
54 | ||
55 | cpu-map { | |
56 | cluster0 { | |
57 | core0 { | |
58 | cpu = <&cpu0>; | |
59 | }; | |
60 | core1 { | |
61 | cpu = <&cpu1>; | |
62 | }; | |
63 | }; | |
64 | ||
65 | cluster1 { | |
66 | core0 { | |
67 | cpu = <&cpu2>; | |
68 | }; | |
69 | core1 { | |
70 | cpu = <&cpu3>; | |
71 | }; | |
72 | }; | |
73 | }; | |
74 | ||
75 | cpu0: cpu@0 { | |
76 | device_type = "cpu"; | |
77 | compatible = "arm,cortex-a72", "arm,armv8"; | |
78 | reg = <0 0x000>; | |
79 | enable-method = "spin-table"; | |
80 | cpu-release-addr = <0 0x80000100>; | |
81 | }; | |
82 | ||
83 | cpu1: cpu@1 { | |
84 | device_type = "cpu"; | |
85 | compatible = "arm,cortex-a72", "arm,armv8"; | |
86 | reg = <0 0x001>; | |
87 | enable-method = "spin-table"; | |
88 | cpu-release-addr = <0 0x80000100>; | |
89 | }; | |
90 | ||
91 | cpu2: cpu@100 { | |
92 | device_type = "cpu"; | |
93 | compatible = "arm,cortex-a53", "arm,armv8"; | |
94 | reg = <0 0x100>; | |
95 | enable-method = "spin-table"; | |
96 | cpu-release-addr = <0 0x80000100>; | |
97 | }; | |
98 | ||
99 | cpu3: cpu@101 { | |
100 | device_type = "cpu"; | |
101 | compatible = "arm,cortex-a53", "arm,armv8"; | |
102 | reg = <0 0x101>; | |
103 | enable-method = "spin-table"; | |
104 | cpu-release-addr = <0 0x80000100>; | |
105 | }; | |
106 | }; | |
107 | ||
108 | clocks { | |
109 | uart_clk: uart_clk { | |
110 | #clock-cells = <0>; | |
111 | compatible = "fixed-clock"; | |
112 | clock-frequency = <58820000>; | |
113 | }; | |
114 | ||
115 | i2c_clk: i2c_clk { | |
116 | #clock-cells = <0>; | |
117 | compatible = "fixed-clock"; | |
118 | clock-frequency = <50000000>; | |
119 | }; | |
120 | }; | |
121 | ||
122 | timer { | |
123 | compatible = "arm,armv8-timer"; | |
124 | interrupts = <1 13 0xf01>, | |
125 | <1 14 0xf01>, | |
126 | <1 11 0xf01>, | |
127 | <1 10 0xf01>; | |
128 | }; | |
129 | ||
130 | soc { | |
131 | compatible = "simple-bus"; | |
132 | #address-cells = <1>; | |
133 | #size-cells = <1>; | |
134 | ranges = <0 0 0 0xffffffff>; | |
135 | ||
e1a0ebc8 MY |
136 | serial0: serial@54006800 { |
137 | compatible = "socionext,uniphier-uart"; | |
138 | status = "disabled"; | |
139 | reg = <0x54006800 0x40>; | |
140 | interrupts = <0 33 4>; | |
141 | pinctrl-names = "default"; | |
142 | pinctrl-0 = <&pinctrl_uart0>; | |
143 | clocks = <&uart_clk>; | |
144 | }; | |
145 | ||
146 | serial1: serial@54006900 { | |
147 | compatible = "socionext,uniphier-uart"; | |
148 | status = "disabled"; | |
149 | reg = <0x54006900 0x40>; | |
150 | interrupts = <0 35 4>; | |
151 | pinctrl-names = "default"; | |
152 | pinctrl-0 = <&pinctrl_uart1>; | |
153 | clocks = <&uart_clk>; | |
154 | }; | |
155 | ||
156 | serial2: serial@54006a00 { | |
157 | compatible = "socionext,uniphier-uart"; | |
158 | status = "disabled"; | |
159 | reg = <0x54006a00 0x40>; | |
160 | interrupts = <0 37 4>; | |
161 | pinctrl-names = "default"; | |
162 | pinctrl-0 = <&pinctrl_uart2>; | |
163 | clocks = <&uart_clk>; | |
164 | }; | |
165 | ||
166 | serial3: serial@54006b00 { | |
167 | compatible = "socionext,uniphier-uart"; | |
168 | status = "disabled"; | |
169 | reg = <0x54006b00 0x40>; | |
170 | interrupts = <0 177 4>; | |
171 | pinctrl-names = "default"; | |
172 | pinctrl-0 = <&pinctrl_uart3>; | |
173 | clocks = <&uart_clk>; | |
174 | }; | |
175 | ||
176 | i2c0: i2c@58780000 { | |
177 | compatible = "socionext,uniphier-fi2c"; | |
178 | status = "disabled"; | |
179 | reg = <0x58780000 0x80>; | |
180 | #address-cells = <1>; | |
181 | #size-cells = <0>; | |
182 | interrupts = <0 41 4>; | |
183 | pinctrl-names = "default"; | |
184 | pinctrl-0 = <&pinctrl_i2c0>; | |
185 | clocks = <&i2c_clk>; | |
186 | clock-frequency = <100000>; | |
187 | }; | |
188 | ||
189 | i2c1: i2c@58781000 { | |
190 | compatible = "socionext,uniphier-fi2c"; | |
191 | status = "disabled"; | |
192 | reg = <0x58781000 0x80>; | |
193 | #address-cells = <1>; | |
194 | #size-cells = <0>; | |
195 | interrupts = <0 42 4>; | |
196 | pinctrl-names = "default"; | |
197 | pinctrl-0 = <&pinctrl_i2c1>; | |
198 | clocks = <&i2c_clk>; | |
199 | clock-frequency = <100000>; | |
200 | }; | |
201 | ||
202 | i2c2: i2c@58782000 { | |
203 | compatible = "socionext,uniphier-fi2c"; | |
e1a0ebc8 MY |
204 | reg = <0x58782000 0x80>; |
205 | #address-cells = <1>; | |
206 | #size-cells = <0>; | |
207 | interrupts = <0 43 4>; | |
e1a0ebc8 | 208 | clocks = <&i2c_clk>; |
56896ef5 | 209 | clock-frequency = <400000>; |
e1a0ebc8 MY |
210 | }; |
211 | ||
212 | i2c3: i2c@58783000 { | |
213 | compatible = "socionext,uniphier-fi2c"; | |
214 | status = "disabled"; | |
215 | reg = <0x58783000 0x80>; | |
216 | #address-cells = <1>; | |
217 | #size-cells = <0>; | |
218 | interrupts = <0 44 4>; | |
219 | pinctrl-names = "default"; | |
220 | pinctrl-0 = <&pinctrl_i2c3>; | |
221 | clocks = <&i2c_clk>; | |
222 | clock-frequency = <100000>; | |
223 | }; | |
224 | ||
225 | i2c4: i2c@58784000 { | |
226 | compatible = "socionext,uniphier-fi2c"; | |
56896ef5 | 227 | status = "disabled"; |
e1a0ebc8 MY |
228 | reg = <0x58784000 0x80>; |
229 | #address-cells = <1>; | |
230 | #size-cells = <0>; | |
231 | interrupts = <0 45 4>; | |
56896ef5 MY |
232 | pinctrl-names = "default"; |
233 | pinctrl-0 = <&pinctrl_i2c4>; | |
e1a0ebc8 | 234 | clocks = <&i2c_clk>; |
56896ef5 | 235 | clock-frequency = <100000>; |
e1a0ebc8 MY |
236 | }; |
237 | ||
238 | i2c5: i2c@58785000 { | |
239 | compatible = "socionext,uniphier-fi2c"; | |
240 | reg = <0x58785000 0x80>; | |
241 | #address-cells = <1>; | |
242 | #size-cells = <0>; | |
243 | interrupts = <0 25 4>; | |
244 | clocks = <&i2c_clk>; | |
245 | clock-frequency = <400000>; | |
246 | }; | |
247 | ||
14bae133 MY |
248 | system_bus: system-bus@58c00000 { |
249 | compatible = "socionext,uniphier-system-bus"; | |
250 | status = "disabled"; | |
251 | reg = <0x58c00000 0x400>; | |
252 | #address-cells = <2>; | |
253 | #size-cells = <1>; | |
254 | }; | |
255 | ||
256 | smpctrl@59800000 { | |
257 | compatible = "socionext,uniphier-smpctrl"; | |
258 | reg = <0x59801000 0x400>; | |
259 | }; | |
260 | ||
e1a0ebc8 | 261 | pinctrl: pinctrl@5f801000 { |
65e43389 | 262 | compatible = "socionext,ph1-ld20-pinctrl", "syscon"; |
e1a0ebc8 MY |
263 | reg = <0x5f801000 0xe00>; |
264 | }; | |
265 | ||
266 | gic: interrupt-controller@5fe00000 { | |
267 | compatible = "arm,gic-v3"; | |
268 | reg = <0x5fe00000 0x10000>, /* GICD */ | |
269 | <0x5fe80000 0x80000>; /* GICR */ | |
270 | interrupt-controller; | |
271 | #interrupt-cells = <3>; | |
272 | interrupts = <1 9 4>; | |
273 | }; | |
274 | }; | |
275 | }; | |
276 | ||
277 | /include/ "uniphier-pinctrl.dtsi" |