]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/exynos5250-smdk5250.dts
Merge remote-tracking branches 'regulator/fix/88pm800', 'regulator/fix/max8973',...
[karo-tx-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
17 / {
18         model = "SAMSUNG SMDK5250 board based on EXYNOS5250";
19         compatible = "samsung,smdk5250", "samsung,exynos5250", "samsung,exynos5";
20
21         aliases {
22         };
23
24         memory {
25                 reg = <0x40000000 0x80000000>;
26         };
27
28         chosen {
29                 bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc";
30         };
31
32         vdd: fixed-regulator@0 {
33                 compatible = "regulator-fixed";
34                 regulator-name = "vdd-supply";
35                 regulator-min-microvolt = <1800000>;
36                 regulator-max-microvolt = <1800000>;
37                 regulator-always-on;
38         };
39
40         dbvdd: fixed-regulator@1 {
41                 compatible = "regulator-fixed";
42                 regulator-name = "dbvdd-supply";
43                 regulator-min-microvolt = <3300000>;
44                 regulator-max-microvolt = <3300000>;
45                 regulator-always-on;
46         };
47
48         spkvdd: fixed-regulator@2 {
49                 compatible = "regulator-fixed";
50                 regulator-name = "spkvdd-supply";
51                 regulator-min-microvolt = <5000000>;
52                 regulator-max-microvolt = <5000000>;
53                 regulator-always-on;
54         };
55
56         sound {
57                 compatible = "samsung,smdk-wm8994";
58
59                 samsung,i2s-controller = <&i2s0>;
60                 samsung,audio-codec = <&wm8994>;
61         };
62
63         fixed-rate-clocks {
64                 xxti {
65                         compatible = "samsung,clock-xxti";
66                         clock-frequency = <24000000>;
67                 };
68
69                 codec_mclk: codec-mclk {
70                         compatible = "fixed-clock";
71                         #clock-cells = <0>;
72                         clock-frequency = <16934000>;
73                 };
74         };
75 };
76
77 &dp {
78         samsung,color-space = <0>;
79         samsung,dynamic-range = <0>;
80         samsung,ycbcr-coeff = <0>;
81         samsung,color-depth = <1>;
82         samsung,link-rate = <0x0a>;
83         samsung,lane-count = <4>;
84
85         pinctrl-names = "default";
86         pinctrl-0 = <&dp_hpd>;
87         status = "okay";
88 };
89
90 &ehci {
91         samsung,vbus-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
92 };
93
94 &fimd {
95         status = "okay";
96
97         display-timings {
98                 native-mode = <&timing0>;
99
100                 timing0: timing@0 {
101                         /* 1280x800 */
102                         clock-frequency = <50000>;
103                         hactive = <1280>;
104                         vactive = <800>;
105                         hfront-porch = <4>;
106                         hback-porch = <4>;
107                         hsync-len = <4>;
108                         vback-porch = <4>;
109                         vfront-porch = <4>;
110                         vsync-len = <4>;
111                 };
112         };
113 };
114
115 &hdmi {
116         hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
117 };
118
119 &i2c_0 {
120         status = "okay";
121         samsung,i2c-sda-delay = <100>;
122         samsung,i2c-max-bus-freq = <20000>;
123
124         eeprom@50 {
125                 compatible = "samsung,s524ad0xd1";
126                 reg = <0x50>;
127         };
128
129         max77686@09 {
130                 compatible = "maxim,max77686";
131                 reg = <0x09>;
132                 interrupt-parent = <&gpx3>;
133                 interrupts = <2 IRQ_TYPE_NONE>;
134                 pinctrl-names = "default";
135                 pinctrl-0 = <&max77686_irq>;
136                 wakeup-source;
137
138                 voltage-regulators {
139                         ldo1_reg: LDO1 {
140                                 regulator-name = "P1.0V_LDO_OUT1";
141                                 regulator-min-microvolt = <1000000>;
142                                 regulator-max-microvolt = <1000000>;
143                                 regulator-always-on;
144                         };
145
146                         ldo2_reg: LDO2 {
147                                 regulator-name = "P1.2V_LDO_OUT2";
148                                 regulator-min-microvolt = <1200000>;
149                                 regulator-max-microvolt = <1200000>;
150                                 regulator-always-on;
151                         };
152
153                         ldo3_reg: LDO3 {
154                                 regulator-name = "P1.8V_LDO_OUT3";
155                                 regulator-min-microvolt = <1800000>;
156                                 regulator-max-microvolt = <1800000>;
157                                 regulator-always-on;
158                         };
159
160                         ldo4_reg: LDO4 {
161                                 regulator-name = "P2.8V_LDO_OUT4";
162                                 regulator-min-microvolt = <2800000>;
163                                 regulator-max-microvolt = <2800000>;
164                         };
165
166                         ldo5_reg: LDO5 {
167                                 regulator-name = "P1.8V_LDO_OUT5";
168                                 regulator-min-microvolt = <1800000>;
169                                 regulator-max-microvolt = <1800000>;
170                         };
171
172                         ldo6_reg: LDO6 {
173                                 regulator-name = "P1.1V_LDO_OUT6";
174                                 regulator-min-microvolt = <1100000>;
175                                 regulator-max-microvolt = <1100000>;
176                                 regulator-always-on;
177                         };
178
179                         ldo7_reg: LDO7 {
180                                 regulator-name = "P1.1V_LDO_OUT7";
181                                 regulator-min-microvolt = <1100000>;
182                                 regulator-max-microvolt = <1100000>;
183                                 regulator-always-on;
184                         };
185
186                         ldo8_reg: LDO8 {
187                                 regulator-name = "P1.0V_LDO_OUT8";
188                                 regulator-min-microvolt = <1000000>;
189                                 regulator-max-microvolt = <1000000>;
190                         };
191
192                         ldo10_reg: LDO10 {
193                                 regulator-name = "P1.8V_LDO_OUT10";
194                                 regulator-min-microvolt = <1800000>;
195                                 regulator-max-microvolt = <1800000>;
196                         };
197
198                         ldo11_reg: LDO11 {
199                                 regulator-name = "P1.8V_LDO_OUT11";
200                                 regulator-min-microvolt = <1800000>;
201                                 regulator-max-microvolt = <1800000>;
202                         };
203
204                         ldo12_reg: LDO12 {
205                                 regulator-name = "P3.0V_LDO_OUT12";
206                                 regulator-min-microvolt = <3000000>;
207                                 regulator-max-microvolt = <3000000>;
208                         };
209
210                         ldo13_reg: LDO13 {
211                                 regulator-name = "P1.8V_LDO_OUT13";
212                                 regulator-min-microvolt = <1800000>;
213                                 regulator-max-microvolt = <1800000>;
214                         };
215
216                         ldo14_reg: LDO14 {
217                                 regulator-name = "P1.8V_LDO_OUT14";
218                                 regulator-min-microvolt = <1800000>;
219                                 regulator-max-microvolt = <1800000>;
220                         };
221
222                         ldo15_reg: LDO15 {
223                                 regulator-name = "P1.0V_LDO_OUT15";
224                                 regulator-min-microvolt = <1000000>;
225                                 regulator-max-microvolt = <1000000>;
226                         };
227
228                         ldo16_reg: LDO16 {
229                                 regulator-name = "P1.8V_LDO_OUT16";
230                                 regulator-min-microvolt = <1800000>;
231                                 regulator-max-microvolt = <1800000>;
232                         };
233
234                         buck1_reg: BUCK1 {
235                                 regulator-name = "vdd_mif";
236                                 regulator-min-microvolt = <950000>;
237                                 regulator-max-microvolt = <1300000>;
238                                 regulator-always-on;
239                                 regulator-boot-on;
240                         };
241
242                         buck2_reg: BUCK2 {
243                                 regulator-name = "vdd_arm";
244                                 regulator-min-microvolt = <850000>;
245                                 regulator-max-microvolt = <1350000>;
246                                 regulator-always-on;
247                                 regulator-boot-on;
248                         };
249
250                         buck3_reg: BUCK3 {
251                                 regulator-name = "vdd_int";
252                                 regulator-min-microvolt = <900000>;
253                                 regulator-max-microvolt = <1200000>;
254                                 regulator-always-on;
255                                 regulator-boot-on;
256                         };
257
258                         buck4_reg: BUCK4 {
259                                 regulator-name = "vdd_g3d";
260                                 regulator-min-microvolt = <850000>;
261                                 regulator-max-microvolt = <1300000>;
262                                 regulator-always-on;
263                                 regulator-boot-on;
264                         };
265
266                         buck5_reg: BUCK5 {
267                                 regulator-name = "P1.8V_BUCK_OUT5";
268                                 regulator-min-microvolt = <1800000>;
269                                 regulator-max-microvolt = <1800000>;
270                                 regulator-always-on;
271                                 regulator-boot-on;
272                         };
273                 };
274         };
275 };
276
277 &i2c_1 {
278         status = "okay";
279         samsung,i2c-sda-delay = <100>;
280         samsung,i2c-max-bus-freq = <20000>;
281
282         eeprom@51 {
283                 compatible = "samsung,s524ad0xd1";
284                 reg = <0x51>;
285         };
286
287         wm8994: wm8994@1a {
288                 compatible = "wlf,wm8994";
289                 reg = <0x1a>;
290
291                 gpio-controller;
292                 #gpio-cells = <2>;
293
294                 clocks = <&codec_mclk>;
295                 clock-names = "MCLK1";
296
297                 AVDD2-supply = <&vdd>;
298                 CPVDD-supply = <&vdd>;
299                 DBVDD-supply = <&dbvdd>;
300                 SPKVDD1-supply = <&spkvdd>;
301                 SPKVDD2-supply = <&spkvdd>;
302         };
303 };
304
305 &i2c_2 {
306         status = "okay";
307         samsung,i2c-sda-delay = <100>;
308         samsung,i2c-max-bus-freq = <66000>;
309
310         hdmiddc@50 {
311                 compatible = "samsung,exynos4210-hdmiddc";
312                 reg = <0x50>;
313         };
314 };
315
316 &i2c_8 {
317         status = "okay";
318         samsung,i2c-sda-delay = <100>;
319         samsung,i2c-max-bus-freq = <66000>;
320
321         hdmiphy@38 {
322                 compatible = "samsung,exynos4212-hdmiphy";
323                 reg = <0x38>;
324         };
325 };
326
327 &i2c_9 {
328         status = "okay";
329         samsung,i2c-sda-delay = <100>;
330         samsung,i2c-max-bus-freq = <40000>;
331         samsung,i2c-slave-addr = <0x38>;
332
333         sata_phy_i2c: sata-phy@38 {
334                 compatible = "samsung,exynos-sataphy-i2c";
335                 reg = <0x38>;
336         };
337 };
338
339 &i2s0 {
340         status = "okay";
341 };
342
343 &mfc {
344         samsung,mfc-r = <0x43000000 0x800000>;
345         samsung,mfc-l = <0x51000000 0x800000>;
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 = <0xf>;
421                 samsung,pin-pud = <0>;
422                 samsung,pin-drv = <0>;
423         };
424 };