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 = <&emmc_rstn>;
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>, <&cpu1 7 7>,
76 <&cpu2 7 7>, <&cpu3 7 7>;
79 /* Corresponds to 200MHz at freq_table */
80 cooling-device = <&cpu0 13 13>,
91 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
92 vdd-supply = <&buck1_reg>;
102 devfreq = <&bus_dmc>;
107 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
108 vdd-supply = <&buck3_reg>;
113 devfreq = <&bus_leftbus>;
118 devfreq = <&bus_leftbus>;
123 devfreq = <&bus_leftbus>;
128 devfreq = <&bus_leftbus>;
133 devfreq = <&bus_leftbus>;
139 pinctrl-names = "default";
144 assigned-clocks = <&clock CLK_FOUT_EPLL>;
145 assigned-clock-rates = <45158401>;
149 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
150 <&clock_audss EXYNOS_MOUT_I2S>,
151 <&clock_audss EXYNOS_DOUT_SRP>,
152 <&clock_audss EXYNOS_DOUT_AUD_BUS>,
153 <&clock_audss EXYNOS_DOUT_I2S>;
155 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
156 <&clock_audss EXYNOS_MOUT_AUDSS>;
158 assigned-clock-rates = <0>, <0>,
165 cpu0-supply = <&buck2_reg>;
169 gpio_power_key: power_key {
170 samsung,pins = "gpx1-3";
171 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
174 max77686_irq: max77686-irq {
175 samsung,pins = "gpx3-2";
176 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
177 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
178 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
182 samsung,pins = "gpx3-7";
183 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
186 emmc_rstn: emmc-rstn {
187 samsung,pins = "gpk1-2";
188 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
202 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
203 <&clock CLK_SCLK_FIMC0>;
204 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
205 assigned-clock-rates = <0>, <176000000>;
210 assigned-clocks = <&clock CLK_MOUT_FIMC1>,
211 <&clock CLK_SCLK_FIMC1>;
212 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
213 assigned-clock-rates = <0>, <176000000>;
218 assigned-clocks = <&clock CLK_MOUT_FIMC2>,
219 <&clock CLK_SCLK_FIMC2>;
220 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
221 assigned-clock-rates = <0>, <176000000>;
226 assigned-clocks = <&clock CLK_MOUT_FIMC3>,
227 <&clock CLK_SCLK_FIMC3>;
228 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
229 assigned-clock-rates = <0>, <176000000>;
233 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&hdmi_hpd>;
236 vdd-supply = <&ldo8_reg>;
237 vdd_osc-supply = <&ldo10_reg>;
238 vdd_pll-supply = <&ldo8_reg>;
248 dr_mode = "peripheral";
250 vusb_d-supply = <&ldo15_reg>;
251 vusb_a-supply = <&ldo12_reg>;
255 samsung,i2c-sda-delay = <100>;
256 samsung,i2c-max-bus-freq = <400000>;
260 compatible = "smsc,usb3503";
263 intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
264 connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
265 reset-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
270 compatible = "maxim,max77686";
271 interrupt-parent = <&gpx3>;
272 interrupts = <2 IRQ_TYPE_NONE>;
273 pinctrl-names = "default";
274 pinctrl-0 = <&max77686_irq>;
280 regulator-name = "VDD_ALIVE_1.0V";
281 regulator-min-microvolt = <1000000>;
282 regulator-max-microvolt = <1000000>;
287 regulator-name = "VDDQ_M1_2_1.8V";
288 regulator-min-microvolt = <1800000>;
289 regulator-max-microvolt = <1800000>;
294 regulator-name = "VDDQ_EXT_1.8V";
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <1800000>;
301 regulator-name = "VDDQ_MMC2_2.8V";
302 regulator-min-microvolt = <2800000>;
303 regulator-max-microvolt = <2800000>;
308 regulator-name = "VDDQ_MMC1_3_1.8V";
309 regulator-min-microvolt = <1800000>;
310 regulator-max-microvolt = <1800000>;
316 regulator-name = "VDD10_MPLL_1.0V";
317 regulator-min-microvolt = <1000000>;
318 regulator-max-microvolt = <1000000>;
323 regulator-name = "VDD10_XPLL_1.0V";
324 regulator-min-microvolt = <1000000>;
325 regulator-max-microvolt = <1000000>;
330 regulator-name = "VDD10_HDMI_1.0V";
331 regulator-min-microvolt = <1000000>;
332 regulator-max-microvolt = <1000000>;
336 regulator-name = "VDDQ_MIPIHSI_1.8V";
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
342 regulator-name = "VDD18_ABB1_1.8V";
343 regulator-min-microvolt = <1800000>;
344 regulator-max-microvolt = <1800000>;
349 regulator-name = "VDD33_USB_3.3V";
350 regulator-min-microvolt = <3300000>;
351 regulator-max-microvolt = <3300000>;
357 regulator-name = "VDDQ_C2C_W_1.8V";
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
365 regulator-name = "VDD18_ABB0_2_1.8V";
366 regulator-min-microvolt = <1800000>;
367 regulator-max-microvolt = <1800000>;
373 regulator-name = "VDD10_HSIC_1.0V";
374 regulator-min-microvolt = <1000000>;
375 regulator-max-microvolt = <1000000>;
381 regulator-name = "VDD18_HSIC_1.8V";
382 regulator-min-microvolt = <1800000>;
383 regulator-max-microvolt = <1800000>;
389 regulator-name = "LDO20_1.8V";
390 regulator-min-microvolt = <1800000>;
391 regulator-max-microvolt = <1800000>;
395 regulator-name = "TFLASH_2.8V";
396 regulator-min-microvolt = <2800000>;
397 regulator-max-microvolt = <2800000>;
403 * Only U3 uses it, so let it define the
406 regulator-name = "LDO22";
411 regulator-name = "VDDQ_LCD_1.8V";
412 regulator-min-microvolt = <1800000>;
413 regulator-max-microvolt = <1800000>;
419 regulator-name = "vdd_mif";
420 regulator-min-microvolt = <900000>;
421 regulator-max-microvolt = <1100000>;
427 regulator-name = "vdd_arm";
428 regulator-min-microvolt = <900000>;
429 regulator-max-microvolt = <1350000>;
435 regulator-name = "vdd_int";
436 regulator-min-microvolt = <900000>;
437 regulator-max-microvolt = <1050000>;
443 regulator-name = "vdd_g3d";
444 regulator-min-microvolt = <900000>;
445 regulator-max-microvolt = <1100000>;
446 regulator-microvolt-offset = <50000>;
450 regulator-name = "VDDQ_CKEM1_2_1.2V";
451 regulator-min-microvolt = <1200000>;
452 regulator-max-microvolt = <1200000>;
458 regulator-name = "BUCK6_1.35V";
459 regulator-min-microvolt = <1350000>;
460 regulator-max-microvolt = <1350000>;
466 regulator-name = "BUCK7_2.0V";
467 regulator-min-microvolt = <2000000>;
468 regulator-max-microvolt = <2000000>;
474 * Constraints set by specific board: X,
477 regulator-name = "BUCK8_2.8V";
485 max98090: max98090@10 {
486 compatible = "maxim,max98090";
488 interrupt-parent = <&gpx0>;
489 interrupts = <0 IRQ_TYPE_NONE>;
490 clocks = <&i2s0 CLK_I2S_CDCLK>;
491 clock-names = "mclk";
492 #sound-dai-cells = <0>;
505 pinctrl-0 = <&i2s0_bus>;
506 pinctrl-names = "default";
508 assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
509 assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>;
517 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
518 pinctrl-names = "default";
519 vmmc-supply = <&ldo20_reg>;
520 mmc-pwrseq = <&emmc_pwrseq>;
524 card-detect-delay = <200>;
525 samsung,dw-mshc-ciu-div = <3>;
526 samsung,dw-mshc-sdr-timing = <2 3>;
527 samsung,dw-mshc-ddr-timing = <1 2>;
534 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
535 clock-names = "rtc", "rtc_src";
540 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
541 pinctrl-names = "default";
542 vmmc-supply = <&ldo21_reg>;
543 vqmmc-supply = <&ldo4_reg>;
544 cd-gpios = <&gpk2 2 GPIO_ACTIVE_LOW>;
557 vtmu-supply = <&ldo10_reg>;