blob: e4884b9516c361a219c3dbcc597996e61a1bd705 [file] [log] [blame]
Masahiro Yamada509eb672014-11-26 18:33:59 +09001/*
2 * Device Tree Source for UniPhier PH1-LD4 SoC
3 *
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +09004 * Copyright (C) 2014-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada509eb672014-11-26 18:33:59 +09005 *
Masahiro Yamada13b2ba12015-06-30 18:27:01 +09006 * SPDX-License-Identifier: GPL-2.0+ X11
Masahiro Yamada509eb672014-11-26 18:33:59 +09007 */
8
Masahiro Yamada8f062432015-12-16 10:54:07 +09009/include/ "uniphier-common32.dtsi"
Masahiro Yamada509eb672014-11-26 18:33:59 +090010
11/ {
Masahiro Yamada6462cde2015-03-11 15:54:46 +090012 compatible = "socionext,ph1-ld4";
Masahiro Yamada509eb672014-11-26 18:33:59 +090013
14 cpus {
Masahiro Yamada509eb672014-11-26 18:33:59 +090015 #address-cells = <1>;
Masahiro Yamadaf5fd7af2014-12-06 00:03:23 +090016 #size-cells = <0>;
Masahiro Yamada509eb672014-11-26 18:33:59 +090017
18 cpu@0 {
19 device_type = "cpu";
20 compatible = "arm,cortex-a9";
21 reg = <0>;
Masahiro Yamada4e1f81d2015-12-16 10:54:08 +090022 next-level-cache = <&l2>;
Masahiro Yamada509eb672014-11-26 18:33:59 +090023 };
24 };
25
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +090026 clocks {
27 arm_timer_clk: arm_timer_clk {
28 #clock-cells = <0>;
29 compatible = "fixed-clock";
30 clock-frequency = <50000000>;
31 };
Masahiro Yamadad243c182015-08-28 22:33:13 +090032
Masahiro Yamadad243c182015-08-28 22:33:13 +090033 iobus_clk: iobus_clk {
34 #clock-cells = <0>;
35 compatible = "fixed-clock";
36 clock-frequency = <100000000>;
37 };
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +090038 };
Masahiro Yamada8f062432015-12-16 10:54:07 +090039};
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +090040
Masahiro Yamada8f062432015-12-16 10:54:07 +090041&soc {
Masahiro Yamada4e1f81d2015-12-16 10:54:08 +090042 l2: l2-cache@500c0000 {
43 compatible = "socionext,uniphier-system-cache";
44 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, <0x506c0000 0x400>;
45 interrupts = <0 174 4>, <0 175 4>;
46 cache-unified;
47 cache-size = <(512 * 1024)>;
48 cache-sets = <256>;
49 cache-line-size = <128>;
50 cache-level = <2>;
51 };
52
Masahiro Yamada595dc1e2016-02-16 17:03:51 +090053 port0x: gpio@55000008 {
54 compatible = "socionext,uniphier-gpio";
55 reg = <0x55000008 0x8>;
56 gpio-controller;
57 #gpio-cells = <2>;
58 };
59
60 port1x: gpio@55000010 {
61 compatible = "socionext,uniphier-gpio";
62 reg = <0x55000010 0x8>;
63 gpio-controller;
64 #gpio-cells = <2>;
65 };
66
67 port2x: gpio@55000018 {
68 compatible = "socionext,uniphier-gpio";
69 reg = <0x55000018 0x8>;
70 gpio-controller;
71 #gpio-cells = <2>;
72 };
73
74 port3x: gpio@55000020 {
75 compatible = "socionext,uniphier-gpio";
76 reg = <0x55000020 0x8>;
77 gpio-controller;
78 #gpio-cells = <2>;
79 };
80
81 port4: gpio@55000028 {
82 compatible = "socionext,uniphier-gpio";
83 reg = <0x55000028 0x8>;
84 gpio-controller;
85 #gpio-cells = <2>;
86 };
87
88 port5x: gpio@55000030 {
89 compatible = "socionext,uniphier-gpio";
90 reg = <0x55000030 0x8>;
91 gpio-controller;
92 #gpio-cells = <2>;
93 };
94
95 port6x: gpio@55000038 {
96 compatible = "socionext,uniphier-gpio";
97 reg = <0x55000038 0x8>;
98 gpio-controller;
99 #gpio-cells = <2>;
100 };
101
102 port7x: gpio@55000040 {
103 compatible = "socionext,uniphier-gpio";
104 reg = <0x55000040 0x8>;
105 gpio-controller;
106 #gpio-cells = <2>;
107 };
108
109 port8x: gpio@55000048 {
110 compatible = "socionext,uniphier-gpio";
111 reg = <0x55000048 0x8>;
112 gpio-controller;
113 #gpio-cells = <2>;
114 };
115
116 port9x: gpio@55000050 {
117 compatible = "socionext,uniphier-gpio";
118 reg = <0x55000050 0x8>;
119 gpio-controller;
120 #gpio-cells = <2>;
121 };
122
123 port10x: gpio@55000058 {
124 compatible = "socionext,uniphier-gpio";
125 reg = <0x55000058 0x8>;
126 gpio-controller;
127 #gpio-cells = <2>;
128 };
129
130 port11x: gpio@55000060 {
131 compatible = "socionext,uniphier-gpio";
132 reg = <0x55000060 0x8>;
133 gpio-controller;
134 #gpio-cells = <2>;
135 };
136
137 port12x: gpio@55000068 {
138 compatible = "socionext,uniphier-gpio";
139 reg = <0x55000068 0x8>;
140 gpio-controller;
141 #gpio-cells = <2>;
142 };
143
144 port13x: gpio@55000070 {
145 compatible = "socionext,uniphier-gpio";
146 reg = <0x55000070 0x8>;
147 gpio-controller;
148 #gpio-cells = <2>;
149 };
150
151 port14x: gpio@55000078 {
152 compatible = "socionext,uniphier-gpio";
153 reg = <0x55000078 0x8>;
154 gpio-controller;
155 #gpio-cells = <2>;
156 };
157
158 port16x: gpio@55000088 {
159 compatible = "socionext,uniphier-gpio";
160 reg = <0x55000088 0x8>;
161 gpio-controller;
162 #gpio-cells = <2>;
163 };
164
Masahiro Yamada8f062432015-12-16 10:54:07 +0900165 i2c0: i2c@58400000 {
166 compatible = "socionext,uniphier-i2c";
167 status = "disabled";
168 reg = <0x58400000 0x40>;
Masahiro Yamada509eb672014-11-26 18:33:59 +0900169 #address-cells = <1>;
Masahiro Yamada8f062432015-12-16 10:54:07 +0900170 #size-cells = <0>;
171 interrupts = <0 41 1>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&pinctrl_i2c0>;
174 clocks = <&iobus_clk>;
175 clock-frequency = <100000>;
176 };
Masahiro Yamadaedcfaeb2015-06-30 18:27:00 +0900177
Masahiro Yamada8f062432015-12-16 10:54:07 +0900178 i2c1: i2c@58480000 {
179 compatible = "socionext,uniphier-i2c";
180 status = "disabled";
181 reg = <0x58480000 0x40>;
182 #address-cells = <1>;
183 #size-cells = <0>;
184 interrupts = <0 42 1>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pinctrl_i2c1>;
187 clocks = <&iobus_clk>;
188 clock-frequency = <100000>;
189 };
Masahiro Yamada625177d2014-11-26 18:34:00 +0900190
Masahiro Yamada8f062432015-12-16 10:54:07 +0900191 /* chip-internal connection for DMD */
192 i2c2: i2c@58500000 {
193 compatible = "socionext,uniphier-i2c";
194 reg = <0x58500000 0x40>;
195 #address-cells = <1>;
196 #size-cells = <0>;
197 interrupts = <0 43 1>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&pinctrl_i2c2>;
200 clocks = <&iobus_clk>;
201 clock-frequency = <400000>;
202 };
Masahiro Yamada625177d2014-11-26 18:34:00 +0900203
Masahiro Yamada8f062432015-12-16 10:54:07 +0900204 i2c3: i2c@58580000 {
205 compatible = "socionext,uniphier-i2c";
206 status = "disabled";
207 reg = <0x58580000 0x40>;
208 #address-cells = <1>;
209 #size-cells = <0>;
210 interrupts = <0 44 1>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&pinctrl_i2c3>;
213 clocks = <&iobus_clk>;
214 clock-frequency = <100000>;
215 };
Masahiro Yamada625177d2014-11-26 18:34:00 +0900216
Masahiro Yamadac7f94ee2016-02-18 19:52:50 +0900217 sd: sdhc@5a400000 {
218 compatible = "socionext,uniphier-sdhc";
219 status = "disabled";
220 reg = <0x5a400000 0x200>;
221 interrupts = <0 76 4>;
222 pinctrl-names = "default", "1.8v";
223 pinctrl-0 = <&pinctrl_sd>;
224 pinctrl-1 = <&pinctrl_sd_1v8>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900225 clocks = <&mio_clk 0>;
Masahiro Yamadac7f94ee2016-02-18 19:52:50 +0900226 bus-width = <4>;
227 };
228
229 emmc: sdhc@5a500000 {
230 compatible = "socionext,uniphier-sdhc";
231 status = "disabled";
232 reg = <0x5a500000 0x200>;
233 interrupts = <0 78 4>;
234 pinctrl-names = "default", "1.8v";
235 pinctrl-0 = <&pinctrl_emmc>;
236 pinctrl-1 = <&pinctrl_emmc_1v8>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900237 clocks = <&mio_clk 1>;
Masahiro Yamadac7f94ee2016-02-18 19:52:50 +0900238 bus-width = <8>;
239 non-removable;
240 };
241
Masahiro Yamada8f062432015-12-16 10:54:07 +0900242 usb0: usb@5a800100 {
243 compatible = "socionext,uniphier-ehci", "generic-ehci";
244 status = "disabled";
245 reg = <0x5a800100 0x100>;
246 interrupts = <0 80 4>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pinctrl_usb0>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900249 clocks = <&mio_clk 3>, <&mio_clk 6>;
Masahiro Yamada8f062432015-12-16 10:54:07 +0900250 };
Masahiro Yamada625177d2014-11-26 18:34:00 +0900251
Masahiro Yamada8f062432015-12-16 10:54:07 +0900252 usb1: usb@5a810100 {
253 compatible = "socionext,uniphier-ehci", "generic-ehci";
254 status = "disabled";
255 reg = <0x5a810100 0x100>;
256 interrupts = <0 81 4>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&pinctrl_usb1>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900259 clocks = <&mio_clk 4>, <&mio_clk 6>;
Masahiro Yamada8f062432015-12-16 10:54:07 +0900260 };
Masahiro Yamada149c7512014-11-26 18:34:01 +0900261
Masahiro Yamada8f062432015-12-16 10:54:07 +0900262 usb2: usb@5a820100 {
263 compatible = "socionext,uniphier-ehci", "generic-ehci";
264 status = "disabled";
265 reg = <0x5a820100 0x100>;
266 interrupts = <0 82 4>;
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_usb2>;
Masahiro Yamada35343a22016-09-22 07:42:23 +0900269 clocks = <&mio_clk 5>, <&mio_clk 6>;
Masahiro Yamada509eb672014-11-26 18:33:59 +0900270 };
Masahiro Yamada1013aef2016-06-29 19:39:02 +0900271
272 aidet@61830000 {
273 compatible = "simple-mfd", "syscon";
274 reg = <0x61830000 0x200>;
275 };
Masahiro Yamada509eb672014-11-26 18:33:59 +0900276};
Masahiro Yamadad243c182015-08-28 22:33:13 +0900277
Masahiro Yamadacc336092016-02-02 21:11:33 +0900278&refclk {
279 clock-frequency = <24576000>;
280};
281
Masahiro Yamada8f062432015-12-16 10:54:07 +0900282&serial0 {
283 clock-frequency = <36864000>;
284};
285
286&serial1 {
287 clock-frequency = <36864000>;
288};
289
290&serial2 {
291 clock-frequency = <36864000>;
292};
293
294&serial3 {
295 interrupts = <0 29 4>;
296 clock-frequency = <36864000>;
297};
298
Masahiro Yamada35343a22016-09-22 07:42:23 +0900299&mio_clk {
300 compatible = "socionext,uniphier-ld4-mio-clock";
Masahiro Yamadaaa37aba2016-02-02 21:11:36 +0900301};
302
Masahiro Yamada35343a22016-09-22 07:42:23 +0900303&mio_rst {
304 compatible = "socionext,uniphier-ld4-mio-reset";
305};
306
307&peri_clk {
308 compatible = "socionext,uniphier-ld4-peri-clock";
309};
310
311&peri_rst {
312 compatible = "socionext,uniphier-ld4-peri-reset";
Masahiro Yamada9fbb2f72016-02-02 21:11:35 +0900313};
314
Masahiro Yamada8f062432015-12-16 10:54:07 +0900315&pinctrl {
Masahiro Yamadac4adc502016-06-29 19:38:56 +0900316 compatible = "socionext,uniphier-ld4-pinctrl";
Masahiro Yamada8f062432015-12-16 10:54:07 +0900317};
Masahiro Yamada233812a2016-02-02 21:11:34 +0900318
Masahiro Yamada35343a22016-09-22 07:42:23 +0900319&sys_clk {
320 compatible = "socionext,uniphier-ld4-clock";
321};
322
323&sys_rst {
324 compatible = "socionext,uniphier-ld4-reset";
Masahiro Yamada233812a2016-02-02 21:11:34 +0900325};