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 | ||
081a15e3 | 10 | #include <dt-bindings/input/input.h> |
ec601ff3 MS |
11 | #include "exynos4412.dtsi" |
12 | ||
13 | / { | |
62d38099 TF |
14 | chosen { |
15 | stdout-path = &serial_1; | |
16 | }; | |
17 | ||
ec601ff3 MS |
18 | firmware@0204F000 { |
19 | compatible = "samsung,secure-firmware"; | |
20 | reg = <0x0204F000 0x1000>; | |
21 | }; | |
22 | ||
081a15e3 MS |
23 | gpio_keys { |
24 | compatible = "gpio-keys"; | |
25 | pinctrl-names = "default"; | |
26 | pinctrl-0 = <&gpio_power_key>; | |
27 | ||
28 | power_key { | |
29 | interrupt-parent = <&gpx1>; | |
30 | interrupts = <3 0>; | |
31 | gpios = <&gpx1 3 1>; | |
32 | linux,code = <KEY_POWER>; | |
33 | label = "power key"; | |
34 | debounce-interval = <10>; | |
35 | gpio-key,wakeup; | |
36 | }; | |
37 | }; | |
38 | ||
5a852743 SN |
39 | i2s0: i2s@03830000 { |
40 | pinctrl-0 = <&i2s0_bus>; | |
41 | pinctrl-names = "default"; | |
42 | status = "okay"; | |
43 | clocks = <&clock_audss EXYNOS_I2S_BUS>, | |
44 | <&clock_audss EXYNOS_DOUT_AUD_BUS>; | |
45 | clock-names = "iis", "i2s_opclk0"; | |
46 | }; | |
47 | ||
48 | sound: sound { | |
49 | compatible = "samsung,odroidx2-audio"; | |
50 | samsung,i2s-controller = <&i2s0>; | |
51 | samsung,audio-codec = <&max98090>; | |
59760009 SN |
52 | assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>, |
53 | <&clock_audss EXYNOS_MOUT_I2S>, | |
54 | <&clock_audss EXYNOS_DOUT_SRP>, | |
55 | <&clock_audss EXYNOS_DOUT_AUD_BUS>; | |
56 | assigned-clock-parents = <&clock CLK_FOUT_EPLL>, | |
57 | <&clock_audss EXYNOS_MOUT_AUDSS>; | |
58 | assigned-clock-rates = <0>, | |
59 | <0>, | |
60 | <192000000>, | |
61 | <19200000>; | |
5a852743 SN |
62 | }; |
63 | ||
ec601ff3 MS |
64 | mmc@12550000 { |
65 | pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; | |
66 | pinctrl-names = "default"; | |
67 | vmmc-supply = <&ldo20_reg &buck8_reg>; | |
68 | status = "okay"; | |
69 | ||
70 | num-slots = <1>; | |
ec601ff3 MS |
71 | broken-cd; |
72 | card-detect-delay = <200>; | |
73 | samsung,dw-mshc-ciu-div = <3>; | |
74 | samsung,dw-mshc-sdr-timing = <2 3>; | |
75 | samsung,dw-mshc-ddr-timing = <1 2>; | |
aaa25a5a JC |
76 | bus-width = <8>; |
77 | cap-mmc-highspeed; | |
ec601ff3 MS |
78 | }; |
79 | ||
80 | watchdog@10060000 { | |
81 | status = "okay"; | |
82 | }; | |
83 | ||
84 | rtc@10070000 { | |
85 | status = "okay"; | |
86 | }; | |
87 | ||
88 | g2d@10800000 { | |
89 | status = "okay"; | |
90 | }; | |
91 | ||
92 | camera { | |
93 | status = "okay"; | |
94 | pinctrl-names = "default"; | |
95 | pinctrl-0 = <>; | |
96 | ||
97 | fimc_0: fimc@11800000 { | |
98 | status = "okay"; | |
0357a443 SN |
99 | assigned-clocks = <&clock CLK_MOUT_FIMC0>, |
100 | <&clock CLK_SCLK_FIMC0>; | |
101 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
102 | assigned-clock-rates = <0>, <176000000>; | |
ec601ff3 MS |
103 | }; |
104 | ||
105 | fimc_1: fimc@11810000 { | |
106 | status = "okay"; | |
0357a443 SN |
107 | assigned-clocks = <&clock CLK_MOUT_FIMC1>, |
108 | <&clock CLK_SCLK_FIMC1>; | |
109 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
110 | assigned-clock-rates = <0>, <176000000>; | |
ec601ff3 MS |
111 | }; |
112 | ||
113 | fimc_2: fimc@11820000 { | |
114 | status = "okay"; | |
0357a443 SN |
115 | assigned-clocks = <&clock CLK_MOUT_FIMC2>, |
116 | <&clock CLK_SCLK_FIMC2>; | |
117 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
118 | assigned-clock-rates = <0>, <176000000>; | |
ec601ff3 MS |
119 | }; |
120 | ||
121 | fimc_3: fimc@11830000 { | |
122 | status = "okay"; | |
0357a443 SN |
123 | assigned-clocks = <&clock CLK_MOUT_FIMC3>, |
124 | <&clock CLK_SCLK_FIMC3>; | |
125 | assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; | |
126 | assigned-clock-rates = <0>, <176000000>; | |
ec601ff3 MS |
127 | }; |
128 | }; | |
129 | ||
130 | sdhci@12530000 { | |
131 | bus-width = <4>; | |
132 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; | |
133 | pinctrl-names = "default"; | |
134 | vmmc-supply = <&ldo4_reg &ldo21_reg>; | |
78f54db1 MS |
135 | cd-gpios = <&gpk2 2 0>; |
136 | cd-inverted; | |
ec601ff3 MS |
137 | status = "okay"; |
138 | }; | |
139 | ||
140 | serial@13800000 { | |
141 | status = "okay"; | |
142 | }; | |
143 | ||
144 | serial@13810000 { | |
145 | status = "okay"; | |
146 | }; | |
147 | ||
148 | fixed-rate-clocks { | |
149 | xxti { | |
150 | compatible = "samsung,clock-xxti"; | |
151 | clock-frequency = <0>; | |
152 | }; | |
153 | ||
154 | xusbxti { | |
155 | compatible = "samsung,clock-xusbxti"; | |
156 | clock-frequency = <24000000>; | |
157 | }; | |
158 | }; | |
159 | ||
160 | i2c@13860000 { | |
161 | pinctrl-0 = <&i2c0_bus>; | |
162 | pinctrl-names = "default"; | |
cc3fe7ab DD |
163 | samsung,i2c-sda-delay = <100>; |
164 | samsung,i2c-max-bus-freq = <400000>; | |
ec601ff3 MS |
165 | status = "okay"; |
166 | ||
167 | usb3503: usb3503@08 { | |
168 | compatible = "smsc,usb3503"; | |
169 | reg = <0x08>; | |
170 | ||
171 | intn-gpios = <&gpx3 0 0>; | |
172 | connect-gpios = <&gpx3 4 0>; | |
173 | reset-gpios = <&gpx3 5 0>; | |
174 | initial-mode = <1>; | |
175 | }; | |
176 | ||
177 | max77686: pmic@09 { | |
178 | compatible = "maxim,max77686"; | |
eea6653a DD |
179 | interrupt-parent = <&gpx3>; |
180 | interrupts = <2 0>; | |
181 | pinctrl-names = "default"; | |
182 | pinctrl-0 = <&max77686_irq>; | |
ec601ff3 MS |
183 | reg = <0x09>; |
184 | #clock-cells = <1>; | |
185 | ||
186 | voltage-regulators { | |
187 | ldo1_reg: LDO1 { | |
188 | regulator-name = "VDD_ALIVE_1.0V"; | |
189 | regulator-min-microvolt = <1000000>; | |
190 | regulator-max-microvolt = <1000000>; | |
191 | regulator-always-on; | |
192 | }; | |
193 | ||
194 | ldo2_reg: LDO2 { | |
195 | regulator-name = "VDDQ_M1_2_1.8V"; | |
196 | regulator-min-microvolt = <1800000>; | |
197 | regulator-max-microvolt = <1800000>; | |
198 | regulator-always-on; | |
199 | }; | |
200 | ||
201 | ldo3_reg: LDO3 { | |
202 | regulator-name = "VDDQ_EXT_1.8V"; | |
203 | regulator-min-microvolt = <1800000>; | |
204 | regulator-max-microvolt = <1800000>; | |
205 | regulator-always-on; | |
206 | }; | |
207 | ||
208 | ldo4_reg: LDO4 { | |
209 | regulator-name = "VDDQ_MMC2_2.8V"; | |
210 | regulator-min-microvolt = <2800000>; | |
211 | regulator-max-microvolt = <2800000>; | |
212 | regulator-always-on; | |
213 | regulator-boot-on; | |
214 | }; | |
215 | ||
216 | ldo5_reg: LDO5 { | |
217 | regulator-name = "VDDQ_MMC1_3_1.8V"; | |
218 | regulator-min-microvolt = <1800000>; | |
219 | regulator-max-microvolt = <1800000>; | |
220 | regulator-always-on; | |
221 | regulator-boot-on; | |
222 | }; | |
223 | ||
224 | ldo6_reg: LDO6 { | |
225 | regulator-name = "VDD10_MPLL_1.0V"; | |
226 | regulator-min-microvolt = <1000000>; | |
227 | regulator-max-microvolt = <1000000>; | |
228 | regulator-always-on; | |
229 | }; | |
230 | ||
231 | ldo7_reg: LDO7 { | |
232 | regulator-name = "VDD10_XPLL_1.0V"; | |
233 | regulator-min-microvolt = <1000000>; | |
234 | regulator-max-microvolt = <1000000>; | |
235 | regulator-always-on; | |
236 | }; | |
237 | ||
238 | ldo11_reg: LDO11 { | |
239 | regulator-name = "VDD18_ABB1_1.8V"; | |
240 | regulator-min-microvolt = <1800000>; | |
241 | regulator-max-microvolt = <1800000>; | |
242 | regulator-always-on; | |
243 | }; | |
244 | ||
245 | ldo12_reg: LDO12 { | |
246 | regulator-name = "VDD33_USB_3.3V"; | |
247 | regulator-min-microvolt = <3300000>; | |
248 | regulator-max-microvolt = <3300000>; | |
249 | regulator-always-on; | |
250 | regulator-boot-on; | |
251 | }; | |
252 | ||
253 | ldo13_reg: LDO13 { | |
254 | regulator-name = "VDDQ_C2C_W_1.8V"; | |
255 | regulator-min-microvolt = <1800000>; | |
256 | regulator-max-microvolt = <1800000>; | |
257 | regulator-always-on; | |
258 | regulator-boot-on; | |
259 | }; | |
260 | ||
261 | ldo14_reg: LDO14 { | |
262 | regulator-name = "VDD18_ABB0_2_1.8V"; | |
263 | regulator-min-microvolt = <1800000>; | |
264 | regulator-max-microvolt = <1800000>; | |
265 | regulator-always-on; | |
266 | regulator-boot-on; | |
267 | }; | |
268 | ||
269 | ldo15_reg: LDO15 { | |
270 | regulator-name = "VDD10_HSIC_1.0V"; | |
271 | regulator-min-microvolt = <1000000>; | |
272 | regulator-max-microvolt = <1000000>; | |
273 | regulator-always-on; | |
274 | regulator-boot-on; | |
275 | }; | |
276 | ||
277 | ldo16_reg: LDO16 { | |
278 | regulator-name = "VDD18_HSIC_1.8V"; | |
279 | regulator-min-microvolt = <1800000>; | |
280 | regulator-max-microvolt = <1800000>; | |
281 | regulator-always-on; | |
282 | regulator-boot-on; | |
283 | }; | |
284 | ||
285 | ldo20_reg: LDO20 { | |
286 | regulator-name = "LDO20_1.8V"; | |
287 | regulator-min-microvolt = <1800000>; | |
288 | regulator-max-microvolt = <1800000>; | |
289 | regulator-boot-on; | |
290 | }; | |
291 | ||
292 | ldo21_reg: LDO21 { | |
293 | regulator-name = "LDO21_3.3V"; | |
294 | regulator-min-microvolt = <3300000>; | |
295 | regulator-max-microvolt = <3300000>; | |
296 | regulator-always-on; | |
297 | regulator-boot-on; | |
298 | }; | |
299 | ||
300 | ldo25_reg: LDO25 { | |
301 | regulator-name = "VDDQ_LCD_1.8V"; | |
302 | regulator-min-microvolt = <1800000>; | |
303 | regulator-max-microvolt = <1800000>; | |
304 | regulator-always-on; | |
305 | regulator-boot-on; | |
306 | }; | |
307 | ||
308 | buck1_reg: BUCK1 { | |
309 | regulator-name = "vdd_mif"; | |
310 | regulator-min-microvolt = <1000000>; | |
311 | regulator-max-microvolt = <1000000>; | |
312 | regulator-always-on; | |
313 | regulator-boot-on; | |
314 | }; | |
315 | ||
316 | buck2_reg: BUCK2 { | |
317 | regulator-name = "vdd_arm"; | |
318 | regulator-min-microvolt = <900000>; | |
319 | regulator-max-microvolt = <1350000>; | |
320 | regulator-always-on; | |
321 | regulator-boot-on; | |
322 | }; | |
323 | ||
324 | buck3_reg: BUCK3 { | |
325 | regulator-name = "vdd_int"; | |
326 | regulator-min-microvolt = <1000000>; | |
327 | regulator-max-microvolt = <1000000>; | |
328 | regulator-always-on; | |
329 | regulator-boot-on; | |
330 | }; | |
331 | ||
332 | buck4_reg: BUCK4 { | |
333 | regulator-name = "vdd_g3d"; | |
334 | regulator-min-microvolt = <900000>; | |
335 | regulator-max-microvolt = <1100000>; | |
336 | regulator-microvolt-offset = <50000>; | |
337 | }; | |
338 | ||
339 | buck5_reg: BUCK5 { | |
340 | regulator-name = "VDDQ_CKEM1_2_1.2V"; | |
341 | regulator-min-microvolt = <1200000>; | |
342 | regulator-max-microvolt = <1200000>; | |
343 | regulator-always-on; | |
344 | regulator-boot-on; | |
345 | }; | |
346 | ||
347 | buck6_reg: BUCK6 { | |
348 | regulator-name = "BUCK6_1.35V"; | |
349 | regulator-min-microvolt = <1350000>; | |
350 | regulator-max-microvolt = <1350000>; | |
351 | regulator-always-on; | |
352 | regulator-boot-on; | |
353 | }; | |
354 | ||
355 | buck7_reg: BUCK7 { | |
356 | regulator-name = "BUCK7_2.0V"; | |
357 | regulator-min-microvolt = <2000000>; | |
358 | regulator-max-microvolt = <2000000>; | |
359 | regulator-always-on; | |
360 | }; | |
361 | ||
362 | buck8_reg: BUCK8 { | |
363 | regulator-name = "BUCK8_2.8V"; | |
364 | regulator-min-microvolt = <2800000>; | |
365 | regulator-max-microvolt = <2800000>; | |
ec601ff3 MS |
366 | }; |
367 | }; | |
368 | }; | |
369 | }; | |
370 | ||
5a852743 SN |
371 | i2c@13870000 { |
372 | pinctrl-names = "default"; | |
373 | pinctrl-0 = <&i2c1_bus>; | |
374 | status = "okay"; | |
375 | max98090: max98090@10 { | |
376 | compatible = "maxim,max98090"; | |
377 | reg = <0x10>; | |
378 | interrupt-parent = <&gpx0>; | |
379 | interrupts = <0 0>; | |
380 | }; | |
381 | }; | |
382 | ||
ec601ff3 MS |
383 | exynos-usbphy@125B0000 { |
384 | status = "okay"; | |
385 | }; | |
386 | ||
387 | hsotg@12480000 { | |
388 | status = "okay"; | |
389 | vusb_d-supply = <&ldo15_reg>; | |
390 | vusb_a-supply = <&ldo12_reg>; | |
391 | }; | |
392 | ||
393 | ehci: ehci@12580000 { | |
394 | status = "okay"; | |
395 | }; | |
396 | }; | |
081a15e3 MS |
397 | |
398 | &pinctrl_1 { | |
399 | gpio_power_key: power_key { | |
400 | samsung,pins = "gpx1-3"; | |
401 | samsung,pin-pud = <0>; | |
402 | }; | |
eea6653a DD |
403 | |
404 | max77686_irq: max77686-irq { | |
405 | samsung,pins = "gpx3-2"; | |
406 | samsung,pin-function = <0>; | |
407 | samsung,pin-pud = <0>; | |
408 | samsung,pin-drv = <0>; | |
409 | }; | |
081a15e3 | 410 | }; |