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>;
25 gpio_keys: gpio-keys {
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>;
72 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
73 vdd-supply = <&buck1_reg>;
88 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
89 vdd-supply = <&buck3_reg>;
94 devfreq = <&bus_leftbus>;
99 devfreq = <&bus_leftbus>;
104 devfreq = <&bus_leftbus>;
109 devfreq = <&bus_leftbus>;
114 devfreq = <&bus_leftbus>;
120 pinctrl-names = "default";
125 clocks = <&clock CLK_XUSBXTI>;
126 assigned-clocks = <&clock CLK_FOUT_EPLL>;
127 assigned-clock-rates = <45158401>;
131 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
132 <&clock_audss EXYNOS_MOUT_I2S>,
133 <&clock_audss EXYNOS_DOUT_SRP>,
134 <&clock_audss EXYNOS_DOUT_AUD_BUS>,
135 <&clock_audss EXYNOS_DOUT_I2S>;
137 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
138 <&clock_audss EXYNOS_MOUT_AUDSS>;
140 assigned-clock-rates = <0>, <0>,
147 cpu0-supply = <&buck2_reg>;
155 /delete-property/opp-suspend;
162 /* Corresponds to 800MHz at freq_table */
163 cooling-device = <&cpu0 7 7>, <&cpu1 7 7>,
164 <&cpu2 7 7>, <&cpu3 7 7>;
167 /* Corresponds to 200MHz at freq_table */
168 cooling-device = <&cpu0 13 13>, <&cpu1 13 13>,
169 <&cpu2 13 13>, <&cpu3 13 13>;
175 gpio_power_key: power-key {
176 samsung,pins = "gpx1-3";
177 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
180 max77686_irq: max77686-irq {
181 samsung,pins = "gpx3-2";
182 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
183 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
184 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
188 samsung,pins = "gpx3-7";
189 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
192 emmc_rstn: emmc-rstn {
193 samsung,pins = "gpk1-2";
194 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
208 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
209 <&clock CLK_SCLK_FIMC0>;
210 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
211 assigned-clock-rates = <0>, <176000000>;
216 assigned-clocks = <&clock CLK_MOUT_FIMC1>,
217 <&clock CLK_SCLK_FIMC1>;
218 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
219 assigned-clock-rates = <0>, <176000000>;
224 assigned-clocks = <&clock CLK_MOUT_FIMC2>,
225 <&clock CLK_SCLK_FIMC2>;
226 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
227 assigned-clock-rates = <0>, <176000000>;
232 assigned-clocks = <&clock CLK_MOUT_FIMC3>,
233 <&clock CLK_SCLK_FIMC3>;
234 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
235 assigned-clock-rates = <0>, <176000000>;
239 mali-supply = <&buck4_reg>;
244 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&hdmi_hpd>;
247 vdd-supply = <&ldo8_reg>;
248 vdd_osc-supply = <&ldo10_reg>;
249 vdd_pll-supply = <&ldo8_reg>;
260 vusb_d-supply = <&ldo15_reg>;
261 vusb_a-supply = <&ldo12_reg>;
265 samsung,i2c-sda-delay = <100>;
266 samsung,i2c-max-bus-freq = <400000>;
270 compatible = "smsc,usb3503";
273 intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
274 connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
275 reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
280 compatible = "maxim,max77686";
281 interrupt-parent = <&gpx3>;
282 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&max77686_irq>;
291 regulator-name = "VDD_ALIVE_1.0V";
292 regulator-min-microvolt = <1000000>;
293 regulator-max-microvolt = <1000000>;
298 regulator-name = "VDDQ_M1_2_1.8V";
299 regulator-min-microvolt = <1800000>;
300 regulator-max-microvolt = <1800000>;
305 regulator-name = "VDDQ_EXT_1.8V";
306 regulator-min-microvolt = <1800000>;
307 regulator-max-microvolt = <1800000>;
312 regulator-name = "VDDQ_MMC2_2.8V";
313 regulator-min-microvolt = <2800000>;
314 regulator-max-microvolt = <2800000>;
319 regulator-name = "VDDQ_MMC1_3_1.8V";
320 regulator-min-microvolt = <1800000>;
321 regulator-max-microvolt = <1800000>;
327 regulator-name = "VDD10_MPLL_1.0V";
328 regulator-min-microvolt = <1000000>;
329 regulator-max-microvolt = <1000000>;
334 regulator-name = "VDD10_XPLL_1.0V";
335 regulator-min-microvolt = <1000000>;
336 regulator-max-microvolt = <1000000>;
341 regulator-name = "VDD10_HDMI_1.0V";
342 regulator-min-microvolt = <1000000>;
343 regulator-max-microvolt = <1000000>;
347 regulator-name = "VDDQ_MIPIHSI_1.8V";
348 regulator-min-microvolt = <1800000>;
349 regulator-max-microvolt = <1800000>;
353 regulator-name = "VDD18_ABB1_1.8V";
354 regulator-min-microvolt = <1800000>;
355 regulator-max-microvolt = <1800000>;
360 regulator-name = "VDD33_USB_3.3V";
361 regulator-min-microvolt = <3300000>;
362 regulator-max-microvolt = <3300000>;
368 regulator-name = "VDDQ_C2C_W_1.8V";
369 regulator-min-microvolt = <1800000>;
370 regulator-max-microvolt = <1800000>;
376 regulator-name = "VDD18_ABB0_2_1.8V";
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <1800000>;
384 regulator-name = "VDD10_HSIC_1.0V";
385 regulator-min-microvolt = <1000000>;
386 regulator-max-microvolt = <1000000>;
392 regulator-name = "VDD18_HSIC_1.8V";
393 regulator-min-microvolt = <1800000>;
394 regulator-max-microvolt = <1800000>;
400 regulator-name = "LDO20_1.8V";
401 regulator-min-microvolt = <1800000>;
402 regulator-max-microvolt = <1800000>;
406 regulator-name = "TFLASH_2.8V";
407 regulator-min-microvolt = <2800000>;
408 regulator-max-microvolt = <2800000>;
414 * Only U3 uses it, so let it define the
417 regulator-name = "LDO22";
422 regulator-name = "VDDQ_LCD_1.8V";
423 regulator-min-microvolt = <1800000>;
424 regulator-max-microvolt = <1800000>;
430 regulator-name = "VDD_MIF";
431 regulator-min-microvolt = <900000>;
432 regulator-max-microvolt = <1100000>;
438 regulator-name = "VDD_ARM";
439 regulator-min-microvolt = <900000>;
440 regulator-max-microvolt = <1350000>;
446 regulator-name = "VDD_INT";
447 regulator-min-microvolt = <900000>;
448 regulator-max-microvolt = <1050000>;
454 regulator-name = "VDD_G3D";
455 regulator-min-microvolt = <900000>;
456 regulator-max-microvolt = <1100000>;
457 regulator-microvolt-offset = <50000>;
461 regulator-name = "VDDQ_CKEM1_2_1.2V";
462 regulator-min-microvolt = <1200000>;
463 regulator-max-microvolt = <1200000>;
469 regulator-name = "BUCK6_1.35V";
470 regulator-min-microvolt = <1350000>;
471 regulator-max-microvolt = <1350000>;
477 regulator-name = "BUCK7_2.0V";
478 regulator-min-microvolt = <2000000>;
479 regulator-max-microvolt = <2000000>;
485 * Constraints set by specific board: X,
488 regulator-name = "BUCK8_2.8V";
496 max98090: audio-codec@10 {
497 compatible = "maxim,max98090";
499 interrupt-parent = <&gpx0>;
500 interrupts = <0 IRQ_TYPE_NONE>;
501 clocks = <&i2s0 CLK_I2S_CDCLK>;
502 clock-names = "mclk";
503 #sound-dai-cells = <0>;
516 pinctrl-0 = <&i2s0_bus>;
517 pinctrl-names = "default";
519 assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
520 assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>;
528 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
529 pinctrl-names = "default";
530 vmmc-supply = <&ldo20_reg>;
531 mmc-pwrseq = <&emmc_pwrseq>;
535 card-detect-delay = <200>;
536 samsung,dw-mshc-ciu-div = <3>;
537 samsung,dw-mshc-sdr-timing = <2 3>;
538 samsung,dw-mshc-ddr-timing = <1 2>;
545 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
546 clock-names = "rtc", "rtc_src";
551 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
552 pinctrl-names = "default";
553 vmmc-supply = <&ldo21_reg>;
554 vqmmc-supply = <&ldo4_reg>;
555 cd-gpios = <&gpk2 2 GPIO_ACTIVE_LOW>;
568 vtmu-supply = <&ldo10_reg>;