1 // SPDX-License-Identifier: GPL-2.0
3 * Hardkernel Odroid XU3/XU3-Lite/XU4/HC1 boards core device tree source
5 * Copyright (c) 2017 Marek Szyprowski
6 * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd.
7 * http://www.samsung.com
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"
18 device_type = "memory";
19 reg = <0x40000000 0x7EA00000>;
23 stdout-path = "serial2:115200n8";
27 compatible = "samsung,secure-firmware";
28 reg = <0x02073000 0x1000>;
33 compatible = "samsung,exynos5420-oscclk";
34 clock-frequency = <24000000>;
38 dmc_opp_table: opp_table2 {
39 compatible = "operating-points-v2";
42 opp-hz = /bits/ 64 <165000000>;
43 opp-microvolt = <875000>;
46 opp-hz = /bits/ 64 <206000000>;
47 opp-microvolt = <875000>;
50 opp-hz = /bits/ 64 <275000000>;
51 opp-microvolt = <875000>;
54 opp-hz = /bits/ 64 <413000000>;
55 opp-microvolt = <887500>;
58 opp-hz = /bits/ 64 <543000000>;
59 opp-microvolt = <937500>;
62 opp-hz = /bits/ 64 <633000000>;
63 opp-microvolt = <1012500>;
66 opp-hz = /bits/ 64 <728000000>;
67 opp-microvolt = <1037500>;
70 opp-hz = /bits/ 64 <825000000>;
71 opp-microvolt = <1050000>;
75 samsung_K3QF2F20DB: lpddr3 {
76 compatible = "samsung,K3QF2F20DB", "jedec,lpddr3";
92 tW2W-C2C-min-tck = <0>;
93 tR2R-C2C-min-tck = <0>;
101 tCKESR-min-tck = <2>;
104 timings_samsung_K3QF2F20DB_800mhz: lpddr3-timings@800000000 {
105 compatible = "jedec,lpddr3-timings";
106 /* workaround: 'reg' shows max-freq */
108 min-freq = <100000000>;
132 vdd-supply = <&ldo4_reg>;
137 devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>,
138 <&nocp_mem1_0>, <&nocp_mem1_1>;
139 vdd-supply = <&buck3_reg>;
140 exynos,saturation-ratio = <100>;
145 devfreq = <&bus_wcore>;
150 devfreq = <&bus_wcore>;
155 devfreq = <&bus_wcore>;
160 devfreq = <&bus_wcore>;
165 devfreq = <&bus_wcore>;
170 devfreq = <&bus_wcore>;
175 devfreq = <&bus_wcore>;
180 devfreq = <&bus_wcore>;
185 devfreq = <&bus_wcore>;
190 devfreq = <&bus_wcore>;
195 devfreq = <&bus_wcore>;
200 devfreq = <&bus_wcore>;
205 devfreq = <&bus_wcore>;
210 devfreq = <&bus_wcore>;
215 devfreq = <&bus_wcore>;
220 cpu-supply = <&buck6_reg>;
224 cpu-supply = <&buck2_reg>;
228 devfreq-events = <&ppmu_event3_dmc0_0>, <&ppmu_event3_dmc0_1>,
229 <&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>;
230 device-handle = <&samsung_K3QF2F20DB>;
231 operating-points-v2 = <&dmc_opp_table>;
232 vdd-supply = <&buck1_reg>;
240 compatible = "samsung,s2mps11-pmic";
242 samsung,s2mps11-acokb-ground;
244 interrupt-parent = <&gpx0>;
245 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&s2mps11_irq>;
249 s2mps11_osc: clocks {
250 compatible = "samsung,s2mps11-clk";
252 clock-output-names = "s2mps11_ap",
253 "s2mps11_cp", "s2mps11_bt";
258 regulator-name = "vdd_ldo1";
259 regulator-min-microvolt = <1000000>;
260 regulator-max-microvolt = <1000000>;
265 regulator-name = "vdd_ldo2";
266 regulator-min-microvolt = <1800000>;
267 regulator-max-microvolt = <1800000>;
272 regulator-name = "vddq_mmc0";
273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <1800000>;
278 regulator-name = "vdd_adc";
279 regulator-min-microvolt = <1800000>;
280 regulator-max-microvolt = <1800000>;
282 regulator-state-mem {
283 regulator-off-in-suspend;
288 regulator-name = "vdd_ldo5";
289 regulator-min-microvolt = <1800000>;
290 regulator-max-microvolt = <1800000>;
293 regulator-state-mem {
294 regulator-off-in-suspend;
299 regulator-name = "vdd_ldo6";
300 regulator-min-microvolt = <1000000>;
301 regulator-max-microvolt = <1000000>;
304 regulator-state-mem {
305 regulator-off-in-suspend;
310 regulator-name = "vdd_ldo7";
311 regulator-min-microvolt = <1800000>;
312 regulator-max-microvolt = <1800000>;
315 regulator-state-mem {
316 regulator-off-in-suspend;
321 regulator-name = "vdd_ldo8";
322 regulator-min-microvolt = <1800000>;
323 regulator-max-microvolt = <1800000>;
326 regulator-state-mem {
327 regulator-off-in-suspend;
332 regulator-name = "vdd_ldo9";
333 regulator-min-microvolt = <3000000>;
334 regulator-max-microvolt = <3000000>;
337 regulator-state-mem {
338 regulator-off-in-suspend;
343 regulator-name = "vdd_ldo10";
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <1800000>;
348 regulator-state-mem {
349 regulator-off-in-suspend;
354 regulator-name = "vdd_ldo11";
355 regulator-min-microvolt = <1000000>;
356 regulator-max-microvolt = <1000000>;
359 regulator-state-mem {
360 regulator-off-in-suspend;
366 regulator-name = "vdd_ldo12";
367 regulator-min-microvolt = <800000>;
368 regulator-max-microvolt = <2375000>;
372 regulator-name = "vddq_mmc2";
373 regulator-min-microvolt = <1800000>;
374 regulator-max-microvolt = <2800000>;
376 regulator-state-mem {
377 regulator-off-in-suspend;
383 regulator-name = "vdd_ldo14";
384 regulator-min-microvolt = <800000>;
385 regulator-max-microvolt = <3950000>;
389 regulator-name = "vdd_ldo15";
390 regulator-min-microvolt = <3300000>;
391 regulator-max-microvolt = <3300000>;
394 regulator-state-mem {
395 regulator-off-in-suspend;
401 regulator-name = "vdd_ldo16";
402 regulator-min-microvolt = <800000>;
403 regulator-max-microvolt = <3950000>;
407 regulator-name = "vdd_ldo17";
408 regulator-min-microvolt = <3300000>;
409 regulator-max-microvolt = <3300000>;
412 regulator-state-mem {
413 regulator-off-in-suspend;
418 regulator-name = "vdd_emmc_1V8";
419 regulator-min-microvolt = <1800000>;
420 regulator-max-microvolt = <1800000>;
422 regulator-state-mem {
423 regulator-off-in-suspend;
428 regulator-name = "vdd_sd";
429 regulator-min-microvolt = <2800000>;
430 regulator-max-microvolt = <2800000>;
432 regulator-state-mem {
433 regulator-off-in-suspend;
439 regulator-name = "vdd_ldo20";
440 regulator-min-microvolt = <800000>;
441 regulator-max-microvolt = <3950000>;
446 regulator-name = "vdd_ldo21";
447 regulator-min-microvolt = <800000>;
448 regulator-max-microvolt = <3950000>;
453 regulator-name = "vdd_ldo22";
454 regulator-min-microvolt = <800000>;
455 regulator-max-microvolt = <2375000>;
459 regulator-name = "vdd_mifs";
460 regulator-min-microvolt = <1100000>;
461 regulator-max-microvolt = <1100000>;
464 regulator-state-mem {
465 regulator-off-in-suspend;
471 regulator-name = "vdd_ldo24";
472 regulator-min-microvolt = <800000>;
473 regulator-max-microvolt = <3950000>;
478 regulator-name = "vdd_ldo25";
479 regulator-min-microvolt = <800000>;
480 regulator-max-microvolt = <3950000>;
484 /* Used on XU3, XU3-Lite and XU4 */
485 regulator-name = "vdd_ldo26";
486 regulator-min-microvolt = <800000>;
487 regulator-max-microvolt = <3950000>;
489 regulator-state-mem {
490 regulator-off-in-suspend;
495 regulator-name = "vdd_g3ds";
496 regulator-min-microvolt = <1000000>;
497 regulator-max-microvolt = <1000000>;
500 regulator-state-mem {
501 regulator-off-in-suspend;
507 regulator-name = "vdd_ldo28";
508 regulator-min-microvolt = <800000>;
509 regulator-max-microvolt = <3950000>;
511 regulator-state-mem {
512 regulator-off-in-suspend;
518 regulator-name = "vdd_ldo29";
519 regulator-min-microvolt = <800000>;
520 regulator-max-microvolt = <3950000>;
525 regulator-name = "vdd_ldo30";
526 regulator-min-microvolt = <800000>;
527 regulator-max-microvolt = <3950000>;
532 regulator-name = "vdd_ldo31";
533 regulator-min-microvolt = <800000>;
534 regulator-max-microvolt = <3950000>;
539 regulator-name = "vdd_ldo32";
540 regulator-min-microvolt = <800000>;
541 regulator-max-microvolt = <3950000>;
546 regulator-name = "vdd_ldo33";
547 regulator-min-microvolt = <800000>;
548 regulator-max-microvolt = <3950000>;
553 regulator-name = "vdd_ldo34";
554 regulator-min-microvolt = <800000>;
555 regulator-max-microvolt = <3950000>;
560 regulator-name = "vdd_ldo35";
561 regulator-min-microvolt = <800000>;
562 regulator-max-microvolt = <2375000>;
567 regulator-name = "vdd_ldo36";
568 regulator-min-microvolt = <800000>;
569 regulator-max-microvolt = <3950000>;
574 regulator-name = "vdd_ldo37";
575 regulator-min-microvolt = <800000>;
576 regulator-max-microvolt = <3950000>;
581 regulator-name = "vdd_ldo38";
582 regulator-min-microvolt = <800000>;
583 regulator-max-microvolt = <3950000>;
587 regulator-name = "vdd_mif";
588 regulator-min-microvolt = <800000>;
589 regulator-max-microvolt = <1300000>;
593 regulator-state-mem {
594 regulator-off-in-suspend;
599 regulator-name = "vdd_arm";
600 regulator-min-microvolt = <800000>;
601 regulator-max-microvolt = <1500000>;
605 regulator-state-mem {
606 regulator-off-in-suspend;
611 regulator-name = "vdd_int";
612 regulator-min-microvolt = <800000>;
613 regulator-max-microvolt = <1400000>;
617 regulator-state-mem {
618 regulator-off-in-suspend;
623 regulator-name = "vdd_g3d";
624 regulator-min-microvolt = <800000>;
625 regulator-max-microvolt = <1400000>;
629 regulator-state-mem {
630 regulator-off-in-suspend;
635 regulator-name = "vdd_mem";
636 regulator-min-microvolt = <800000>;
637 regulator-max-microvolt = <1400000>;
643 regulator-name = "vdd_kfc";
644 regulator-min-microvolt = <800000>;
645 regulator-max-microvolt = <1500000>;
649 regulator-state-mem {
650 regulator-off-in-suspend;
655 regulator-name = "vdd_1.35v_ldo";
656 regulator-min-microvolt = <1200000>;
657 regulator-max-microvolt = <1500000>;
663 regulator-name = "vdd_2.0v_ldo";
664 regulator-min-microvolt = <1800000>;
665 regulator-max-microvolt = <2100000>;
671 regulator-name = "vdd_2.8v_ldo";
672 regulator-min-microvolt = <3000000>;
673 regulator-max-microvolt = <3750000>;
677 regulator-state-mem {
678 regulator-off-in-suspend;
683 regulator-name = "vdd_vmem";
684 regulator-min-microvolt = <2850000>;
685 regulator-max-microvolt = <2850000>;
687 regulator-state-mem {
688 regulator-off-in-suspend;
697 card-detect-delay = <200>;
698 samsung,dw-mshc-ciu-div = <3>;
699 samsung,dw-mshc-sdr-timing = <0 4>;
700 samsung,dw-mshc-ddr-timing = <0 2>;
701 pinctrl-names = "default";
702 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_wp &sd2_bus1 &sd2_bus4>;
705 max-frequency = <200000000>;
706 vmmc-supply = <&ldo19_reg>;
707 vqmmc-supply = <&ldo13_reg>;
730 s2mps11_irq: s2mps11-irq {
731 samsung,pins = "gpx0-4";
732 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
733 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
734 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
755 vtmu-supply = <&ldo7_reg>;
759 vtmu-supply = <&ldo7_reg>;
763 vtmu-supply = <&ldo7_reg>;
767 vtmu-supply = <&ldo7_reg>;
771 vtmu-supply = <&ldo7_reg>;
776 clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>;
777 clock-names = "rtc", "rtc_src";
784 /* usbdrd_dwc3_1 mode customized in each board */
787 vdd33-supply = <&ldo9_reg>;
788 vdd10-supply = <&ldo11_reg>;
792 vdd33-supply = <&ldo9_reg>;
793 vdd10-supply = <&ldo11_reg>;