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