ARM: dts: add 'dr_mode' property to hsotg devices for exynos boards
[deliverable/linux.git] / arch / arm / boot / dts / exynos4210-trats.dts
CommitLineData
d105f0b1
TF
1/*
2 * Samsung's Exynos4210 based Trats board device tree source
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 *
7 * Device tree source file for Samsung's Trats board which is based on
8 * Samsung's Exynos4210 SoC.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13*/
14
15/dts-v1/;
3799279f 16#include "exynos4210.dtsi"
d105f0b1
TF
17
18/ {
19 model = "Samsung Trats based on Exynos4210";
8bdb31b4 20 compatible = "samsung,trats", "samsung,exynos4210", "samsung,exynos4";
d105f0b1
TF
21
22 memory {
59cf19a4
TF
23 reg = <0x40000000 0x10000000
24 0x50000000 0x10000000
25 0x60000000 0x10000000
26 0x70000000 0x10000000>;
d105f0b1
TF
27 };
28
29 chosen {
30 bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
31 };
32
b75e2e3d
AH
33 regulators {
34 compatible = "simple-bus";
35
36 vemmc_reg: regulator-0 {
37 compatible = "regulator-fixed";
38 regulator-name = "VMEM_VDD_2.8V";
39 regulator-min-microvolt = <2800000>;
40 regulator-max-microvolt = <2800000>;
41 gpio = <&gpk0 2 0>;
42 enable-active-high;
43 };
44
45 tsp_reg: regulator-1 {
46 compatible = "regulator-fixed";
47 regulator-name = "TSP_FIXED_VOLTAGES";
48 regulator-min-microvolt = <2800000>;
49 regulator-max-microvolt = <2800000>;
50 gpio = <&gpl0 3 0>;
51 enable-active-high;
52 };
53
54 cam_af_28v_reg: regulator-2 {
55 compatible = "regulator-fixed";
56 regulator-name = "8M_AF_2.8V_EN";
57 regulator-min-microvolt = <2800000>;
58 regulator-max-microvolt = <2800000>;
59 gpio = <&gpk1 1 0>;
60 enable-active-high;
61 };
62
63 cam_io_en_reg: regulator-3 {
64 compatible = "regulator-fixed";
65 regulator-name = "CAM_IO_EN";
66 regulator-min-microvolt = <2800000>;
67 regulator-max-microvolt = <2800000>;
68 gpio = <&gpe2 1 0>;
69 enable-active-high;
70 };
71
72 cam_io_12v_reg: regulator-4 {
73 compatible = "regulator-fixed";
74 regulator-name = "8M_1.2V_EN";
75 regulator-min-microvolt = <1200000>;
76 regulator-max-microvolt = <1200000>;
77 gpio = <&gpe2 5 0>;
78 enable-active-high;
79 };
80
81 vt_core_15v_reg: regulator-5 {
82 compatible = "regulator-fixed";
83 regulator-name = "VT_CORE_1.5V";
84 regulator-min-microvolt = <1500000>;
85 regulator-max-microvolt = <1500000>;
86 gpio = <&gpe2 2 0>;
87 enable-active-high;
88 };
d105f0b1
TF
89 };
90
3fcf858a
TF
91 hsotg@12480000 {
92 vusb_d-supply = <&vusb_reg>;
93 vusb_a-supply = <&vusbdac_reg>;
32f144f2 94 dr_mode = "peripheral";
3fcf858a
TF
95 status = "okay";
96 };
97
d105f0b1
TF
98 sdhci_emmc: sdhci@12510000 {
99 bus-width = <8>;
100 non-removable;
e9250126
TF
101 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus8>;
102 pinctrl-names = "default";
d105f0b1
TF
103 vmmc-supply = <&vemmc_reg>;
104 status = "okay";
105 };
106
3fcf858a
TF
107 exynos-usbphy@125B0000 {
108 status = "okay";
109 };
110
d105f0b1
TF
111 serial@13800000 {
112 status = "okay";
113 };
114
115 serial@13810000 {
116 status = "okay";
117 };
118
119 serial@13820000 {
120 status = "okay";
121 };
122
123 serial@13830000 {
124 status = "okay";
125 };
126
9eb61020
TF
127 gpio-keys {
128 compatible = "gpio-keys";
129
130 vol-down-key {
131 gpios = <&gpx2 1 1>;
132 linux,code = <114>;
133 label = "volume down";
134 debounce-interval = <10>;
135 };
136
137 vol-up-key {
138 gpios = <&gpx2 0 1>;
139 linux,code = <115>;
140 label = "volume up";
141 debounce-interval = <10>;
142 };
143
144 power-key {
145 gpios = <&gpx2 7 1>;
146 linux,code = <116>;
147 label = "power";
148 debounce-interval = <10>;
149 gpio-key,wakeup;
150 };
151
152 ok-key {
153 gpios = <&gpx3 5 1>;
154 linux,code = <352>;
155 label = "ok";
156 debounce-interval = <10>;
157 };
158 };
159
b74cbbc7
TF
160 i2c@13890000 {
161 samsung,i2c-sda-delay = <100>;
162 samsung,i2c-slave-addr = <0x10>;
163 samsung,i2c-max-bus-freq = <400000>;
164 pinctrl-0 = <&i2c3_bus>;
165 pinctrl-names = "default";
166 status = "okay";
0d09bf69
TF
167
168 mms114-touchscreen@48 {
169 compatible = "melfas,mms114";
170 reg = <0x48>;
171 interrupt-parent = <&gpx0>;
172 interrupts = <4 2>;
173 x-size = <720>;
174 y-size = <1280>;
175 avdd-supply = <&tsp_reg>;
176 vdd-supply = <&tsp_reg>;
177 };
b74cbbc7
TF
178 };
179
d105f0b1
TF
180 i2c@138B0000 {
181 samsung,i2c-sda-delay = <100>;
182 samsung,i2c-slave-addr = <0x10>;
183 samsung,i2c-max-bus-freq = <100000>;
e9250126
TF
184 pinctrl-0 = <&i2c5_bus>;
185 pinctrl-names = "default";
d105f0b1
TF
186 status = "okay";
187
188 max8997_pmic@66 {
189 compatible = "maxim,max8997-pmic";
190
191 reg = <0x66>;
192
193 max8997,pmic-buck1-uses-gpio-dvs;
194 max8997,pmic-buck2-uses-gpio-dvs;
195 max8997,pmic-buck5-uses-gpio-dvs;
196
197 max8997,pmic-ignore-gpiodvs-side-effect;
198 max8997,pmic-buck125-default-dvs-idx = <0>;
199
e9250126
TF
200 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 0>,
201 <&gpx0 6 0>,
202 <&gpl0 0 0>;
d105f0b1
TF
203
204 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
205 <1250000>, <1200000>,
206 <1150000>, <1100000>,
207 <1000000>, <950000>;
208
209 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
210 <950000>, <900000>,
211 <1100000>, <1000000>,
212 <950000>, <900000>;
213
214 max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>,
215 <1200000>, <1200000>,
216 <1200000>, <1200000>,
217 <1200000>, <1200000>;
218
219 regulators {
220 valive_reg: LDO2 {
221 regulator-name = "VALIVE_1.1V_C210";
222 regulator-min-microvolt = <1100000>;
223 regulator-max-microvolt = <1100000>;
224 regulator-always-on;
225 };
226
227 vusb_reg: LDO3 {
228 regulator-name = "VUSB_1.1V_C210";
229 regulator-min-microvolt = <1100000>;
230 regulator-max-microvolt = <1100000>;
231 };
232
233 vmipi_reg: LDO4 {
234 regulator-name = "VMIPI_1.8V";
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <1800000>;
237 };
238
239 vpda_reg: LDO6 {
240 regulator-name = "VCC_1.8V_PDA";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
243 regulator-always-on;
244 };
245
246 vcam_reg: LDO7 {
247 regulator-name = "CAM_ISP_1.8V";
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
250 };
251
252 vusbdac_reg: LDO8 {
253 regulator-name = "VUSB/VDAC_3.3V_C210";
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
256 };
257
258 vccpda_reg: LDO9 {
259 regulator-name = "VCC_2.8V_PDA";
260 regulator-min-microvolt = <2800000>;
261 regulator-max-microvolt = <2800000>;
262 regulator-always-on;
263 };
264
265 vpll_reg: LDO10 {
266 regulator-name = "VPLL_1.1V_C210";
267 regulator-min-microvolt = <1100000>;
268 regulator-max-microvolt = <1100000>;
269 regulator-always-on;
270 };
271
b75e2e3d
AH
272 vtcam_reg: LDO12 {
273 regulator-name = "VT_CAM_1.8V";
274 regulator-min-microvolt = <1800000>;
275 regulator-max-microvolt = <1800000>;
276 };
277
d105f0b1
TF
278 vcclcd_reg: LDO13 {
279 regulator-name = "VCC_3.3V_LCD";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
282 };
283
284 vlcd_reg: LDO15 {
285 regulator-name = "VLCD_2.2V";
286 regulator-min-microvolt = <2200000>;
287 regulator-max-microvolt = <2200000>;
288 };
289
290 camsensor_reg: LDO16 {
291 regulator-name = "CAM_SENSOR_IO_1.8V";
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
294 };
295
296 vddq_reg: LDO21 {
297 regulator-name = "VDDQ_M1M2_1.2V";
298 regulator-min-microvolt = <1200000>;
299 regulator-max-microvolt = <1200000>;
300 regulator-always-on;
301 };
302
303 varm_breg: BUCK1 {
db9f3169
TF
304 /*
305 * HACK: The real name is VARM_1.2V_C210,
306 * but exynos-cpufreq does not support
307 * DT-based regulator lookup yet.
308 */
309 regulator-name = "vdd_arm";
d105f0b1
TF
310 regulator-min-microvolt = <900000>;
311 regulator-max-microvolt = <1350000>;
312 regulator-always-on;
313 };
314
315 vint_breg: BUCK2 {
316 regulator-name = "VINT_1.1V_C210";
317 regulator-min-microvolt = <900000>;
318 regulator-max-microvolt = <1100000>;
319 regulator-always-on;
320 };
321
322 camisp_breg: BUCK4 {
323 regulator-name = "CAM_ISP_CORE_1.2V";
324 regulator-min-microvolt = <1200000>;
325 regulator-max-microvolt = <1200000>;
326 };
327
328 vmem_breg: BUCK5 {
329 regulator-name = "VMEM_1.2V_C210";
330 regulator-min-microvolt = <1200000>;
331 regulator-max-microvolt = <1200000>;
332 regulator-always-on;
333 };
334
335 vccsub_breg: BUCK7 {
336 regulator-name = "VCC_SUB_2.0V";
337 regulator-min-microvolt = <2000000>;
338 regulator-max-microvolt = <2000000>;
339 regulator-always-on;
340 };
341
342 safe1_sreg: ESAFEOUT1 {
343 regulator-name = "SAFEOUT1";
344 regulator-always-on;
345 };
346
347 safe2_sreg: ESAFEOUT2 {
348 regulator-name = "SAFEOUT2";
349 regulator-boot-on;
350 };
351 };
352 };
353 };
8b6076d4
TA
354
355 fixed-rate-clocks {
356 xxti {
357 compatible = "samsung,clock-xxti";
358 clock-frequency = <0>;
359 };
360
361 xusbxti {
362 compatible = "samsung,clock-xusbxti";
363 clock-frequency = <24000000>;
364 };
365 };
39a11311 366
e78dd468
AH
367 dsi_0: dsi@11C80000 {
368 vddcore-supply = <&vusb_reg>;
369 vddio-supply = <&vmipi_reg>;
370 samsung,pll-clock-frequency = <24000000>;
371 status = "okay";
372
373 ports {
374 #address-cells = <1>;
375 #size-cells = <0>;
376
377 port@1 {
378 reg = <1>;
379
380 dsi_out: endpoint {
381 remote-endpoint = <&dsi_in>;
382 samsung,burst-clock-frequency = <500000000>;
383 samsung,esc-clock-frequency = <20000000>;
384 };
385 };
386 };
387
388 panel@0 {
389 reg = <0>;
390 compatible = "samsung,s6e8aa0";
391 vdd3-supply = <&vcclcd_reg>;
392 vci-supply = <&vlcd_reg>;
393 reset-gpios = <&gpy4 5 0>;
394 power-on-delay= <50>;
395 reset-delay = <100>;
396 init-delay = <100>;
397 flip-horizontal;
398 flip-vertical;
399 panel-width-mm = <58>;
400 panel-height-mm = <103>;
401
402 display-timings {
403 timing-0 {
404 clock-frequency = <57153600>;
405 hactive = <720>;
406 vactive = <1280>;
407 hfront-porch = <5>;
408 hback-porch = <5>;
409 hsync-len = <5>;
410 vfront-porch = <13>;
411 vback-porch = <1>;
412 vsync-len = <2>;
413 };
414 };
415
416 port {
417 dsi_in: endpoint {
418 remote-endpoint = <&dsi_out>;
419 };
420 };
421 };
422 };
423
b5608396
AH
424 fimd@11c00000 {
425 status = "okay";
426 };
427
39a11311
SN
428 camera {
429 pinctrl-names = "default";
430 pinctrl-0 = <>;
431 status = "okay";
432
433 fimc_0: fimc@11800000 {
434 status = "okay";
0357a443
SN
435 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
436 <&clock CLK_SCLK_FIMC0>;
437 assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
438 assigned-clock-rates = <0>, <160000000>;
39a11311
SN
439 };
440
441 fimc_1: fimc@11810000 {
442 status = "okay";
0357a443
SN
443 assigned-clocks = <&clock CLK_MOUT_FIMC1>,
444 <&clock CLK_SCLK_FIMC1>;
445 assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
446 assigned-clock-rates = <0>, <160000000>;
39a11311
SN
447 };
448
449 fimc_2: fimc@11820000 {
450 status = "okay";
0357a443
SN
451 assigned-clocks = <&clock CLK_MOUT_FIMC2>,
452 <&clock CLK_SCLK_FIMC2>;
453 assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
454 assigned-clock-rates = <0>, <160000000>;
39a11311
SN
455 };
456
457 fimc_3: fimc@11830000 {
458 status = "okay";
0357a443
SN
459 assigned-clocks = <&clock CLK_MOUT_FIMC3>,
460 <&clock CLK_SCLK_FIMC3>;
461 assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
462 assigned-clock-rates = <0>, <160000000>;
39a11311
SN
463 };
464 };
d105f0b1 465};
This page took 0.151011 seconds and 5 git commands to generate.