Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Samsung's Exynos5250 based Arndale board device tree source
4 *
5 * Copyright (c) 2013 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 <dt-bindings/input/input.h>
13#include "exynos5250.dtsi"
14
15/ {
16 model = "Insignal Arndale evaluation board based on EXYNOS5250";
17 compatible = "insignal,arndale", "samsung,exynos5250", "samsung,exynos5";
18
19 memory@40000000 {
20 device_type = "memory";
21 reg = <0x40000000 0x80000000>;
22 };
23
24 chosen {
25 bootargs = "console=ttySAC2,115200";
26 };
27
28 gpio_keys {
29 compatible = "gpio-keys";
30
31 menu {
32 label = "SW-TACT2";
33 gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_MENU>;
35 wakeup-source;
36 };
37
38 home {
39 label = "SW-TACT3";
40 gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_HOME>;
42 wakeup-source;
43 };
44
45 up {
46 label = "SW-TACT4";
47 gpios = <&gpx1 6 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_UP>;
49 wakeup-source;
50 };
51
52 down {
53 label = "SW-TACT5";
54 gpios = <&gpx1 7 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_DOWN>;
56 wakeup-source;
57 };
58
59 back {
60 label = "SW-TACT6";
61 gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_BACK>;
63 wakeup-source;
64 };
65
66 wakeup {
67 label = "SW-TACT7";
68 gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WAKEUP>;
70 wakeup-source;
71 };
72 };
73
74 regulators {
75 compatible = "simple-bus";
76 #address-cells = <1>;
77 #size-cells = <0>;
78
79 main_dc_reg: regulator@0 {
80 compatible = "regulator-fixed";
81 reg = <0>;
82 regulator-name = "MAIN_DC";
83 };
84
85 mmc_reg: regulator@1 {
86 compatible = "regulator-fixed";
87 reg = <1>;
88 regulator-name = "VDD_33ON_2.8V";
89 regulator-min-microvolt = <2800000>;
90 regulator-max-microvolt = <2800000>;
91 gpio = <&gpx1 1 GPIO_ACTIVE_LOW>;
92 enable-active-high;
93 };
94
95 reg_hdmi_en: regulator@2 {
96 compatible = "regulator-fixed";
97 reg = <2>;
98 regulator-name = "hdmi-en";
99 };
100 };
101
102 fixed-rate-clocks {
103 xxti {
104 compatible = "samsung,clock-xxti";
105 clock-frequency = <24000000>;
106 };
107 };
108
109 // SMSC USB3503 connected in hardware only mode as a PHY
110 usb_hub: usb-hub {
111 compatible = "smsc,usb3503a";
112
113 reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
114 connect-gpios = <&gpd1 7 GPIO_ACTIVE_LOW>;
115 };
116};
117
118&cpu0 {
119 cpu0-supply = <&buck2_reg>;
120};
121
122&dp {
123 status = "okay";
124 samsung,color-space = <0>;
125 samsung,color-depth = <1>;
126 samsung,link-rate = <0x0a>;
127 samsung,lane-count = <4>;
128
129 display-timings {
130 native-mode = <&timing0>;
131
132 timing0: timing {
133 /* 2560x1600 DP panel */
134 clock-frequency = <50000>;
135 hactive = <2560>;
136 vactive = <1600>;
137 hfront-porch = <48>;
138 hback-porch = <80>;
139 hsync-len = <32>;
140 vback-porch = <16>;
141 vfront-porch = <8>;
142 vsync-len = <6>;
143 };
144 };
145};
146
147&fimd {
148 status = "okay";
149};
150
151&hdmi {
152 status = "okay";
153 ddc = <&i2c_2>;
154 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_LOW>;
155 vdd_osc-supply = <&ldo10_reg>;
156 vdd_pll-supply = <&ldo8_reg>;
157 vdd-supply = <&ldo8_reg>;
158};
159
160&i2c_0 {
161 status = "okay";
162 samsung,i2c-sda-delay = <100>;
163 samsung,i2c-max-bus-freq = <20000>;
164 samsung,i2c-slave-addr = <0x66>;
165
166 s5m8767_pmic@66 {
167 compatible = "samsung,s5m8767-pmic";
168 reg = <0x66>;
169 interrupt-parent = <&gpx3>;
170 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
171
172 vinb1-supply = <&main_dc_reg>;
173 vinb2-supply = <&main_dc_reg>;
174 vinb3-supply = <&main_dc_reg>;
175 vinb4-supply = <&main_dc_reg>;
176 vinb5-supply = <&main_dc_reg>;
177 vinb6-supply = <&main_dc_reg>;
178 vinb7-supply = <&main_dc_reg>;
179 vinb8-supply = <&main_dc_reg>;
180 vinb9-supply = <&main_dc_reg>;
181
182 vinl1-supply = <&buck7_reg>;
183 vinl2-supply = <&buck7_reg>;
184 vinl3-supply = <&buck7_reg>;
185 vinl4-supply = <&main_dc_reg>;
186 vinl5-supply = <&main_dc_reg>;
187 vinl6-supply = <&main_dc_reg>;
188 vinl7-supply = <&main_dc_reg>;
189 vinl8-supply = <&buck8_reg>;
190 vinl9-supply = <&buck8_reg>;
191
192 s5m8767,pmic-buck2-dvs-voltage = <1300000>;
193 s5m8767,pmic-buck3-dvs-voltage = <1100000>;
194 s5m8767,pmic-buck4-dvs-voltage = <1200000>;
195 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_HIGH>,
196 <&gpd1 1 GPIO_ACTIVE_HIGH>,
197 <&gpd1 2 GPIO_ACTIVE_HIGH>;
198 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>,
199 <&gpx2 4 GPIO_ACTIVE_HIGH>,
200 <&gpx2 5 GPIO_ACTIVE_HIGH>;
201
202 regulators {
203 ldo1_reg: LDO1 {
204 regulator-name = "VDD_ALIVE_1.0V";
205 regulator-min-microvolt = <1100000>;
206 regulator-max-microvolt = <1100000>;
207 regulator-always-on;
208 regulator-boot-on;
209 op_mode = <1>;
210 };
211
212 ldo2_reg: LDO2 {
213 regulator-name = "VDD_28IO_DP_1.35V";
214 regulator-min-microvolt = <1200000>;
215 regulator-max-microvolt = <1200000>;
216 regulator-always-on;
217 regulator-boot-on;
218 op_mode = <1>;
219 };
220
221 ldo3_reg: LDO3 {
222 regulator-name = "VDD_COMMON1_1.8V";
223 regulator-min-microvolt = <1800000>;
224 regulator-max-microvolt = <1800000>;
225 regulator-always-on;
226 regulator-boot-on;
227 op_mode = <1>;
228 };
229
230 ldo4_reg: LDO4 {
231 regulator-name = "VDD_IOPERI_1.8V";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
234 regulator-always-on;
235 op_mode = <1>;
236 };
237
238 ldo5_reg: LDO5 {
239 regulator-name = "VDD_EXT_1.8V";
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
242 regulator-always-on;
243 regulator-boot-on;
244 op_mode = <1>;
245 };
246
247 ldo6_reg: LDO6 {
248 regulator-name = "VDD_MPLL_1.1V";
249 regulator-min-microvolt = <1100000>;
250 regulator-max-microvolt = <1100000>;
251 regulator-always-on;
252 regulator-boot-on;
253 op_mode = <1>;
254 };
255
256 ldo7_reg: LDO7 {
257 regulator-name = "VDD_XPLL_1.1V";
258 regulator-min-microvolt = <1100000>;
259 regulator-max-microvolt = <1100000>;
260 regulator-always-on;
261 regulator-boot-on;
262 op_mode = <1>;
263 };
264
265 ldo8_reg: LDO8 {
266 regulator-name = "VDD_COMMON2_1.0V";
267 regulator-min-microvolt = <1000000>;
268 regulator-max-microvolt = <1000000>;
269 regulator-always-on;
270 regulator-boot-on;
271 op_mode = <1>;
272 };
273
274 ldo9_reg: LDO9 {
275 regulator-name = "VDD_33ON_3.0V";
276 regulator-min-microvolt = <3000000>;
277 regulator-max-microvolt = <3000000>;
278 op_mode = <1>;
279 };
280
281 ldo10_reg: LDO10 {
282 regulator-name = "VDD_COMMON3_1.8V";
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <1800000>;
285 regulator-always-on;
286 regulator-boot-on;
287 op_mode = <1>;
288 };
289
290 ldo11_reg: LDO11 {
291 regulator-name = "VDD_ABB2_1.8V";
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
294 regulator-always-on;
295 regulator-boot-on;
296 op_mode = <1>;
297 };
298
299 ldo12_reg: LDO12 {
300 regulator-name = "VDD_USB_3.0V";
301 regulator-min-microvolt = <3000000>;
302 regulator-max-microvolt = <3000000>;
303 regulator-always-on;
304 regulator-boot-on;
305 op_mode = <1>;
306 };
307
308 ldo13_reg: LDO13 {
309 regulator-name = "VDDQ_C2C_W_1.8V";
310 regulator-min-microvolt = <1800000>;
311 regulator-max-microvolt = <1800000>;
312 regulator-always-on;
313 regulator-boot-on;
314 op_mode = <1>;
315 };
316
317 ldo14_reg: LDO14 {
318 regulator-name = "VDD18_ABB0_3_1.8V";
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
321 regulator-always-on;
322 regulator-boot-on;
323 op_mode = <1>;
324 };
325
326 ldo15_reg: LDO15 {
327 regulator-name = "VDD10_COMMON4_1.0V";
328 regulator-min-microvolt = <1000000>;
329 regulator-max-microvolt = <1000000>;
330 regulator-always-on;
331 regulator-boot-on;
332 op_mode = <1>;
333 };
334
335 ldo16_reg: LDO16 {
336 regulator-name = "VDD18_HSIC_1.8V";
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
339 regulator-always-on;
340 regulator-boot-on;
341 op_mode = <1>;
342 };
343
344 ldo17_reg: LDO17 {
345 regulator-name = "VDDQ_MMC2_3_2.8V";
346 regulator-min-microvolt = <2800000>;
347 regulator-max-microvolt = <2800000>;
348 regulator-always-on;
349 regulator-boot-on;
350 op_mode = <1>;
351 };
352
353 ldo18_reg: LDO18 {
354 regulator-name = "VDD_33ON_2.8V";
355 regulator-min-microvolt = <2800000>;
356 regulator-max-microvolt = <2800000>;
357 op_mode = <1>;
358 };
359
360 ldo22_reg: LDO22 {
361 regulator-name = "EXT_33_OFF";
362 regulator-min-microvolt = <3300000>;
363 regulator-max-microvolt = <3300000>;
364 op_mode = <1>;
365 };
366
367 ldo23_reg: LDO23 {
368 regulator-name = "EXT_28_OFF";
369 regulator-min-microvolt = <2800000>;
370 regulator-max-microvolt = <2800000>;
371 op_mode = <1>;
372 };
373
374 ldo25_reg: LDO25 {
375 regulator-name = "PVDD_LDO25";
376 regulator-min-microvolt = <1200000>;
377 regulator-max-microvolt = <1200000>;
378 op_mode = <1>;
379 };
380
381 ldo26_reg: LDO26 {
382 regulator-name = "EXT_18_OFF";
383 regulator-min-microvolt = <1800000>;
384 regulator-max-microvolt = <1800000>;
385 op_mode = <1>;
386 };
387
388 buck1_reg: BUCK1 {
389 regulator-name = "vdd_mif";
390 regulator-min-microvolt = <950000>;
391 regulator-max-microvolt = <1200000>;
392 regulator-always-on;
393 regulator-boot-on;
394 op_mode = <1>;
395 };
396
397 buck2_reg: BUCK2 {
398 regulator-name = "vdd_arm";
399 regulator-min-microvolt = <912500>;
400 regulator-max-microvolt = <1300000>;
401 regulator-always-on;
402 regulator-boot-on;
403 op_mode = <1>;
404 };
405
406 buck3_reg: BUCK3 {
407 regulator-name = "vdd_int";
408 regulator-min-microvolt = <900000>;
409 regulator-max-microvolt = <1200000>;
410 regulator-always-on;
411 regulator-boot-on;
412 op_mode = <1>;
413 };
414
415 buck4_reg: BUCK4 {
416 regulator-name = "vdd_g3d";
417 regulator-min-microvolt = <1000000>;
418 regulator-max-microvolt = <1000000>;
419 regulator-always-on;
420 regulator-boot-on;
421 op_mode = <1>;
422 };
423
424 buck5_reg: BUCK5 {
425 regulator-name = "VDD_MEM_1.35V";
426 regulator-min-microvolt = <750000>;
427 regulator-max-microvolt = <1355000>;
428 regulator-always-on;
429 regulator-boot-on;
430 op_mode = <1>;
431 };
432
433 buck7_reg: BUCK7 {
434 regulator-name = "PVDD_BUCK7";
435 regulator-always-on;
436 op_mode = <1>;
437 };
438
439 buck8_reg: BUCK8 {
440 regulator-name = "PVDD_BUCK8";
441 regulator-always-on;
442 op_mode = <1>;
443 };
444
445 buck9_reg: BUCK9 {
446 regulator-name = "VDD_33_OFF_EXT1";
447 regulator-min-microvolt = <750000>;
448 regulator-max-microvolt = <3000000>;
449 op_mode = <1>;
450 };
451 };
452 };
453};
454
455&i2c_2 {
456 status = "okay";
457 /* used by HDMI DDC */
458 samsung,i2c-sda-delay = <100>;
459 samsung,i2c-max-bus-freq = <66000>;
460};
461
462&i2c_3 {
463 status = "okay";
464
465 wm1811a@1a {
466 compatible = "wlf,wm1811";
467 reg = <0x1a>;
468
469 AVDD2-supply = <&main_dc_reg>;
470 CPVDD-supply = <&main_dc_reg>;
471 DBVDD1-supply = <&main_dc_reg>;
472 DBVDD2-supply = <&main_dc_reg>;
473 DBVDD3-supply = <&main_dc_reg>;
474 LDO1VDD-supply = <&main_dc_reg>;
475 SPKVDD1-supply = <&main_dc_reg>;
476 SPKVDD2-supply = <&main_dc_reg>;
477
478 wlf,ldo1ena = <&gpb0 0 GPIO_ACTIVE_HIGH>;
479 wlf,ldo2ena = <&gpb0 1 GPIO_ACTIVE_HIGH>;
480 };
481};
482
483&i2c_8 {
484 status = "okay";
485 /* used by HDMI PHY */
486 samsung,i2c-sda-delay = <100>;
487 samsung,i2c-max-bus-freq = <66000>;
488};
489
490&i2c_9 {
491 status = "okay";
492 samsung,i2c-sda-delay = <100>;
493 samsung,i2c-max-bus-freq = <40000>;
494 samsung,i2c-slave-addr = <0x38>;
495
496 sata_phy_i2c:sata-phy@38 {
497 compatible = "samsung,exynos-sataphy-i2c";
498 reg = <0x38>;
499 };
500};
501
502&i2s0 {
503 status = "okay";
504};
505
506&mixer {
507 status = "okay";
508};
509
510&mmc_0 {
511 status = "okay";
512 broken-cd;
513 card-detect-delay = <200>;
514 samsung,dw-mshc-ciu-div = <3>;
515 samsung,dw-mshc-sdr-timing = <2 3>;
516 samsung,dw-mshc-ddr-timing = <1 2>;
517 vmmc-supply = <&mmc_reg>;
518 pinctrl-names = "default";
519 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
520 bus-width = <8>;
521 cap-mmc-highspeed;
522};
523
524&mmc_2 {
525 status = "okay";
526 card-detect-delay = <200>;
527 samsung,dw-mshc-ciu-div = <3>;
528 samsung,dw-mshc-sdr-timing = <2 3>;
529 samsung,dw-mshc-ddr-timing = <1 2>;
530 vmmc-supply = <&mmc_reg>;
531 pinctrl-names = "default";
532 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
533 bus-width = <4>;
534 disable-wp;
535 cap-sd-highspeed;
536};
537
538&rtc {
539 status = "okay";
540};
541
542&sata {
543 status = "okay";
544};
545
546&sata_phy {
547 status = "okay";
548 samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
549};
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Samsung's Exynos5250 based Arndale board device tree source
4 *
5 * Copyright (c) 2013 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 <dt-bindings/input/input.h>
13#include <dt-bindings/clock/samsung,s2mps11.h>
14#include <dt-bindings/sound/samsung-i2s.h>
15#include "exynos5250.dtsi"
16
17/ {
18 model = "Insignal Arndale evaluation board based on Exynos5250";
19 compatible = "insignal,arndale", "samsung,exynos5250", "samsung,exynos5";
20
21 memory@40000000 {
22 device_type = "memory";
23 reg = <0x40000000 0x80000000>;
24 };
25
26 chosen {
27 stdout-path = "serial2:115200n8";
28 };
29
30 gpio_keys {
31 compatible = "gpio-keys";
32
33 menu {
34 label = "SW-TACT2";
35 gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_MENU>;
37 wakeup-source;
38 };
39
40 home {
41 label = "SW-TACT3";
42 gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_HOME>;
44 wakeup-source;
45 };
46
47 up {
48 label = "SW-TACT4";
49 gpios = <&gpx1 6 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_UP>;
51 wakeup-source;
52 };
53
54 down {
55 label = "SW-TACT5";
56 gpios = <&gpx1 7 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_DOWN>;
58 wakeup-source;
59 };
60
61 back {
62 label = "SW-TACT6";
63 gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_BACK>;
65 wakeup-source;
66 };
67
68 wakeup {
69 label = "SW-TACT7";
70 gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WAKEUP>;
72 wakeup-source;
73 };
74 };
75
76 panel: panel {
77 compatible = "boe,hv070wsa-100";
78 power-supply = <&vcc_3v3_reg>;
79 enable-gpios = <&gpd1 3 GPIO_ACTIVE_HIGH>;
80 port {
81 panel_ep: endpoint {
82 remote-endpoint = <&bridge_out_ep>;
83 };
84 };
85 };
86
87 main_dc_reg: regulator-0 {
88 compatible = "regulator-fixed";
89 regulator-name = "MAIN_DC";
90 regulator-always-on;
91 };
92
93 mmc_reg: regulator-1 {
94 compatible = "regulator-fixed";
95 regulator-name = "VDD_MMC";
96 regulator-min-microvolt = <2800000>;
97 regulator-max-microvolt = <2800000>;
98 regulator-always-on;
99 };
100
101 reg_hdmi_en: regulator-2 {
102 compatible = "regulator-fixed";
103 regulator-name = "hdmi-en";
104 regulator-always-on;
105 };
106
107 vcc_1v2_reg: regulator-3 {
108 compatible = "regulator-fixed";
109 regulator-name = "VCC_1V2";
110 regulator-min-microvolt = <1200000>;
111 regulator-max-microvolt = <1200000>;
112 regulator-always-on;
113 };
114
115 vcc_1v8_reg: regulator-4 {
116 compatible = "regulator-fixed";
117 regulator-name = "VCC_1V8";
118 regulator-min-microvolt = <1800000>;
119 regulator-max-microvolt = <1800000>;
120 regulator-always-on;
121 };
122
123 vcc_3v3_reg: regulator-5 {
124 compatible = "regulator-fixed";
125 regulator-name = "VCC_3V3";
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 regulator-always-on;
129 };
130
131 sound {
132 compatible = "samsung,arndale-wm1811";
133 samsung,audio-cpu = <&i2s0>;
134 samsung,audio-codec = <&wm1811>;
135 };
136
137 fixed-rate-clocks {
138 xxti {
139 compatible = "samsung,clock-xxti";
140 clock-frequency = <24000000>;
141 };
142 };
143
144 // SMSC USB3503 connected in hardware only mode as a PHY
145 usb_hub: usb-hub {
146 compatible = "smsc,usb3503a";
147
148 reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
149 connect-gpios = <&gpd1 7 GPIO_ACTIVE_HIGH>;
150 };
151};
152
153&clock {
154 assigned-clocks = <&clock CLK_FOUT_EPLL>;
155 assigned-clock-rates = <49152000>;
156};
157
158&clock_audss {
159 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
160 assigned-clock-parents = <&clock CLK_FOUT_EPLL>;
161};
162
163&cpu0 {
164 cpu0-supply = <&buck2_reg>;
165};
166
167&dsi_0 {
168 vddcore-supply = <&ldo8_reg>;
169 vddio-supply = <&ldo10_reg>;
170 samsung,pll-clock-frequency = <24000000>;
171 samsung,burst-clock-frequency = <320000000>;
172 samsung,esc-clock-frequency = <10000000>;
173 status = "okay";
174
175 bridge@0 {
176 reg = <0>;
177 compatible = "toshiba,tc358764";
178 vddc-supply = <&vcc_1v2_reg>;
179 vddio-supply = <&vcc_1v8_reg>;
180 vddlvds-supply = <&vcc_3v3_reg>;
181 reset-gpios = <&gpd1 6 GPIO_ACTIVE_LOW>;
182 #address-cells = <1>;
183 #size-cells = <0>;
184 port@1 {
185 reg = <1>;
186 bridge_out_ep: endpoint {
187 remote-endpoint = <&panel_ep>;
188 };
189 };
190 };
191};
192
193&fimd {
194 status = "okay";
195};
196
197&hdmi {
198 pinctrl-names = "default";
199 pinctrl-0 = <&hdmi_hpd>;
200 status = "okay";
201 ddc = <&i2c_ddc>;
202 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
203 vdd_osc-supply = <&ldo10_reg>;
204 vdd_pll-supply = <&ldo8_reg>;
205 vdd-supply = <&ldo8_reg>;
206};
207
208&i2c_0 {
209 status = "okay";
210 samsung,i2c-sda-delay = <100>;
211 samsung,i2c-max-bus-freq = <20000>;
212 samsung,i2c-slave-addr = <0x66>;
213
214 s5m8767_pmic@66 {
215 compatible = "samsung,s5m8767-pmic";
216 reg = <0x66>;
217 interrupt-parent = <&gpx3>;
218 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
219 pinctrl-names = "default";
220 pinctrl-0 = <&s5m8767_irq>;
221
222 vinb1-supply = <&main_dc_reg>;
223 vinb2-supply = <&main_dc_reg>;
224 vinb3-supply = <&main_dc_reg>;
225 vinb4-supply = <&main_dc_reg>;
226 vinb5-supply = <&main_dc_reg>;
227 vinb6-supply = <&main_dc_reg>;
228 vinb7-supply = <&main_dc_reg>;
229 vinb8-supply = <&main_dc_reg>;
230 vinb9-supply = <&main_dc_reg>;
231
232 vinl1-supply = <&buck7_reg>;
233 vinl2-supply = <&buck7_reg>;
234 vinl3-supply = <&buck7_reg>;
235 vinl4-supply = <&main_dc_reg>;
236 vinl5-supply = <&main_dc_reg>;
237 vinl6-supply = <&main_dc_reg>;
238 vinl7-supply = <&main_dc_reg>;
239 vinl8-supply = <&buck8_reg>;
240 vinl9-supply = <&buck8_reg>;
241
242 s5m8767,pmic-buck2-dvs-voltage = <1300000>;
243 s5m8767,pmic-buck3-dvs-voltage = <1100000>;
244 s5m8767,pmic-buck4-dvs-voltage = <1200000>;
245 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_HIGH>,
246 <&gpd1 1 GPIO_ACTIVE_HIGH>,
247 <&gpd1 2 GPIO_ACTIVE_HIGH>;
248 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>,
249 <&gpx2 4 GPIO_ACTIVE_HIGH>,
250 <&gpx2 5 GPIO_ACTIVE_HIGH>;
251
252 s5m8767_osc: clocks {
253 compatible = "samsung,s5m8767-clk";
254 #clock-cells = <1>;
255 clock-output-names = "s5m8767_ap", "unused1", "unused2";
256 };
257
258 regulators {
259 ldo1_reg: LDO1 {
260 regulator-name = "VDD_ALIVE_1.0V";
261 regulator-min-microvolt = <1100000>;
262 regulator-max-microvolt = <1100000>;
263 regulator-always-on;
264 regulator-boot-on;
265 op_mode = <1>;
266 };
267
268 ldo2_reg: LDO2 {
269 regulator-name = "VDD_28IO_DP_1.35V";
270 regulator-min-microvolt = <1200000>;
271 regulator-max-microvolt = <1200000>;
272 regulator-always-on;
273 regulator-boot-on;
274 op_mode = <1>;
275 };
276
277 ldo3_reg: LDO3 {
278 regulator-name = "VDD_COMMON1_1.8V";
279 regulator-min-microvolt = <1800000>;
280 regulator-max-microvolt = <1800000>;
281 regulator-always-on;
282 regulator-boot-on;
283 op_mode = <1>;
284 };
285
286 ldo4_reg: LDO4 {
287 regulator-name = "VDD_IOPERI_1.8V";
288 regulator-min-microvolt = <1800000>;
289 regulator-max-microvolt = <1800000>;
290 regulator-always-on;
291 op_mode = <1>;
292 };
293
294 ldo5_reg: LDO5 {
295 regulator-name = "VDD_EXT_1.8V";
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
298 regulator-always-on;
299 regulator-boot-on;
300 op_mode = <1>;
301 };
302
303 ldo6_reg: LDO6 {
304 regulator-name = "VDD_MPLL_1.1V";
305 regulator-min-microvolt = <1100000>;
306 regulator-max-microvolt = <1100000>;
307 regulator-always-on;
308 regulator-boot-on;
309 op_mode = <1>;
310 };
311
312 ldo7_reg: LDO7 {
313 regulator-name = "VDD_XPLL_1.1V";
314 regulator-min-microvolt = <1100000>;
315 regulator-max-microvolt = <1100000>;
316 regulator-always-on;
317 regulator-boot-on;
318 op_mode = <1>;
319 };
320
321 ldo8_reg: LDO8 {
322 regulator-name = "VDD_COMMON2_1.0V";
323 regulator-min-microvolt = <1000000>;
324 regulator-max-microvolt = <1000000>;
325 regulator-always-on;
326 regulator-boot-on;
327 op_mode = <1>;
328 };
329
330 ldo9_reg: LDO9 {
331 regulator-name = "VDD_33ON_3.0V";
332 regulator-min-microvolt = <3000000>;
333 regulator-max-microvolt = <3000000>;
334 op_mode = <1>;
335 };
336
337 ldo10_reg: LDO10 {
338 regulator-name = "VDD_COMMON3_1.8V";
339 regulator-min-microvolt = <1800000>;
340 regulator-max-microvolt = <1800000>;
341 regulator-always-on;
342 regulator-boot-on;
343 op_mode = <1>;
344 };
345
346 ldo11_reg: LDO11 {
347 regulator-name = "VDD_ABB2_1.8V";
348 regulator-min-microvolt = <1800000>;
349 regulator-max-microvolt = <1800000>;
350 regulator-always-on;
351 regulator-boot-on;
352 op_mode = <1>;
353 };
354
355 ldo12_reg: LDO12 {
356 regulator-name = "VDD_USB_3.0V";
357 regulator-min-microvolt = <3000000>;
358 regulator-max-microvolt = <3000000>;
359 regulator-always-on;
360 regulator-boot-on;
361 op_mode = <1>;
362 };
363
364 ldo13_reg: LDO13 {
365 regulator-name = "VDDQ_C2C_W_1.8V";
366 regulator-min-microvolt = <1800000>;
367 regulator-max-microvolt = <1800000>;
368 regulator-always-on;
369 regulator-boot-on;
370 op_mode = <1>;
371 };
372
373 ldo14_reg: LDO14 {
374 regulator-name = "VDD18_ABB0_3_1.8V";
375 regulator-min-microvolt = <1800000>;
376 regulator-max-microvolt = <1800000>;
377 regulator-always-on;
378 regulator-boot-on;
379 op_mode = <1>;
380 };
381
382 ldo15_reg: LDO15 {
383 regulator-name = "VDD10_COMMON4_1.0V";
384 regulator-min-microvolt = <1000000>;
385 regulator-max-microvolt = <1000000>;
386 regulator-always-on;
387 regulator-boot-on;
388 op_mode = <1>;
389 };
390
391 ldo16_reg: LDO16 {
392 regulator-name = "VDD18_HSIC_1.8V";
393 regulator-min-microvolt = <1800000>;
394 regulator-max-microvolt = <1800000>;
395 regulator-always-on;
396 regulator-boot-on;
397 op_mode = <1>;
398 };
399
400 ldo17_reg: LDO17 {
401 regulator-name = "VDDQ_MMC2_3_2.8V";
402 regulator-min-microvolt = <2800000>;
403 regulator-max-microvolt = <2800000>;
404 regulator-always-on;
405 regulator-boot-on;
406 op_mode = <1>;
407 };
408
409 ldo18_reg: LDO18 {
410 regulator-name = "VDD_33ON_2.8V";
411 regulator-min-microvolt = <2800000>;
412 regulator-max-microvolt = <2800000>;
413 op_mode = <1>;
414 };
415
416 ldo22_reg: LDO22 {
417 regulator-name = "EXT_33_OFF";
418 regulator-min-microvolt = <3300000>;
419 regulator-max-microvolt = <3300000>;
420 op_mode = <1>;
421 };
422
423 ldo23_reg: LDO23 {
424 regulator-name = "EXT_28_OFF";
425 regulator-min-microvolt = <2800000>;
426 regulator-max-microvolt = <2800000>;
427 op_mode = <1>;
428 };
429
430 ldo25_reg: LDO25 {
431 regulator-name = "PVDD_LDO25";
432 regulator-min-microvolt = <1200000>;
433 regulator-max-microvolt = <1200000>;
434 op_mode = <1>;
435 };
436
437 ldo26_reg: LDO26 {
438 regulator-name = "EXT_18_OFF";
439 regulator-min-microvolt = <1800000>;
440 regulator-max-microvolt = <1800000>;
441 op_mode = <1>;
442 };
443
444 buck1_reg: BUCK1 {
445 regulator-name = "VDD_MIF";
446 regulator-min-microvolt = <950000>;
447 regulator-max-microvolt = <1200000>;
448 regulator-always-on;
449 regulator-boot-on;
450 op_mode = <1>;
451 };
452
453 buck2_reg: BUCK2 {
454 regulator-name = "VDD_ARM";
455 regulator-min-microvolt = <912500>;
456 regulator-max-microvolt = <1300000>;
457 regulator-always-on;
458 regulator-boot-on;
459 op_mode = <1>;
460 };
461
462 buck3_reg: BUCK3 {
463 regulator-name = "VDD_INT";
464 regulator-min-microvolt = <900000>;
465 regulator-max-microvolt = <1200000>;
466 regulator-always-on;
467 regulator-boot-on;
468 op_mode = <1>;
469 };
470
471 buck4_reg: BUCK4 {
472 regulator-name = "VDD_G3D";
473 regulator-min-microvolt = <850000>;
474 regulator-max-microvolt = <1300000>;
475 regulator-always-on;
476 regulator-boot-on;
477 op_mode = <1>;
478 };
479
480 buck5_reg: BUCK5 {
481 regulator-name = "VDD_MEM_1.35V";
482 regulator-min-microvolt = <750000>;
483 regulator-max-microvolt = <1355000>;
484 regulator-always-on;
485 regulator-boot-on;
486 op_mode = <1>;
487 };
488
489 buck7_reg: BUCK7 {
490 regulator-name = "PVDD_BUCK7";
491 regulator-always-on;
492 op_mode = <1>;
493 };
494
495 buck8_reg: BUCK8 {
496 regulator-name = "PVDD_BUCK8";
497 regulator-always-on;
498 op_mode = <1>;
499 };
500
501 buck9_reg: BUCK9 {
502 regulator-name = "VDD_33_OFF_EXT1";
503 regulator-min-microvolt = <750000>;
504 regulator-max-microvolt = <3000000>;
505 op_mode = <1>;
506 };
507 };
508 };
509};
510
511&i2c_3 {
512 status = "okay";
513
514 wm1811: codec@1a {
515 compatible = "wlf,wm1811";
516 reg = <0x1a>;
517 clocks = <&i2s0 CLK_I2S_CDCLK>;
518 clock-names = "MCLK1";
519
520 AVDD2-supply = <&main_dc_reg>;
521 CPVDD-supply = <&main_dc_reg>;
522 DBVDD1-supply = <&main_dc_reg>;
523 DBVDD2-supply = <&main_dc_reg>;
524 DBVDD3-supply = <&main_dc_reg>;
525 LDO1VDD-supply = <&main_dc_reg>;
526 SPKVDD1-supply = <&main_dc_reg>;
527 SPKVDD2-supply = <&main_dc_reg>;
528
529 wlf,ldo1ena = <&gpb0 0 GPIO_ACTIVE_HIGH>;
530 wlf,ldo2ena = <&gpb0 1 GPIO_ACTIVE_HIGH>;
531 };
532};
533
534&i2c_8 {
535 status = "okay";
536 /* used by HDMI PHY */
537 samsung,i2c-sda-delay = <100>;
538 samsung,i2c-max-bus-freq = <66000>;
539};
540
541&i2c_9 {
542 status = "okay";
543 samsung,i2c-sda-delay = <100>;
544 samsung,i2c-max-bus-freq = <40000>;
545 samsung,i2c-slave-addr = <0x38>;
546
547 sata_phy_i2c:sata-phy@38 {
548 compatible = "samsung,exynos-sataphy-i2c";
549 reg = <0x38>;
550 };
551};
552
553&i2s0 {
554 assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
555 assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
556 status = "okay";
557};
558
559&i2s0_bus {
560 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV2>;
561};
562
563&mali {
564 mali-supply = <&buck4_reg>;
565 status = "okay";
566};
567
568&mixer {
569 status = "okay";
570};
571
572&mmc_0 {
573 status = "okay";
574 broken-cd;
575 card-detect-delay = <200>;
576 samsung,dw-mshc-ciu-div = <3>;
577 samsung,dw-mshc-sdr-timing = <2 3>;
578 samsung,dw-mshc-ddr-timing = <1 2>;
579 vmmc-supply = <&mmc_reg>;
580 pinctrl-names = "default";
581 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
582 bus-width = <8>;
583 cap-mmc-highspeed;
584};
585
586&mmc_2 {
587 status = "okay";
588 card-detect-delay = <200>;
589 samsung,dw-mshc-ciu-div = <3>;
590 samsung,dw-mshc-sdr-timing = <2 3>;
591 samsung,dw-mshc-ddr-timing = <1 2>;
592 vmmc-supply = <&mmc_reg>;
593 pinctrl-names = "default";
594 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
595 bus-width = <4>;
596 disable-wp;
597 cap-sd-highspeed;
598};
599
600&pinctrl_0 {
601 s5m8767_irq: s5m8767-irq {
602 samsung,pins = "gpx3-2";
603 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
604 };
605};
606
607&rtc {
608 clocks = <&clock CLK_RTC>, <&s5m8767_osc S2MPS11_CLK_AP>;
609 clock-names = "rtc", "rtc_src";
610 status = "okay";
611};
612
613&sata {
614 status = "okay";
615};
616
617&sata_phy {
618 status = "okay";
619 samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
620};
621
622&soc {
623 /*
624 * For unknown reasons HDMI-DDC does not work with Exynos I2C
625 * controllers. Lets use software I2C over GPIO pins as a workaround.
626 */
627 i2c_ddc: i2c-gpio {
628 pinctrl-names = "default";
629 pinctrl-0 = <&i2c2_gpio_bus>;
630 status = "okay";
631 compatible = "i2c-gpio";
632 sda-gpios = <&gpa0 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
633 scl-gpios = <&gpa0 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
634 i2c-gpio,delay-us = <2>;
635 #address-cells = <1>;
636 #size-cells = <0>;
637 };
638};