0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Common definition for Hardkernel's Exynos4412 based ODROID-X/X2/U2/U3 boards
0004 * device tree source
0005 */
0006
0007 #include <dt-bindings/sound/samsung-i2s.h>
0008 #include <dt-bindings/input/input.h>
0009 #include <dt-bindings/clock/maxim,max77686.h>
0010 #include "exynos4412.dtsi"
0011 #include "exynos4412-ppmu-common.dtsi"
0012 #include <dt-bindings/gpio/gpio.h>
0013 #include "exynos-mfc-reserved-memory.dtsi"
0014
0015 / {
0016 chosen {
0017 stdout-path = &serial_1;
0018 };
0019
0020 firmware@204f000 {
0021 compatible = "samsung,secure-firmware";
0022 reg = <0x0204F000 0x1000>;
0023 };
0024
0025 gpio_keys: gpio-keys {
0026 compatible = "gpio-keys";
0027 pinctrl-names = "default";
0028 pinctrl-0 = <&gpio_power_key>;
0029
0030 power-key {
0031 gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
0032 linux,code = <KEY_POWER>;
0033 label = "power key";
0034 debounce-interval = <10>;
0035 wakeup-source;
0036 };
0037 };
0038
0039 sound: sound {
0040 compatible = "hardkernel,odroid-xu4-audio";
0041
0042 cpu {
0043 sound-dai = <&i2s0 0>;
0044 };
0045
0046 codec {
0047 sound-dai = <&hdmi>, <&max98090>;
0048 };
0049 };
0050
0051 emmc_pwrseq: pwrseq {
0052 pinctrl-0 = <&emmc_rstn>;
0053 pinctrl-names = "default";
0054 compatible = "mmc-pwrseq-emmc";
0055 reset-gpios = <&gpk1 2 GPIO_ACTIVE_LOW>;
0056 };
0057
0058 fixed-rate-clocks {
0059 xxti {
0060 compatible = "samsung,clock-xxti";
0061 clock-frequency = <0>;
0062 };
0063
0064 xusbxti {
0065 compatible = "samsung,clock-xusbxti";
0066 clock-frequency = <24000000>;
0067 };
0068 };
0069 };
0070
0071 &bus_dmc {
0072 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
0073 vdd-supply = <&buck1_reg>;
0074 status = "okay";
0075 };
0076
0077 &bus_acp {
0078 devfreq = <&bus_dmc>;
0079 status = "okay";
0080 };
0081
0082 &bus_c2c {
0083 devfreq = <&bus_dmc>;
0084 status = "okay";
0085 };
0086
0087 &bus_leftbus {
0088 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
0089 vdd-supply = <&buck3_reg>;
0090 status = "okay";
0091 };
0092
0093 &bus_rightbus {
0094 devfreq = <&bus_leftbus>;
0095 status = "okay";
0096 };
0097
0098 &bus_display {
0099 devfreq = <&bus_leftbus>;
0100 status = "okay";
0101 };
0102
0103 &bus_fsys {
0104 devfreq = <&bus_leftbus>;
0105 status = "okay";
0106 };
0107
0108 &bus_peri {
0109 devfreq = <&bus_leftbus>;
0110 status = "okay";
0111 };
0112
0113 &bus_mfc {
0114 devfreq = <&bus_leftbus>;
0115 status = "okay";
0116 };
0117
0118 &camera {
0119 status = "okay";
0120 pinctrl-names = "default";
0121 pinctrl-0 = <>;
0122 };
0123
0124 &clock {
0125 clocks = <&clock CLK_XUSBXTI>;
0126 assigned-clocks = <&clock CLK_FOUT_EPLL>;
0127 assigned-clock-rates = <45158401>;
0128 };
0129
0130 &clock_audss {
0131 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
0132 <&clock_audss EXYNOS_MOUT_I2S>,
0133 <&clock_audss EXYNOS_DOUT_SRP>,
0134 <&clock_audss EXYNOS_DOUT_AUD_BUS>,
0135 <&clock_audss EXYNOS_DOUT_I2S>;
0136
0137 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
0138 <&clock_audss EXYNOS_MOUT_AUDSS>;
0139
0140 assigned-clock-rates = <0>, <0>,
0141 <196608001>,
0142 <(196608001 / 2)>,
0143 <(196608001 / 8)>;
0144 };
0145
0146 &cpu0 {
0147 cpu0-supply = <&buck2_reg>;
0148 };
0149
0150 &cpu0_opp_table {
0151 opp-1000000000 {
0152 opp-suspend;
0153 };
0154 opp-800000000 {
0155 /delete-property/opp-suspend;
0156 };
0157 };
0158
0159 &cpu_thermal {
0160 cooling-maps {
0161 cooling_map0: map0 {
0162 /* Corresponds to 800MHz at freq_table */
0163 cooling-device = <&cpu0 7 7>, <&cpu1 7 7>,
0164 <&cpu2 7 7>, <&cpu3 7 7>;
0165 };
0166 cooling_map1: map1 {
0167 /* Corresponds to 200MHz at freq_table */
0168 cooling-device = <&cpu0 13 13>, <&cpu1 13 13>,
0169 <&cpu2 13 13>, <&cpu3 13 13>;
0170 };
0171 };
0172 };
0173
0174 &pinctrl_1 {
0175 gpio_power_key: power-key-pins {
0176 samsung,pins = "gpx1-3";
0177 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
0178 };
0179
0180 max77686_irq: max77686-irq-pins {
0181 samsung,pins = "gpx3-2";
0182 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
0183 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
0184 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
0185 };
0186
0187 hdmi_hpd: hdmi-hpd-pins {
0188 samsung,pins = "gpx3-7";
0189 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
0190 };
0191
0192 emmc_rstn: emmc-rstn-pins {
0193 samsung,pins = "gpk1-2";
0194 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
0195 };
0196 };
0197
0198 &ehci {
0199 status = "okay";
0200 };
0201
0202 &exynos_usbphy {
0203 status = "okay";
0204 };
0205
0206 &fimc_0 {
0207 status = "okay";
0208 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
0209 <&clock CLK_SCLK_FIMC0>;
0210 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
0211 assigned-clock-rates = <0>, <176000000>;
0212 };
0213
0214 &fimc_1 {
0215 status = "okay";
0216 assigned-clocks = <&clock CLK_MOUT_FIMC1>,
0217 <&clock CLK_SCLK_FIMC1>;
0218 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
0219 assigned-clock-rates = <0>, <176000000>;
0220 };
0221
0222 &fimc_2 {
0223 status = "okay";
0224 assigned-clocks = <&clock CLK_MOUT_FIMC2>,
0225 <&clock CLK_SCLK_FIMC2>;
0226 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
0227 assigned-clock-rates = <0>, <176000000>;
0228 };
0229
0230 &fimc_3 {
0231 status = "okay";
0232 assigned-clocks = <&clock CLK_MOUT_FIMC3>,
0233 <&clock CLK_SCLK_FIMC3>;
0234 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
0235 assigned-clock-rates = <0>, <176000000>;
0236 };
0237
0238 &gpu {
0239 mali-supply = <&buck4_reg>;
0240 status = "okay";
0241 };
0242
0243 &hdmi {
0244 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
0245 pinctrl-names = "default";
0246 pinctrl-0 = <&hdmi_hpd>;
0247 vdd-supply = <&ldo8_reg>;
0248 vdd_osc-supply = <&ldo10_reg>;
0249 vdd_pll-supply = <&ldo8_reg>;
0250 ddc = <&i2c_2>;
0251 status = "okay";
0252 };
0253
0254 &hdmicec {
0255 status = "okay";
0256 };
0257
0258 &hsotg {
0259 status = "okay";
0260 vusb_d-supply = <&ldo15_reg>;
0261 vusb_a-supply = <&ldo12_reg>;
0262 };
0263
0264 &i2c_0 {
0265 samsung,i2c-sda-delay = <100>;
0266 samsung,i2c-max-bus-freq = <400000>;
0267 status = "okay";
0268
0269 usb3503: usb-hub@8 {
0270 compatible = "smsc,usb3503";
0271 reg = <0x08>;
0272
0273 intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
0274 connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
0275 reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
0276 initial-mode = <1>;
0277 };
0278
0279 max77686: pmic@9 {
0280 compatible = "maxim,max77686";
0281 interrupt-parent = <&gpx3>;
0282 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0283 pinctrl-names = "default";
0284 pinctrl-0 = <&max77686_irq>;
0285 wakeup-source;
0286 reg = <0x09>;
0287 #clock-cells = <1>;
0288
0289 voltage-regulators {
0290 ldo1_reg: LDO1 {
0291 regulator-name = "VDD_ALIVE_1.0V";
0292 regulator-min-microvolt = <1000000>;
0293 regulator-max-microvolt = <1000000>;
0294 regulator-always-on;
0295 };
0296
0297 ldo2_reg: LDO2 {
0298 regulator-name = "VDDQ_M1_2_1.8V";
0299 regulator-min-microvolt = <1800000>;
0300 regulator-max-microvolt = <1800000>;
0301 regulator-always-on;
0302 };
0303
0304 ldo3_reg: LDO3 {
0305 regulator-name = "VDDQ_EXT_1.8V";
0306 regulator-min-microvolt = <1800000>;
0307 regulator-max-microvolt = <1800000>;
0308 regulator-always-on;
0309 };
0310
0311 ldo4_reg: LDO4 {
0312 regulator-name = "VDDQ_MMC2_2.8V";
0313 regulator-min-microvolt = <2800000>;
0314 regulator-max-microvolt = <2800000>;
0315 regulator-boot-on;
0316 };
0317
0318 ldo5_reg: LDO5 {
0319 regulator-name = "VDDQ_MMC1_3_1.8V";
0320 regulator-min-microvolt = <1800000>;
0321 regulator-max-microvolt = <1800000>;
0322 regulator-always-on;
0323 regulator-boot-on;
0324 };
0325
0326 ldo6_reg: LDO6 {
0327 regulator-name = "VDD10_MPLL_1.0V";
0328 regulator-min-microvolt = <1000000>;
0329 regulator-max-microvolt = <1000000>;
0330 regulator-always-on;
0331 };
0332
0333 ldo7_reg: LDO7 {
0334 regulator-name = "VDD10_XPLL_1.0V";
0335 regulator-min-microvolt = <1000000>;
0336 regulator-max-microvolt = <1000000>;
0337 regulator-always-on;
0338 };
0339
0340 ldo8_reg: LDO8 {
0341 regulator-name = "VDD10_HDMI_1.0V";
0342 regulator-min-microvolt = <1000000>;
0343 regulator-max-microvolt = <1000000>;
0344 };
0345
0346 ldo10_reg: LDO10 {
0347 regulator-name = "VDDQ_MIPIHSI_1.8V";
0348 regulator-min-microvolt = <1800000>;
0349 regulator-max-microvolt = <1800000>;
0350 };
0351
0352 ldo11_reg: LDO11 {
0353 regulator-name = "VDD18_ABB1_1.8V";
0354 regulator-min-microvolt = <1800000>;
0355 regulator-max-microvolt = <1800000>;
0356 regulator-always-on;
0357 };
0358
0359 ldo12_reg: LDO12 {
0360 regulator-name = "VDD33_USB_3.3V";
0361 regulator-min-microvolt = <3300000>;
0362 regulator-max-microvolt = <3300000>;
0363 regulator-always-on;
0364 regulator-boot-on;
0365 };
0366
0367 ldo13_reg: LDO13 {
0368 regulator-name = "VDDQ_C2C_W_1.8V";
0369 regulator-min-microvolt = <1800000>;
0370 regulator-max-microvolt = <1800000>;
0371 regulator-always-on;
0372 regulator-boot-on;
0373 };
0374
0375 ldo14_reg: LDO14 {
0376 regulator-name = "VDD18_ABB0_2_1.8V";
0377 regulator-min-microvolt = <1800000>;
0378 regulator-max-microvolt = <1800000>;
0379 regulator-always-on;
0380 regulator-boot-on;
0381 };
0382
0383 ldo15_reg: LDO15 {
0384 regulator-name = "VDD10_HSIC_1.0V";
0385 regulator-min-microvolt = <1000000>;
0386 regulator-max-microvolt = <1000000>;
0387 regulator-always-on;
0388 regulator-boot-on;
0389 };
0390
0391 ldo16_reg: LDO16 {
0392 regulator-name = "VDD18_HSIC_1.8V";
0393 regulator-min-microvolt = <1800000>;
0394 regulator-max-microvolt = <1800000>;
0395 regulator-always-on;
0396 regulator-boot-on;
0397 };
0398
0399 ldo20_reg: LDO20 {
0400 regulator-name = "LDO20_1.8V";
0401 regulator-min-microvolt = <1800000>;
0402 regulator-max-microvolt = <1800000>;
0403 };
0404
0405 ldo21_reg: LDO21 {
0406 regulator-name = "TFLASH_2.8V";
0407 regulator-min-microvolt = <2800000>;
0408 regulator-max-microvolt = <2800000>;
0409 regulator-boot-on;
0410 };
0411
0412 ldo22_reg: LDO22 {
0413 /*
0414 * Only U3 uses it, so let it define the
0415 * constraints
0416 */
0417 regulator-name = "LDO22";
0418 regulator-boot-on;
0419 };
0420
0421 ldo25_reg: LDO25 {
0422 regulator-name = "VDDQ_LCD_1.8V";
0423 regulator-min-microvolt = <1800000>;
0424 regulator-max-microvolt = <1800000>;
0425 regulator-always-on;
0426 regulator-boot-on;
0427 };
0428
0429 buck1_reg: BUCK1 {
0430 regulator-name = "VDD_MIF";
0431 regulator-min-microvolt = <900000>;
0432 regulator-max-microvolt = <1100000>;
0433 regulator-always-on;
0434 regulator-boot-on;
0435 };
0436
0437 buck2_reg: BUCK2 {
0438 regulator-name = "VDD_ARM";
0439 regulator-min-microvolt = <900000>;
0440 regulator-max-microvolt = <1350000>;
0441 regulator-always-on;
0442 regulator-boot-on;
0443 };
0444
0445 buck3_reg: BUCK3 {
0446 regulator-name = "VDD_INT";
0447 regulator-min-microvolt = <900000>;
0448 regulator-max-microvolt = <1050000>;
0449 regulator-always-on;
0450 regulator-boot-on;
0451 };
0452
0453 buck4_reg: BUCK4 {
0454 regulator-name = "VDD_G3D";
0455 regulator-min-microvolt = <900000>;
0456 regulator-max-microvolt = <1100000>;
0457 regulator-microvolt-offset = <50000>;
0458 };
0459
0460 buck5_reg: BUCK5 {
0461 regulator-name = "VDDQ_CKEM1_2_1.2V";
0462 regulator-min-microvolt = <1200000>;
0463 regulator-max-microvolt = <1200000>;
0464 regulator-always-on;
0465 regulator-boot-on;
0466 };
0467
0468 buck6_reg: BUCK6 {
0469 regulator-name = "BUCK6_1.35V";
0470 regulator-min-microvolt = <1350000>;
0471 regulator-max-microvolt = <1350000>;
0472 regulator-always-on;
0473 regulator-boot-on;
0474 };
0475
0476 buck7_reg: BUCK7 {
0477 regulator-name = "BUCK7_2.0V";
0478 regulator-min-microvolt = <2000000>;
0479 regulator-max-microvolt = <2000000>;
0480 regulator-always-on;
0481 };
0482
0483 buck8_reg: BUCK8 {
0484 /*
0485 * Constraints set by specific board: X,
0486 * X2 and U3.
0487 */
0488 regulator-name = "BUCK8_2.8V";
0489 };
0490 };
0491 };
0492 };
0493
0494 &i2c_1 {
0495 status = "okay";
0496 max98090: audio-codec@10 {
0497 compatible = "maxim,max98090";
0498 reg = <0x10>;
0499 interrupt-parent = <&gpx0>;
0500 interrupts = <0 IRQ_TYPE_NONE>;
0501 clocks = <&i2s0 CLK_I2S_CDCLK>;
0502 clock-names = "mclk";
0503 #sound-dai-cells = <0>;
0504 };
0505 };
0506
0507 &i2c_2 {
0508 status = "okay";
0509 };
0510
0511 &i2c_8 {
0512 status = "okay";
0513 };
0514
0515 &i2s0 {
0516 pinctrl-0 = <&i2s0_bus>;
0517 pinctrl-names = "default";
0518 status = "okay";
0519 assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
0520 assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>;
0521 };
0522
0523 &mixer {
0524 status = "okay";
0525 };
0526
0527 &mshc_0 {
0528 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
0529 pinctrl-names = "default";
0530 vmmc-supply = <&ldo20_reg>;
0531 mmc-pwrseq = <&emmc_pwrseq>;
0532 status = "okay";
0533
0534 broken-cd;
0535 card-detect-delay = <200>;
0536 samsung,dw-mshc-ciu-div = <3>;
0537 samsung,dw-mshc-sdr-timing = <2 3>;
0538 samsung,dw-mshc-ddr-timing = <1 2>;
0539 bus-width = <8>;
0540 cap-mmc-highspeed;
0541 };
0542
0543 &rtc {
0544 status = "okay";
0545 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
0546 clock-names = "rtc", "rtc_src";
0547 };
0548
0549 &sdhci_2 {
0550 bus-width = <4>;
0551 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
0552 pinctrl-names = "default";
0553 vmmc-supply = <&ldo21_reg>;
0554 vqmmc-supply = <&ldo4_reg>;
0555 cd-gpios = <&gpk2 2 GPIO_ACTIVE_LOW>;
0556 status = "okay";
0557 };
0558
0559 &serial_0 {
0560 status = "okay";
0561 };
0562
0563 &serial_1 {
0564 status = "okay";
0565 };
0566
0567 &tmu {
0568 vtmu-supply = <&ldo10_reg>;
0569 status = "okay";
0570 };