2 * Hardkernel Odroid XU3 board device tree source
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 * Copyright (c) 2014 Collabora Ltd.
7 * Copyright (c) 2015 Lukasz Majewski <l.majewski@samsung.com>
8 * Anand Moon <linux.amoon@gmail.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #include <dt-bindings/clock/samsung,s2mps11.h>
16 #include <dt-bindings/input/input.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/sound/samsung-i2s.h>
20 #include "exynos5800.dtsi"
21 #include "exynos5422-cpus.dtsi"
25 device_type = "memory";
26 reg = <0x40000000 0x7EA00000>;
30 stdout-path = "serial2:115200n8";
34 compatible = "samsung,secure-firmware";
35 reg = <0x02073000 0x1000>;
40 compatible = "samsung,exynos5420-oscclk";
41 clock-frequency = <24000000>;
46 compatible = "gpio-keys";
47 pinctrl-names = "default";
48 pinctrl-0 = <&power_key>;
52 * The power button (SW2) is connected to the PWRON
53 * pin (active high) of the S2MPS11 PMIC, which acts
54 * as a 16ms debouce filter and signal inverter with
55 * output on ONOB pin (active low). ONOB PMIC pin is
56 * then connected to XEINT3 SoC pin.
58 gpios = <&gpx0 3 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_POWER>;
61 debounce-interval = <0>;
67 pinctrl-0 = <&emmc_nrst_pin>;
68 pinctrl-names = "default";
69 compatible = "mmc-pwrseq-emmc";
70 reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>;
74 compatible = "pwm-fan";
75 pwms = <&pwm 0 20972 0>;
76 cooling-min-state = <0>;
77 cooling-max-state = <3>;
79 cooling-levels = <0 130 170 230>;
83 cpu0_thermal: cpu0-thermal {
84 thermal-sensors = <&tmu_cpu0 0>;
85 polling-delay-passive = <250>;
88 cpu0_alert0: cpu-alert-0 {
89 temperature = <50000>; /* millicelsius */
90 hysteresis = <5000>; /* millicelsius */
93 cpu0_alert1: cpu-alert-1 {
94 temperature = <60000>; /* millicelsius */
95 hysteresis = <5000>; /* millicelsius */
98 cpu0_alert2: cpu-alert-2 {
99 temperature = <70000>; /* millicelsius */
100 hysteresis = <5000>; /* millicelsius */
103 cpu0_crit0: cpu-crit-0 {
104 temperature = <120000>; /* millicelsius */
105 hysteresis = <0>; /* millicelsius */
109 * Exynos542x supports only 4 trip-points
110 * so for these polling mode is required.
111 * Start polling at temperature level of last
112 * interrupt-driven trip: cpu0_alert2
114 cpu0_alert3: cpu-alert-3 {
115 temperature = <70000>; /* millicelsius */
116 hysteresis = <10000>; /* millicelsius */
119 cpu0_alert4: cpu-alert-4 {
120 temperature = <85000>; /* millicelsius */
121 hysteresis = <10000>; /* millicelsius */
127 trip = <&cpu0_alert0>;
128 cooling-device = <&fan0 0 1>;
131 trip = <&cpu0_alert1>;
132 cooling-device = <&fan0 1 2>;
135 trip = <&cpu0_alert2>;
136 cooling-device = <&fan0 2 3>;
139 * When reaching cpu0_alert3, reduce CPU
140 * by 2 steps. On Exynos5422/5800 that would
141 * be: 1600 MHz and 1100 MHz.
144 trip = <&cpu0_alert3>;
145 cooling-device = <&cpu0 0 2>;
148 trip = <&cpu0_alert3>;
149 cooling-device = <&cpu4 0 2>;
152 * When reaching cpu0_alert4, reduce CPU
153 * further, down to 600 MHz (12 steps for big,
154 * 7 steps for LITTLE).
157 trip = <&cpu0_alert4>;
158 cooling-device = <&cpu0 3 7>;
161 trip = <&cpu0_alert4>;
162 cooling-device = <&cpu4 3 12>;
166 cpu1_thermal: cpu1-thermal {
167 thermal-sensors = <&tmu_cpu1 0>;
168 polling-delay-passive = <250>;
171 cpu1_alert0: cpu-alert-0 {
172 temperature = <50000>;
176 cpu1_alert1: cpu-alert-1 {
177 temperature = <60000>;
181 cpu1_alert2: cpu-alert-2 {
182 temperature = <70000>;
186 cpu1_crit0: cpu-crit-0 {
187 temperature = <120000>;
191 cpu1_alert3: cpu-alert-3 {
192 temperature = <70000>;
193 hysteresis = <10000>;
196 cpu1_alert4: cpu-alert-4 {
197 temperature = <85000>;
198 hysteresis = <10000>;
204 trip = <&cpu1_alert0>;
205 cooling-device = <&fan0 0 1>;
208 trip = <&cpu1_alert1>;
209 cooling-device = <&fan0 1 2>;
212 trip = <&cpu1_alert2>;
213 cooling-device = <&fan0 2 3>;
216 trip = <&cpu1_alert3>;
217 cooling-device = <&cpu0 0 2>;
220 trip = <&cpu1_alert3>;
221 cooling-device = <&cpu4 0 2>;
224 trip = <&cpu1_alert4>;
225 cooling-device = <&cpu0 3 7>;
228 trip = <&cpu1_alert4>;
229 cooling-device = <&cpu4 3 12>;
233 cpu2_thermal: cpu2-thermal {
234 thermal-sensors = <&tmu_cpu2 0>;
235 polling-delay-passive = <250>;
238 cpu2_alert0: cpu-alert-0 {
239 temperature = <50000>;
243 cpu2_alert1: cpu-alert-1 {
244 temperature = <60000>;
248 cpu2_alert2: cpu-alert-2 {
249 temperature = <70000>;
253 cpu2_crit0: cpu-crit-0 {
254 temperature = <120000>;
258 cpu2_alert3: cpu-alert-3 {
259 temperature = <70000>;
260 hysteresis = <10000>;
263 cpu2_alert4: cpu-alert-4 {
264 temperature = <85000>;
265 hysteresis = <10000>;
271 trip = <&cpu2_alert0>;
272 cooling-device = <&fan0 0 1>;
275 trip = <&cpu2_alert1>;
276 cooling-device = <&fan0 1 2>;
279 trip = <&cpu2_alert2>;
280 cooling-device = <&fan0 2 3>;
283 trip = <&cpu2_alert3>;
284 cooling-device = <&cpu0 0 2>;
287 trip = <&cpu2_alert3>;
288 cooling-device = <&cpu4 0 2>;
291 trip = <&cpu2_alert4>;
292 cooling-device = <&cpu0 3 7>;
295 trip = <&cpu2_alert4>;
296 cooling-device = <&cpu4 3 12>;
300 cpu3_thermal: cpu3-thermal {
301 thermal-sensors = <&tmu_cpu3 0>;
302 polling-delay-passive = <250>;
305 cpu3_alert0: cpu-alert-0 {
306 temperature = <50000>;
310 cpu3_alert1: cpu-alert-1 {
311 temperature = <60000>;
315 cpu3_alert2: cpu-alert-2 {
316 temperature = <70000>;
320 cpu3_crit0: cpu-crit-0 {
321 temperature = <120000>;
325 cpu3_alert3: cpu-alert-3 {
326 temperature = <70000>;
327 hysteresis = <10000>;
330 cpu3_alert4: cpu-alert-4 {
331 temperature = <85000>;
332 hysteresis = <10000>;
338 trip = <&cpu3_alert0>;
339 cooling-device = <&fan0 0 1>;
342 trip = <&cpu3_alert1>;
343 cooling-device = <&fan0 1 2>;
346 trip = <&cpu3_alert2>;
347 cooling-device = <&fan0 2 3>;
350 trip = <&cpu3_alert3>;
351 cooling-device = <&cpu0 0 2>;
354 trip = <&cpu3_alert3>;
355 cooling-device = <&cpu4 0 2>;
358 trip = <&cpu3_alert4>;
359 cooling-device = <&cpu0 3 7>;
362 trip = <&cpu3_alert4>;
363 cooling-device = <&cpu4 3 12>;
371 vdd-supply = <&ldo4_reg>;
376 devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>,
377 <&nocp_mem1_0>, <&nocp_mem1_1>;
378 vdd-supply = <&buck3_reg>;
379 exynos,saturation-ratio = <100>;
384 devfreq = <&bus_wcore>;
389 devfreq = <&bus_wcore>;
394 devfreq = <&bus_wcore>;
399 devfreq = <&bus_wcore>;
404 devfreq = <&bus_wcore>;
409 devfreq = <&bus_wcore>;
414 devfreq = <&bus_wcore>;
419 devfreq = <&bus_wcore>;
424 devfreq = <&bus_wcore>;
429 devfreq = <&bus_wcore>;
434 devfreq = <&bus_wcore>;
439 devfreq = <&bus_wcore>;
444 devfreq = <&bus_wcore>;
449 devfreq = <&bus_wcore>;
454 devfreq = <&bus_wcore>;
459 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
460 <&clock_audss EXYNOS_MOUT_I2S>,
461 <&clock_audss EXYNOS_DOUT_AUD_BUS>;
462 assigned-clock-parents = <&clock CLK_FIN_PLL>,
463 <&clock_audss EXYNOS_MOUT_AUDSS>;
464 assigned-clock-rates = <0>,
470 cpu-supply = <&buck6_reg>;
474 cpu-supply = <&buck2_reg>;
480 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
481 pinctrl-names = "default";
482 pinctrl-0 = <&hdmi_hpd_irq>;
484 vdd_osc-supply = <&ldo7_reg>;
485 vdd_pll-supply = <&ldo6_reg>;
486 vdd-supply = <&ldo6_reg>;
498 compatible = "samsung,s2mps11-pmic";
500 samsung,s2mps11-acokb-ground;
502 interrupt-parent = <&gpx0>;
503 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
504 pinctrl-names = "default";
505 pinctrl-0 = <&s2mps11_irq>;
507 s2mps11_osc: clocks {
509 clock-output-names = "s2mps11_ap",
510 "s2mps11_cp", "s2mps11_bt";
515 regulator-name = "vdd_ldo1";
516 regulator-min-microvolt = <1000000>;
517 regulator-max-microvolt = <1000000>;
522 regulator-name = "vddq_mmc0";
523 regulator-min-microvolt = <1800000>;
524 regulator-max-microvolt = <1800000>;
528 regulator-name = "vdd_adc";
529 regulator-min-microvolt = <1800000>;
530 regulator-max-microvolt = <1800000>;
534 regulator-name = "vdd_ldo5";
535 regulator-min-microvolt = <1800000>;
536 regulator-max-microvolt = <1800000>;
541 regulator-name = "vdd_ldo6";
542 regulator-min-microvolt = <1000000>;
543 regulator-max-microvolt = <1000000>;
548 regulator-name = "vdd_ldo7";
549 regulator-min-microvolt = <1800000>;
550 regulator-max-microvolt = <1800000>;
555 regulator-name = "vdd_ldo8";
556 regulator-min-microvolt = <1800000>;
557 regulator-max-microvolt = <1800000>;
562 regulator-name = "vdd_ldo9";
563 regulator-min-microvolt = <3000000>;
564 regulator-max-microvolt = <3000000>;
569 regulator-name = "vdd_ldo10";
570 regulator-min-microvolt = <1800000>;
571 regulator-max-microvolt = <1800000>;
576 regulator-name = "vdd_ldo11";
577 regulator-min-microvolt = <1000000>;
578 regulator-max-microvolt = <1000000>;
583 regulator-name = "vdd_ldo12";
584 regulator-min-microvolt = <1800000>;
585 regulator-max-microvolt = <1800000>;
590 regulator-name = "vddq_mmc2";
591 regulator-min-microvolt = <2800000>;
592 regulator-max-microvolt = <2800000>;
596 regulator-name = "vdd_ldo15";
597 regulator-min-microvolt = <3100000>;
598 regulator-max-microvolt = <3100000>;
603 regulator-name = "vdd_ldo16";
604 regulator-min-microvolt = <2200000>;
605 regulator-max-microvolt = <2200000>;
610 regulator-name = "tsp_avdd";
611 regulator-min-microvolt = <3300000>;
612 regulator-max-microvolt = <3300000>;
617 regulator-name = "vdd_emmc_1V8";
618 regulator-min-microvolt = <1800000>;
619 regulator-max-microvolt = <1800000>;
623 regulator-name = "vdd_sd";
624 regulator-min-microvolt = <2800000>;
625 regulator-max-microvolt = <2800000>;
629 regulator-name = "tsp_io";
630 regulator-min-microvolt = <2800000>;
631 regulator-max-microvolt = <2800000>;
636 regulator-name = "vdd_ldo26";
637 regulator-min-microvolt = <3000000>;
638 regulator-max-microvolt = <3000000>;
643 regulator-name = "vdd_mif";
644 regulator-min-microvolt = <800000>;
645 regulator-max-microvolt = <1300000>;
651 regulator-name = "vdd_arm";
652 regulator-min-microvolt = <800000>;
653 regulator-max-microvolt = <1500000>;
659 regulator-name = "vdd_int";
660 regulator-min-microvolt = <800000>;
661 regulator-max-microvolt = <1400000>;
667 regulator-name = "vdd_g3d";
668 regulator-min-microvolt = <800000>;
669 regulator-max-microvolt = <1400000>;
675 regulator-name = "vdd_mem";
676 regulator-min-microvolt = <800000>;
677 regulator-max-microvolt = <1400000>;
683 regulator-name = "vdd_kfc";
684 regulator-min-microvolt = <800000>;
685 regulator-max-microvolt = <1500000>;
691 regulator-name = "vdd_1.0v_ldo";
692 regulator-min-microvolt = <800000>;
693 regulator-max-microvolt = <1500000>;
699 regulator-name = "vdd_1.8v_ldo";
700 regulator-min-microvolt = <800000>;
701 regulator-max-microvolt = <1500000>;
707 regulator-name = "vdd_2.8v_ldo";
708 regulator-min-microvolt = <3000000>;
709 regulator-max-microvolt = <3750000>;
715 regulator-name = "vdd_vmem";
716 regulator-min-microvolt = <2850000>;
717 regulator-max-microvolt = <2850000>;
726 samsung,i2c-sda-delay = <100>;
727 samsung,i2c-max-bus-freq = <66000>;
728 /* used by HDMI DDC */
738 mmc-pwrseq = <&emmc_pwrseq>;
739 card-detect-delay = <200>;
740 samsung,dw-mshc-ciu-div = <3>;
741 samsung,dw-mshc-sdr-timing = <0 4>;
742 samsung,dw-mshc-ddr-timing = <0 2>;
743 samsung,dw-mshc-hs400-timing = <0 2>;
744 samsung,read-strobe-delay = <90>;
745 pinctrl-names = "default";
746 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd &sd0_rclk>;
751 vmmc-supply = <&ldo18_reg>;
752 vqmmc-supply = <&ldo3_reg>;
757 card-detect-delay = <200>;
758 samsung,dw-mshc-ciu-div = <3>;
759 samsung,dw-mshc-sdr-timing = <0 4>;
760 samsung,dw-mshc-ddr-timing = <0 2>;
761 pinctrl-names = "default";
762 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
765 vmmc-supply = <&ldo19_reg>;
766 vqmmc-supply = <&ldo13_reg>;
786 power_key: power-key {
787 samsung,pins = "gpx0-3";
788 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
789 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
790 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
793 hdmi_hpd_irq: hdmi-hpd-irq {
794 samsung,pins = "gpx3-7";
795 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
796 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
797 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
800 s2mps11_irq: s2mps11-irq {
801 samsung,pins = "gpx0-4";
802 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
803 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
804 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
809 emmc_nrst_pin: emmc-nrst {
810 samsung,pins = "gpd1-0";
811 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
812 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
813 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
818 vtmu-supply = <&ldo7_reg>;
822 vtmu-supply = <&ldo7_reg>;
826 vtmu-supply = <&ldo7_reg>;
830 vtmu-supply = <&ldo7_reg>;
834 vtmu-supply = <&ldo7_reg>;
839 clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>;
840 clock-names = "rtc", "rtc_src";
847 /* usbdrd_dwc3_1 mode customized in each board */
850 vdd33-supply = <&ldo9_reg>;
851 vdd10-supply = <&ldo11_reg>;
855 vdd33-supply = <&ldo9_reg>;
856 vdd10-supply = <&ldo11_reg>;