Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / arm / boot / dts / exynos5250-smdk5250.dts
blob8b5a79a8720c67382e9f416932fefafcb6b8a0f6
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  */
9 /dts-v1/;
10 #include <dt-bindings/clock/maxim,max77686.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include "exynos5250.dtsi"
15 / {
16         model = "Samsung SMDK5250 board based on Exynos5250";
17         compatible = "samsung,smdk5250", "samsung,exynos5250", "samsung,exynos5";
19         aliases {
20         };
22         memory@40000000 {
23                 device_type = "memory";
24                 reg = <0x40000000 0x80000000>;
25         };
27         chosen {
28                 bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M init=/linuxrc";
29                 stdout-path = "serial2:115200n8";
30         };
32         vdd: fixed-regulator-vdd {
33                 compatible = "regulator-fixed";
34                 regulator-name = "vdd-supply";
35                 regulator-min-microvolt = <1800000>;
36                 regulator-max-microvolt = <1800000>;
37                 regulator-always-on;
38         };
40         dbvdd: fixed-regulator-dbvdd {
41                 compatible = "regulator-fixed";
42                 regulator-name = "dbvdd-supply";
43                 regulator-min-microvolt = <3300000>;
44                 regulator-max-microvolt = <3300000>;
45                 regulator-always-on;
46         };
48         spkvdd: fixed-regulator-spkvdd {
49                 compatible = "regulator-fixed";
50                 regulator-name = "spkvdd-supply";
51                 regulator-min-microvolt = <5000000>;
52                 regulator-max-microvolt = <5000000>;
53                 regulator-always-on;
54         };
56         sound {
57                 compatible = "samsung,smdk-wm8994";
59                 samsung,i2s-controller = <&i2s0>;
60                 samsung,audio-codec = <&wm8994>;
61         };
63         fixed-rate-clocks {
64                 xxti {
65                         compatible = "samsung,clock-xxti";
66                         clock-frequency = <24000000>;
67                 };
69                 codec_mclk: codec-mclk {
70                         compatible = "fixed-clock";
71                         #clock-cells = <0>;
72                         clock-frequency = <16934000>;
73                 };
74         };
77 &cpu0 {
78         cpu0-supply = <&buck2_reg>;
81 &dp {
82         samsung,color-space = <0>;
83         samsung,color-depth = <1>;
84         samsung,link-rate = <0x0a>;
85         samsung,lane-count = <4>;
87         pinctrl-names = "default";
88         pinctrl-0 = <&dp_hpd>;
89         status = "okay";
91         display-timings {
92                 native-mode = <&timing0>;
94                 timing0: timing {
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         };
109 &ehci {
110         samsung,vbus-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
113 &fimd {
114         status = "okay";
117 &hdmi {
118         status = "okay";
119         ddc = <&i2c_2>;
120         hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
123 &i2c_0 {
124         status = "okay";
125         samsung,i2c-sda-delay = <100>;
126         samsung,i2c-max-bus-freq = <20000>;
128         eeprom@50 {
129                 compatible = "samsung,s524ad0xd1";
130                 reg = <0x50>;
131         };
133         max77686: pmic@9 {
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                 #clock-cells = <1>;
141                 wakeup-source;
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                         };
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                         };
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                         };
165                         ldo4_reg: LDO4 {
166                                 regulator-name = "P2.8V_LDO_OUT4";
167                                 regulator-min-microvolt = <2800000>;
168                                 regulator-max-microvolt = <2800000>;
169                         };
171                         ldo5_reg: LDO5 {
172                                 regulator-name = "P1.8V_LDO_OUT5";
173                                 regulator-min-microvolt = <1800000>;
174                                 regulator-max-microvolt = <1800000>;
175                         };
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                         };
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                         };
191                         ldo8_reg: LDO8 {
192                                 regulator-name = "P1.0V_LDO_OUT8";
193                                 regulator-min-microvolt = <1000000>;
194                                 regulator-max-microvolt = <1000000>;
195                         };
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                         };
204                         ldo11_reg: LDO11 {
205                                 regulator-name = "P1.8V_LDO_OUT11";
206                                 regulator-min-microvolt = <1800000>;
207                                 regulator-max-microvolt = <1800000>;
208                         };
210                         ldo12_reg: LDO12 {
211                                 regulator-name = "P3.0V_LDO_OUT12";
212                                 regulator-min-microvolt = <3000000>;
213                                 regulator-max-microvolt = <3000000>;
214                         };
216                         ldo13_reg: LDO13 {
217                                 regulator-name = "P1.8V_LDO_OUT13";
218                                 regulator-min-microvolt = <1800000>;
219                                 regulator-max-microvolt = <1800000>;
220                         };
222                         ldo14_reg: LDO14 {
223                                 regulator-name = "P1.8V_LDO_OUT14";
224                                 regulator-min-microvolt = <1800000>;
225                                 regulator-max-microvolt = <1800000>;
226                         };
228                         ldo15_reg: LDO15 {
229                                 regulator-name = "P1.0V_LDO_OUT15";
230                                 regulator-min-microvolt = <1000000>;
231                                 regulator-max-microvolt = <1000000>;
232                         };
234                         ldo16_reg: LDO16 {
235                                 regulator-name = "P1.8V_LDO_OUT16";
236                                 regulator-min-microvolt = <1800000>;
237                                 regulator-max-microvolt = <1800000>;
238                         };
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                         };
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                         };
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                         };
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                         };
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         };
283 &i2c_1 {
284         status = "okay";
285         samsung,i2c-sda-delay = <100>;
286         samsung,i2c-max-bus-freq = <20000>;
288         eeprom@51 {
289                 compatible = "samsung,s524ad0xd1";
290                 reg = <0x51>;
291         };
293         wm8994: audio-codec@1a {
294                 compatible = "wlf,wm8994";
295                 reg = <0x1a>;
297                 gpio-controller;
298                 #gpio-cells = <2>;
300                 clocks = <&codec_mclk>;
301                 clock-names = "MCLK1";
303                 AVDD2-supply = <&vdd>;
304                 CPVDD-supply = <&vdd>;
305                 DBVDD-supply = <&dbvdd>;
306                 SPKVDD1-supply = <&spkvdd>;
307                 SPKVDD2-supply = <&spkvdd>;
308         };
311 &i2c_2 {
312         status = "okay";
313         /* used by HDMI DDC */
314         samsung,i2c-sda-delay = <100>;
315         samsung,i2c-max-bus-freq = <66000>;
318 &i2c_8 {
319         status = "okay";
320         /* used by HDMI PHY */
321         samsung,i2c-sda-delay = <100>;
322         samsung,i2c-max-bus-freq = <66000>;
325 &i2c_9 {
326         status = "okay";
327         samsung,i2c-sda-delay = <100>;
328         samsung,i2c-max-bus-freq = <40000>;
331 &i2s0 {
332         status = "okay";
335 &mixer {
336         status = "okay";
339 &mmc_0 {
340         status = "okay";
341         broken-cd;
342         card-detect-delay = <200>;
343         samsung,dw-mshc-ciu-div = <3>;
344         samsung,dw-mshc-sdr-timing = <2 3>;
345         samsung,dw-mshc-ddr-timing = <1 2>;
346         pinctrl-names = "default";
347         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
348         bus-width = <8>;
349         cap-mmc-highspeed;
352 &mmc_2 {
353         status = "okay";
354         card-detect-delay = <200>;
355         samsung,dw-mshc-ciu-div = <3>;
356         samsung,dw-mshc-sdr-timing = <2 3>;
357         samsung,dw-mshc-ddr-timing = <1 2>;
358         pinctrl-names = "default";
359         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
360         bus-width = <4>;
361         disable-wp;
362         cap-sd-highspeed;
365 &rtc {
366         status = "okay";
367         clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
368         clock-names = "rtc", "rtc_src";
371 &sata {
372         status = "okay";
375 &sata_phy {
376         status = "okay";
377         samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
380 &sata_phy_i2c {
381         status = "okay";
384 &spi_1 {
385         status = "okay";
386         cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>;
388         flash@0 {
389                 #address-cells = <1>;
390                 #size-cells = <1>;
391                 compatible = "w25x80";
392                 reg = <0>;
393                 spi-max-frequency = <1000000>;
395                 controller-data {
396                         samsung,spi-feedback-delay = <0>;
397                 };
399                 partition@0 {
400                         label = "U-Boot";
401                         reg = <0x0 0x40000>;
402                         read-only;
403                 };
405                 partition@40000 {
406                         label = "Kernel";
407                         reg = <0x40000 0xc0000>;
408                 };
409         };
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         };