]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/uniphier-pro4.dtsi
Merge tag 'linux-watchdog-4.17-rc1' of git://www.linux-watchdog.org/linux-watchdog
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / uniphier-pro4.dtsi
CommitLineData
ea566a4b
MY
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2//
3// Device Tree Source for UniPhier Pro4 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
8e678e06 7
d1194d49
MY
8#include <dt-bindings/gpio/uniphier-gpio.h>
9
8e678e06 10/ {
77896e4d 11 compatible = "socionext,uniphier-pro4";
8e2b908b
MY
12 #address-cells = <1>;
13 #size-cells = <1>;
8e678e06
MY
14
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
8e678e06
MY
18
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "arm,cortex-a9";
22 reg = <0>;
3bdba5ac 23 enable-method = "psci";
7c62f299 24 next-level-cache = <&l2>;
8e678e06
MY
25 };
26
27 cpu@1 {
28 device_type = "cpu";
29 compatible = "arm,cortex-a9";
30 reg = <1>;
3bdba5ac 31 enable-method = "psci";
7c62f299 32 next-level-cache = <&l2>;
8e678e06
MY
33 };
34 };
35
2752bcaa
MY
36 psci {
37 compatible = "arm,psci-0.2";
38 method = "smc";
39 };
40
8e678e06 41 clocks {
2752bcaa
MY
42 refclk: ref {
43 compatible = "fixed-clock";
44 #clock-cells = <0>;
45 clock-frequency = <25000000>;
46 };
47
1658b84d 48 arm_timer_clk: arm-timer {
8e678e06
MY
49 #clock-cells = <0>;
50 compatible = "fixed-clock";
51 clock-frequency = <50000000>;
52 };
53 };
54
2752bcaa
MY
55 soc {
56 compatible = "simple-bus";
629b557a 57 #address-cells = <1>;
2752bcaa
MY
58 #size-cells = <1>;
59 ranges;
60 interrupt-parent = <&intc>;
68f46897 61
2752bcaa
MY
62 l2: l2-cache@500c0000 {
63 compatible = "socionext,uniphier-system-cache";
64 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
65 <0x506c0000 0x400>;
66 interrupts = <0 174 4>, <0 175 4>;
67 cache-unified;
68 cache-size = <(768 * 1024)>;
69 cache-sets = <256>;
70 cache-line-size = <128>;
71 cache-level = <2>;
72 };
68f46897 73
2752bcaa
MY
74 serial0: serial@54006800 {
75 compatible = "socionext,uniphier-uart";
76 status = "disabled";
77 reg = <0x54006800 0x40>;
78 interrupts = <0 33 4>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&pinctrl_uart0>;
81 clocks = <&peri_clk 0>;
a1763a82 82 resets = <&peri_rst 0>;
2752bcaa 83 };
8e678e06 84
2752bcaa
MY
85 serial1: serial@54006900 {
86 compatible = "socionext,uniphier-uart";
87 status = "disabled";
88 reg = <0x54006900 0x40>;
89 interrupts = <0 35 4>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&pinctrl_uart1>;
92 clocks = <&peri_clk 1>;
a1763a82 93 resets = <&peri_rst 1>;
2752bcaa 94 };
3fbf02a8 95
2752bcaa
MY
96 serial2: serial@54006a00 {
97 compatible = "socionext,uniphier-uart";
98 status = "disabled";
99 reg = <0x54006a00 0x40>;
100 interrupts = <0 37 4>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_uart2>;
103 clocks = <&peri_clk 2>;
a1763a82 104 resets = <&peri_rst 2>;
2752bcaa 105 };
3fbf02a8 106
2752bcaa
MY
107 serial3: serial@54006b00 {
108 compatible = "socionext,uniphier-uart";
109 status = "disabled";
110 reg = <0x54006b00 0x40>;
111 interrupts = <0 177 4>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_uart3>;
114 clocks = <&peri_clk 3>;
a1763a82 115 resets = <&peri_rst 3>;
2752bcaa 116 };
55d945b2 117
5d4bc4bd
MY
118 gpio: gpio@55000000 {
119 compatible = "socionext,uniphier-gpio";
120 reg = <0x55000000 0x200>;
121 interrupt-parent = <&aidet>;
122 interrupt-controller;
123 #interrupt-cells = <2>;
124 gpio-controller;
125 #gpio-cells = <2>;
126 gpio-ranges = <&pinctrl 0 0 0>;
127 gpio-ranges-group-names = "gpio_range";
128 ngpios = <248>;
129 socionext,interrupt-ranges = <0 48 16>, <16 154 5>;
2752bcaa 130 };
55d945b2 131
2752bcaa
MY
132 i2c0: i2c@58780000 {
133 compatible = "socionext,uniphier-fi2c";
134 status = "disabled";
135 reg = <0x58780000 0x80>;
136 #address-cells = <1>;
137 #size-cells = <0>;
138 interrupts = <0 41 4>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&pinctrl_i2c0>;
141 clocks = <&peri_clk 4>;
a1763a82 142 resets = <&peri_rst 4>;
2752bcaa
MY
143 clock-frequency = <100000>;
144 };
8e678e06 145
2752bcaa
MY
146 i2c1: i2c@58781000 {
147 compatible = "socionext,uniphier-fi2c";
148 status = "disabled";
149 reg = <0x58781000 0x80>;
150 #address-cells = <1>;
151 #size-cells = <0>;
152 interrupts = <0 42 4>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_i2c1>;
155 clocks = <&peri_clk 5>;
a1763a82 156 resets = <&peri_rst 5>;
2752bcaa
MY
157 clock-frequency = <100000>;
158 };
8e678e06 159
2752bcaa
MY
160 i2c2: i2c@58782000 {
161 compatible = "socionext,uniphier-fi2c";
162 status = "disabled";
163 reg = <0x58782000 0x80>;
164 #address-cells = <1>;
165 #size-cells = <0>;
166 interrupts = <0 43 4>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&pinctrl_i2c2>;
169 clocks = <&peri_clk 6>;
a1763a82 170 resets = <&peri_rst 6>;
2752bcaa
MY
171 clock-frequency = <100000>;
172 };
62237230 173
2752bcaa
MY
174 i2c3: i2c@58783000 {
175 compatible = "socionext,uniphier-fi2c";
176 status = "disabled";
177 reg = <0x58783000 0x80>;
178 #address-cells = <1>;
179 #size-cells = <0>;
180 interrupts = <0 44 4>;
181 pinctrl-names = "default";
182 pinctrl-0 = <&pinctrl_i2c3>;
183 clocks = <&peri_clk 7>;
a1763a82 184 resets = <&peri_rst 7>;
2752bcaa
MY
185 clock-frequency = <100000>;
186 };
61f838c7 187
2752bcaa 188 /* i2c4 does not exist */
ad0561d4 189
2752bcaa
MY
190 /* chip-internal connection for DMD */
191 i2c5: i2c@58785000 {
192 compatible = "socionext,uniphier-fi2c";
193 reg = <0x58785000 0x80>;
194 #address-cells = <1>;
195 #size-cells = <0>;
196 interrupts = <0 25 4>;
197 clocks = <&peri_clk 9>;
a1763a82 198 resets = <&peri_rst 9>;
2752bcaa
MY
199 clock-frequency = <400000>;
200 };
ad0561d4 201
2752bcaa
MY
202 /* chip-internal connection for HDMI */
203 i2c6: i2c@58786000 {
204 compatible = "socionext,uniphier-fi2c";
205 reg = <0x58786000 0x80>;
206 #address-cells = <1>;
207 #size-cells = <0>;
208 interrupts = <0 26 4>;
209 clocks = <&peri_clk 10>;
a1763a82 210 resets = <&peri_rst 10>;
2752bcaa
MY
211 clock-frequency = <400000>;
212 };
ad0561d4 213
2752bcaa
MY
214 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 pinctrl-names = "default";
221 pinctrl-0 = <&pinctrl_system_bus>;
222 };
ad0561d4 223
18088678 224 smpctrl@59801000 {
2752bcaa
MY
225 compatible = "socionext,uniphier-smpctrl";
226 reg = <0x59801000 0x400>;
227 };
ad0561d4 228
2752bcaa
MY
229 mioctrl@59810000 {
230 compatible = "socionext,uniphier-pro4-mioctrl",
231 "simple-mfd", "syscon";
232 reg = <0x59810000 0x800>;
233
234 mio_clk: clock {
235 compatible = "socionext,uniphier-pro4-mio-clock";
236 #clock-cells = <1>;
237 };
238
239 mio_rst: reset {
240 compatible = "socionext,uniphier-pro4-mio-reset";
241 #reset-cells = <1>;
242 };
243 };
244
245 perictrl@59820000 {
246 compatible = "socionext,uniphier-pro4-perictrl",
247 "simple-mfd", "syscon";
248 reg = <0x59820000 0x200>;
249
250 peri_clk: clock {
251 compatible = "socionext,uniphier-pro4-peri-clock";
252 #clock-cells = <1>;
253 };
254
255 peri_rst: reset {
256 compatible = "socionext,uniphier-pro4-peri-reset";
257 #reset-cells = <1>;
258 };
259 };
ad0561d4 260
2752bcaa
MY
261 usb2: usb@5a800100 {
262 compatible = "socionext,uniphier-ehci", "generic-ehci";
263 status = "disabled";
264 reg = <0x5a800100 0x100>;
265 interrupts = <0 80 4>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&pinctrl_usb2>;
ad81e78a
MY
268 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
269 <&mio_clk 12>;
2752bcaa
MY
270 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
271 <&mio_rst 12>;
6fa9b025 272 has-transaction-translator;
2752bcaa
MY
273 };
274
275 usb3: usb@5a810100 {
276 compatible = "socionext,uniphier-ehci", "generic-ehci";
277 status = "disabled";
278 reg = <0x5a810100 0x100>;
279 interrupts = <0 81 4>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&pinctrl_usb3>;
ad81e78a
MY
282 clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
283 <&mio_clk 13>;
2752bcaa
MY
284 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
285 <&mio_rst 13>;
6fa9b025 286 has-transaction-translator;
2752bcaa
MY
287 };
288
289 soc-glue@5f800000 {
290 compatible = "socionext,uniphier-pro4-soc-glue",
291 "simple-mfd", "syscon";
292 reg = <0x5f800000 0x2000>;
293
294 pinctrl: pinctrl {
295 compatible = "socionext,uniphier-pro4-pinctrl";
296 };
297 };
298
6b968186
KH
299 soc-glue@5f900000 {
300 compatible = "socionext,uniphier-pro4-soc-glue-debug",
301 "simple-mfd";
302 #address-cells = <1>;
303 #size-cells = <1>;
304 ranges = <0 0x5f900000 0x2000>;
305
306 efuse@100 {
307 compatible = "socionext,uniphier-efuse";
308 reg = <0x100 0x28>;
309 };
310
311 efuse@130 {
312 compatible = "socionext,uniphier-efuse";
313 reg = <0x130 0x8>;
314 };
315
316 efuse@200 {
317 compatible = "socionext,uniphier-efuse";
318 reg = <0x200 0x14>;
319 };
320 };
321
80a68704
MY
322 aidet: aidet@5fc20000 {
323 compatible = "socionext,uniphier-pro4-aidet";
324 reg = <0x5fc20000 0x200>;
325 interrupt-controller;
326 #interrupt-cells = <2>;
327 };
328
2752bcaa
MY
329 timer@60000200 {
330 compatible = "arm,cortex-a9-global-timer";
331 reg = <0x60000200 0x20>;
332 interrupts = <1 11 0x304>;
333 clocks = <&arm_timer_clk>;
334 };
335
336 timer@60000600 {
337 compatible = "arm,cortex-a9-twd-timer";
338 reg = <0x60000600 0x20>;
339 interrupts = <1 13 0x304>;
340 clocks = <&arm_timer_clk>;
341 };
342
343 intc: interrupt-controller@60001000 {
344 compatible = "arm,cortex-a9-gic";
345 reg = <0x60001000 0x1000>,
346 <0x60000100 0x100>;
347 #interrupt-cells = <3>;
348 interrupt-controller;
349 };
350
351 sysctrl@61840000 {
352 compatible = "socionext,uniphier-pro4-sysctrl",
353 "simple-mfd", "syscon";
354 reg = <0x61840000 0x10000>;
355
356 sys_clk: clock {
357 compatible = "socionext,uniphier-pro4-clock";
358 #clock-cells = <1>;
359 };
360
361 sys_rst: reset {
362 compatible = "socionext,uniphier-pro4-reset";
363 #reset-cells = <1>;
364 };
365 };
69f9cdc6 366
e3cc9319
KH
367 eth: ethernet@65000000 {
368 compatible = "socionext,uniphier-pro4-ave4";
369 status = "disabled";
370 reg = <0x65000000 0x8500>;
371 interrupts = <0 66 4>;
372 pinctrl-names = "default";
373 pinctrl-0 = <&pinctrl_ether_rgmii>;
374 clocks = <&sys_clk 6>;
375 resets = <&sys_rst 6>;
376 phy-mode = "rgmii";
377 local-mac-address = [00 00 00 00 00 00];
378
379 mdio: mdio {
380 #address-cells = <1>;
381 #size-cells = <0>;
382 };
383 };
384
69f9cdc6
MY
385 nand: nand@68000000 {
386 compatible = "socionext,uniphier-denali-nand-v5a";
387 status = "disabled";
388 reg-names = "nand_data", "denali_reg";
389 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
390 interrupts = <0 65 4>;
391 pinctrl-names = "default";
392 pinctrl-0 = <&pinctrl_nand>;
393 clocks = <&sys_clk 2>;
a1763a82 394 resets = <&sys_rst 2>;
69f9cdc6 395 };
2752bcaa 396 };
ad0561d4 397};
2752bcaa 398
ed8bc76b 399#include "uniphier-pinctrl.dtsi"