]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/exynos5250-smdk5250.dts
mfd: max77843: Fix max77843_chg_init() return on error
[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 &cpu0 {
78         cpu0-supply = <&buck2_reg>;
79 };
80
81 &dp {
82         samsung,color-space = <0>;
83         samsung,dynamic-range = <0>;
84         samsung,ycbcr-coeff = <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
94 &ehci {
95         samsung,vbus-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
96 };
97
98 &fimd {
99         status = "okay";
100
101         display-timings {
102                 native-mode = <&timing0>;
103
104                 timing0: timing@0 {
105                         /* 1280x800 */
106                         clock-frequency = <50000>;
107                         hactive = <1280>;
108                         vactive = <800>;
109                         hfront-porch = <4>;
110                         hback-porch = <4>;
111                         hsync-len = <4>;
112                         vback-porch = <4>;
113                         vfront-porch = <4>;
114                         vsync-len = <4>;
115                 };
116         };
117 };
118
119 &hdmi {
120         hpd-gpio = <&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                         };
201
202                         ldo11_reg: LDO11 {
203                                 regulator-name = "P1.8V_LDO_OUT11";
204                                 regulator-min-microvolt = <1800000>;
205                                 regulator-max-microvolt = <1800000>;
206                         };
207
208                         ldo12_reg: LDO12 {
209                                 regulator-name = "P3.0V_LDO_OUT12";
210                                 regulator-min-microvolt = <3000000>;
211                                 regulator-max-microvolt = <3000000>;
212                         };
213
214                         ldo13_reg: LDO13 {
215                                 regulator-name = "P1.8V_LDO_OUT13";
216                                 regulator-min-microvolt = <1800000>;
217                                 regulator-max-microvolt = <1800000>;
218                         };
219
220                         ldo14_reg: LDO14 {
221                                 regulator-name = "P1.8V_LDO_OUT14";
222                                 regulator-min-microvolt = <1800000>;
223                                 regulator-max-microvolt = <1800000>;
224                         };
225
226                         ldo15_reg: LDO15 {
227                                 regulator-name = "P1.0V_LDO_OUT15";
228                                 regulator-min-microvolt = <1000000>;
229                                 regulator-max-microvolt = <1000000>;
230                         };
231
232                         ldo16_reg: LDO16 {
233                                 regulator-name = "P1.8V_LDO_OUT16";
234                                 regulator-min-microvolt = <1800000>;
235                                 regulator-max-microvolt = <1800000>;
236                         };
237
238                         buck1_reg: BUCK1 {
239                                 regulator-name = "vdd_mif";
240                                 regulator-min-microvolt = <950000>;
241                                 regulator-max-microvolt = <1300000>;
242                                 regulator-always-on;
243                                 regulator-boot-on;
244                         };
245
246                         buck2_reg: BUCK2 {
247                                 regulator-name = "vdd_arm";
248                                 regulator-min-microvolt = <850000>;
249                                 regulator-max-microvolt = <1350000>;
250                                 regulator-always-on;
251                                 regulator-boot-on;
252                         };
253
254                         buck3_reg: BUCK3 {
255                                 regulator-name = "vdd_int";
256                                 regulator-min-microvolt = <900000>;
257                                 regulator-max-microvolt = <1200000>;
258                                 regulator-always-on;
259                                 regulator-boot-on;
260                         };
261
262                         buck4_reg: BUCK4 {
263                                 regulator-name = "vdd_g3d";
264                                 regulator-min-microvolt = <850000>;
265                                 regulator-max-microvolt = <1300000>;
266                                 regulator-always-on;
267                                 regulator-boot-on;
268                         };
269
270                         buck5_reg: BUCK5 {
271                                 regulator-name = "P1.8V_BUCK_OUT5";
272                                 regulator-min-microvolt = <1800000>;
273                                 regulator-max-microvolt = <1800000>;
274                                 regulator-always-on;
275                                 regulator-boot-on;
276                         };
277                 };
278         };
279 };
280
281 &i2c_1 {
282         status = "okay";
283         samsung,i2c-sda-delay = <100>;
284         samsung,i2c-max-bus-freq = <20000>;
285
286         eeprom@51 {
287                 compatible = "samsung,s524ad0xd1";
288                 reg = <0x51>;
289         };
290
291         wm8994: wm8994@1a {
292                 compatible = "wlf,wm8994";
293                 reg = <0x1a>;
294
295                 gpio-controller;
296                 #gpio-cells = <2>;
297
298                 clocks = <&codec_mclk>;
299                 clock-names = "MCLK1";
300
301                 AVDD2-supply = <&vdd>;
302                 CPVDD-supply = <&vdd>;
303                 DBVDD-supply = <&dbvdd>;
304                 SPKVDD1-supply = <&spkvdd>;
305                 SPKVDD2-supply = <&spkvdd>;
306         };
307 };
308
309 &i2c_2 {
310         status = "okay";
311         samsung,i2c-sda-delay = <100>;
312         samsung,i2c-max-bus-freq = <66000>;
313
314         hdmiddc@50 {
315                 compatible = "samsung,exynos4210-hdmiddc";
316                 reg = <0x50>;
317         };
318 };
319
320 &i2c_8 {
321         status = "okay";
322         samsung,i2c-sda-delay = <100>;
323         samsung,i2c-max-bus-freq = <66000>;
324
325         hdmiphy@38 {
326                 compatible = "samsung,exynos4212-hdmiphy";
327                 reg = <0x38>;
328         };
329 };
330
331 &i2c_9 {
332         status = "okay";
333         samsung,i2c-sda-delay = <100>;
334         samsung,i2c-max-bus-freq = <40000>;
335         samsung,i2c-slave-addr = <0x38>;
336
337         sata_phy_i2c: sata-phy@38 {
338                 compatible = "samsung,exynos-sataphy-i2c";
339                 reg = <0x38>;
340         };
341 };
342
343 &i2s0 {
344         status = "okay";
345 };
346
347 &mfc {
348         samsung,mfc-r = <0x43000000 0x800000>;
349         samsung,mfc-l = <0x51000000 0x800000>;
350 };
351
352 &mmc_0 {
353         status = "okay";
354         num-slots = <1>;
355         broken-cd;
356         card-detect-delay = <200>;
357         samsung,dw-mshc-ciu-div = <3>;
358         samsung,dw-mshc-sdr-timing = <2 3>;
359         samsung,dw-mshc-ddr-timing = <1 2>;
360         pinctrl-names = "default";
361         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
362         bus-width = <8>;
363         cap-mmc-highspeed;
364 };
365
366 &mmc_2 {
367         status = "okay";
368         num-slots = <1>;
369         card-detect-delay = <200>;
370         samsung,dw-mshc-ciu-div = <3>;
371         samsung,dw-mshc-sdr-timing = <2 3>;
372         samsung,dw-mshc-ddr-timing = <1 2>;
373         pinctrl-names = "default";
374         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
375         bus-width = <4>;
376         disable-wp;
377         cap-sd-highspeed;
378 };
379
380 &rtc {
381         status = "okay";
382 };
383
384 &sata {
385         status = "okay";
386 };
387
388 &sata_phy {
389         status = "okay";
390         samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
391 };
392
393 &spi_1 {
394         status = "okay";
395         cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>;
396
397         w25q80bw@0 {
398                 #address-cells = <1>;
399                 #size-cells = <1>;
400                 compatible = "w25x80";
401                 reg = <0>;
402                 spi-max-frequency = <1000000>;
403
404                 controller-data {
405                         samsung,spi-feedback-delay = <0>;
406                 };
407
408                 partition@0 {
409                         label = "U-Boot";
410                         reg = <0x0 0x40000>;
411                         read-only;
412                 };
413
414                 partition@40000 {
415                         label = "Kernel";
416                         reg = <0x40000 0xc0000>;
417                 };
418         };
419 };
420
421 &pinctrl_0 {
422         max77686_irq: max77686-irq {
423                 samsung,pins = "gpx3-2";
424                 samsung,pin-function = <0xf>;
425                 samsung,pin-pud = <0>;
426                 samsung,pin-drv = <0>;
427         };
428 };