1/*
2 * SAMSUNG SMDK5420 board device tree source
3 *
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 *		http://www.samsung.com
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10*/
11
12/dts-v1/;
13#include "exynos5420.dtsi"
14
15/ {
16	model = "Samsung SMDK5420 board based on EXYNOS5420";
17	compatible = "samsung,smdk5420", "samsung,exynos5420", "samsung,exynos5";
18
19	memory {
20		reg = <0x20000000 0x80000000>;
21	};
22
23	chosen {
24		bootargs = "console=ttySAC2,115200 init=/linuxrc";
25	};
26
27	fixed-rate-clocks {
28		oscclk {
29			compatible = "samsung,exynos5420-oscclk";
30			clock-frequency = <24000000>;
31		};
32	};
33
34	regulators {
35		compatible = "simple-bus";
36		#address-cells = <1>;
37		#size-cells = <0>;
38
39		vdd: fixed-regulator@0 {
40			compatible = "regulator-fixed";
41			reg = <0>;
42			regulator-name = "vdd-supply";
43			regulator-min-microvolt = <1800000>;
44			regulator-max-microvolt = <1800000>;
45			regulator-always-on;
46		};
47
48		dbvdd: fixed-regulator@1 {
49			compatible = "regulator-fixed";
50			reg = <1>;
51			regulator-name = "dbvdd-supply";
52			regulator-min-microvolt = <3300000>;
53			regulator-max-microvolt = <3300000>;
54			regulator-always-on;
55		};
56
57		spkvdd: fixed-regulator@2 {
58			compatible = "regulator-fixed";
59			reg = <2>;
60			regulator-name = "spkvdd-supply";
61			regulator-min-microvolt = <5000000>;
62			regulator-max-microvolt = <5000000>;
63			regulator-always-on;
64		};
65	};
66
67	rtc@101E0000 {
68		status = "okay";
69	};
70
71	codec@11000000 {
72		samsung,mfc-r = <0x43000000 0x800000>;
73		samsung,mfc-l = <0x51000000 0x800000>;
74	};
75
76	mmc@12200000 {
77		status = "okay";
78		broken-cd;
79		card-detect-delay = <200>;
80		samsung,dw-mshc-ciu-div = <3>;
81		samsung,dw-mshc-sdr-timing = <0 4>;
82		samsung,dw-mshc-ddr-timing = <0 2>;
83		samsung,dw-mshc-hs400-timing = <0 2>;
84		samsung,read-strobe-delay = <90>;
85		pinctrl-names = "default";
86		pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8
87			     &sd0_rclk>;
88		bus-width = <8>;
89		cap-mmc-highspeed;
90	};
91
92	mmc@12220000 {
93		status = "okay";
94		card-detect-delay = <200>;
95		samsung,dw-mshc-ciu-div = <3>;
96		samsung,dw-mshc-sdr-timing = <2 3>;
97		samsung,dw-mshc-ddr-timing = <1 2>;
98		pinctrl-names = "default";
99		pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
100		bus-width = <4>;
101		cap-sd-highspeed;
102	};
103
104	dp-controller@145B0000 {
105		pinctrl-names = "default";
106		pinctrl-0 = <&dp_hpd>;
107		samsung,color-space = <0>;
108		samsung,dynamic-range = <0>;
109		samsung,ycbcr-coeff = <0>;
110		samsung,color-depth = <1>;
111		samsung,link-rate = <0x0a>;
112		samsung,lane-count = <4>;
113		status = "okay";
114	};
115
116	fimd@14400000 {
117		status = "okay";
118		display-timings {
119			native-mode = <&timing0>;
120			timing0: timing@0 {
121				clock-frequency = <50000>;
122				hactive = <2560>;
123				vactive = <1600>;
124				hfront-porch = <48>;
125				hback-porch = <80>;
126				hsync-len = <32>;
127				vback-porch = <16>;
128				vfront-porch = <8>;
129				vsync-len = <6>;
130			};
131		};
132	};
133
134	pinctrl@13400000 {
135		hdmi_hpd_irq: hdmi-hpd-irq {
136			samsung,pins = "gpx3-7";
137			samsung,pin-function = <0>;
138			samsung,pin-pud = <1>;
139			samsung,pin-drv = <0>;
140		};
141	};
142
143	pinctrl@14000000 {
144		usb300_vbus_en: usb300-vbus-en {
145			samsung,pins = "gpg0-5";
146			samsung,pin-function = <1>;
147			samsung,pin-pud = <0>;
148			samsung,pin-drv = <0>;
149		};
150
151		usb301_vbus_en: usb301-vbus-en {
152			samsung,pins = "gpg1-4";
153			samsung,pin-function = <1>;
154			samsung,pin-pud = <0>;
155			samsung,pin-drv = <0>;
156		};
157	};
158
159	hdmi@14530000 {
160		status = "okay";
161		hpd-gpio = <&gpx3 7 0>;
162		pinctrl-names = "default";
163		pinctrl-0 = <&hdmi_hpd_irq>;
164	};
165
166	usb300_vbus_reg: regulator-usb300 {
167		compatible = "regulator-fixed";
168		regulator-name = "VBUS0";
169		regulator-min-microvolt = <5000000>;
170		regulator-max-microvolt = <5000000>;
171		gpio = <&gpg0 5 0>;
172		pinctrl-names = "default";
173		pinctrl-0 = <&usb300_vbus_en>;
174		enable-active-high;
175	};
176
177	usb301_vbus_reg: regulator-usb301 {
178		compatible = "regulator-fixed";
179		regulator-name = "VBUS1";
180		regulator-min-microvolt = <5000000>;
181		regulator-max-microvolt = <5000000>;
182		gpio = <&gpg1 4 0>;
183		pinctrl-names = "default";
184		pinctrl-0 = <&usb301_vbus_en>;
185		enable-active-high;
186	};
187
188	phy@12100000 {
189		vbus-supply = <&usb300_vbus_reg>;
190	};
191
192	phy@12500000 {
193		vbus-supply = <&usb301_vbus_reg>;
194	};
195
196	i2c_2: i2c@12C80000 {
197		samsung,i2c-sda-delay = <100>;
198		samsung,i2c-max-bus-freq = <66000>;
199		status = "okay";
200
201		hdmiddc@50 {
202			compatible = "samsung,exynos4210-hdmiddc";
203			reg = <0x50>;
204		};
205	};
206
207	hsi2c_4: i2c@12CA0000 {
208		status = "okay";
209
210		s2mps11_pmic@66 {
211			compatible = "samsung,s2mps11-pmic";
212			reg = <0x66>;
213			s2mps11,buck2-ramp-delay = <12>;
214			s2mps11,buck34-ramp-delay = <12>;
215			s2mps11,buck16-ramp-delay = <12>;
216			s2mps11,buck6-ramp-enable = <1>;
217			s2mps11,buck2-ramp-enable = <1>;
218			s2mps11,buck3-ramp-enable = <1>;
219			s2mps11,buck4-ramp-enable = <1>;
220
221			s2mps11_osc: clocks {
222				#clock-cells = <1>;
223				clock-output-names = "s2mps11_ap",
224						"s2mps11_cp", "s2mps11_bt";
225			};
226
227			regulators {
228				ldo1_reg: LDO1 {
229					regulator-name = "vdd_ldo1";
230					regulator-min-microvolt = <1000000>;
231					regulator-max-microvolt = <1000000>;
232					regulator-always-on;
233				};
234
235				ldo3_reg: LDO3 {
236					regulator-name = "vdd_ldo3";
237					regulator-min-microvolt = <1800000>;
238					regulator-max-microvolt = <1800000>;
239					regulator-always-on;
240				};
241
242				ldo5_reg: LDO5 {
243					regulator-name = "vdd_ldo5";
244					regulator-min-microvolt = <1800000>;
245					regulator-max-microvolt = <1800000>;
246					regulator-always-on;
247				};
248
249				ldo6_reg: LDO6 {
250					regulator-name = "vdd_ldo6";
251					regulator-min-microvolt = <1000000>;
252					regulator-max-microvolt = <1000000>;
253					regulator-always-on;
254				};
255
256				ldo7_reg: LDO7 {
257					regulator-name = "vdd_ldo7";
258					regulator-min-microvolt = <1800000>;
259					regulator-max-microvolt = <1800000>;
260					regulator-always-on;
261				};
262
263				ldo8_reg: LDO8 {
264					regulator-name = "vdd_ldo8";
265					regulator-min-microvolt = <1800000>;
266					regulator-max-microvolt = <1800000>;
267					regulator-always-on;
268				};
269
270				ldo9_reg: LDO9 {
271					regulator-name = "vdd_ldo9";
272					regulator-min-microvolt = <3000000>;
273					regulator-max-microvolt = <3000000>;
274					regulator-always-on;
275				};
276
277				ldo10_reg: LDO10 {
278					regulator-name = "vdd_ldo10";
279					regulator-min-microvolt = <1800000>;
280					regulator-max-microvolt = <1800000>;
281					regulator-always-on;
282				};
283
284				ldo11_reg: LDO11 {
285					regulator-name = "vdd_ldo11";
286					regulator-min-microvolt = <1000000>;
287					regulator-max-microvolt = <1000000>;
288					regulator-always-on;
289				};
290
291				ldo12_reg: LDO12 {
292					regulator-name = "vdd_ldo12";
293					regulator-min-microvolt = <1800000>;
294					regulator-max-microvolt = <1800000>;
295					regulator-always-on;
296				};
297
298				ldo13_reg: LDO13 {
299					regulator-name = "vdd_ldo13";
300					regulator-min-microvolt = <2800000>;
301					regulator-max-microvolt = <2800000>;
302					regulator-always-on;
303				};
304
305				ldo15_reg: LDO15 {
306					regulator-name = "vdd_ldo15";
307					regulator-min-microvolt = <3100000>;
308					regulator-max-microvolt = <3100000>;
309					regulator-always-on;
310				};
311
312				ldo16_reg: LDO16 {
313					regulator-name = "vdd_ldo16";
314					regulator-min-microvolt = <2200000>;
315					regulator-max-microvolt = <2200000>;
316					regulator-always-on;
317				};
318
319				ldo17_reg: LDO17 {
320					regulator-name = "tsp_avdd";
321					regulator-min-microvolt = <3300000>;
322					regulator-max-microvolt = <3300000>;
323					regulator-always-on;
324				};
325
326				ldo19_reg: LDO19 {
327					regulator-name = "vdd_sd";
328					regulator-min-microvolt = <2800000>;
329					regulator-max-microvolt = <2800000>;
330					regulator-always-on;
331				};
332
333				ldo24_reg: LDO24 {
334					regulator-name = "tsp_io";
335					regulator-min-microvolt = <2800000>;
336					regulator-max-microvolt = <2800000>;
337					regulator-always-on;
338				};
339
340				buck1_reg: BUCK1 {
341					regulator-name = "vdd_mif";
342					regulator-min-microvolt = <800000>;
343					regulator-max-microvolt = <1300000>;
344					regulator-always-on;
345					regulator-boot-on;
346				};
347
348				buck2_reg: BUCK2 {
349					regulator-name = "vdd_arm";
350					regulator-min-microvolt = <800000>;
351					regulator-max-microvolt = <1500000>;
352					regulator-always-on;
353					regulator-boot-on;
354				};
355
356				buck3_reg: BUCK3 {
357					regulator-name = "vdd_int";
358					regulator-min-microvolt = <800000>;
359					regulator-max-microvolt = <1400000>;
360					regulator-always-on;
361					regulator-boot-on;
362				};
363
364				buck4_reg: BUCK4 {
365					regulator-name = "vdd_g3d";
366					regulator-min-microvolt = <800000>;
367					regulator-max-microvolt = <1400000>;
368					regulator-always-on;
369					regulator-boot-on;
370				};
371
372				buck5_reg: BUCK5 {
373					regulator-name = "vdd_mem";
374					regulator-min-microvolt = <800000>;
375					regulator-max-microvolt = <1400000>;
376					regulator-always-on;
377					regulator-boot-on;
378				};
379
380				buck6_reg: BUCK6 {
381					regulator-name = "vdd_kfc";
382					regulator-min-microvolt = <800000>;
383					regulator-max-microvolt = <1500000>;
384					regulator-always-on;
385					regulator-boot-on;
386				};
387
388				buck7_reg: BUCK7 {
389					regulator-name = "vdd_1.0v_ldo";
390					regulator-min-microvolt = <800000>;
391					regulator-max-microvolt = <1500000>;
392					regulator-always-on;
393					regulator-boot-on;
394				};
395
396				buck8_reg: BUCK8 {
397					regulator-name = "vdd_1.8v_ldo";
398					regulator-min-microvolt = <800000>;
399					regulator-max-microvolt = <1500000>;
400					regulator-always-on;
401					regulator-boot-on;
402				};
403
404				buck9_reg: BUCK9 {
405					regulator-name = "vdd_2.8v_ldo";
406					regulator-min-microvolt = <3000000>;
407					regulator-max-microvolt = <3750000>;
408					regulator-always-on;
409					regulator-boot-on;
410				};
411
412				buck10_reg: BUCK10 {
413					regulator-name = "vdd_vmem";
414					regulator-min-microvolt = <2850000>;
415					regulator-max-microvolt = <2850000>;
416					regulator-always-on;
417					regulator-boot-on;
418				};
419			};
420		};
421	};
422};
423