1 // SPDX-License-Identifier: GPL-2.0
3 * Common definition for Hardkernel's Exynos4412 based ODROID-X/X2/U2/U3 boards
7 #include <dt-bindings/sound/samsung-i2s.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/clock/maxim,max77686.h>
10 #include "exynos4412.dtsi"
11 #include "exynos4412-ppmu-common.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include "exynos-mfc-reserved-memory.dtsi"
17 stdout-path = &serial_1;
21 compatible = "samsung,secure-firmware";
22 reg = <0x0204F000 0x1000>;
26 compatible = "gpio-keys";
27 pinctrl-names = "default";
28 pinctrl-0 = <&gpio_power_key>;
31 gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_POWER>;
34 debounce-interval = <10>;
40 compatible = "hardkernel,odroid-xu4-audio";
43 sound-dai = <&i2s0 0>;
47 sound-dai = <&hdmi>, <&max98090>;
52 pinctrl-0 = <&sd1_cd>;
53 pinctrl-names = "default";
54 compatible = "mmc-pwrseq-emmc";
55 reset-gpios = <&gpk1 2 GPIO_ACTIVE_LOW>;
60 compatible = "samsung,clock-xxti";
61 clock-frequency = <0>;
65 compatible = "samsung,clock-xusbxti";
66 clock-frequency = <24000000>;
71 cpu_thermal: cpu-thermal {
74 /* Corresponds to 800MHz at freq_table */
75 cooling-device = <&cpu0 7 7>;
78 /* Corresponds to 200MHz at freq_table */
79 cooling-device = <&cpu0 13 13>;
87 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
88 vdd-supply = <&buck1_reg>;
103 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
104 vdd-supply = <&buck3_reg>;
109 devfreq = <&bus_leftbus>;
114 devfreq = <&bus_leftbus>;
119 devfreq = <&bus_leftbus>;
124 devfreq = <&bus_leftbus>;
129 devfreq = <&bus_leftbus>;
135 pinctrl-names = "default";
140 assigned-clocks = <&clock CLK_FOUT_EPLL>;
141 assigned-clock-rates = <45158401>;
145 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
146 <&clock_audss EXYNOS_MOUT_I2S>,
147 <&clock_audss EXYNOS_DOUT_SRP>,
148 <&clock_audss EXYNOS_DOUT_AUD_BUS>,
149 <&clock_audss EXYNOS_DOUT_I2S>;
151 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
152 <&clock_audss EXYNOS_MOUT_AUDSS>;
154 assigned-clock-rates = <0>, <0>,
161 cpu0-supply = <&buck2_reg>;
164 /* RSTN signal for eMMC */
166 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
167 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
171 gpio_power_key: power_key {
172 samsung,pins = "gpx1-3";
173 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
176 max77686_irq: max77686-irq {
177 samsung,pins = "gpx3-2";
178 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
179 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
180 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
184 samsung,pins = "gpx3-7";
185 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
199 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
200 <&clock CLK_SCLK_FIMC0>;
201 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
202 assigned-clock-rates = <0>, <176000000>;
207 assigned-clocks = <&clock CLK_MOUT_FIMC1>,
208 <&clock CLK_SCLK_FIMC1>;
209 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
210 assigned-clock-rates = <0>, <176000000>;
215 assigned-clocks = <&clock CLK_MOUT_FIMC2>,
216 <&clock CLK_SCLK_FIMC2>;
217 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
218 assigned-clock-rates = <0>, <176000000>;
223 assigned-clocks = <&clock CLK_MOUT_FIMC3>,
224 <&clock CLK_SCLK_FIMC3>;
225 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
226 assigned-clock-rates = <0>, <176000000>;
230 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&hdmi_hpd>;
233 vdd-supply = <&ldo8_reg>;
234 vdd_osc-supply = <&ldo10_reg>;
235 vdd_pll-supply = <&ldo8_reg>;
245 dr_mode = "peripheral";
247 vusb_d-supply = <&ldo15_reg>;
248 vusb_a-supply = <&ldo12_reg>;
252 samsung,i2c-sda-delay = <100>;
253 samsung,i2c-max-bus-freq = <400000>;
257 compatible = "smsc,usb3503";
260 intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
261 connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
262 reset-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
267 compatible = "maxim,max77686";
268 interrupt-parent = <&gpx3>;
269 interrupts = <2 IRQ_TYPE_NONE>;
270 pinctrl-names = "default";
271 pinctrl-0 = <&max77686_irq>;
277 regulator-name = "VDD_ALIVE_1.0V";
278 regulator-min-microvolt = <1000000>;
279 regulator-max-microvolt = <1000000>;
284 regulator-name = "VDDQ_M1_2_1.8V";
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
291 regulator-name = "VDDQ_EXT_1.8V";
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
298 regulator-name = "VDDQ_MMC2_2.8V";
299 regulator-min-microvolt = <2800000>;
300 regulator-max-microvolt = <2800000>;
305 regulator-name = "VDDQ_MMC1_3_1.8V";
306 regulator-min-microvolt = <1800000>;
307 regulator-max-microvolt = <1800000>;
313 regulator-name = "VDD10_MPLL_1.0V";
314 regulator-min-microvolt = <1000000>;
315 regulator-max-microvolt = <1000000>;
320 regulator-name = "VDD10_XPLL_1.0V";
321 regulator-min-microvolt = <1000000>;
322 regulator-max-microvolt = <1000000>;
327 regulator-name = "VDD10_HDMI_1.0V";
328 regulator-min-microvolt = <1000000>;
329 regulator-max-microvolt = <1000000>;
333 regulator-name = "VDDQ_MIPIHSI_1.8V";
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1800000>;
339 regulator-name = "VDD18_ABB1_1.8V";
340 regulator-min-microvolt = <1800000>;
341 regulator-max-microvolt = <1800000>;
346 regulator-name = "VDD33_USB_3.3V";
347 regulator-min-microvolt = <3300000>;
348 regulator-max-microvolt = <3300000>;
354 regulator-name = "VDDQ_C2C_W_1.8V";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <1800000>;
362 regulator-name = "VDD18_ABB0_2_1.8V";
363 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <1800000>;
370 regulator-name = "VDD10_HSIC_1.0V";
371 regulator-min-microvolt = <1000000>;
372 regulator-max-microvolt = <1000000>;
378 regulator-name = "VDD18_HSIC_1.8V";
379 regulator-min-microvolt = <1800000>;
380 regulator-max-microvolt = <1800000>;
386 regulator-name = "LDO20_1.8V";
387 regulator-min-microvolt = <1800000>;
388 regulator-max-microvolt = <1800000>;
393 regulator-name = "TFLASH_2.8V";
394 regulator-min-microvolt = <2800000>;
395 regulator-max-microvolt = <2800000>;
401 * Only U3 uses it, so let it define the
404 regulator-name = "LDO22";
409 regulator-name = "VDDQ_LCD_1.8V";
410 regulator-min-microvolt = <1800000>;
411 regulator-max-microvolt = <1800000>;
417 regulator-name = "vdd_mif";
418 regulator-min-microvolt = <900000>;
419 regulator-max-microvolt = <1100000>;
425 regulator-name = "vdd_arm";
426 regulator-min-microvolt = <900000>;
427 regulator-max-microvolt = <1350000>;
433 regulator-name = "vdd_int";
434 regulator-min-microvolt = <900000>;
435 regulator-max-microvolt = <1050000>;
441 regulator-name = "vdd_g3d";
442 regulator-min-microvolt = <900000>;
443 regulator-max-microvolt = <1100000>;
444 regulator-microvolt-offset = <50000>;
448 regulator-name = "VDDQ_CKEM1_2_1.2V";
449 regulator-min-microvolt = <1200000>;
450 regulator-max-microvolt = <1200000>;
456 regulator-name = "BUCK6_1.35V";
457 regulator-min-microvolt = <1350000>;
458 regulator-max-microvolt = <1350000>;
464 regulator-name = "BUCK7_2.0V";
465 regulator-min-microvolt = <2000000>;
466 regulator-max-microvolt = <2000000>;
472 * Constraints set by specific board: X,
475 regulator-name = "BUCK8_2.8V";
483 max98090: max98090@10 {
484 compatible = "maxim,max98090";
486 interrupt-parent = <&gpx0>;
487 interrupts = <0 IRQ_TYPE_NONE>;
488 clocks = <&i2s0 CLK_I2S_CDCLK>;
489 clock-names = "mclk";
490 #sound-dai-cells = <0>;
503 pinctrl-0 = <&i2s0_bus>;
504 pinctrl-names = "default";
506 assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
507 assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>;
515 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
516 pinctrl-names = "default";
517 vmmc-supply = <&ldo20_reg>;
518 mmc-pwrseq = <&emmc_pwrseq>;
522 card-detect-delay = <200>;
523 samsung,dw-mshc-ciu-div = <3>;
524 samsung,dw-mshc-sdr-timing = <2 3>;
525 samsung,dw-mshc-ddr-timing = <1 2>;
532 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
533 clock-names = "rtc", "rtc_src";
538 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
539 pinctrl-names = "default";
540 vmmc-supply = <&ldo21_reg>;
541 vqmmc-supply = <&ldo4_reg>;
542 cd-gpios = <&gpk2 2 GPIO_ACTIVE_HIGH>;
556 vtmu-supply = <&ldo10_reg>;