Commit | Line | Data |
---|---|---|
cc4637f7 | 1 | // SPDX-License-Identifier: GPL-2.0 |
1ac49427 MS |
2 | /* |
3 | * Hardkernel Odroid XU3/XU4/HC1 boards core device tree source | |
4 | * | |
5 | * Copyright (c) 2017 Marek Szyprowski | |
6 | * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd. | |
7 | * http://www.samsung.com | |
cc4637f7 | 8 | */ |
1ac49427 MS |
9 | |
10 | #include <dt-bindings/clock/samsung,s2mps11.h> | |
11 | #include <dt-bindings/interrupt-controller/irq.h> | |
12 | #include <dt-bindings/gpio/gpio.h> | |
13 | #include "exynos5800.dtsi" | |
14 | #include "exynos5422-cpus.dtsi" | |
15 | ||
16 | / { | |
17 | memory@40000000 { | |
18 | device_type = "memory"; | |
19 | reg = <0x40000000 0x7EA00000>; | |
20 | }; | |
21 | ||
22 | chosen { | |
23 | stdout-path = "serial2:115200n8"; | |
24 | }; | |
25 | ||
edef4285 | 26 | firmware@2073000 { |
1ac49427 MS |
27 | compatible = "samsung,secure-firmware"; |
28 | reg = <0x02073000 0x1000>; | |
29 | }; | |
30 | ||
31 | fixed-rate-clocks { | |
32 | oscclk { | |
33 | compatible = "samsung,exynos5420-oscclk"; | |
34 | clock-frequency = <24000000>; | |
35 | }; | |
36 | }; | |
37 | }; | |
38 | ||
39 | &bus_wcore { | |
40 | devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>, | |
41 | <&nocp_mem1_0>, <&nocp_mem1_1>; | |
42 | vdd-supply = <&buck3_reg>; | |
43 | exynos,saturation-ratio = <100>; | |
44 | status = "okay"; | |
45 | }; | |
46 | ||
47 | &bus_noc { | |
48 | devfreq = <&bus_wcore>; | |
49 | status = "okay"; | |
50 | }; | |
51 | ||
52 | &bus_fsys_apb { | |
53 | devfreq = <&bus_wcore>; | |
54 | status = "okay"; | |
55 | }; | |
56 | ||
57 | &bus_fsys { | |
58 | devfreq = <&bus_wcore>; | |
59 | status = "okay"; | |
60 | }; | |
61 | ||
62 | &bus_fsys2 { | |
63 | devfreq = <&bus_wcore>; | |
64 | status = "okay"; | |
65 | }; | |
66 | ||
67 | &bus_mfc { | |
68 | devfreq = <&bus_wcore>; | |
69 | status = "okay"; | |
70 | }; | |
71 | ||
72 | &bus_gen { | |
73 | devfreq = <&bus_wcore>; | |
74 | status = "okay"; | |
75 | }; | |
76 | ||
77 | &bus_peri { | |
78 | devfreq = <&bus_wcore>; | |
79 | status = "okay"; | |
80 | }; | |
81 | ||
82 | &bus_g2d { | |
83 | devfreq = <&bus_wcore>; | |
84 | status = "okay"; | |
85 | }; | |
86 | ||
87 | &bus_g2d_acp { | |
88 | devfreq = <&bus_wcore>; | |
89 | status = "okay"; | |
90 | }; | |
91 | ||
92 | &bus_jpeg { | |
93 | devfreq = <&bus_wcore>; | |
94 | status = "okay"; | |
95 | }; | |
96 | ||
97 | &bus_jpeg_apb { | |
98 | devfreq = <&bus_wcore>; | |
99 | status = "okay"; | |
100 | }; | |
101 | ||
102 | &bus_disp1_fimd { | |
103 | devfreq = <&bus_wcore>; | |
104 | status = "okay"; | |
105 | }; | |
106 | ||
107 | &bus_disp1 { | |
108 | devfreq = <&bus_wcore>; | |
109 | status = "okay"; | |
110 | }; | |
111 | ||
112 | &bus_gscl_scaler { | |
113 | devfreq = <&bus_wcore>; | |
114 | status = "okay"; | |
115 | }; | |
116 | ||
117 | &bus_mscl { | |
118 | devfreq = <&bus_wcore>; | |
119 | status = "okay"; | |
120 | }; | |
121 | ||
122 | &cpu0 { | |
123 | cpu-supply = <&buck6_reg>; | |
124 | }; | |
125 | ||
126 | &cpu4 { | |
127 | cpu-supply = <&buck2_reg>; | |
128 | }; | |
129 | ||
130 | &hsi2c_4 { | |
131 | status = "okay"; | |
132 | ||
133 | s2mps11_pmic@66 { | |
134 | compatible = "samsung,s2mps11-pmic"; | |
135 | reg = <0x66>; | |
136 | samsung,s2mps11-acokb-ground; | |
137 | ||
138 | interrupt-parent = <&gpx0>; | |
139 | interrupts = <4 IRQ_TYPE_EDGE_FALLING>; | |
140 | pinctrl-names = "default"; | |
141 | pinctrl-0 = <&s2mps11_irq>; | |
142 | ||
143 | s2mps11_osc: clocks { | |
144 | #clock-cells = <1>; | |
145 | clock-output-names = "s2mps11_ap", | |
146 | "s2mps11_cp", "s2mps11_bt"; | |
147 | }; | |
148 | ||
149 | regulators { | |
150 | ldo1_reg: LDO1 { | |
151 | regulator-name = "vdd_ldo1"; | |
152 | regulator-min-microvolt = <1000000>; | |
153 | regulator-max-microvolt = <1000000>; | |
154 | regulator-always-on; | |
155 | }; | |
156 | ||
95ac2262 KK |
157 | ldo2_reg: LDO2 { |
158 | regulator-name = "vdd_ldo2"; | |
159 | regulator-min-microvolt = <1800000>; | |
160 | regulator-max-microvolt = <1800000>; | |
161 | regulator-always-on; | |
162 | }; | |
163 | ||
1ac49427 MS |
164 | ldo3_reg: LDO3 { |
165 | regulator-name = "vddq_mmc0"; | |
166 | regulator-min-microvolt = <1800000>; | |
167 | regulator-max-microvolt = <1800000>; | |
168 | }; | |
169 | ||
170 | ldo4_reg: LDO4 { | |
171 | regulator-name = "vdd_adc"; | |
172 | regulator-min-microvolt = <1800000>; | |
173 | regulator-max-microvolt = <1800000>; | |
174 | }; | |
175 | ||
176 | ldo5_reg: LDO5 { | |
177 | regulator-name = "vdd_ldo5"; | |
178 | regulator-min-microvolt = <1800000>; | |
179 | regulator-max-microvolt = <1800000>; | |
180 | regulator-always-on; | |
181 | }; | |
182 | ||
183 | ldo6_reg: LDO6 { | |
184 | regulator-name = "vdd_ldo6"; | |
185 | regulator-min-microvolt = <1000000>; | |
186 | regulator-max-microvolt = <1000000>; | |
187 | regulator-always-on; | |
188 | }; | |
189 | ||
190 | ldo7_reg: LDO7 { | |
191 | regulator-name = "vdd_ldo7"; | |
192 | regulator-min-microvolt = <1800000>; | |
193 | regulator-max-microvolt = <1800000>; | |
194 | regulator-always-on; | |
195 | }; | |
196 | ||
197 | ldo8_reg: LDO8 { | |
198 | regulator-name = "vdd_ldo8"; | |
199 | regulator-min-microvolt = <1800000>; | |
200 | regulator-max-microvolt = <1800000>; | |
201 | regulator-always-on; | |
202 | }; | |
203 | ||
204 | ldo9_reg: LDO9 { | |
205 | regulator-name = "vdd_ldo9"; | |
206 | regulator-min-microvolt = <3000000>; | |
207 | regulator-max-microvolt = <3000000>; | |
208 | regulator-always-on; | |
209 | }; | |
210 | ||
211 | ldo10_reg: LDO10 { | |
212 | regulator-name = "vdd_ldo10"; | |
213 | regulator-min-microvolt = <1800000>; | |
214 | regulator-max-microvolt = <1800000>; | |
215 | regulator-always-on; | |
216 | }; | |
217 | ||
218 | ldo11_reg: LDO11 { | |
219 | regulator-name = "vdd_ldo11"; | |
220 | regulator-min-microvolt = <1000000>; | |
221 | regulator-max-microvolt = <1000000>; | |
222 | regulator-always-on; | |
223 | }; | |
224 | ||
225 | ldo12_reg: LDO12 { | |
226 | regulator-name = "vdd_ldo12"; | |
227 | regulator-min-microvolt = <1800000>; | |
228 | regulator-max-microvolt = <1800000>; | |
229 | regulator-always-on; | |
230 | }; | |
231 | ||
232 | ldo13_reg: LDO13 { | |
233 | regulator-name = "vddq_mmc2"; | |
234 | regulator-min-microvolt = <2800000>; | |
235 | regulator-max-microvolt = <2800000>; | |
236 | }; | |
237 | ||
8e829549 KK |
238 | ldo14_reg: LDO14 { |
239 | /* Unused */ | |
240 | regulator-name = "vdd_ldo14"; | |
241 | regulator-min-microvolt = <800000>; | |
242 | regulator-max-microvolt = <3950000>; | |
243 | }; | |
244 | ||
1ac49427 MS |
245 | ldo15_reg: LDO15 { |
246 | regulator-name = "vdd_ldo15"; | |
e4c1ea7b DK |
247 | regulator-min-microvolt = <3300000>; |
248 | regulator-max-microvolt = <3300000>; | |
1ac49427 MS |
249 | regulator-always-on; |
250 | }; | |
251 | ||
252 | ldo16_reg: LDO16 { | |
253 | regulator-name = "vdd_ldo16"; | |
254 | regulator-min-microvolt = <2200000>; | |
255 | regulator-max-microvolt = <2200000>; | |
256 | regulator-always-on; | |
257 | }; | |
258 | ||
259 | ldo17_reg: LDO17 { | |
e4c1ea7b | 260 | regulator-name = "vdd_ldo17"; |
1ac49427 MS |
261 | regulator-min-microvolt = <3300000>; |
262 | regulator-max-microvolt = <3300000>; | |
263 | regulator-always-on; | |
264 | }; | |
265 | ||
266 | ldo18_reg: LDO18 { | |
267 | regulator-name = "vdd_emmc_1V8"; | |
268 | regulator-min-microvolt = <1800000>; | |
269 | regulator-max-microvolt = <1800000>; | |
270 | }; | |
271 | ||
272 | ldo19_reg: LDO19 { | |
273 | regulator-name = "vdd_sd"; | |
274 | regulator-min-microvolt = <2800000>; | |
275 | regulator-max-microvolt = <2800000>; | |
276 | }; | |
277 | ||
8e829549 KK |
278 | ldo20_reg: LDO20 { |
279 | /* Unused */ | |
280 | regulator-name = "vdd_ldo20"; | |
281 | regulator-min-microvolt = <800000>; | |
282 | regulator-max-microvolt = <3950000>; | |
283 | }; | |
284 | ||
285 | ldo21_reg: LDO21 { | |
286 | /* Unused */ | |
287 | regulator-name = "vdd_ldo21"; | |
288 | regulator-min-microvolt = <800000>; | |
289 | regulator-max-microvolt = <3950000>; | |
290 | }; | |
291 | ||
292 | ldo22_reg: LDO22 { | |
293 | /* Unused */ | |
294 | regulator-name = "vdd_ldo22"; | |
295 | regulator-min-microvolt = <800000>; | |
296 | regulator-max-microvolt = <2375000>; | |
297 | }; | |
298 | ||
95ac2262 KK |
299 | ldo23_reg: LDO23 { |
300 | regulator-name = "vdd_mifs"; | |
301 | regulator-min-microvolt = <1100000>; | |
302 | regulator-max-microvolt = <1100000>; | |
303 | regulator-always-on; | |
304 | }; | |
305 | ||
1ac49427 MS |
306 | ldo24_reg: LDO24 { |
307 | regulator-name = "tsp_io"; | |
308 | regulator-min-microvolt = <2800000>; | |
309 | regulator-max-microvolt = <2800000>; | |
310 | regulator-always-on; | |
311 | }; | |
312 | ||
8e829549 KK |
313 | ldo25_reg: LDO25 { |
314 | /* Unused */ | |
315 | regulator-name = "vdd_ldo25"; | |
316 | regulator-min-microvolt = <800000>; | |
317 | regulator-max-microvolt = <3950000>; | |
318 | }; | |
319 | ||
1ac49427 MS |
320 | ldo26_reg: LDO26 { |
321 | regulator-name = "vdd_ldo26"; | |
322 | regulator-min-microvolt = <3000000>; | |
323 | regulator-max-microvolt = <3000000>; | |
324 | regulator-always-on; | |
325 | }; | |
326 | ||
95ac2262 KK |
327 | ldo27_reg: LDO27 { |
328 | regulator-name = "vdd_g3ds"; | |
329 | regulator-min-microvolt = <1000000>; | |
330 | regulator-max-microvolt = <1000000>; | |
331 | regulator-always-on; | |
332 | }; | |
333 | ||
8e829549 KK |
334 | ldo29_reg: LDO29 { |
335 | /* Unused */ | |
336 | regulator-name = "vdd_ldo29"; | |
337 | regulator-min-microvolt = <800000>; | |
338 | regulator-max-microvolt = <3950000>; | |
339 | }; | |
340 | ||
341 | ldo30_reg: LDO30 { | |
342 | /* Unused */ | |
343 | regulator-name = "vdd_ldo30"; | |
344 | regulator-min-microvolt = <800000>; | |
345 | regulator-max-microvolt = <3950000>; | |
346 | }; | |
347 | ||
348 | ldo31_reg: LDO31 { | |
349 | /* Unused */ | |
350 | regulator-name = "vdd_ldo31"; | |
351 | regulator-min-microvolt = <800000>; | |
352 | regulator-max-microvolt = <3950000>; | |
353 | }; | |
354 | ||
355 | ldo32_reg: LDO32 { | |
356 | /* Unused */ | |
357 | regulator-name = "vdd_ldo32"; | |
358 | regulator-min-microvolt = <800000>; | |
359 | regulator-max-microvolt = <3950000>; | |
360 | }; | |
361 | ||
362 | ldo33_reg: LDO33 { | |
363 | /* Unused */ | |
364 | regulator-name = "vdd_ldo33"; | |
365 | regulator-min-microvolt = <800000>; | |
366 | regulator-max-microvolt = <3950000>; | |
367 | }; | |
368 | ||
369 | ldo34_reg: LDO34 { | |
370 | /* Unused */ | |
371 | regulator-name = "vdd_ldo34"; | |
372 | regulator-min-microvolt = <800000>; | |
373 | regulator-max-microvolt = <3950000>; | |
374 | }; | |
375 | ||
376 | ldo35_reg: LDO35 { | |
377 | /* Unused */ | |
378 | regulator-name = "vdd_ldo35"; | |
379 | regulator-min-microvolt = <800000>; | |
380 | regulator-max-microvolt = <2375000>; | |
381 | }; | |
382 | ||
383 | ldo36_reg: LDO36 { | |
384 | /* Unused */ | |
385 | regulator-name = "vdd_ldo36"; | |
386 | regulator-min-microvolt = <800000>; | |
387 | regulator-max-microvolt = <3950000>; | |
388 | }; | |
389 | ||
390 | ldo37_reg: LDO37 { | |
391 | /* Unused */ | |
392 | regulator-name = "vdd_ldo37"; | |
393 | regulator-min-microvolt = <800000>; | |
394 | regulator-max-microvolt = <3950000>; | |
395 | }; | |
396 | ||
397 | ldo38_reg: LDO38 { | |
398 | /* Unused */ | |
399 | regulator-name = "vdd_ldo38"; | |
400 | regulator-min-microvolt = <800000>; | |
401 | regulator-max-microvolt = <3950000>; | |
402 | }; | |
403 | ||
1ac49427 MS |
404 | buck1_reg: BUCK1 { |
405 | regulator-name = "vdd_mif"; | |
406 | regulator-min-microvolt = <800000>; | |
407 | regulator-max-microvolt = <1300000>; | |
408 | regulator-always-on; | |
409 | regulator-boot-on; | |
410 | }; | |
411 | ||
412 | buck2_reg: BUCK2 { | |
413 | regulator-name = "vdd_arm"; | |
414 | regulator-min-microvolt = <800000>; | |
415 | regulator-max-microvolt = <1500000>; | |
416 | regulator-always-on; | |
417 | regulator-boot-on; | |
418 | }; | |
419 | ||
420 | buck3_reg: BUCK3 { | |
421 | regulator-name = "vdd_int"; | |
422 | regulator-min-microvolt = <800000>; | |
423 | regulator-max-microvolt = <1400000>; | |
424 | regulator-always-on; | |
425 | regulator-boot-on; | |
426 | }; | |
427 | ||
428 | buck4_reg: BUCK4 { | |
429 | regulator-name = "vdd_g3d"; | |
430 | regulator-min-microvolt = <800000>; | |
431 | regulator-max-microvolt = <1400000>; | |
432 | regulator-always-on; | |
433 | regulator-boot-on; | |
434 | }; | |
435 | ||
436 | buck5_reg: BUCK5 { | |
437 | regulator-name = "vdd_mem"; | |
438 | regulator-min-microvolt = <800000>; | |
439 | regulator-max-microvolt = <1400000>; | |
440 | regulator-always-on; | |
441 | regulator-boot-on; | |
442 | }; | |
443 | ||
444 | buck6_reg: BUCK6 { | |
445 | regulator-name = "vdd_kfc"; | |
446 | regulator-min-microvolt = <800000>; | |
447 | regulator-max-microvolt = <1500000>; | |
448 | regulator-always-on; | |
449 | regulator-boot-on; | |
450 | }; | |
451 | ||
452 | buck7_reg: BUCK7 { | |
453 | regulator-name = "vdd_1.0v_ldo"; | |
454 | regulator-min-microvolt = <800000>; | |
455 | regulator-max-microvolt = <1500000>; | |
456 | regulator-always-on; | |
457 | regulator-boot-on; | |
458 | }; | |
459 | ||
460 | buck8_reg: BUCK8 { | |
461 | regulator-name = "vdd_1.8v_ldo"; | |
462 | regulator-min-microvolt = <800000>; | |
463 | regulator-max-microvolt = <1500000>; | |
464 | regulator-always-on; | |
465 | regulator-boot-on; | |
466 | }; | |
467 | ||
468 | buck9_reg: BUCK9 { | |
469 | regulator-name = "vdd_2.8v_ldo"; | |
470 | regulator-min-microvolt = <3000000>; | |
471 | regulator-max-microvolt = <3750000>; | |
472 | regulator-always-on; | |
473 | regulator-boot-on; | |
474 | }; | |
475 | ||
476 | buck10_reg: BUCK10 { | |
477 | regulator-name = "vdd_vmem"; | |
478 | regulator-min-microvolt = <2850000>; | |
479 | regulator-max-microvolt = <2850000>; | |
480 | regulator-always-on; | |
481 | regulator-boot-on; | |
482 | }; | |
483 | }; | |
484 | }; | |
485 | }; | |
486 | ||
487 | &mmc_2 { | |
488 | status = "okay"; | |
489 | card-detect-delay = <200>; | |
490 | samsung,dw-mshc-ciu-div = <3>; | |
491 | samsung,dw-mshc-sdr-timing = <0 4>; | |
492 | samsung,dw-mshc-ddr-timing = <0 2>; | |
493 | pinctrl-names = "default"; | |
494 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; | |
495 | bus-width = <4>; | |
496 | cap-sd-highspeed; | |
497 | vmmc-supply = <&ldo19_reg>; | |
498 | vqmmc-supply = <&ldo13_reg>; | |
499 | }; | |
500 | ||
501 | &nocp_mem0_0 { | |
502 | status = "okay"; | |
503 | }; | |
504 | ||
505 | &nocp_mem0_1 { | |
506 | status = "okay"; | |
507 | }; | |
508 | ||
509 | &nocp_mem1_0 { | |
510 | status = "okay"; | |
511 | }; | |
512 | ||
513 | &nocp_mem1_1 { | |
514 | status = "okay"; | |
515 | }; | |
516 | ||
517 | &pinctrl_0 { | |
518 | s2mps11_irq: s2mps11-irq { | |
519 | samsung,pins = "gpx0-4"; | |
520 | samsung,pin-function = <EXYNOS_PIN_FUNC_F>; | |
521 | samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; | |
522 | samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; | |
523 | }; | |
524 | }; | |
525 | ||
526 | &tmu_cpu0 { | |
527 | vtmu-supply = <&ldo7_reg>; | |
528 | }; | |
529 | ||
530 | &tmu_cpu1 { | |
531 | vtmu-supply = <&ldo7_reg>; | |
532 | }; | |
533 | ||
534 | &tmu_cpu2 { | |
535 | vtmu-supply = <&ldo7_reg>; | |
536 | }; | |
537 | ||
538 | &tmu_cpu3 { | |
539 | vtmu-supply = <&ldo7_reg>; | |
540 | }; | |
541 | ||
542 | &tmu_gpu { | |
543 | vtmu-supply = <&ldo7_reg>; | |
544 | }; | |
545 | ||
546 | &rtc { | |
547 | status = "okay"; | |
548 | clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>; | |
549 | clock-names = "rtc", "rtc_src"; | |
550 | }; | |
551 | ||
552 | &usbdrd_dwc3_0 { | |
553 | dr_mode = "host"; | |
554 | }; | |
555 | ||
556 | /* usbdrd_dwc3_1 mode customized in each board */ | |
557 | ||
558 | &usbdrd3_0 { | |
559 | vdd33-supply = <&ldo9_reg>; | |
560 | vdd10-supply = <&ldo11_reg>; | |
561 | }; | |
562 | ||
563 | &usbdrd3_1 { | |
564 | vdd33-supply = <&ldo9_reg>; | |
565 | vdd10-supply = <&ldo11_reg>; | |
566 | }; |