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