xref: /openbmc/u-boot/arch/arm/dts/uniphier-sld8.dtsi (revision ebca902a)
1/*
2 * Device Tree Source for UniPhier sLD8 SoC
3 *
4 * Copyright (C) 2015-2016 Socionext Inc.
5 *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
6 *
7 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 */
9
10#include <dt-bindings/gpio/uniphier-gpio.h>
11
12/ {
13	compatible = "socionext,uniphier-sld8";
14	#address-cells = <1>;
15	#size-cells = <1>;
16
17	cpus {
18		#address-cells = <1>;
19		#size-cells = <0>;
20
21		cpu@0 {
22			device_type = "cpu";
23			compatible = "arm,cortex-a9";
24			reg = <0>;
25			enable-method = "psci";
26			next-level-cache = <&l2>;
27		};
28	};
29
30	psci {
31		compatible = "arm,psci-0.2";
32		method = "smc";
33	};
34
35	clocks {
36		refclk: ref {
37			compatible = "fixed-clock";
38			#clock-cells = <0>;
39			clock-frequency = <25000000>;
40		};
41
42		arm_timer_clk: arm-timer {
43			#clock-cells = <0>;
44			compatible = "fixed-clock";
45			clock-frequency = <50000000>;
46		};
47	};
48
49	soc {
50		compatible = "simple-bus";
51		#address-cells = <1>;
52		#size-cells = <1>;
53		ranges;
54		interrupt-parent = <&intc>;
55
56		l2: l2-cache@500c0000 {
57			compatible = "socionext,uniphier-system-cache";
58			reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
59			      <0x506c0000 0x400>;
60			interrupts = <0 174 4>, <0 175 4>;
61			cache-unified;
62			cache-size = <(256 * 1024)>;
63			cache-sets = <256>;
64			cache-line-size = <128>;
65			cache-level = <2>;
66		};
67
68		serial0: serial@54006800 {
69			compatible = "socionext,uniphier-uart";
70			status = "disabled";
71			reg = <0x54006800 0x40>;
72			interrupts = <0 33 4>;
73			pinctrl-names = "default";
74			pinctrl-0 = <&pinctrl_uart0>;
75			clocks = <&peri_clk 0>;
76			clock-frequency = <80000000>;
77			resets = <&peri_rst 0>;
78		};
79
80		serial1: serial@54006900 {
81			compatible = "socionext,uniphier-uart";
82			status = "disabled";
83			reg = <0x54006900 0x40>;
84			interrupts = <0 35 4>;
85			pinctrl-names = "default";
86			pinctrl-0 = <&pinctrl_uart1>;
87			clocks = <&peri_clk 1>;
88			clock-frequency = <80000000>;
89			resets = <&peri_rst 1>;
90		};
91
92		serial2: serial@54006a00 {
93			compatible = "socionext,uniphier-uart";
94			status = "disabled";
95			reg = <0x54006a00 0x40>;
96			interrupts = <0 37 4>;
97			pinctrl-names = "default";
98			pinctrl-0 = <&pinctrl_uart2>;
99			clocks = <&peri_clk 2>;
100			clock-frequency = <80000000>;
101			resets = <&peri_rst 2>;
102		};
103
104		serial3: serial@54006b00 {
105			compatible = "socionext,uniphier-uart";
106			status = "disabled";
107			reg = <0x54006b00 0x40>;
108			interrupts = <0 29 4>;
109			pinctrl-names = "default";
110			pinctrl-0 = <&pinctrl_uart3>;
111			clocks = <&peri_clk 3>;
112			clock-frequency = <80000000>;
113			resets = <&peri_rst 3>;
114		};
115
116		gpio: gpio@55000000 {
117			compatible = "socionext,uniphier-gpio";
118			reg = <0x55000000 0x200>;
119			interrupt-parent = <&aidet>;
120			interrupt-controller;
121			#interrupt-cells = <2>;
122			gpio-controller;
123			#gpio-cells = <2>;
124			gpio-ranges = <&pinctrl 0 0 0>,
125				      <&pinctrl 104 0 0>,
126				      <&pinctrl 112 0 0>;
127			gpio-ranges-group-names = "gpio_range0",
128						  "gpio_range1",
129						  "gpio_range2";
130			ngpios = <136>;
131			socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
132		};
133
134		i2c0: i2c@58400000 {
135			compatible = "socionext,uniphier-i2c";
136			status = "disabled";
137			reg = <0x58400000 0x40>;
138			#address-cells = <1>;
139			#size-cells = <0>;
140			interrupts = <0 41 1>;
141			pinctrl-names = "default";
142			pinctrl-0 = <&pinctrl_i2c0>;
143			clocks = <&peri_clk 4>;
144			resets = <&peri_rst 4>;
145			clock-frequency = <100000>;
146		};
147
148		i2c1: i2c@58480000 {
149			compatible = "socionext,uniphier-i2c";
150			status = "disabled";
151			reg = <0x58480000 0x40>;
152			#address-cells = <1>;
153			#size-cells = <0>;
154			interrupts = <0 42 1>;
155			pinctrl-names = "default";
156			pinctrl-0 = <&pinctrl_i2c1>;
157			clocks = <&peri_clk 5>;
158			resets = <&peri_rst 5>;
159			clock-frequency = <100000>;
160		};
161
162		/* chip-internal connection for DMD */
163		i2c2: i2c@58500000 {
164			compatible = "socionext,uniphier-i2c";
165			reg = <0x58500000 0x40>;
166			#address-cells = <1>;
167			#size-cells = <0>;
168			interrupts = <0 43 1>;
169			pinctrl-names = "default";
170			pinctrl-0 = <&pinctrl_i2c2>;
171			clocks = <&peri_clk 6>;
172			resets = <&peri_rst 6>;
173			clock-frequency = <400000>;
174		};
175
176		i2c3: i2c@58580000 {
177			compatible = "socionext,uniphier-i2c";
178			status = "disabled";
179			reg = <0x58580000 0x40>;
180			#address-cells = <1>;
181			#size-cells = <0>;
182			interrupts = <0 44 1>;
183			pinctrl-names = "default";
184			pinctrl-0 = <&pinctrl_i2c3>;
185			clocks = <&peri_clk 7>;
186			resets = <&peri_rst 7>;
187			clock-frequency = <100000>;
188		};
189
190		system_bus: system-bus@58c00000 {
191			compatible = "socionext,uniphier-system-bus";
192			status = "disabled";
193			reg = <0x58c00000 0x400>;
194			#address-cells = <2>;
195			#size-cells = <1>;
196			pinctrl-names = "default";
197			pinctrl-0 = <&pinctrl_system_bus>;
198		};
199
200		smpctrl@59801000 {
201			compatible = "socionext,uniphier-smpctrl";
202			reg = <0x59801000 0x400>;
203		};
204
205		mioctrl@59810000 {
206			compatible = "socionext,uniphier-sld8-mioctrl",
207				     "simple-mfd", "syscon";
208			reg = <0x59810000 0x800>;
209
210			mio_clk: clock {
211				compatible = "socionext,uniphier-sld8-mio-clock";
212				#clock-cells = <1>;
213			};
214
215			mio_rst: reset {
216				compatible = "socionext,uniphier-sld8-mio-reset";
217				#reset-cells = <1>;
218			};
219		};
220
221		perictrl@59820000 {
222			compatible = "socionext,uniphier-sld8-perictrl",
223				     "simple-mfd", "syscon";
224			reg = <0x59820000 0x200>;
225
226			peri_clk: clock {
227				compatible = "socionext,uniphier-sld8-peri-clock";
228				#clock-cells = <1>;
229			};
230
231			peri_rst: reset {
232				compatible = "socionext,uniphier-sld8-peri-reset";
233				#reset-cells = <1>;
234			};
235		};
236
237		sd: sdhc@5a400000 {
238			compatible = "socionext,uniphier-sdhc";
239			status = "disabled";
240			reg = <0x5a400000 0x200>;
241			interrupts = <0 76 4>;
242			pinctrl-names = "default", "1.8v";
243			pinctrl-0 = <&pinctrl_sd>;
244			pinctrl-1 = <&pinctrl_sd_1v8>;
245			clocks = <&mio_clk 0>;
246			reset-names = "host", "bridge";
247			resets = <&mio_rst 0>, <&mio_rst 3>;
248			bus-width = <4>;
249			cap-sd-highspeed;
250			sd-uhs-sdr12;
251			sd-uhs-sdr25;
252			sd-uhs-sdr50;
253		};
254
255		emmc: sdhc@5a500000 {
256			compatible = "socionext,uniphier-sdhc";
257			status = "disabled";
258			reg = <0x5a500000 0x200>;
259			interrupts = <0 78 4>;
260			pinctrl-names = "default", "1.8v";
261			pinctrl-0 = <&pinctrl_emmc>;
262			pinctrl-1 = <&pinctrl_emmc_1v8>;
263			clocks = <&mio_clk 1>;
264			reset-names = "host", "bridge";
265			resets = <&mio_rst 1>, <&mio_rst 4>;
266			bus-width = <8>;
267			non-removable;
268			cap-mmc-highspeed;
269			cap-mmc-hw-reset;
270		};
271
272		usb0: usb@5a800100 {
273			compatible = "socionext,uniphier-ehci", "generic-ehci";
274			status = "disabled";
275			reg = <0x5a800100 0x100>;
276			interrupts = <0 80 4>;
277			pinctrl-names = "default";
278			pinctrl-0 = <&pinctrl_usb0>;
279			clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
280				 <&mio_clk 12>;
281			resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
282				 <&mio_rst 12>;
283			has-transaction-translator;
284		};
285
286		usb1: usb@5a810100 {
287			compatible = "socionext,uniphier-ehci", "generic-ehci";
288			status = "disabled";
289			reg = <0x5a810100 0x100>;
290			interrupts = <0 81 4>;
291			pinctrl-names = "default";
292			pinctrl-0 = <&pinctrl_usb1>;
293			clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
294				 <&mio_clk 13>;
295			resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
296				 <&mio_rst 13>;
297			has-transaction-translator;
298		};
299
300		usb2: usb@5a820100 {
301			compatible = "socionext,uniphier-ehci", "generic-ehci";
302			status = "disabled";
303			reg = <0x5a820100 0x100>;
304			interrupts = <0 82 4>;
305			pinctrl-names = "default";
306			pinctrl-0 = <&pinctrl_usb2>;
307			clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>,
308				 <&mio_clk 14>;
309			resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
310				 <&mio_rst 14>;
311			has-transaction-translator;
312		};
313
314		soc-glue@5f800000 {
315			compatible = "socionext,uniphier-sld8-soc-glue",
316				     "simple-mfd", "syscon";
317			reg = <0x5f800000 0x2000>;
318
319			pinctrl: pinctrl {
320				compatible = "socionext,uniphier-sld8-pinctrl";
321			};
322		};
323
324		soc-glue@5f900000 {
325			compatible = "socionext,uniphier-sld8-soc-glue-debug",
326				     "simple-mfd";
327			#address-cells = <1>;
328			#size-cells = <1>;
329			ranges = <0 0x5f900000 0x2000>;
330
331			efuse@100 {
332				compatible = "socionext,uniphier-efuse";
333				reg = <0x100 0x28>;
334			};
335
336			efuse@200 {
337				compatible = "socionext,uniphier-efuse";
338				reg = <0x200 0x14>;
339			};
340		};
341
342		timer@60000200 {
343			compatible = "arm,cortex-a9-global-timer";
344			reg = <0x60000200 0x20>;
345			interrupts = <1 11 0x104>;
346			clocks = <&arm_timer_clk>;
347		};
348
349		timer@60000600 {
350			compatible = "arm,cortex-a9-twd-timer";
351			reg = <0x60000600 0x20>;
352			interrupts = <1 13 0x104>;
353			clocks = <&arm_timer_clk>;
354		};
355
356		intc: interrupt-controller@60001000 {
357			compatible = "arm,cortex-a9-gic";
358			reg = <0x60001000 0x1000>,
359			      <0x60000100 0x100>;
360			#interrupt-cells = <3>;
361			interrupt-controller;
362		};
363
364		aidet: aidet@61830000 {
365			compatible = "socionext,uniphier-sld8-aidet";
366			reg = <0x61830000 0x200>;
367			interrupt-controller;
368			#interrupt-cells = <2>;
369		};
370
371		sysctrl@61840000 {
372			compatible = "socionext,uniphier-sld8-sysctrl",
373				     "simple-mfd", "syscon";
374			reg = <0x61840000 0x10000>;
375
376			sys_clk: clock {
377				compatible = "socionext,uniphier-sld8-clock";
378				#clock-cells = <1>;
379			};
380
381			sys_rst: reset {
382				compatible = "socionext,uniphier-sld8-reset";
383				#reset-cells = <1>;
384			};
385		};
386
387		nand: nand@68000000 {
388			compatible = "socionext,uniphier-denali-nand-v5a";
389			status = "disabled";
390			reg-names = "nand_data", "denali_reg";
391			reg = <0x68000000 0x20>, <0x68100000 0x1000>;
392			interrupts = <0 65 4>;
393			pinctrl-names = "default";
394			pinctrl-0 = <&pinctrl_nand2cs>;
395			clocks = <&sys_clk 2>;
396			resets = <&sys_rst 2>;
397		};
398	};
399};
400
401#include "uniphier-pinctrl.dtsi"
402