exynos4210-trats.dts revision 279377
1279377Simp/*
2279377Simp * Samsung's Exynos4210 based Trats board device tree source
3279377Simp *
4279377Simp * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5279377Simp *		http://www.samsung.com
6279377Simp *
7279377Simp * Device tree source file for Samsung's Trats board which is based on
8279377Simp * Samsung's Exynos4210 SoC.
9279377Simp *
10279377Simp * This program is free software; you can redistribute it and/or modify
11279377Simp * it under the terms of the GNU General Public License version 2 as
12279377Simp * published by the Free Software Foundation.
13279377Simp*/
14279377Simp
15279377Simp/dts-v1/;
16279377Simp#include "exynos4210.dtsi"
17279377Simp
18279377Simp/ {
19279377Simp	model = "Samsung Trats based on Exynos4210";
20279377Simp	compatible = "samsung,trats", "samsung,exynos4210", "samsung,exynos4";
21279377Simp
22279377Simp	memory {
23279377Simp		reg =  <0x40000000 0x10000000
24279377Simp			0x50000000 0x10000000
25279377Simp			0x60000000 0x10000000
26279377Simp			0x70000000 0x10000000>;
27279377Simp	};
28279377Simp
29279377Simp	chosen {
30279377Simp		bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
31279377Simp		stdout-path = &serial_2;
32279377Simp	};
33279377Simp
34279377Simp	regulators {
35279377Simp		compatible = "simple-bus";
36279377Simp
37279377Simp		vemmc_reg: regulator-0 {
38279377Simp			compatible = "regulator-fixed";
39279377Simp			regulator-name = "VMEM_VDD_2.8V";
40279377Simp			regulator-min-microvolt = <2800000>;
41279377Simp			regulator-max-microvolt = <2800000>;
42279377Simp			gpio = <&gpk0 2 0>;
43279377Simp			enable-active-high;
44279377Simp		};
45279377Simp
46279377Simp		tsp_reg: regulator-1 {
47279377Simp			compatible = "regulator-fixed";
48279377Simp			regulator-name = "TSP_FIXED_VOLTAGES";
49279377Simp			regulator-min-microvolt = <2800000>;
50279377Simp			regulator-max-microvolt = <2800000>;
51279377Simp			gpio = <&gpl0 3 0>;
52279377Simp			enable-active-high;
53279377Simp		};
54279377Simp
55279377Simp		cam_af_28v_reg: regulator-2 {
56279377Simp			compatible = "regulator-fixed";
57279377Simp			regulator-name = "8M_AF_2.8V_EN";
58279377Simp			regulator-min-microvolt = <2800000>;
59279377Simp			regulator-max-microvolt = <2800000>;
60279377Simp			gpio = <&gpk1 1 0>;
61279377Simp			enable-active-high;
62279377Simp		};
63279377Simp
64279377Simp		cam_io_en_reg: regulator-3 {
65279377Simp			compatible = "regulator-fixed";
66279377Simp			regulator-name = "CAM_IO_EN";
67279377Simp			regulator-min-microvolt = <2800000>;
68279377Simp			regulator-max-microvolt = <2800000>;
69279377Simp			gpio = <&gpe2 1 0>;
70279377Simp			enable-active-high;
71279377Simp		};
72279377Simp
73279377Simp		cam_io_12v_reg: regulator-4 {
74279377Simp			compatible = "regulator-fixed";
75279377Simp			regulator-name = "8M_1.2V_EN";
76279377Simp			regulator-min-microvolt = <1200000>;
77279377Simp			regulator-max-microvolt = <1200000>;
78279377Simp			gpio = <&gpe2 5 0>;
79279377Simp			enable-active-high;
80279377Simp		};
81279377Simp
82279377Simp		vt_core_15v_reg: regulator-5 {
83279377Simp			compatible = "regulator-fixed";
84279377Simp			regulator-name = "VT_CORE_1.5V";
85279377Simp			regulator-min-microvolt = <1500000>;
86279377Simp			regulator-max-microvolt = <1500000>;
87279377Simp			gpio = <&gpe2 2 0>;
88279377Simp			enable-active-high;
89279377Simp		};
90279377Simp	};
91279377Simp
92279377Simp	hsotg@12480000 {
93279377Simp		vusb_d-supply = <&vusb_reg>;
94279377Simp		vusb_a-supply = <&vusbdac_reg>;
95279377Simp		dr_mode = "peripheral";
96279377Simp		status = "okay";
97279377Simp	};
98279377Simp
99279377Simp	sdhci_emmc: sdhci@12510000 {
100279377Simp		bus-width = <8>;
101279377Simp		non-removable;
102279377Simp		pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus8>;
103279377Simp		pinctrl-names = "default";
104279377Simp		vmmc-supply = <&vemmc_reg>;
105279377Simp		status = "okay";
106279377Simp	};
107279377Simp
108279377Simp	exynos-usbphy@125B0000 {
109279377Simp		status = "okay";
110279377Simp	};
111279377Simp
112279377Simp	serial@13800000 {
113279377Simp		status = "okay";
114279377Simp	};
115279377Simp
116279377Simp	serial@13810000 {
117279377Simp		status = "okay";
118279377Simp	};
119279377Simp
120279377Simp	serial@13820000 {
121279377Simp		status = "okay";
122279377Simp	};
123279377Simp
124279377Simp	serial@13830000 {
125279377Simp		status = "okay";
126279377Simp	};
127279377Simp
128279377Simp	gpio-keys {
129279377Simp		compatible = "gpio-keys";
130279377Simp
131279377Simp		vol-down-key {
132279377Simp			gpios = <&gpx2 1 1>;
133279377Simp			linux,code = <114>;
134279377Simp			label = "volume down";
135279377Simp			debounce-interval = <10>;
136279377Simp		};
137279377Simp
138279377Simp		vol-up-key {
139279377Simp			gpios = <&gpx2 0 1>;
140279377Simp			linux,code = <115>;
141279377Simp			label = "volume up";
142279377Simp			debounce-interval = <10>;
143279377Simp		};
144279377Simp
145279377Simp		power-key {
146279377Simp			gpios = <&gpx2 7 1>;
147279377Simp			linux,code = <116>;
148279377Simp			label = "power";
149279377Simp			debounce-interval = <10>;
150279377Simp			gpio-key,wakeup;
151279377Simp		};
152279377Simp
153279377Simp		ok-key {
154279377Simp			gpios = <&gpx3 5 1>;
155279377Simp			linux,code = <352>;
156279377Simp			label = "ok";
157279377Simp			debounce-interval = <10>;
158279377Simp		};
159279377Simp	};
160279377Simp
161279377Simp	i2c@13890000 {
162279377Simp		samsung,i2c-sda-delay = <100>;
163279377Simp		samsung,i2c-slave-addr = <0x10>;
164279377Simp		samsung,i2c-max-bus-freq = <400000>;
165279377Simp		pinctrl-0 = <&i2c3_bus>;
166279377Simp		pinctrl-names = "default";
167279377Simp		status = "okay";
168279377Simp
169279377Simp		mms114-touchscreen@48 {
170279377Simp			compatible = "melfas,mms114";
171279377Simp			reg = <0x48>;
172279377Simp			interrupt-parent = <&gpx0>;
173279377Simp			interrupts = <4 2>;
174279377Simp			x-size = <720>;
175279377Simp			y-size = <1280>;
176279377Simp			avdd-supply = <&tsp_reg>;
177279377Simp			vdd-supply = <&tsp_reg>;
178279377Simp		};
179279377Simp	};
180279377Simp
181279377Simp	i2c@138B0000 {
182279377Simp		samsung,i2c-sda-delay = <100>;
183279377Simp		samsung,i2c-slave-addr = <0x10>;
184279377Simp		samsung,i2c-max-bus-freq = <100000>;
185279377Simp		pinctrl-0 = <&i2c5_bus>;
186279377Simp		pinctrl-names = "default";
187279377Simp		status = "okay";
188279377Simp
189279377Simp		max8997_pmic@66 {
190279377Simp			compatible = "maxim,max8997-pmic";
191279377Simp
192279377Simp			reg = <0x66>;
193279377Simp
194279377Simp			max8997,pmic-buck1-uses-gpio-dvs;
195279377Simp			max8997,pmic-buck2-uses-gpio-dvs;
196279377Simp			max8997,pmic-buck5-uses-gpio-dvs;
197279377Simp
198279377Simp			max8997,pmic-ignore-gpiodvs-side-effect;
199279377Simp			max8997,pmic-buck125-default-dvs-idx = <0>;
200279377Simp
201279377Simp			max8997,pmic-buck125-dvs-gpios = <&gpx0 5 0>,
202279377Simp						         <&gpx0 6 0>,
203279377Simp							 <&gpl0 0 0>;
204279377Simp
205279377Simp			max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
206279377Simp							 <1250000>, <1200000>,
207279377Simp							 <1150000>, <1100000>,
208279377Simp							 <1000000>, <950000>;
209279377Simp
210279377Simp			max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
211279377Simp							 <950000>,  <900000>,
212279377Simp							 <1100000>, <1000000>,
213279377Simp							 <950000>,  <900000>;
214279377Simp
215279377Simp			max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>,
216279377Simp							 <1200000>, <1200000>,
217279377Simp							 <1200000>, <1200000>,
218279377Simp							 <1200000>, <1200000>;
219279377Simp
220279377Simp			regulators {
221279377Simp				valive_reg: LDO2 {
222279377Simp				     regulator-name = "VALIVE_1.1V_C210";
223279377Simp				     regulator-min-microvolt = <1100000>;
224279377Simp				     regulator-max-microvolt = <1100000>;
225279377Simp				     regulator-always-on;
226279377Simp				};
227279377Simp
228279377Simp				vusb_reg: LDO3 {
229279377Simp				     regulator-name = "VUSB_1.1V_C210";
230279377Simp				     regulator-min-microvolt = <1100000>;
231279377Simp				     regulator-max-microvolt = <1100000>;
232279377Simp				};
233279377Simp
234279377Simp				vmipi_reg: LDO4 {
235279377Simp				     regulator-name = "VMIPI_1.8V";
236279377Simp				     regulator-min-microvolt = <1800000>;
237279377Simp				     regulator-max-microvolt = <1800000>;
238279377Simp				};
239279377Simp
240279377Simp				vpda_reg: LDO6 {
241279377Simp				     regulator-name = "VCC_1.8V_PDA";
242279377Simp				     regulator-min-microvolt = <1800000>;
243279377Simp				     regulator-max-microvolt = <1800000>;
244279377Simp				     regulator-always-on;
245279377Simp				};
246279377Simp
247279377Simp				vcam_reg: LDO7 {
248279377Simp				     regulator-name = "CAM_ISP_1.8V";
249279377Simp				     regulator-min-microvolt = <1800000>;
250279377Simp				     regulator-max-microvolt = <1800000>;
251279377Simp				};
252279377Simp
253279377Simp				vusbdac_reg: LDO8 {
254279377Simp				     regulator-name = "VUSB/VDAC_3.3V_C210";
255279377Simp				     regulator-min-microvolt = <3300000>;
256279377Simp				     regulator-max-microvolt = <3300000>;
257279377Simp				};
258279377Simp
259279377Simp				vccpda_reg: LDO9 {
260279377Simp				     regulator-name = "VCC_2.8V_PDA";
261279377Simp				     regulator-min-microvolt = <2800000>;
262279377Simp				     regulator-max-microvolt = <2800000>;
263279377Simp				     regulator-always-on;
264279377Simp				};
265279377Simp
266279377Simp				vpll_reg: LDO10 {
267279377Simp				     regulator-name = "VPLL_1.1V_C210";
268279377Simp				     regulator-min-microvolt = <1100000>;
269279377Simp				     regulator-max-microvolt = <1100000>;
270279377Simp				     regulator-always-on;
271279377Simp				};
272279377Simp
273279377Simp				vtcam_reg: LDO12 {
274279377Simp				     regulator-name = "VT_CAM_1.8V";
275279377Simp				     regulator-min-microvolt = <1800000>;
276279377Simp				     regulator-max-microvolt = <1800000>;
277279377Simp				};
278279377Simp
279279377Simp				vcclcd_reg: LDO13 {
280279377Simp				     regulator-name = "VCC_3.3V_LCD";
281279377Simp				     regulator-min-microvolt = <3300000>;
282279377Simp				     regulator-max-microvolt = <3300000>;
283279377Simp				};
284279377Simp
285279377Simp				vlcd_reg: LDO15 {
286279377Simp				     regulator-name = "VLCD_2.2V";
287279377Simp				     regulator-min-microvolt = <2200000>;
288279377Simp				     regulator-max-microvolt = <2200000>;
289279377Simp				};
290279377Simp
291279377Simp				camsensor_reg: LDO16 {
292279377Simp				     regulator-name = "CAM_SENSOR_IO_1.8V";
293279377Simp				     regulator-min-microvolt = <1800000>;
294279377Simp				     regulator-max-microvolt = <1800000>;
295279377Simp				};
296279377Simp
297279377Simp				vddq_reg: LDO21 {
298279377Simp				     regulator-name = "VDDQ_M1M2_1.2V";
299279377Simp				     regulator-min-microvolt = <1200000>;
300279377Simp				     regulator-max-microvolt = <1200000>;
301279377Simp				     regulator-always-on;
302279377Simp				};
303279377Simp
304279377Simp				varm_breg: BUCK1 {
305279377Simp				     /*
306279377Simp				      * HACK: The real name is VARM_1.2V_C210,
307279377Simp				      * but exynos-cpufreq does not support
308279377Simp				      * DT-based regulator lookup yet.
309279377Simp				      */
310279377Simp				     regulator-name = "vdd_arm";
311279377Simp				     regulator-min-microvolt = <900000>;
312279377Simp				     regulator-max-microvolt = <1350000>;
313279377Simp				     regulator-always-on;
314279377Simp				};
315279377Simp
316279377Simp				vint_breg: BUCK2 {
317279377Simp				     regulator-name = "VINT_1.1V_C210";
318279377Simp				     regulator-min-microvolt = <900000>;
319279377Simp				     regulator-max-microvolt = <1100000>;
320279377Simp				     regulator-always-on;
321279377Simp				};
322279377Simp
323279377Simp				camisp_breg: BUCK4 {
324279377Simp				     regulator-name = "CAM_ISP_CORE_1.2V";
325279377Simp				     regulator-min-microvolt = <1200000>;
326279377Simp				     regulator-max-microvolt = <1200000>;
327279377Simp				};
328279377Simp
329279377Simp				vmem_breg: BUCK5 {
330279377Simp				     regulator-name = "VMEM_1.2V_C210";
331279377Simp				     regulator-min-microvolt = <1200000>;
332279377Simp				     regulator-max-microvolt = <1200000>;
333279377Simp				     regulator-always-on;
334279377Simp				};
335279377Simp
336279377Simp				vccsub_breg: BUCK7 {
337279377Simp				     regulator-name = "VCC_SUB_2.0V";
338279377Simp				     regulator-min-microvolt = <2000000>;
339279377Simp				     regulator-max-microvolt = <2000000>;
340279377Simp				     regulator-always-on;
341279377Simp				};
342279377Simp
343279377Simp				safe1_sreg: ESAFEOUT1 {
344279377Simp				     regulator-name = "SAFEOUT1";
345279377Simp				     regulator-always-on;
346279377Simp				};
347279377Simp
348279377Simp				safe2_sreg: ESAFEOUT2 {
349279377Simp				     regulator-name = "SAFEOUT2";
350279377Simp				     regulator-boot-on;
351279377Simp				};
352279377Simp			};
353279377Simp		};
354279377Simp	};
355279377Simp
356279377Simp	fixed-rate-clocks {
357279377Simp		xxti {
358279377Simp			compatible = "samsung,clock-xxti";
359279377Simp			clock-frequency = <0>;
360279377Simp		};
361279377Simp
362279377Simp		xusbxti {
363279377Simp			compatible = "samsung,clock-xusbxti";
364279377Simp			clock-frequency = <24000000>;
365279377Simp		};
366279377Simp	};
367279377Simp
368279377Simp	dsi_0: dsi@11C80000 {
369279377Simp		vddcore-supply = <&vusb_reg>;
370279377Simp		vddio-supply = <&vmipi_reg>;
371279377Simp		samsung,pll-clock-frequency = <24000000>;
372279377Simp		status = "okay";
373279377Simp
374279377Simp		ports {
375279377Simp			#address-cells = <1>;
376279377Simp			#size-cells = <0>;
377279377Simp
378279377Simp			port@1 {
379279377Simp				reg = <1>;
380279377Simp
381279377Simp				dsi_out: endpoint {
382279377Simp					remote-endpoint = <&dsi_in>;
383279377Simp					samsung,burst-clock-frequency = <500000000>;
384279377Simp					samsung,esc-clock-frequency = <20000000>;
385279377Simp				};
386279377Simp			};
387279377Simp		};
388279377Simp
389279377Simp		panel@0 {
390279377Simp			reg = <0>;
391279377Simp			compatible = "samsung,s6e8aa0";
392279377Simp			vdd3-supply = <&vcclcd_reg>;
393279377Simp			vci-supply = <&vlcd_reg>;
394279377Simp			reset-gpios = <&gpy4 5 0>;
395279377Simp			power-on-delay= <50>;
396279377Simp			reset-delay = <100>;
397279377Simp			init-delay = <100>;
398279377Simp			flip-horizontal;
399279377Simp			flip-vertical;
400279377Simp			panel-width-mm = <58>;
401279377Simp			panel-height-mm = <103>;
402279377Simp
403279377Simp			display-timings {
404279377Simp				timing-0 {
405279377Simp					clock-frequency = <57153600>;
406279377Simp					hactive = <720>;
407279377Simp					vactive = <1280>;
408279377Simp					hfront-porch = <5>;
409279377Simp					hback-porch = <5>;
410279377Simp					hsync-len = <5>;
411279377Simp					vfront-porch = <13>;
412279377Simp					vback-porch = <1>;
413279377Simp					vsync-len = <2>;
414279377Simp				};
415279377Simp			};
416279377Simp
417279377Simp			port {
418279377Simp				dsi_in: endpoint {
419279377Simp					remote-endpoint = <&dsi_out>;
420279377Simp				};
421279377Simp			};
422279377Simp		};
423279377Simp	};
424279377Simp
425279377Simp	fimd@11c00000 {
426279377Simp		status = "okay";
427279377Simp	};
428279377Simp
429279377Simp	camera {
430279377Simp		pinctrl-names = "default";
431279377Simp		pinctrl-0 = <>;
432279377Simp		status = "okay";
433279377Simp
434279377Simp		fimc_0: fimc@11800000 {
435279377Simp			status = "okay";
436279377Simp			assigned-clocks = <&clock CLK_MOUT_FIMC0>,
437279377Simp					<&clock CLK_SCLK_FIMC0>;
438279377Simp			assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
439279377Simp			assigned-clock-rates = <0>, <160000000>;
440279377Simp		};
441279377Simp
442279377Simp		fimc_1: fimc@11810000 {
443279377Simp			status = "okay";
444279377Simp			assigned-clocks = <&clock CLK_MOUT_FIMC1>,
445279377Simp					<&clock CLK_SCLK_FIMC1>;
446279377Simp			assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
447279377Simp			assigned-clock-rates = <0>, <160000000>;
448279377Simp		};
449279377Simp
450279377Simp		fimc_2: fimc@11820000 {
451279377Simp			status = "okay";
452279377Simp			assigned-clocks = <&clock CLK_MOUT_FIMC2>,
453279377Simp					<&clock CLK_SCLK_FIMC2>;
454279377Simp			assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
455279377Simp			assigned-clock-rates = <0>, <160000000>;
456279377Simp		};
457279377Simp
458279377Simp		fimc_3: fimc@11830000 {
459279377Simp			status = "okay";
460279377Simp			assigned-clocks = <&clock CLK_MOUT_FIMC3>,
461279377Simp					<&clock CLK_SCLK_FIMC3>;
462279377Simp			assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
463279377Simp			assigned-clock-rates = <0>, <160000000>;
464279377Simp		};
465279377Simp	};
466279377Simp};
467