]>
Commit | Line | Data |
---|---|---|
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 | }; | |
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@9 { | |
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 | /* used by HDMI DDC */ | |
311 | samsung,i2c-sda-delay = <100>; | |
312 | samsung,i2c-max-bus-freq = <66000>; | |
313 | }; | |
314 | ||
315 | &i2c_8 { | |
316 | status = "okay"; | |
317 | /* used by HDMI PHY */ | |
318 | samsung,i2c-sda-delay = <100>; | |
319 | samsung,i2c-max-bus-freq = <66000>; | |
320 | }; | |
321 | ||
322 | &i2c_9 { | |
323 | status = "okay"; | |
324 | samsung,i2c-sda-delay = <100>; | |
325 | samsung,i2c-max-bus-freq = <40000>; | |
326 | samsung,i2c-slave-addr = <0x38>; | |
327 | ||
328 | sata_phy_i2c: sata-phy@38 { | |
329 | compatible = "samsung,exynos-sataphy-i2c"; | |
330 | reg = <0x38>; | |
331 | }; | |
332 | }; | |
333 | ||
334 | &i2s0 { | |
335 | status = "okay"; | |
336 | }; | |
337 | ||
338 | &mixer { | |
339 | status = "okay"; | |
340 | }; | |
341 | ||
342 | &mmc_0 { | |
343 | status = "okay"; | |
344 | broken-cd; | |
345 | card-detect-delay = <200>; | |
346 | samsung,dw-mshc-ciu-div = <3>; | |
347 | samsung,dw-mshc-sdr-timing = <2 3>; | |
348 | samsung,dw-mshc-ddr-timing = <1 2>; | |
349 | pinctrl-names = "default"; | |
350 | pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>; | |
351 | bus-width = <8>; | |
352 | cap-mmc-highspeed; | |
353 | }; | |
354 | ||
355 | &mmc_2 { | |
356 | status = "okay"; | |
357 | card-detect-delay = <200>; | |
358 | samsung,dw-mshc-ciu-div = <3>; | |
359 | samsung,dw-mshc-sdr-timing = <2 3>; | |
360 | samsung,dw-mshc-ddr-timing = <1 2>; | |
361 | pinctrl-names = "default"; | |
362 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; | |
363 | bus-width = <4>; | |
364 | disable-wp; | |
365 | cap-sd-highspeed; | |
366 | }; | |
367 | ||
368 | &rtc { | |
369 | status = "okay"; | |
370 | }; | |
371 | ||
372 | &sata { | |
373 | status = "okay"; | |
374 | }; | |
375 | ||
376 | &sata_phy { | |
377 | status = "okay"; | |
378 | samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>; | |
379 | }; | |
380 | ||
381 | &spi_1 { | |
382 | status = "okay"; | |
383 | cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>; | |
384 | ||
385 | w25q80bw@0 { | |
386 | #address-cells = <1>; | |
387 | #size-cells = <1>; | |
388 | compatible = "w25x80"; | |
389 | reg = <0>; | |
390 | spi-max-frequency = <1000000>; | |
391 | ||
392 | controller-data { | |
393 | samsung,spi-feedback-delay = <0>; | |
394 | }; | |
395 | ||
396 | partition@0 { | |
397 | label = "U-Boot"; | |
398 | reg = <0x0 0x40000>; | |
399 | read-only; | |
400 | }; | |
401 | ||
402 | partition@40000 { | |
403 | label = "Kernel"; | |
404 | reg = <0x40000 0xc0000>; | |
405 | }; | |
406 | }; | |
407 | }; | |
408 | ||
409 | &pinctrl_0 { | |
410 | max77686_irq: max77686-irq { | |
411 | samsung,pins = "gpx3-2"; | |
412 | samsung,pin-function = <EXYNOS_PIN_FUNC_F>; | |
413 | samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; | |
414 | samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>; | |
415 | }; | |
416 | }; |