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