Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git] / arch / arm / boot / dts / exynos5250-smdk5250.dts
1 /*
2  * SAMSUNG SMDK5250 board device tree source
3  *
4  * Copyright (c) 2012 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 <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include "exynos5250.dtsi"
16 #include "exynos-mfc-reserved-memory.dtsi"
17
18 / {
19         model = "SAMSUNG SMDK5250 board based on EXYNOS5250";
20         compatible = "samsung,smdk5250", "samsung,exynos5250", "samsung,exynos5";
21
22         aliases {
23         };
24
25         memory@40000000 {
26                 device_type = "memory";
27                 reg = <0x40000000 0x80000000>;
28         };
29
30         chosen {
31                 bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc";
32         };
33
34         vdd: fixed-regulator-vdd {
35                 compatible = "regulator-fixed";
36                 regulator-name = "vdd-supply";
37                 regulator-min-microvolt = <1800000>;
38                 regulator-max-microvolt = <1800000>;
39                 regulator-always-on;
40         };
41
42         dbvdd: fixed-regulator-dbvdd {
43                 compatible = "regulator-fixed";
44                 regulator-name = "dbvdd-supply";
45                 regulator-min-microvolt = <3300000>;
46                 regulator-max-microvolt = <3300000>;
47                 regulator-always-on;
48         };
49
50         spkvdd: fixed-regulator-spkvdd {
51                 compatible = "regulator-fixed";
52                 regulator-name = "spkvdd-supply";
53                 regulator-min-microvolt = <5000000>;
54                 regulator-max-microvolt = <5000000>;
55                 regulator-always-on;
56         };
57
58         sound {
59                 compatible = "samsung,smdk-wm8994";
60
61                 samsung,i2s-controller = <&i2s0>;
62                 samsung,audio-codec = <&wm8994>;
63         };
64
65         fixed-rate-clocks {
66                 xxti {
67                         compatible = "samsung,clock-xxti";
68                         clock-frequency = <24000000>;
69                 };
70
71                 codec_mclk: codec-mclk {
72                         compatible = "fixed-clock";
73                         #clock-cells = <0>;
74                         clock-frequency = <16934000>;
75                 };
76         };
77 };
78
79 &cpu0 {
80         cpu0-supply = <&buck2_reg>;
81 };
82
83 &dp {
84         samsung,color-space = <0>;
85         samsung,color-depth = <1>;
86         samsung,link-rate = <0x0a>;
87         samsung,lane-count = <4>;
88
89         pinctrl-names = "default";
90         pinctrl-0 = <&dp_hpd>;
91         status = "okay";
92
93         display-timings {
94                 native-mode = <&timing0>;
95
96                 timing0: timing {
97                         /* 1280x800 */
98                         clock-frequency = <50000>;
99                         hactive = <1280>;
100                         vactive = <800>;
101                         hfront-porch = <4>;
102                         hback-porch = <4>;
103                         hsync-len = <4>;
104                         vback-porch = <4>;
105                         vfront-porch = <4>;
106                         vsync-len = <4>;
107                 };
108         };
109 };
110
111 &ehci {
112         samsung,vbus-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
113 };
114
115 &fimd {
116         status = "okay";
117 };
118
119 &hdmi {
120         hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
121 };
122
123 &i2c_0 {
124         status = "okay";
125         samsung,i2c-sda-delay = <100>;
126         samsung,i2c-max-bus-freq = <20000>;
127
128         eeprom@50 {
129                 compatible = "samsung,s524ad0xd1";
130                 reg = <0x50>;
131         };
132
133         max77686@09 {
134                 compatible = "maxim,max77686";
135                 reg = <0x09>;
136                 interrupt-parent = <&gpx3>;
137                 interrupts = <2 IRQ_TYPE_NONE>;
138                 pinctrl-names = "default";
139                 pinctrl-0 = <&max77686_irq>;
140                 wakeup-source;
141
142                 voltage-regulators {
143                         ldo1_reg: LDO1 {
144                                 regulator-name = "P1.0V_LDO_OUT1";
145                                 regulator-min-microvolt = <1000000>;
146                                 regulator-max-microvolt = <1000000>;
147                                 regulator-always-on;
148                         };
149
150                         ldo2_reg: LDO2 {
151                                 regulator-name = "P1.2V_LDO_OUT2";
152                                 regulator-min-microvolt = <1200000>;
153                                 regulator-max-microvolt = <1200000>;
154                                 regulator-always-on;
155                         };
156
157                         ldo3_reg: LDO3 {
158                                 regulator-name = "P1.8V_LDO_OUT3";
159                                 regulator-min-microvolt = <1800000>;
160                                 regulator-max-microvolt = <1800000>;
161                                 regulator-always-on;
162                         };
163
164                         ldo4_reg: LDO4 {
165                                 regulator-name = "P2.8V_LDO_OUT4";
166                                 regulator-min-microvolt = <2800000>;
167                                 regulator-max-microvolt = <2800000>;
168                         };
169
170                         ldo5_reg: LDO5 {
171                                 regulator-name = "P1.8V_LDO_OUT5";
172                                 regulator-min-microvolt = <1800000>;
173                                 regulator-max-microvolt = <1800000>;
174                         };
175
176                         ldo6_reg: LDO6 {
177                                 regulator-name = "P1.1V_LDO_OUT6";
178                                 regulator-min-microvolt = <1100000>;
179                                 regulator-max-microvolt = <1100000>;
180                                 regulator-always-on;
181                         };
182
183                         ldo7_reg: LDO7 {
184                                 regulator-name = "P1.1V_LDO_OUT7";
185                                 regulator-min-microvolt = <1100000>;
186                                 regulator-max-microvolt = <1100000>;
187                                 regulator-always-on;
188                         };
189
190                         ldo8_reg: LDO8 {
191                                 regulator-name = "P1.0V_LDO_OUT8";
192                                 regulator-min-microvolt = <1000000>;
193                                 regulator-max-microvolt = <1000000>;
194                         };
195
196                         ldo10_reg: LDO10 {
197                                 regulator-name = "P1.8V_LDO_OUT10";
198                                 regulator-min-microvolt = <1800000>;
199                                 regulator-max-microvolt = <1800000>;
200                                 regulator-always-on;
201                         };
202
203                         ldo11_reg: LDO11 {
204                                 regulator-name = "P1.8V_LDO_OUT11";
205                                 regulator-min-microvolt = <1800000>;
206                                 regulator-max-microvolt = <1800000>;
207                         };
208
209                         ldo12_reg: LDO12 {
210                                 regulator-name = "P3.0V_LDO_OUT12";
211                                 regulator-min-microvolt = <3000000>;
212                                 regulator-max-microvolt = <3000000>;
213                         };
214
215                         ldo13_reg: LDO13 {
216                                 regulator-name = "P1.8V_LDO_OUT13";
217                                 regulator-min-microvolt = <1800000>;
218                                 regulator-max-microvolt = <1800000>;
219                         };
220
221                         ldo14_reg: LDO14 {
222                                 regulator-name = "P1.8V_LDO_OUT14";
223                                 regulator-min-microvolt = <1800000>;
224                                 regulator-max-microvolt = <1800000>;
225                         };
226
227                         ldo15_reg: LDO15 {
228                                 regulator-name = "P1.0V_LDO_OUT15";
229                                 regulator-min-microvolt = <1000000>;
230                                 regulator-max-microvolt = <1000000>;
231                         };
232
233                         ldo16_reg: LDO16 {
234                                 regulator-name = "P1.8V_LDO_OUT16";
235                                 regulator-min-microvolt = <1800000>;
236                                 regulator-max-microvolt = <1800000>;
237                         };
238
239                         buck1_reg: BUCK1 {
240                                 regulator-name = "vdd_mif";
241                                 regulator-min-microvolt = <950000>;
242                                 regulator-max-microvolt = <1300000>;
243                                 regulator-always-on;
244                                 regulator-boot-on;
245                         };
246
247                         buck2_reg: BUCK2 {
248                                 regulator-name = "vdd_arm";
249                                 regulator-min-microvolt = <850000>;
250                                 regulator-max-microvolt = <1350000>;
251                                 regulator-always-on;
252                                 regulator-boot-on;
253                         };
254
255                         buck3_reg: BUCK3 {
256                                 regulator-name = "vdd_int";
257                                 regulator-min-microvolt = <900000>;
258                                 regulator-max-microvolt = <1200000>;
259                                 regulator-always-on;
260                                 regulator-boot-on;
261                         };
262
263                         buck4_reg: BUCK4 {
264                                 regulator-name = "vdd_g3d";
265                                 regulator-min-microvolt = <850000>;
266                                 regulator-max-microvolt = <1300000>;
267                                 regulator-always-on;
268                                 regulator-boot-on;
269                         };
270
271                         buck5_reg: BUCK5 {
272                                 regulator-name = "P1.8V_BUCK_OUT5";
273                                 regulator-min-microvolt = <1800000>;
274                                 regulator-max-microvolt = <1800000>;
275                                 regulator-always-on;
276                                 regulator-boot-on;
277                         };
278                 };
279         };
280 };
281
282 &i2c_1 {
283         status = "okay";
284         samsung,i2c-sda-delay = <100>;
285         samsung,i2c-max-bus-freq = <20000>;
286
287         eeprom@51 {
288                 compatible = "samsung,s524ad0xd1";
289                 reg = <0x51>;
290         };
291
292         wm8994: wm8994@1a {
293                 compatible = "wlf,wm8994";
294                 reg = <0x1a>;
295
296                 gpio-controller;
297                 #gpio-cells = <2>;
298
299                 clocks = <&codec_mclk>;
300                 clock-names = "MCLK1";
301
302                 AVDD2-supply = <&vdd>;
303                 CPVDD-supply = <&vdd>;
304                 DBVDD-supply = <&dbvdd>;
305                 SPKVDD1-supply = <&spkvdd>;
306                 SPKVDD2-supply = <&spkvdd>;
307         };
308 };
309
310 &i2c_2 {
311         status = "okay";
312         samsung,i2c-sda-delay = <100>;
313         samsung,i2c-max-bus-freq = <66000>;
314
315         hdmiddc@50 {
316                 compatible = "samsung,exynos4210-hdmiddc";
317                 reg = <0x50>;
318         };
319 };
320
321 &i2c_8 {
322         status = "okay";
323         samsung,i2c-sda-delay = <100>;
324         samsung,i2c-max-bus-freq = <66000>;
325
326         hdmiphy@38 {
327                 compatible = "samsung,exynos4212-hdmiphy";
328                 reg = <0x38>;
329         };
330 };
331
332 &i2c_9 {
333         status = "okay";
334         samsung,i2c-sda-delay = <100>;
335         samsung,i2c-max-bus-freq = <40000>;
336         samsung,i2c-slave-addr = <0x38>;
337
338         sata_phy_i2c: sata-phy@38 {
339                 compatible = "samsung,exynos-sataphy-i2c";
340                 reg = <0x38>;
341         };
342 };
343
344 &i2s0 {
345         status = "okay";
346 };
347
348 &mmc_0 {
349         status = "okay";
350         num-slots = <1>;
351         broken-cd;
352         card-detect-delay = <200>;
353         samsung,dw-mshc-ciu-div = <3>;
354         samsung,dw-mshc-sdr-timing = <2 3>;
355         samsung,dw-mshc-ddr-timing = <1 2>;
356         pinctrl-names = "default";
357         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
358         bus-width = <8>;
359         cap-mmc-highspeed;
360 };
361
362 &mmc_2 {
363         status = "okay";
364         num-slots = <1>;
365         card-detect-delay = <200>;
366         samsung,dw-mshc-ciu-div = <3>;
367         samsung,dw-mshc-sdr-timing = <2 3>;
368         samsung,dw-mshc-ddr-timing = <1 2>;
369         pinctrl-names = "default";
370         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
371         bus-width = <4>;
372         disable-wp;
373         cap-sd-highspeed;
374 };
375
376 &rtc {
377         status = "okay";
378 };
379
380 &sata {
381         status = "okay";
382 };
383
384 &sata_phy {
385         status = "okay";
386         samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
387 };
388
389 &spi_1 {
390         status = "okay";
391         cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>;
392
393         w25q80bw@0 {
394                 #address-cells = <1>;
395                 #size-cells = <1>;
396                 compatible = "w25x80";
397                 reg = <0>;
398                 spi-max-frequency = <1000000>;
399
400                 controller-data {
401                         samsung,spi-feedback-delay = <0>;
402                 };
403
404                 partition@0 {
405                         label = "U-Boot";
406                         reg = <0x0 0x40000>;
407                         read-only;
408                 };
409
410                 partition@40000 {
411                         label = "Kernel";
412                         reg = <0x40000 0xc0000>;
413                 };
414         };
415 };
416
417 &pinctrl_0 {
418         max77686_irq: max77686-irq {
419                 samsung,pins = "gpx3-2";
420                 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
421                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
422                 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
423         };
424 };