arm: dts: rk3288-evb: 32.768K clk node for BT
[firefly-linux-kernel-4.4.55.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,color-depth = <1>;
84         samsung,link-rate = <0x0a>;
85         samsung,lane-count = <4>;
86
87         pinctrl-names = "default";
88         pinctrl-0 = <&dp_hpd>;
89         status = "okay";
90
91         display-timings {
92                 native-mode = <&timing0>;
93
94                 timing0: timing@0 {
95                         /* 1280x800 */
96                         clock-frequency = <50000>;
97                         hactive = <1280>;
98                         vactive = <800>;
99                         hfront-porch = <4>;
100                         hback-porch = <4>;
101                         hsync-len = <4>;
102                         vback-porch = <4>;
103                         vfront-porch = <4>;
104                         vsync-len = <4>;
105                 };
106         };
107 };
108
109 &ehci {
110         samsung,vbus-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
111 };
112
113 &fimd {
114         status = "okay";
115 };
116
117 &hdmi {
118         hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
119 };
120
121 &i2c_0 {
122         status = "okay";
123         samsung,i2c-sda-delay = <100>;
124         samsung,i2c-max-bus-freq = <20000>;
125
126         eeprom@50 {
127                 compatible = "samsung,s524ad0xd1";
128                 reg = <0x50>;
129         };
130
131         max77686@09 {
132                 compatible = "maxim,max77686";
133                 reg = <0x09>;
134                 interrupt-parent = <&gpx3>;
135                 interrupts = <2 IRQ_TYPE_NONE>;
136                 pinctrl-names = "default";
137                 pinctrl-0 = <&max77686_irq>;
138                 wakeup-source;
139
140                 voltage-regulators {
141                         ldo1_reg: LDO1 {
142                                 regulator-name = "P1.0V_LDO_OUT1";
143                                 regulator-min-microvolt = <1000000>;
144                                 regulator-max-microvolt = <1000000>;
145                                 regulator-always-on;
146                         };
147
148                         ldo2_reg: LDO2 {
149                                 regulator-name = "P1.2V_LDO_OUT2";
150                                 regulator-min-microvolt = <1200000>;
151                                 regulator-max-microvolt = <1200000>;
152                                 regulator-always-on;
153                         };
154
155                         ldo3_reg: LDO3 {
156                                 regulator-name = "P1.8V_LDO_OUT3";
157                                 regulator-min-microvolt = <1800000>;
158                                 regulator-max-microvolt = <1800000>;
159                                 regulator-always-on;
160                         };
161
162                         ldo4_reg: LDO4 {
163                                 regulator-name = "P2.8V_LDO_OUT4";
164                                 regulator-min-microvolt = <2800000>;
165                                 regulator-max-microvolt = <2800000>;
166                         };
167
168                         ldo5_reg: LDO5 {
169                                 regulator-name = "P1.8V_LDO_OUT5";
170                                 regulator-min-microvolt = <1800000>;
171                                 regulator-max-microvolt = <1800000>;
172                         };
173
174                         ldo6_reg: LDO6 {
175                                 regulator-name = "P1.1V_LDO_OUT6";
176                                 regulator-min-microvolt = <1100000>;
177                                 regulator-max-microvolt = <1100000>;
178                                 regulator-always-on;
179                         };
180
181                         ldo7_reg: LDO7 {
182                                 regulator-name = "P1.1V_LDO_OUT7";
183                                 regulator-min-microvolt = <1100000>;
184                                 regulator-max-microvolt = <1100000>;
185                                 regulator-always-on;
186                         };
187
188                         ldo8_reg: LDO8 {
189                                 regulator-name = "P1.0V_LDO_OUT8";
190                                 regulator-min-microvolt = <1000000>;
191                                 regulator-max-microvolt = <1000000>;
192                         };
193
194                         ldo10_reg: LDO10 {
195                                 regulator-name = "P1.8V_LDO_OUT10";
196                                 regulator-min-microvolt = <1800000>;
197                                 regulator-max-microvolt = <1800000>;
198                                 regulator-always-on;
199                         };
200
201                         ldo11_reg: LDO11 {
202                                 regulator-name = "P1.8V_LDO_OUT11";
203                                 regulator-min-microvolt = <1800000>;
204                                 regulator-max-microvolt = <1800000>;
205                         };
206
207                         ldo12_reg: LDO12 {
208                                 regulator-name = "P3.0V_LDO_OUT12";
209                                 regulator-min-microvolt = <3000000>;
210                                 regulator-max-microvolt = <3000000>;
211                         };
212
213                         ldo13_reg: LDO13 {
214                                 regulator-name = "P1.8V_LDO_OUT13";
215                                 regulator-min-microvolt = <1800000>;
216                                 regulator-max-microvolt = <1800000>;
217                         };
218
219                         ldo14_reg: LDO14 {
220                                 regulator-name = "P1.8V_LDO_OUT14";
221                                 regulator-min-microvolt = <1800000>;
222                                 regulator-max-microvolt = <1800000>;
223                         };
224
225                         ldo15_reg: LDO15 {
226                                 regulator-name = "P1.0V_LDO_OUT15";
227                                 regulator-min-microvolt = <1000000>;
228                                 regulator-max-microvolt = <1000000>;
229                         };
230
231                         ldo16_reg: LDO16 {
232                                 regulator-name = "P1.8V_LDO_OUT16";
233                                 regulator-min-microvolt = <1800000>;
234                                 regulator-max-microvolt = <1800000>;
235                         };
236
237                         buck1_reg: BUCK1 {
238                                 regulator-name = "vdd_mif";
239                                 regulator-min-microvolt = <950000>;
240                                 regulator-max-microvolt = <1300000>;
241                                 regulator-always-on;
242                                 regulator-boot-on;
243                         };
244
245                         buck2_reg: BUCK2 {
246                                 regulator-name = "vdd_arm";
247                                 regulator-min-microvolt = <850000>;
248                                 regulator-max-microvolt = <1350000>;
249                                 regulator-always-on;
250                                 regulator-boot-on;
251                         };
252
253                         buck3_reg: BUCK3 {
254                                 regulator-name = "vdd_int";
255                                 regulator-min-microvolt = <900000>;
256                                 regulator-max-microvolt = <1200000>;
257                                 regulator-always-on;
258                                 regulator-boot-on;
259                         };
260
261                         buck4_reg: BUCK4 {
262                                 regulator-name = "vdd_g3d";
263                                 regulator-min-microvolt = <850000>;
264                                 regulator-max-microvolt = <1300000>;
265                                 regulator-always-on;
266                                 regulator-boot-on;
267                         };
268
269                         buck5_reg: BUCK5 {
270                                 regulator-name = "P1.8V_BUCK_OUT5";
271                                 regulator-min-microvolt = <1800000>;
272                                 regulator-max-microvolt = <1800000>;
273                                 regulator-always-on;
274                                 regulator-boot-on;
275                         };
276                 };
277         };
278 };
279
280 &i2c_1 {
281         status = "okay";
282         samsung,i2c-sda-delay = <100>;
283         samsung,i2c-max-bus-freq = <20000>;
284
285         eeprom@51 {
286                 compatible = "samsung,s524ad0xd1";
287                 reg = <0x51>;
288         };
289
290         wm8994: wm8994@1a {
291                 compatible = "wlf,wm8994";
292                 reg = <0x1a>;
293
294                 gpio-controller;
295                 #gpio-cells = <2>;
296
297                 clocks = <&codec_mclk>;
298                 clock-names = "MCLK1";
299
300                 AVDD2-supply = <&vdd>;
301                 CPVDD-supply = <&vdd>;
302                 DBVDD-supply = <&dbvdd>;
303                 SPKVDD1-supply = <&spkvdd>;
304                 SPKVDD2-supply = <&spkvdd>;
305         };
306 };
307
308 &i2c_2 {
309         status = "okay";
310         samsung,i2c-sda-delay = <100>;
311         samsung,i2c-max-bus-freq = <66000>;
312
313         hdmiddc@50 {
314                 compatible = "samsung,exynos4210-hdmiddc";
315                 reg = <0x50>;
316         };
317 };
318
319 &i2c_8 {
320         status = "okay";
321         samsung,i2c-sda-delay = <100>;
322         samsung,i2c-max-bus-freq = <66000>;
323
324         hdmiphy@38 {
325                 compatible = "samsung,exynos4212-hdmiphy";
326                 reg = <0x38>;
327         };
328 };
329
330 &i2c_9 {
331         status = "okay";
332         samsung,i2c-sda-delay = <100>;
333         samsung,i2c-max-bus-freq = <40000>;
334         samsung,i2c-slave-addr = <0x38>;
335
336         sata_phy_i2c: sata-phy@38 {
337                 compatible = "samsung,exynos-sataphy-i2c";
338                 reg = <0x38>;
339         };
340 };
341
342 &i2s0 {
343         status = "okay";
344 };
345
346 &mfc {
347         samsung,mfc-r = <0x43000000 0x800000>;
348         samsung,mfc-l = <0x51000000 0x800000>;
349 };
350
351 &mmc_0 {
352         status = "okay";
353         num-slots = <1>;
354         broken-cd;
355         card-detect-delay = <200>;
356         samsung,dw-mshc-ciu-div = <3>;
357         samsung,dw-mshc-sdr-timing = <2 3>;
358         samsung,dw-mshc-ddr-timing = <1 2>;
359         pinctrl-names = "default";
360         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
361         bus-width = <8>;
362         cap-mmc-highspeed;
363 };
364
365 &mmc_2 {
366         status = "okay";
367         num-slots = <1>;
368         card-detect-delay = <200>;
369         samsung,dw-mshc-ciu-div = <3>;
370         samsung,dw-mshc-sdr-timing = <2 3>;
371         samsung,dw-mshc-ddr-timing = <1 2>;
372         pinctrl-names = "default";
373         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
374         bus-width = <4>;
375         disable-wp;
376         cap-sd-highspeed;
377 };
378
379 &rtc {
380         status = "okay";
381 };
382
383 &sata {
384         status = "okay";
385 };
386
387 &sata_phy {
388         status = "okay";
389         samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
390 };
391
392 &spi_1 {
393         status = "okay";
394         cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>;
395
396         w25q80bw@0 {
397                 #address-cells = <1>;
398                 #size-cells = <1>;
399                 compatible = "w25x80";
400                 reg = <0>;
401                 spi-max-frequency = <1000000>;
402
403                 controller-data {
404                         samsung,spi-feedback-delay = <0>;
405                 };
406
407                 partition@0 {
408                         label = "U-Boot";
409                         reg = <0x0 0x40000>;
410                         read-only;
411                 };
412
413                 partition@40000 {
414                         label = "Kernel";
415                         reg = <0x40000 0xc0000>;
416                 };
417         };
418 };
419
420 &pinctrl_0 {
421         max77686_irq: max77686-irq {
422                 samsung,pins = "gpx3-2";
423                 samsung,pin-function = <0xf>;
424                 samsung,pin-pud = <0>;
425                 samsung,pin-drv = <0>;
426         };
427 };