Commit | Line | Data |
---|---|---|
ec601ff3 MS |
1 | /* |
2 | * Common definition for Hardkernel's Exynos4412 based ODROID-X/X2/U2/U3 boards | |
3 | * device tree source | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify | |
6 | * it under the terms of the GNU General Public License version 2 as | |
7 | * published by the Free Software Foundation. | |
8 | */ | |
9 | ||
3635acef | 10 | #include <dt-bindings/sound/samsung-i2s.h> |
081a15e3 | 11 | #include <dt-bindings/input/input.h> |
ee2020a4 | 12 | #include <dt-bindings/clock/maxim,max77686.h> |
ec601ff3 | 13 | #include "exynos4412.dtsi" |
c10d3290 | 14 | #include <dt-bindings/gpio/gpio.h> |
ec601ff3 MS |
15 | |
16 | / { | |
62d38099 TF |
17 | chosen { |
18 | stdout-path = &serial_1; | |
19 | }; | |
20 | ||
ec601ff3 MS |
21 | firmware@0204F000 { |
22 | compatible = "samsung,secure-firmware"; | |
23 | reg = <0x0204F000 0x1000>; | |
24 | }; | |
25 | ||
081a15e3 MS |
26 | gpio_keys { |
27 | compatible = "gpio-keys"; | |
28 | pinctrl-names = "default"; | |
29 | pinctrl-0 = <&gpio_power_key>; | |
30 | ||
31 | power_key { | |
32 | interrupt-parent = <&gpx1>; | |
33 | interrupts = <3 0>; | |
c10d3290 | 34 | gpios = <&gpx1 3 GPIO_ACTIVE_LOW>; |
081a15e3 MS |
35 | linux,code = <KEY_POWER>; |
36 | label = "power key"; | |
37 | debounce-interval = <10>; | |
38 | gpio-key,wakeup; | |
39 | }; | |
40 | }; | |
41 | ||
5a852743 | 42 | sound: sound { |
16696337 | 43 | compatible = "simple-audio-card"; |
59760009 SN |
44 | assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>, |
45 | <&clock_audss EXYNOS_MOUT_I2S>, | |
46 | <&clock_audss EXYNOS_DOUT_SRP>, | |
47 | <&clock_audss EXYNOS_DOUT_AUD_BUS>; | |
48 | assigned-clock-parents = <&clock CLK_FOUT_EPLL>, | |
49 | <&clock_audss EXYNOS_MOUT_AUDSS>; | |
50 | assigned-clock-rates = <0>, | |
51 | <0>, | |
52 | <192000000>, | |
53 | <19200000>; | |
16696337 SN |
54 | |
55 | simple-audio-card,format = "i2s"; | |
56 | simple-audio-card,bitclock-master = <&link0_codec>; | |
57 | simple-audio-card,frame-master = <&link0_codec>; | |
58 | ||
59 | simple-audio-card,cpu { | |
60 | sound-dai = <&i2s0 0>; | |
61 | system-clock-frequency = <19200000>; | |
62 | }; | |
63 | ||
64 | link0_codec: simple-audio-card,codec { | |
65 | sound-dai = <&max98090>; | |
66 | clocks = <&i2s0 CLK_I2S_CDCLK>; | |
67 | }; | |
5a852743 SN |
68 | }; |
69 | ||
225da7e6 MS |
70 | emmc_pwrseq: pwrseq { |
71 | pinctrl-0 = <&sd1_cd>; | |
72 | pinctrl-names = "default"; | |
73 | compatible = "mmc-pwrseq-emmc"; | |
c10d3290 | 74 | reset-gpios = <&gpk1 2 GPIO_ACTIVE_LOW>; |
225da7e6 MS |
75 | }; |
76 | ||
ec601ff3 MS |
77 | camera { |
78 | status = "okay"; | |
79 | pinctrl-names = "default"; | |
80 | pinctrl-0 = <>; | |
49c1a163 | 81 | }; |
ec601ff3 | 82 | |
49c1a163 KK |
83 | fixed-rate-clocks { |
84 | xxti { | |
85 | compatible = "samsung,clock-xxti"; | |
86 | clock-frequency = <0>; | |
ec601ff3 MS |
87 | }; |
88 | ||
49c1a163 KK |
89 | xusbxti { |
90 | compatible = "samsung,clock-xusbxti"; | |
91 | clock-frequency = <24000000>; | |
ec601ff3 | 92 | }; |
49c1a163 | 93 | }; |
ec601ff3 | 94 | |
49c1a163 KK |
95 | thermal-zones { |
96 | cpu_thermal: cpu-thermal { | |
97 | cooling-maps { | |
98 | map0 { | |
99 | /* Corresponds to 800MHz at freq_table */ | |
100 | cooling-device = <&cpu0 7 7>; | |
101 | }; | |
102 | map1 { | |
103 | /* Corresponds to 200MHz at freq_table */ | |
104 | cooling-device = <&cpu0 13 13>; | |
105 | }; | |
106 | }; | |
ec601ff3 MS |
107 | }; |
108 | }; | |
49c1a163 | 109 | }; |
ec601ff3 | 110 | |
f4499741 BZ |
111 | &cpu0 { |
112 | cpu0-supply = <&buck2_reg>; | |
113 | }; | |
114 | ||
49c1a163 KK |
115 | /* RSTN signal for eMMC */ |
116 | &sd1_cd { | |
117 | samsung,pin-pud = <0>; | |
118 | samsung,pin-drv = <0>; | |
119 | }; | |
ec601ff3 | 120 | |
49c1a163 KK |
121 | &pinctrl_1 { |
122 | gpio_power_key: power_key { | |
123 | samsung,pins = "gpx1-3"; | |
124 | samsung,pin-pud = <0>; | |
ec601ff3 MS |
125 | }; |
126 | ||
49c1a163 KK |
127 | max77686_irq: max77686-irq { |
128 | samsung,pins = "gpx3-2"; | |
129 | samsung,pin-function = <0>; | |
130 | samsung,pin-pud = <0>; | |
131 | samsung,pin-drv = <0>; | |
ec601ff3 MS |
132 | }; |
133 | ||
49c1a163 KK |
134 | hdmi_hpd: hdmi-hpd { |
135 | samsung,pins = "gpx3-7"; | |
136 | samsung,pin-pud = <1>; | |
ec601ff3 | 137 | }; |
49c1a163 | 138 | }; |
ec601ff3 | 139 | |
49c1a163 KK |
140 | &ehci { |
141 | status = "okay"; | |
142 | }; | |
ec601ff3 | 143 | |
49c1a163 KK |
144 | &exynos_usbphy { |
145 | status = "okay"; | |
146 | }; | |
ec601ff3 | 147 | |
49c1a163 KK |
148 | &fimc_0 { |
149 | status = "okay"; | |
150 | assigned-clocks = <&clock CLK_MOUT_FIMC0>, | |
151 | <&clock CLK_SCLK_FIMC0>; | |
152 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
153 | assigned-clock-rates = <0>, <176000000>; | |
154 | }; | |
ec601ff3 | 155 | |
49c1a163 KK |
156 | &fimc_1 { |
157 | status = "okay"; | |
158 | assigned-clocks = <&clock CLK_MOUT_FIMC1>, | |
159 | <&clock CLK_SCLK_FIMC1>; | |
160 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
161 | assigned-clock-rates = <0>, <176000000>; | |
162 | }; | |
ec601ff3 | 163 | |
49c1a163 KK |
164 | &fimc_2 { |
165 | status = "okay"; | |
166 | assigned-clocks = <&clock CLK_MOUT_FIMC2>, | |
167 | <&clock CLK_SCLK_FIMC2>; | |
168 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
169 | assigned-clock-rates = <0>, <176000000>; | |
170 | }; | |
ec601ff3 | 171 | |
49c1a163 KK |
172 | &fimc_3 { |
173 | status = "okay"; | |
174 | assigned-clocks = <&clock CLK_MOUT_FIMC3>, | |
175 | <&clock CLK_SCLK_FIMC3>; | |
176 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
177 | assigned-clock-rates = <0>, <176000000>; | |
178 | }; | |
ec601ff3 | 179 | |
49c1a163 | 180 | &hdmi { |
c10d3290 | 181 | hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; |
49c1a163 KK |
182 | pinctrl-names = "default"; |
183 | pinctrl-0 = <&hdmi_hpd>; | |
184 | vdd-supply = <&ldo8_reg>; | |
185 | vdd_osc-supply = <&ldo10_reg>; | |
186 | vdd_pll-supply = <&ldo8_reg>; | |
187 | ddc = <&i2c_2>; | |
188 | status = "okay"; | |
189 | }; | |
ec601ff3 | 190 | |
49c1a163 KK |
191 | &hsotg { |
192 | dr_mode = "peripheral"; | |
193 | status = "okay"; | |
194 | vusb_d-supply = <&ldo15_reg>; | |
195 | vusb_a-supply = <&ldo12_reg>; | |
196 | }; | |
ec601ff3 | 197 | |
49c1a163 | 198 | &i2c_0 { |
49c1a163 KK |
199 | samsung,i2c-sda-delay = <100>; |
200 | samsung,i2c-max-bus-freq = <400000>; | |
201 | status = "okay"; | |
202 | ||
203 | usb3503: usb3503@08 { | |
204 | compatible = "smsc,usb3503"; | |
205 | reg = <0x08>; | |
206 | ||
c10d3290 JMC |
207 | intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>; |
208 | connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>; | |
209 | reset-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>; | |
49c1a163 KK |
210 | initial-mode = <1>; |
211 | }; | |
ec601ff3 | 212 | |
49c1a163 KK |
213 | max77686: pmic@09 { |
214 | compatible = "maxim,max77686"; | |
215 | interrupt-parent = <&gpx3>; | |
216 | interrupts = <2 0>; | |
217 | pinctrl-names = "default"; | |
218 | pinctrl-0 = <&max77686_irq>; | |
219 | reg = <0x09>; | |
220 | #clock-cells = <1>; | |
221 | ||
222 | voltage-regulators { | |
223 | ldo1_reg: LDO1 { | |
224 | regulator-name = "VDD_ALIVE_1.0V"; | |
225 | regulator-min-microvolt = <1000000>; | |
226 | regulator-max-microvolt = <1000000>; | |
227 | regulator-always-on; | |
228 | }; | |
2561658b | 229 | |
49c1a163 KK |
230 | ldo2_reg: LDO2 { |
231 | regulator-name = "VDDQ_M1_2_1.8V"; | |
232 | regulator-min-microvolt = <1800000>; | |
233 | regulator-max-microvolt = <1800000>; | |
234 | regulator-always-on; | |
235 | }; | |
a59acc17 | 236 | |
49c1a163 KK |
237 | ldo3_reg: LDO3 { |
238 | regulator-name = "VDDQ_EXT_1.8V"; | |
239 | regulator-min-microvolt = <1800000>; | |
240 | regulator-max-microvolt = <1800000>; | |
241 | regulator-always-on; | |
242 | }; | |
ec601ff3 | 243 | |
49c1a163 KK |
244 | ldo4_reg: LDO4 { |
245 | regulator-name = "VDDQ_MMC2_2.8V"; | |
246 | regulator-min-microvolt = <2800000>; | |
247 | regulator-max-microvolt = <2800000>; | |
248 | regulator-always-on; | |
249 | regulator-boot-on; | |
250 | }; | |
ec601ff3 | 251 | |
49c1a163 KK |
252 | ldo5_reg: LDO5 { |
253 | regulator-name = "VDDQ_MMC1_3_1.8V"; | |
254 | regulator-min-microvolt = <1800000>; | |
255 | regulator-max-microvolt = <1800000>; | |
256 | regulator-always-on; | |
257 | regulator-boot-on; | |
258 | }; | |
ec601ff3 | 259 | |
49c1a163 KK |
260 | ldo6_reg: LDO6 { |
261 | regulator-name = "VDD10_MPLL_1.0V"; | |
262 | regulator-min-microvolt = <1000000>; | |
263 | regulator-max-microvolt = <1000000>; | |
264 | regulator-always-on; | |
265 | }; | |
ec601ff3 | 266 | |
49c1a163 KK |
267 | ldo7_reg: LDO7 { |
268 | regulator-name = "VDD10_XPLL_1.0V"; | |
269 | regulator-min-microvolt = <1000000>; | |
270 | regulator-max-microvolt = <1000000>; | |
271 | regulator-always-on; | |
272 | }; | |
ec601ff3 | 273 | |
00e5e8c4 | 274 | ldo8_reg: LDO8 { |
49c1a163 KK |
275 | regulator-name = "VDD10_HDMI_1.0V"; |
276 | regulator-min-microvolt = <1000000>; | |
277 | regulator-max-microvolt = <1000000>; | |
278 | }; | |
ec601ff3 | 279 | |
00e5e8c4 | 280 | ldo10_reg: LDO10 { |
49c1a163 KK |
281 | regulator-name = "VDDQ_MIPIHSI_1.8V"; |
282 | regulator-min-microvolt = <1800000>; | |
283 | regulator-max-microvolt = <1800000>; | |
284 | }; | |
ec601ff3 | 285 | |
49c1a163 KK |
286 | ldo11_reg: LDO11 { |
287 | regulator-name = "VDD18_ABB1_1.8V"; | |
288 | regulator-min-microvolt = <1800000>; | |
289 | regulator-max-microvolt = <1800000>; | |
290 | regulator-always-on; | |
291 | }; | |
ec601ff3 | 292 | |
49c1a163 KK |
293 | ldo12_reg: LDO12 { |
294 | regulator-name = "VDD33_USB_3.3V"; | |
295 | regulator-min-microvolt = <3300000>; | |
296 | regulator-max-microvolt = <3300000>; | |
297 | regulator-always-on; | |
298 | regulator-boot-on; | |
299 | }; | |
ec601ff3 | 300 | |
49c1a163 KK |
301 | ldo13_reg: LDO13 { |
302 | regulator-name = "VDDQ_C2C_W_1.8V"; | |
303 | regulator-min-microvolt = <1800000>; | |
304 | regulator-max-microvolt = <1800000>; | |
305 | regulator-always-on; | |
306 | regulator-boot-on; | |
307 | }; | |
ec601ff3 | 308 | |
49c1a163 KK |
309 | ldo14_reg: LDO14 { |
310 | regulator-name = "VDD18_ABB0_2_1.8V"; | |
311 | regulator-min-microvolt = <1800000>; | |
312 | regulator-max-microvolt = <1800000>; | |
313 | regulator-always-on; | |
314 | regulator-boot-on; | |
315 | }; | |
ec601ff3 | 316 | |
49c1a163 KK |
317 | ldo15_reg: LDO15 { |
318 | regulator-name = "VDD10_HSIC_1.0V"; | |
319 | regulator-min-microvolt = <1000000>; | |
320 | regulator-max-microvolt = <1000000>; | |
321 | regulator-always-on; | |
322 | regulator-boot-on; | |
323 | }; | |
ec601ff3 | 324 | |
49c1a163 KK |
325 | ldo16_reg: LDO16 { |
326 | regulator-name = "VDD18_HSIC_1.8V"; | |
327 | regulator-min-microvolt = <1800000>; | |
328 | regulator-max-microvolt = <1800000>; | |
329 | regulator-always-on; | |
330 | regulator-boot-on; | |
331 | }; | |
ec601ff3 | 332 | |
49c1a163 KK |
333 | ldo20_reg: LDO20 { |
334 | regulator-name = "LDO20_1.8V"; | |
335 | regulator-min-microvolt = <1800000>; | |
336 | regulator-max-microvolt = <1800000>; | |
337 | regulator-boot-on; | |
338 | }; | |
ec601ff3 | 339 | |
49c1a163 KK |
340 | ldo21_reg: LDO21 { |
341 | regulator-name = "LDO21_3.3V"; | |
342 | regulator-min-microvolt = <3300000>; | |
343 | regulator-max-microvolt = <3300000>; | |
344 | regulator-always-on; | |
345 | regulator-boot-on; | |
346 | }; | |
ec601ff3 | 347 | |
49c1a163 KK |
348 | ldo25_reg: LDO25 { |
349 | regulator-name = "VDDQ_LCD_1.8V"; | |
350 | regulator-min-microvolt = <1800000>; | |
351 | regulator-max-microvolt = <1800000>; | |
352 | regulator-always-on; | |
353 | regulator-boot-on; | |
354 | }; | |
ec601ff3 | 355 | |
49c1a163 KK |
356 | buck1_reg: BUCK1 { |
357 | regulator-name = "vdd_mif"; | |
358 | regulator-min-microvolt = <1000000>; | |
359 | regulator-max-microvolt = <1000000>; | |
360 | regulator-always-on; | |
361 | regulator-boot-on; | |
ec601ff3 | 362 | }; |
ec601ff3 | 363 | |
49c1a163 KK |
364 | buck2_reg: BUCK2 { |
365 | regulator-name = "vdd_arm"; | |
366 | regulator-min-microvolt = <900000>; | |
367 | regulator-max-microvolt = <1350000>; | |
368 | regulator-always-on; | |
369 | regulator-boot-on; | |
370 | }; | |
5a852743 | 371 | |
49c1a163 KK |
372 | buck3_reg: BUCK3 { |
373 | regulator-name = "vdd_int"; | |
374 | regulator-min-microvolt = <1000000>; | |
375 | regulator-max-microvolt = <1000000>; | |
376 | regulator-always-on; | |
377 | regulator-boot-on; | |
378 | }; | |
ec601ff3 | 379 | |
49c1a163 KK |
380 | buck4_reg: BUCK4 { |
381 | regulator-name = "vdd_g3d"; | |
382 | regulator-min-microvolt = <900000>; | |
383 | regulator-max-microvolt = <1100000>; | |
384 | regulator-microvolt-offset = <50000>; | |
385 | }; | |
ec601ff3 | 386 | |
49c1a163 KK |
387 | buck5_reg: BUCK5 { |
388 | regulator-name = "VDDQ_CKEM1_2_1.2V"; | |
389 | regulator-min-microvolt = <1200000>; | |
390 | regulator-max-microvolt = <1200000>; | |
391 | regulator-always-on; | |
392 | regulator-boot-on; | |
393 | }; | |
233e274a | 394 | |
49c1a163 KK |
395 | buck6_reg: BUCK6 { |
396 | regulator-name = "BUCK6_1.35V"; | |
397 | regulator-min-microvolt = <1350000>; | |
398 | regulator-max-microvolt = <1350000>; | |
399 | regulator-always-on; | |
400 | regulator-boot-on; | |
401 | }; | |
bf4a0bed | 402 | |
49c1a163 KK |
403 | buck7_reg: BUCK7 { |
404 | regulator-name = "BUCK7_2.0V"; | |
405 | regulator-min-microvolt = <2000000>; | |
406 | regulator-max-microvolt = <2000000>; | |
407 | regulator-always-on; | |
408 | }; | |
409 | ||
410 | buck8_reg: BUCK8 { | |
411 | regulator-name = "BUCK8_2.8V"; | |
412 | regulator-min-microvolt = <2800000>; | |
413 | regulator-max-microvolt = <2800000>; | |
414 | }; | |
bf4a0bed LM |
415 | }; |
416 | }; | |
49c1a163 | 417 | }; |
2561658b | 418 | |
49c1a163 | 419 | &i2c_1 { |
49c1a163 KK |
420 | status = "okay"; |
421 | max98090: max98090@10 { | |
422 | compatible = "maxim,max98090"; | |
423 | reg = <0x10>; | |
424 | interrupt-parent = <&gpx0>; | |
425 | interrupts = <0 0>; | |
426 | clocks = <&i2s0 CLK_I2S_CDCLK>; | |
427 | clock-names = "mclk"; | |
428 | #sound-dai-cells = <0>; | |
2561658b | 429 | }; |
49c1a163 | 430 | }; |
2561658b | 431 | |
49c1a163 KK |
432 | &i2c_2 { |
433 | status = "okay"; | |
49c1a163 | 434 | }; |
2561658b | 435 | |
49c1a163 KK |
436 | &i2c_8 { |
437 | status = "okay"; | |
438 | }; | |
2561658b | 439 | |
49c1a163 KK |
440 | &i2s0 { |
441 | pinctrl-0 = <&i2s0_bus>; | |
442 | pinctrl-names = "default"; | |
443 | status = "okay"; | |
444 | clocks = <&clock_audss EXYNOS_I2S_BUS>, | |
445 | <&clock_audss EXYNOS_DOUT_AUD_BUS>, | |
446 | <&clock_audss EXYNOS_SCLK_I2S>; | |
447 | clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; | |
ec601ff3 | 448 | }; |
081a15e3 | 449 | |
49c1a163 KK |
450 | &mixer { |
451 | status = "okay"; | |
225da7e6 MS |
452 | }; |
453 | ||
49c1a163 KK |
454 | &mshc_0 { |
455 | pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; | |
456 | pinctrl-names = "default"; | |
457 | vmmc-supply = <&ldo20_reg &buck8_reg>; | |
458 | mmc-pwrseq = <&emmc_pwrseq>; | |
459 | status = "okay"; | |
460 | ||
461 | num-slots = <1>; | |
462 | broken-cd; | |
463 | card-detect-delay = <200>; | |
464 | samsung,dw-mshc-ciu-div = <3>; | |
465 | samsung,dw-mshc-sdr-timing = <2 3>; | |
466 | samsung,dw-mshc-ddr-timing = <1 2>; | |
467 | bus-width = <8>; | |
468 | cap-mmc-highspeed; | |
469 | }; | |
eea6653a | 470 | |
49c1a163 KK |
471 | &rtc { |
472 | status = "okay"; | |
473 | clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>; | |
474 | clock-names = "rtc", "rtc_src"; | |
475 | }; | |
2561658b | 476 | |
49c1a163 KK |
477 | &sdhci_2 { |
478 | bus-width = <4>; | |
479 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; | |
480 | pinctrl-names = "default"; | |
481 | vmmc-supply = <&ldo4_reg &ldo21_reg>; | |
c10d3290 | 482 | cd-gpios = <&gpk2 2 GPIO_ACTIVE_HIGH>; |
49c1a163 KK |
483 | cd-inverted; |
484 | status = "okay"; | |
485 | }; | |
486 | ||
487 | &serial_0 { | |
488 | status = "okay"; | |
489 | }; | |
490 | ||
491 | &serial_1 { | |
492 | status = "okay"; | |
493 | }; | |
494 | ||
495 | &tmu { | |
496 | vtmu-supply = <&ldo10_reg>; | |
497 | status = "okay"; | |
498 | }; | |
499 | ||
500 | &watchdog { | |
501 | status = "okay"; | |
081a15e3 | 502 | }; |