Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Samsung's Exynos3250 based Rinato board device tree source
4 *
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com
7 *
8 * Device tree source file for Samsung's Rinato board which is based on
9 * Samsung Exynos3250 SoC.
10 */
11
12/dts-v1/;
13#include "exynos3250.dtsi"
14#include "exynos4412-ppmu-common.dtsi"
15#include <dt-bindings/input/input.h>
16#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/clock/samsung,s2mps11.h>
18
19/ {
20 model = "Samsung Rinato board";
21 compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3";
22 chassis-type = "watch";
23
24 aliases {
25 i2c7 = &i2c_max77836;
26 };
27
28 chosen {
29 stdout-path = &serial_1;
30 };
31
32 memory@40000000 {
33 device_type = "memory";
34 reg = <0x40000000 0x1ff00000>;
35 };
36
37 firmware@205f000 {
38 compatible = "samsung,secure-firmware";
39 reg = <0x0205F000 0x1000>;
40 };
41
42 gpio-keys {
43 compatible = "gpio-keys";
44
45 power-key {
46 gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_POWER>;
48 label = "power key";
49 debounce-interval = <10>;
50 wakeup-source;
51 };
52 };
53
54 wlan_pwrseq: mshc1-pwrseq {
55 compatible = "mmc-pwrseq-simple";
56 reset-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
57 };
58
59 i2c_max77836: i2c-gpio-0 {
60 compatible = "i2c-gpio";
61 sda-gpios = <&gpd0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
62 scl-gpios = <&gpd0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
63 #address-cells = <1>;
64 #size-cells = <0>;
65
66 max77836: pmic@25 {
67 compatible = "maxim,max77836";
68 interrupt-parent = <&gpx1>;
69 interrupts = <5 IRQ_TYPE_NONE>;
70 reg = <0x25>;
71 wakeup-source;
72
73 extcon {
74 compatible = "maxim,max77836-muic";
75 };
76
77 regulators {
78 compatible = "maxim,max77836-regulator";
79 safeout_reg: SAFEOUT {
80 regulator-name = "SAFEOUT";
81 };
82
83 charger_reg: CHARGER {
84 regulator-name = "CHARGER";
85 regulator-min-microamp = <45000>;
86 regulator-max-microamp = <475000>;
87 regulator-boot-on;
88 };
89
90 motor_reg: LDO1 {
91 regulator-name = "MOT_2.7V";
92 regulator-min-microvolt = <1100000>;
93 regulator-max-microvolt = <2700000>;
94 };
95
96 LDO2 {
97 regulator-name = "UNUSED_LDO2";
98 regulator-min-microvolt = <800000>;
99 regulator-max-microvolt = <3950000>;
100 };
101 };
102
103 charger {
104 compatible = "maxim,max77836-charger";
105
106 maxim,constant-uvolt = <4350000>;
107 maxim,fast-charge-uamp = <225000>;
108 maxim,eoc-uamp = <7500>;
109 maxim,ovp-uvolt = <6500000>;
110 };
111 };
112 };
113
114 haptics {
115 compatible = "regulator-haptic";
116 haptic-supply = <&motor_reg>;
117 min-microvolt = <1100000>;
118 max-microvolt = <2700000>;
119 };
120
121 thermal-zones {
122 cpu_thermal: cpu-thermal {
123 cooling-maps {
124 map0 {
125 /* Corresponds to 500MHz */
126 cooling-device = <&cpu0 5 5>,
127 <&cpu1 5 5>;
128 };
129 map1 {
130 /* Corresponds to 200MHz */
131 cooling-device = <&cpu0 8 8>,
132 <&cpu1 8 8>;
133 };
134 };
135 };
136 };
137};
138
139&adc {
140 vdd-supply = <&ldo3_reg>;
141 status = "okay";
142 assigned-clocks = <&cmu CLK_SCLK_TSADC>;
143 assigned-clock-rates = <6000000>;
144
145 thermistor-ap {
146 compatible = "murata,ncp15wb473";
147 pullup-uv = <1800000>;
148 pullup-ohm = <100000>;
149 pulldown-ohm = <100000>;
150 io-channels = <&adc 0>;
151 };
152
153 thermistor-battery {
154 compatible = "murata,ncp15wb473";
155 pullup-uv = <1800000>;
156 pullup-ohm = <100000>;
157 pulldown-ohm = <100000>;
158 io-channels = <&adc 1>;
159 };
160};
161
162&bus_dmc {
163 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
164 vdd-supply = <&buck1_reg>;
165 status = "okay";
166};
167
168&bus_leftbus {
169 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
170 vdd-supply = <&buck3_reg>;
171 status = "okay";
172};
173
174&bus_rightbus {
175 devfreq = <&bus_leftbus>;
176 status = "okay";
177};
178
179&bus_lcd0 {
180 devfreq = <&bus_leftbus>;
181 status = "okay";
182};
183
184&bus_fsys {
185 devfreq = <&bus_leftbus>;
186 status = "okay";
187};
188
189&bus_mcuisp {
190 devfreq = <&bus_leftbus>;
191 status = "okay";
192};
193
194&bus_isp {
195 devfreq = <&bus_leftbus>;
196 status = "okay";
197};
198
199&bus_peril {
200 devfreq = <&bus_leftbus>;
201 status = "okay";
202};
203
204&bus_mfc {
205 devfreq = <&bus_leftbus>;
206 status = "okay";
207};
208
209&cmu {
210 clocks = <&xusbxti>;
211};
212
213&cpu0 {
214 cpu0-supply = <&buck2_reg>;
215};
216
217&exynos_usbphy {
218 status = "okay";
219 vbus-supply = <&safeout_reg>;
220};
221
222&hsotg {
223 vusb_d-supply = <&ldo15_reg>;
224 vusb_a-supply = <&ldo12_reg>;
225 dr_mode = "peripheral";
226 status = "okay";
227};
228
229&dsi_0 {
230 vddcore-supply = <&ldo6_reg>;
231 vddio-supply = <&ldo6_reg>;
232 samsung,burst-clock-frequency = <250000000>;
233 samsung,esc-clock-frequency = <20000000>;
234 samsung,pll-clock-frequency = <24000000>;
235 status = "okay";
236
237 panel@0 {
238 compatible = "samsung,s6e63j0x03";
239 reg = <0>;
240 vdd3-supply = <&ldo16_reg>;
241 vci-supply = <&ldo20_reg>;
242 reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>;
243 te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
244 };
245};
246
247&fimd {
248 status = "okay";
249
250 i80-if-timings {
251 cs-setup = <0>;
252 wr-setup = <0>;
253 wr-act = <1>;
254 wr-hold = <0>;
255 };
256};
257
258&gpu {
259 mali-supply = <&buck3_reg>;
260 status = "okay";
261};
262
263&i2c_0 {
264 #address-cells = <1>;
265 #size-cells = <0>;
266 samsung,i2c-sda-delay = <100>;
267 samsung,i2c-slave-addr = <0x10>;
268 samsung,i2c-max-bus-freq = <100000>;
269 status = "okay";
270
271 pmic@66 {
272 compatible = "samsung,s2mps14-pmic";
273 interrupt-parent = <&gpx0>;
274 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
275 reg = <0x66>;
276 wakeup-source;
277
278 s2mps14_osc: clocks {
279 compatible = "samsung,s2mps14-clk";
280 #clock-cells = <1>;
281 clock-output-names = "s2mps14_ap", "unused",
282 "s2mps14_bt";
283 };
284
285 regulators {
286 ldo1_reg: LDO1 {
287 regulator-name = "VAP_ALIVE_1.0V";
288 regulator-min-microvolt = <1000000>;
289 regulator-max-microvolt = <1000000>;
290 regulator-always-on;
291
292 regulator-state-mem {
293 regulator-on-in-suspend;
294 };
295 };
296
297 ldo2_reg: LDO2 {
298 regulator-name = "VAP_M1_1.2V";
299 regulator-min-microvolt = <1200000>;
300 regulator-max-microvolt = <1200000>;
301 regulator-always-on;
302
303 regulator-state-mem {
304 regulator-off-in-suspend;
305 };
306 };
307
308 ldo3_reg: LDO3 {
309 regulator-name = "VCC_AP_1.8V";
310 regulator-min-microvolt = <1800000>;
311 regulator-max-microvolt = <1800000>;
312 regulator-always-on;
313
314 regulator-state-mem {
315 regulator-off-in-suspend;
316 };
317 };
318
319 ldo4_reg: LDO4 {
320 regulator-name = "VAP_AVDD_PLL1";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
323 regulator-always-on;
324
325 regulator-state-mem {
326 regulator-off-in-suspend;
327 };
328 };
329
330 ldo5_reg: LDO5 {
331 regulator-name = "VAP_PLL_ISO_1.0V";
332 regulator-min-microvolt = <1000000>;
333 regulator-max-microvolt = <1000000>;
334 regulator-always-on;
335
336 regulator-state-mem {
337 regulator-off-in-suspend;
338 };
339 };
340
341 ldo6_reg: LDO6 {
342 regulator-name = "VAP_VMIPI_1.0V";
343 regulator-min-microvolt = <1000000>;
344 regulator-max-microvolt = <1000000>;
345 regulator-always-on;
346
347 regulator-state-mem {
348 regulator-off-in-suspend;
349 };
350 };
351
352 ldo7_reg: LDO7 {
353 regulator-name = "VAP_AVDD_1.8V";
354 regulator-min-microvolt = <1800000>;
355 regulator-max-microvolt = <1800000>;
356 regulator-always-on;
357
358 regulator-state-mem {
359 regulator-off-in-suspend;
360 };
361 };
362
363 ldo8_reg: LDO8 {
364 regulator-name = "VAP_USB_3.0V";
365 regulator-min-microvolt = <3000000>;
366 regulator-max-microvolt = <3000000>;
367 regulator-always-on;
368
369 regulator-state-mem {
370 regulator-off-in-suspend;
371 };
372 };
373
374 ldo9_reg: LDO9 {
375 regulator-name = "V_LPDDR_1.2V";
376 regulator-min-microvolt = <1200000>;
377 regulator-max-microvolt = <1200000>;
378 regulator-always-on;
379
380 regulator-state-mem {
381 regulator-on-in-suspend;
382 };
383 };
384
385 ldo10_reg: LDO10 {
386 regulator-name = "UNUSED_LDO10";
387 regulator-min-microvolt = <1000000>;
388 regulator-max-microvolt = <1000000>;
389
390 regulator-state-mem {
391 regulator-off-in-suspend;
392 };
393 };
394
395 ldo11_reg: LDO11 {
396 regulator-name = "V_EMMC_1.8V";
397 regulator-min-microvolt = <1800000>;
398 regulator-max-microvolt = <1800000>;
399 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
400 };
401
402 ldo12_reg: LDO12 {
403 regulator-name = "V_EMMC_2.8V";
404 regulator-min-microvolt = <2800000>;
405 regulator-max-microvolt = <2800000>;
406 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
407 };
408
409 ldo13_reg: LDO13 {
410 regulator-name = "CAM_AVDD_2.8V";
411 regulator-min-microvolt = <2800000>;
412 regulator-max-microvolt = <2800000>;
413
414 regulator-state-mem {
415 regulator-off-in-suspend;
416 };
417 };
418
419 ldo14_reg: LDO14 {
420 regulator-name = "UNUSED_LDO14";
421 regulator-min-microvolt = <2700000>;
422 regulator-max-microvolt = <2700000>;
423
424 regulator-state-mem {
425 regulator-off-in-suspend;
426 };
427 };
428
429 ldo15_reg: LDO15 {
430 regulator-name = "TSP_AVDD_3.3V";
431 regulator-min-microvolt = <3300000>;
432 regulator-max-microvolt = <3300000>;
433
434 regulator-state-mem {
435 regulator-off-in-suspend;
436 };
437 };
438
439 ldo16_reg: LDO16 {
440 regulator-name = "LCD_VDD_3.3V";
441 regulator-min-microvolt = <3300000>;
442 regulator-max-microvolt = <3300000>;
443
444 regulator-state-mem {
445 regulator-off-in-suspend;
446 };
447 };
448
449 ldo17_reg: LDO17 {
450 regulator-name = "V_IRLED_3.3V";
451 regulator-min-microvolt = <3300000>;
452 regulator-max-microvolt = <3300000>;
453
454 regulator-state-mem {
455 regulator-off-in-suspend;
456 };
457 };
458
459 ldo18_reg: LDO18 {
460 regulator-name = "CAM_AF_2.8V";
461 regulator-min-microvolt = <2800000>;
462 regulator-max-microvolt = <2800000>;
463
464 regulator-state-mem {
465 regulator-off-in-suspend;
466 };
467 };
468
469 ldo19_reg: LDO19 {
470 regulator-name = "TSP_VDD_1.8V";
471 regulator-min-microvolt = <1800000>;
472 regulator-max-microvolt = <1800000>;
473
474 regulator-state-mem {
475 regulator-off-in-suspend;
476 };
477 };
478
479 ldo20_reg: LDO20 {
480 regulator-name = "LCD_VDD_1.8V";
481 regulator-min-microvolt = <1800000>;
482 regulator-max-microvolt = <1800000>;
483
484 regulator-state-mem {
485 regulator-off-in-suspend;
486 };
487 };
488
489 ldo21_reg: LDO21 {
490 regulator-name = "CAM_IO_1.8V";
491 regulator-min-microvolt = <1800000>;
492 regulator-max-microvolt = <1800000>;
493
494 regulator-state-mem {
495 regulator-off-in-suspend;
496 };
497 };
498
499 ldo22_reg: LDO22 {
500 regulator-name = "CAM_DVDD_1.2V";
501 regulator-min-microvolt = <1200000>;
502 regulator-max-microvolt = <1200000>;
503
504 regulator-state-mem {
505 regulator-off-in-suspend;
506 };
507 };
508
509 ldo23_reg: LDO23 {
510 regulator-name = "HRM_VCC_1.8V";
511 regulator-min-microvolt = <1800000>;
512 regulator-max-microvolt = <1800000>;
513 regulator-always-on;
514 };
515
516 ldo24_reg: LDO24 {
517 regulator-name = "HRM_VCC_3.3V";
518 regulator-min-microvolt = <3000000>;
519 regulator-max-microvolt = <3000000>;
520
521 regulator-state-mem {
522 regulator-off-in-suspend;
523 };
524 };
525
526 ldo25_reg: LDO25 {
527 regulator-name = "UNUSED_LDO25";
528 regulator-min-microvolt = <3000000>;
529 regulator-max-microvolt = <3000000>;
530
531 regulator-state-mem {
532 regulator-off-in-suspend;
533 };
534 };
535
536 buck1_reg: BUCK1 {
537 regulator-name = "VAP_MIF_1.0V";
538 regulator-min-microvolt = <800000>;
539 regulator-max-microvolt = <900000>;
540 regulator-always-on;
541
542 regulator-state-mem {
543 regulator-off-in-suspend;
544 };
545 };
546
547 buck2_reg: BUCK2 {
548 regulator-name = "VAP_ARM_1.0V";
549 regulator-min-microvolt = <850000>;
550 regulator-max-microvolt = <1150000>;
551 regulator-always-on;
552
553 regulator-state-mem {
554 regulator-off-in-suspend;
555 };
556 };
557
558 buck3_reg: BUCK3 {
559 regulator-name = "VAP_INT3D_1.0V";
560 regulator-min-microvolt = <850000>;
561 regulator-max-microvolt = <1000000>;
562 regulator-always-on;
563
564 regulator-state-mem {
565 regulator-off-in-suspend;
566 };
567 };
568
569 buck4_reg: BUCK4 {
570 regulator-name = "VCC_SUB_1.95V";
571 regulator-min-microvolt = <1950000>;
572 regulator-max-microvolt = <1950000>;
573 regulator-always-on;
574
575 regulator-state-mem {
576 regulator-on-in-suspend;
577 };
578 };
579
580 buck5_reg: BUCK5 {
581 regulator-name = "VCC_SUB_1.35V";
582 regulator-min-microvolt = <1350000>;
583 regulator-max-microvolt = <1350000>;
584 regulator-always-on;
585
586 regulator-state-mem {
587 regulator-on-in-suspend;
588 };
589 };
590 };
591 };
592};
593
594&i2c_1 {
595 #address-cells = <1>;
596 #size-cells = <0>;
597 samsung,i2c-sda-delay = <100>;
598 samsung,i2c-slave-addr = <0x10>;
599 samsung,i2c-max-bus-freq = <400000>;
600 status = "okay";
601
602 fuelgauge@36 {
603 compatible = "maxim,max77836-battery";
604 interrupt-parent = <&gpx1>;
605 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
606 reg = <0x36>;
607 };
608};
609
610&i2s2 {
611 status = "okay";
612};
613
614&jpeg {
615 status = "okay";
616};
617
618&mshc_0 {
619 broken-cd;
620 non-removable;
621 cap-mmc-highspeed;
622 desc-num = <4>;
623 mmc-hs200-1_8v;
624 card-detect-delay = <200>;
625 vmmc-supply = <&ldo12_reg>;
626 clock-frequency = <100000000>;
627 max-frequency = <100000000>;
628 samsung,dw-mshc-ciu-div = <1>;
629 samsung,dw-mshc-sdr-timing = <0 1>;
630 samsung,dw-mshc-ddr-timing = <1 2>;
631 pinctrl-names = "default";
632 pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
633 bus-width = <8>;
634 status = "okay";
635};
636
637&mshc_1 {
638 status = "okay";
639
640 #address-cells = <1>;
641 #size-cells = <0>;
642
643 non-removable;
644 cap-sd-highspeed;
645 cap-sdio-irq;
646 keep-power-in-suspend;
647 samsung,dw-mshc-ciu-div = <1>;
648 samsung,dw-mshc-sdr-timing = <0 1>;
649 samsung,dw-mshc-ddr-timing = <1 2>;
650 pinctrl-names = "default";
651 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus1 &sd1_bus4>;
652 bus-width = <4>;
653
654 mmc-pwrseq = <&wlan_pwrseq>;
655
656 brcmf: wifi@1 {
657 compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
658 reg = <1>;
659
660 interrupt-parent = <&gpx1>;
661 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
662 interrupt-names = "host-wake";
663 };
664};
665
666&serial_0 {
667 assigned-clocks = <&cmu CLK_SCLK_UART0>;
668 assigned-clock-rates = <100000000>;
669 status = "okay";
670
671 bluetooth {
672 compatible = "brcm,bcm4330-bt";
673 max-speed = <3000000>;
674 shutdown-gpios = <&gpe0 0 GPIO_ACTIVE_HIGH>;
675 device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
676 host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
677 clocks = <&s2mps14_osc S2MPS11_CLK_BT>;
678 };
679};
680
681&serial_1 {
682 status = "okay";
683};
684
685&tmu {
686 vtmu-supply = <&ldo7_reg>;
687 status = "okay";
688};
689
690&rtc {
691 clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>;
692 clock-names = "rtc", "rtc_src";
693 status = "okay";
694};
695
696&xusbxti {
697 clock-frequency = <24000000>;
698};
699
700&pinctrl_0 {
701 pinctrl-names = "default";
702 pinctrl-0 = <&initial0 &sleep0>;
703
704 initial0: initial-state {
705 PIN_IN(gpa1-4, DOWN, LV1);
706 PIN_IN(gpa1-5, DOWN, LV1);
707
708 PIN_IN(gpc0-0, DOWN, LV1);
709 PIN_IN(gpc0-1, DOWN, LV1);
710 PIN_IN(gpc0-2, DOWN, LV1);
711 PIN_IN(gpc0-3, DOWN, LV1);
712 PIN_IN(gpc0-4, DOWN, LV1);
713
714 PIN_IN(gpd0-0, DOWN, LV1);
715 PIN_IN(gpd0-1, DOWN, LV1);
716 };
717
718 sleep0: sleep-state {
719 PIN_SLP(gpa0-0, INPUT, DOWN);
720 PIN_SLP(gpa0-1, INPUT, DOWN);
721 PIN_SLP(gpa0-2, INPUT, DOWN);
722 PIN_SLP(gpa0-3, INPUT, DOWN);
723 PIN_SLP(gpa0-4, INPUT, DOWN);
724 PIN_SLP(gpa0-5, INPUT, DOWN);
725 PIN_SLP(gpa0-6, INPUT, DOWN);
726 PIN_SLP(gpa0-7, INPUT, DOWN);
727
728 PIN_SLP(gpa1-0, INPUT, DOWN);
729 PIN_SLP(gpa1-1, INPUT, DOWN);
730 PIN_SLP(gpa1-2, INPUT, DOWN);
731 PIN_SLP(gpa1-3, INPUT, DOWN);
732 PIN_SLP(gpa1-4, INPUT, DOWN);
733 PIN_SLP(gpa1-5, INPUT, DOWN);
734
735 PIN_SLP(gpb-0, PREV, NONE);
736 PIN_SLP(gpb-1, PREV, NONE);
737 PIN_SLP(gpb-2, PREV, NONE);
738 PIN_SLP(gpb-3, PREV, NONE);
739 PIN_SLP(gpb-4, INPUT, DOWN);
740 PIN_SLP(gpb-5, INPUT, DOWN);
741 PIN_SLP(gpb-6, INPUT, DOWN);
742 PIN_SLP(gpb-7, INPUT, DOWN);
743
744 PIN_SLP(gpc0-0, INPUT, DOWN);
745 PIN_SLP(gpc0-1, INPUT, DOWN);
746 PIN_SLP(gpc0-2, INPUT, DOWN);
747 PIN_SLP(gpc0-3, INPUT, DOWN);
748 PIN_SLP(gpc0-4, INPUT, DOWN);
749
750 PIN_SLP(gpc1-0, INPUT, DOWN);
751 PIN_SLP(gpc1-1, INPUT, DOWN);
752 PIN_SLP(gpc1-2, INPUT, DOWN);
753 PIN_SLP(gpc1-3, INPUT, DOWN);
754 PIN_SLP(gpc1-4, INPUT, DOWN);
755
756 PIN_SLP(gpd0-0, INPUT, DOWN);
757 PIN_SLP(gpd0-1, INPUT, DOWN);
758 PIN_SLP(gpd0-2, INPUT, NONE);
759 PIN_SLP(gpd0-3, INPUT, NONE);
760
761 PIN_SLP(gpd1-0, INPUT, NONE);
762 PIN_SLP(gpd1-1, INPUT, NONE);
763 PIN_SLP(gpd1-2, INPUT, NONE);
764 PIN_SLP(gpd1-3, INPUT, NONE);
765 };
766};
767
768&pinctrl_1 {
769 pinctrl-names = "default";
770 pinctrl-0 = <&initial1 &sleep1>;
771
772 initial1: initial-state {
773 PIN_IN(gpe0-6, DOWN, LV1);
774 PIN_IN(gpe0-7, DOWN, LV1);
775
776 PIN_IN(gpe1-0, DOWN, LV1);
777 PIN_IN(gpe1-3, DOWN, LV1);
778 PIN_IN(gpe1-4, DOWN, LV1);
779 PIN_IN(gpe1-5, DOWN, LV1);
780 PIN_IN(gpe1-6, DOWN, LV1);
781
782 PIN_IN(gpk2-0, DOWN, LV1);
783 PIN_IN(gpk2-1, DOWN, LV1);
784 PIN_IN(gpk2-2, DOWN, LV1);
785 PIN_IN(gpk2-3, DOWN, LV1);
786 PIN_IN(gpk2-4, DOWN, LV1);
787 PIN_IN(gpk2-5, DOWN, LV1);
788 PIN_IN(gpk2-6, DOWN, LV1);
789
790 PIN_IN(gpm0-0, DOWN, LV1);
791 PIN_IN(gpm0-1, DOWN, LV1);
792 PIN_IN(gpm0-2, DOWN, LV1);
793 PIN_IN(gpm0-3, DOWN, LV1);
794 PIN_IN(gpm0-4, DOWN, LV1);
795 PIN_IN(gpm0-5, DOWN, LV1);
796 PIN_IN(gpm0-6, DOWN, LV1);
797 PIN_IN(gpm0-7, DOWN, LV1);
798
799 PIN_IN(gpm1-0, DOWN, LV1);
800 PIN_IN(gpm1-1, DOWN, LV1);
801 PIN_IN(gpm1-2, DOWN, LV1);
802 PIN_IN(gpm1-3, DOWN, LV1);
803 PIN_IN(gpm1-4, DOWN, LV1);
804 PIN_IN(gpm1-5, DOWN, LV1);
805 PIN_IN(gpm1-6, DOWN, LV1);
806
807 PIN_IN(gpm2-0, DOWN, LV1);
808 PIN_IN(gpm2-1, DOWN, LV1);
809
810 PIN_IN(gpm3-0, DOWN, LV1);
811 PIN_IN(gpm3-1, DOWN, LV1);
812 PIN_IN(gpm3-2, DOWN, LV1);
813 PIN_IN(gpm3-3, DOWN, LV1);
814 PIN_IN(gpm3-4, DOWN, LV1);
815
816 PIN_IN(gpm4-1, DOWN, LV1);
817 PIN_IN(gpm4-2, DOWN, LV1);
818 PIN_IN(gpm4-3, DOWN, LV1);
819 PIN_IN(gpm4-4, DOWN, LV1);
820 PIN_IN(gpm4-5, DOWN, LV1);
821 PIN_IN(gpm4-6, DOWN, LV1);
822 PIN_IN(gpm4-7, DOWN, LV1);
823 };
824
825 sleep1: sleep-state {
826 PIN_SLP(gpe0-0, PREV, NONE);
827 PIN_SLP(gpe0-1, PREV, NONE);
828 PIN_SLP(gpe0-2, INPUT, DOWN);
829 PIN_SLP(gpe0-3, INPUT, UP);
830 PIN_SLP(gpe0-4, INPUT, DOWN);
831 PIN_SLP(gpe0-5, INPUT, DOWN);
832 PIN_SLP(gpe0-6, INPUT, DOWN);
833 PIN_SLP(gpe0-7, INPUT, DOWN);
834
835 PIN_SLP(gpe1-0, INPUT, DOWN);
836 PIN_SLP(gpe1-1, PREV, NONE);
837 PIN_SLP(gpe1-2, INPUT, DOWN);
838 PIN_SLP(gpe1-3, INPUT, DOWN);
839 PIN_SLP(gpe1-4, INPUT, DOWN);
840 PIN_SLP(gpe1-5, INPUT, DOWN);
841 PIN_SLP(gpe1-6, INPUT, DOWN);
842 PIN_SLP(gpe1-7, INPUT, NONE);
843
844 PIN_SLP(gpe2-0, INPUT, NONE);
845 PIN_SLP(gpe2-1, INPUT, NONE);
846 PIN_SLP(gpe2-2, INPUT, NONE);
847
848 PIN_SLP(gpk0-0, INPUT, DOWN);
849 PIN_SLP(gpk0-1, INPUT, DOWN);
850 PIN_SLP(gpk0-2, OUT0, NONE);
851 PIN_SLP(gpk0-3, INPUT, DOWN);
852 PIN_SLP(gpk0-4, INPUT, DOWN);
853 PIN_SLP(gpk0-5, INPUT, DOWN);
854 PIN_SLP(gpk0-6, INPUT, DOWN);
855 PIN_SLP(gpk0-7, INPUT, DOWN);
856
857 PIN_SLP(gpk1-0, INPUT, DOWN);
858 PIN_SLP(gpk1-1, INPUT, DOWN);
859 PIN_SLP(gpk1-2, INPUT, DOWN);
860 PIN_SLP(gpk1-3, INPUT, DOWN);
861 PIN_SLP(gpk1-4, INPUT, DOWN);
862 PIN_SLP(gpk1-5, INPUT, DOWN);
863 PIN_SLP(gpk1-6, INPUT, DOWN);
864
865 PIN_SLP(gpk2-0, INPUT, DOWN);
866 PIN_SLP(gpk2-1, INPUT, DOWN);
867 PIN_SLP(gpk2-2, INPUT, DOWN);
868 PIN_SLP(gpk2-3, INPUT, DOWN);
869 PIN_SLP(gpk2-4, INPUT, DOWN);
870 PIN_SLP(gpk2-5, INPUT, DOWN);
871 PIN_SLP(gpk2-6, INPUT, DOWN);
872
873 PIN_SLP(gpl0-0, INPUT, DOWN);
874 PIN_SLP(gpl0-1, INPUT, DOWN);
875 PIN_SLP(gpl0-2, INPUT, DOWN);
876 PIN_SLP(gpl0-3, INPUT, DOWN);
877
878 PIN_SLP(gpm0-0, INPUT, DOWN);
879 PIN_SLP(gpm0-1, INPUT, DOWN);
880 PIN_SLP(gpm0-2, INPUT, DOWN);
881 PIN_SLP(gpm0-3, INPUT, DOWN);
882 PIN_SLP(gpm0-4, INPUT, DOWN);
883 PIN_SLP(gpm0-5, INPUT, DOWN);
884 PIN_SLP(gpm0-6, INPUT, DOWN);
885 PIN_SLP(gpm0-7, INPUT, DOWN);
886
887 PIN_SLP(gpm1-0, INPUT, DOWN);
888 PIN_SLP(gpm1-1, INPUT, DOWN);
889 PIN_SLP(gpm1-2, INPUT, DOWN);
890 PIN_SLP(gpm1-3, INPUT, DOWN);
891 PIN_SLP(gpm1-4, INPUT, DOWN);
892 PIN_SLP(gpm1-5, INPUT, DOWN);
893 PIN_SLP(gpm1-6, INPUT, DOWN);
894
895 PIN_SLP(gpm2-0, INPUT, DOWN);
896 PIN_SLP(gpm2-1, INPUT, DOWN);
897 PIN_SLP(gpm2-2, INPUT, DOWN);
898 PIN_SLP(gpm2-3, INPUT, DOWN);
899 PIN_SLP(gpm2-4, INPUT, DOWN);
900
901 PIN_SLP(gpm3-0, INPUT, DOWN);
902 PIN_SLP(gpm3-1, INPUT, DOWN);
903 PIN_SLP(gpm3-2, INPUT, DOWN);
904 PIN_SLP(gpm3-3, INPUT, DOWN);
905 PIN_SLP(gpm3-4, INPUT, DOWN);
906 PIN_SLP(gpm3-5, INPUT, DOWN);
907 PIN_SLP(gpm3-6, INPUT, DOWN);
908 PIN_SLP(gpm3-7, INPUT, DOWN);
909
910 PIN_SLP(gpm4-0, INPUT, DOWN);
911 PIN_SLP(gpm4-1, INPUT, DOWN);
912 PIN_SLP(gpm4-2, INPUT, DOWN);
913 PIN_SLP(gpm4-3, INPUT, DOWN);
914 PIN_SLP(gpm4-4, INPUT, DOWN);
915 PIN_SLP(gpm4-5, INPUT, DOWN);
916 PIN_SLP(gpm4-6, INPUT, DOWN);
917 PIN_SLP(gpm4-7, INPUT, DOWN);
918 };
919};
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Samsung's Exynos3250 based Rinato board device tree source
4 *
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com
7 *
8 * Device tree source file for Samsung's Rinato board which is based on
9 * Samsung Exynos3250 SoC.
10 */
11
12/dts-v1/;
13#include "exynos3250.dtsi"
14#include "exynos4412-ppmu-common.dtsi"
15#include <dt-bindings/input/input.h>
16#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/clock/samsung,s2mps11.h>
18
19/ {
20 model = "Samsung Rinato board";
21 compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3";
22
23 aliases {
24 i2c7 = &i2c_max77836;
25 };
26
27 chosen {
28 stdout-path = &serial_1;
29 };
30
31 memory@40000000 {
32 device_type = "memory";
33 reg = <0x40000000 0x1ff00000>;
34 };
35
36 firmware@205f000 {
37 compatible = "samsung,secure-firmware";
38 reg = <0x0205F000 0x1000>;
39 };
40
41 gpio_keys {
42 compatible = "gpio-keys";
43
44 power_key {
45 gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_POWER>;
47 label = "power key";
48 debounce-interval = <10>;
49 wakeup-source;
50 };
51 };
52
53 wlan_pwrseq: mshc1-pwrseq {
54 compatible = "mmc-pwrseq-simple";
55 reset-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
56 };
57
58 i2c_max77836: i2c-gpio-0 {
59 compatible = "i2c-gpio";
60 sda-gpios = <&gpd0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
61 scl-gpios = <&gpd0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
62 #address-cells = <1>;
63 #size-cells = <0>;
64
65 max77836: subpmic@25 {
66 compatible = "maxim,max77836";
67 interrupt-parent = <&gpx1>;
68 interrupts = <5 IRQ_TYPE_NONE>;
69 reg = <0x25>;
70 wakeup-source;
71
72 muic: max77836-muic {
73 compatible = "maxim,max77836-muic";
74 };
75
76 regulators {
77 compatible = "maxim,max77836-regulator";
78 safeout_reg: SAFEOUT {
79 regulator-name = "SAFEOUT";
80 };
81
82 charger_reg: CHARGER {
83 regulator-name = "CHARGER";
84 regulator-min-microamp = <45000>;
85 regulator-max-microamp = <475000>;
86 regulator-boot-on;
87 };
88
89 motor_reg: LDO1 {
90 regulator-name = "MOT_2.7V";
91 regulator-min-microvolt = <1100000>;
92 regulator-max-microvolt = <2700000>;
93 };
94
95 LDO2 {
96 regulator-name = "UNUSED_LDO2";
97 regulator-min-microvolt = <800000>;
98 regulator-max-microvolt = <3950000>;
99 };
100 };
101
102 charger {
103 compatible = "maxim,max77836-charger";
104
105 maxim,constant-uvolt = <4350000>;
106 maxim,fast-charge-uamp = <225000>;
107 maxim,eoc-uamp = <7500>;
108 maxim,ovp-uvolt = <6500000>;
109 };
110 };
111 };
112
113 haptics {
114 compatible = "regulator-haptic";
115 haptic-supply = <&motor_reg>;
116 min-microvolt = <1100000>;
117 max-microvolt = <2700000>;
118 };
119
120 thermal-zones {
121 cpu_thermal: cpu-thermal {
122 cooling-maps {
123 map0 {
124 /* Corresponds to 500MHz */
125 cooling-device = <&cpu0 5 5>,
126 <&cpu1 5 5>;
127 };
128 map1 {
129 /* Corresponds to 200MHz */
130 cooling-device = <&cpu0 8 8>,
131 <&cpu1 8 8>;
132 };
133 };
134 };
135 };
136};
137
138&adc {
139 vdd-supply = <&ldo3_reg>;
140 status = "okay";
141 assigned-clocks = <&cmu CLK_SCLK_TSADC>;
142 assigned-clock-rates = <6000000>;
143
144 thermistor-ap {
145 compatible = "ntc,ncp15wb473";
146 pullup-uv = <1800000>;
147 pullup-ohm = <100000>;
148 pulldown-ohm = <100000>;
149 io-channels = <&adc 0>;
150 };
151
152 thermistor-battery {
153 compatible = "ntc,ncp15wb473";
154 pullup-uv = <1800000>;
155 pullup-ohm = <100000>;
156 pulldown-ohm = <100000>;
157 io-channels = <&adc 1>;
158 };
159};
160
161&bus_dmc {
162 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
163 vdd-supply = <&buck1_reg>;
164 status = "okay";
165};
166
167&bus_leftbus {
168 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
169 vdd-supply = <&buck3_reg>;
170 status = "okay";
171};
172
173&bus_rightbus {
174 devfreq = <&bus_leftbus>;
175 status = "okay";
176};
177
178&bus_lcd0 {
179 devfreq = <&bus_leftbus>;
180 status = "okay";
181};
182
183&bus_fsys {
184 devfreq = <&bus_leftbus>;
185 status = "okay";
186};
187
188&bus_mcuisp {
189 devfreq = <&bus_leftbus>;
190 status = "okay";
191};
192
193&bus_isp {
194 devfreq = <&bus_leftbus>;
195 status = "okay";
196};
197
198&bus_peril {
199 devfreq = <&bus_leftbus>;
200 status = "okay";
201};
202
203&bus_mfc {
204 devfreq = <&bus_leftbus>;
205 status = "okay";
206};
207
208&cpu0 {
209 cpu0-supply = <&buck2_reg>;
210};
211
212&exynos_usbphy {
213 status = "okay";
214 vbus-supply = <&safeout_reg>;
215};
216
217&hsotg {
218 vusb_d-supply = <&ldo15_reg>;
219 vusb_a-supply = <&ldo12_reg>;
220 dr_mode = "peripheral";
221 status = "okay";
222};
223
224&dsi_0 {
225 vddcore-supply = <&ldo6_reg>;
226 vddio-supply = <&ldo6_reg>;
227 samsung,burst-clock-frequency = <250000000>;
228 samsung,esc-clock-frequency = <20000000>;
229 samsung,pll-clock-frequency = <24000000>;
230 status = "okay";
231
232 panel@0 {
233 compatible = "samsung,s6e63j0x03";
234 reg = <0>;
235 vdd3-supply = <&ldo16_reg>;
236 vci-supply = <&ldo20_reg>;
237 reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>;
238 te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
239 };
240};
241
242&fimd {
243 status = "okay";
244
245 i80-if-timings {
246 cs-setup = <0>;
247 wr-setup = <0>;
248 wr-act = <1>;
249 wr-hold = <0>;
250 };
251};
252
253&gpu {
254 mali-supply = <&buck3_reg>;
255 status = "okay";
256};
257
258&i2c_0 {
259 #address-cells = <1>;
260 #size-cells = <0>;
261 samsung,i2c-sda-delay = <100>;
262 samsung,i2c-slave-addr = <0x10>;
263 samsung,i2c-max-bus-freq = <100000>;
264 status = "okay";
265
266 s2mps14_pmic@66 {
267 compatible = "samsung,s2mps14-pmic";
268 interrupt-parent = <&gpx0>;
269 interrupts = <7 IRQ_TYPE_NONE>;
270 reg = <0x66>;
271 wakeup-source;
272
273 s2mps14_osc: clocks {
274 compatible = "samsung,s2mps14-clk";
275 #clock-cells = <1>;
276 clock-output-names = "s2mps14_ap", "unused",
277 "s2mps14_bt";
278 };
279
280 regulators {
281 ldo1_reg: LDO1 {
282 regulator-name = "VAP_ALIVE_1.0V";
283 regulator-min-microvolt = <1000000>;
284 regulator-max-microvolt = <1000000>;
285 regulator-always-on;
286
287 regulator-state-mem {
288 regulator-on-in-suspend;
289 };
290 };
291
292 ldo2_reg: LDO2 {
293 regulator-name = "VAP_M1_1.2V";
294 regulator-min-microvolt = <1200000>;
295 regulator-max-microvolt = <1200000>;
296 regulator-always-on;
297
298 regulator-state-mem {
299 regulator-off-in-suspend;
300 };
301 };
302
303 ldo3_reg: LDO3 {
304 regulator-name = "VCC_AP_1.8V";
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <1800000>;
307 regulator-always-on;
308
309 regulator-state-mem {
310 regulator-off-in-suspend;
311 };
312 };
313
314 ldo4_reg: LDO4 {
315 regulator-name = "VAP_AVDD_PLL1";
316 regulator-min-microvolt = <1800000>;
317 regulator-max-microvolt = <1800000>;
318 regulator-always-on;
319
320 regulator-state-mem {
321 regulator-off-in-suspend;
322 };
323 };
324
325 ldo5_reg: LDO5 {
326 regulator-name = "VAP_PLL_ISO_1.0V";
327 regulator-min-microvolt = <1000000>;
328 regulator-max-microvolt = <1000000>;
329 regulator-always-on;
330
331 regulator-state-mem {
332 regulator-off-in-suspend;
333 };
334 };
335
336 ldo6_reg: LDO6 {
337 regulator-name = "VAP_VMIPI_1.0V";
338 regulator-min-microvolt = <1000000>;
339 regulator-max-microvolt = <1000000>;
340 regulator-always-on;
341
342 regulator-state-mem {
343 regulator-off-in-suspend;
344 };
345 };
346
347 ldo7_reg: LDO7 {
348 regulator-name = "VAP_AVDD_1.8V";
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <1800000>;
351 regulator-always-on;
352
353 regulator-state-mem {
354 regulator-off-in-suspend;
355 };
356 };
357
358 ldo8_reg: LDO8 {
359 regulator-name = "VAP_USB_3.0V";
360 regulator-min-microvolt = <3000000>;
361 regulator-max-microvolt = <3000000>;
362 regulator-always-on;
363
364 regulator-state-mem {
365 regulator-off-in-suspend;
366 };
367 };
368
369 ldo9_reg: LDO9 {
370 regulator-name = "V_LPDDR_1.2V";
371 regulator-min-microvolt = <1200000>;
372 regulator-max-microvolt = <1200000>;
373 regulator-always-on;
374
375 regulator-state-mem {
376 regulator-on-in-suspend;
377 };
378 };
379
380 ldo10_reg: LDO10 {
381 regulator-name = "UNUSED_LDO10";
382 regulator-min-microvolt = <1000000>;
383 regulator-max-microvolt = <1000000>;
384
385 regulator-state-mem {
386 regulator-off-in-suspend;
387 };
388 };
389
390 ldo11_reg: LDO11 {
391 regulator-name = "V_EMMC_1.8V";
392 regulator-min-microvolt = <1800000>;
393 regulator-max-microvolt = <1800000>;
394 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
395 };
396
397 ldo12_reg: LDO12 {
398 regulator-name = "V_EMMC_2.8V";
399 regulator-min-microvolt = <2800000>;
400 regulator-max-microvolt = <2800000>;
401 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
402 };
403
404 ldo13_reg: LDO13 {
405 regulator-name = "CAM_AVDD_2.8V";
406 regulator-min-microvolt = <2800000>;
407 regulator-max-microvolt = <2800000>;
408
409 regulator-state-mem {
410 regulator-off-in-suspend;
411 };
412 };
413
414 ldo14_reg: LDO14 {
415 regulator-name = "UNUSED_LDO14";
416 regulator-min-microvolt = <2700000>;
417 regulator-max-microvolt = <2700000>;
418
419 regulator-state-mem {
420 regulator-off-in-suspend;
421 };
422 };
423
424 ldo15_reg: LDO15 {
425 regulator-name = "TSP_AVDD_3.3V";
426 regulator-min-microvolt = <3300000>;
427 regulator-max-microvolt = <3300000>;
428
429 regulator-state-mem {
430 regulator-off-in-suspend;
431 };
432 };
433
434 ldo16_reg: LDO16 {
435 regulator-name = "LCD_VDD_3.3V";
436 regulator-min-microvolt = <3300000>;
437 regulator-max-microvolt = <3300000>;
438
439 regulator-state-mem {
440 regulator-off-in-suspend;
441 };
442 };
443
444 ldo17_reg: LDO17 {
445 regulator-name = "V_IRLED_3.3V";
446 regulator-min-microvolt = <3300000>;
447 regulator-max-microvolt = <3300000>;
448
449 regulator-state-mem {
450 regulator-off-in-suspend;
451 };
452 };
453
454 ldo18_reg: LDO18 {
455 regulator-name = "CAM_AF_2.8V";
456 regulator-min-microvolt = <2800000>;
457 regulator-max-microvolt = <2800000>;
458
459 regulator-state-mem {
460 regulator-off-in-suspend;
461 };
462 };
463
464 ldo19_reg: LDO19 {
465 regulator-name = "TSP_VDD_1.8V";
466 regulator-min-microvolt = <1800000>;
467 regulator-max-microvolt = <1800000>;
468
469 regulator-state-mem {
470 regulator-off-in-suspend;
471 };
472 };
473
474 ldo20_reg: LDO20 {
475 regulator-name = "LCD_VDD_1.8V";
476 regulator-min-microvolt = <1800000>;
477 regulator-max-microvolt = <1800000>;
478
479 regulator-state-mem {
480 regulator-off-in-suspend;
481 };
482 };
483
484 ldo21_reg: LDO21 {
485 regulator-name = "CAM_IO_1.8V";
486 regulator-min-microvolt = <1800000>;
487 regulator-max-microvolt = <1800000>;
488
489 regulator-state-mem {
490 regulator-off-in-suspend;
491 };
492 };
493
494 ldo22_reg: LDO22 {
495 regulator-name = "CAM_DVDD_1.2V";
496 regulator-min-microvolt = <1200000>;
497 regulator-max-microvolt = <1200000>;
498
499 regulator-state-mem {
500 regulator-off-in-suspend;
501 };
502 };
503
504 ldo23_reg: LDO23 {
505 regulator-name = "HRM_VCC_1.8V";
506 regulator-min-microvolt = <1800000>;
507 regulator-max-microvolt = <1800000>;
508 regulator-always-on;
509 };
510
511 ldo24_reg: LDO24 {
512 regulator-name = "HRM_VCC_3.3V";
513 regulator-min-microvolt = <3000000>;
514 regulator-max-microvolt = <3000000>;
515
516 regulator-state-mem {
517 regulator-off-in-suspend;
518 };
519 };
520
521 ldo25_reg: LDO25 {
522 regulator-name = "UNUSED_LDO25";
523 regulator-min-microvolt = <3000000>;
524 regulator-max-microvolt = <3000000>;
525
526 regulator-state-mem {
527 regulator-off-in-suspend;
528 };
529 };
530
531 buck1_reg: BUCK1 {
532 regulator-name = "VAP_MIF_1.0V";
533 regulator-min-microvolt = <800000>;
534 regulator-max-microvolt = <900000>;
535 regulator-always-on;
536
537 regulator-state-mem {
538 regulator-off-in-suspend;
539 };
540 };
541
542 buck2_reg: BUCK2 {
543 regulator-name = "VAP_ARM_1.0V";
544 regulator-min-microvolt = <850000>;
545 regulator-max-microvolt = <1150000>;
546 regulator-always-on;
547
548 regulator-state-mem {
549 regulator-off-in-suspend;
550 };
551 };
552
553 buck3_reg: BUCK3 {
554 regulator-name = "VAP_INT3D_1.0V";
555 regulator-min-microvolt = <850000>;
556 regulator-max-microvolt = <1000000>;
557 regulator-always-on;
558
559 regulator-state-mem {
560 regulator-off-in-suspend;
561 };
562 };
563
564 buck4_reg: BUCK4 {
565 regulator-name = "VCC_SUB_1.95V";
566 regulator-min-microvolt = <1950000>;
567 regulator-max-microvolt = <1950000>;
568 regulator-always-on;
569
570 regulator-state-mem {
571 regulator-on-in-suspend;
572 };
573 };
574
575 buck5_reg: BUCK5 {
576 regulator-name = "VCC_SUB_1.35V";
577 regulator-min-microvolt = <1350000>;
578 regulator-max-microvolt = <1350000>;
579 regulator-always-on;
580
581 regulator-state-mem {
582 regulator-on-in-suspend;
583 };
584 };
585 };
586 };
587};
588
589&i2c_1 {
590 #address-cells = <1>;
591 #size-cells = <0>;
592 samsung,i2c-sda-delay = <100>;
593 samsung,i2c-slave-addr = <0x10>;
594 samsung,i2c-max-bus-freq = <400000>;
595 status = "okay";
596
597 fuelgauge@36 {
598 compatible = "maxim,max77836-battery";
599 interrupt-parent = <&gpx1>;
600 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
601 reg = <0x36>;
602 };
603};
604
605&i2s2 {
606 status = "okay";
607};
608
609&jpeg {
610 status = "okay";
611};
612
613&mshc_0 {
614 broken-cd;
615 non-removable;
616 cap-mmc-highspeed;
617 desc-num = <4>;
618 mmc-hs200-1_8v;
619 card-detect-delay = <200>;
620 vmmc-supply = <&ldo12_reg>;
621 clock-frequency = <100000000>;
622 max-frequency = <100000000>;
623 samsung,dw-mshc-ciu-div = <1>;
624 samsung,dw-mshc-sdr-timing = <0 1>;
625 samsung,dw-mshc-ddr-timing = <1 2>;
626 pinctrl-names = "default";
627 pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
628 bus-width = <8>;
629 status = "okay";
630};
631
632&mshc_1 {
633 status = "okay";
634
635 #address-cells = <1>;
636 #size-cells = <0>;
637
638 non-removable;
639 cap-sd-highspeed;
640 cap-sdio-irq;
641 keep-power-in-suspend;
642 samsung,dw-mshc-ciu-div = <1>;
643 samsung,dw-mshc-sdr-timing = <0 1>;
644 samsung,dw-mshc-ddr-timing = <1 2>;
645 pinctrl-names = "default";
646 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus1 &sd1_bus4>;
647 bus-width = <4>;
648
649 mmc-pwrseq = <&wlan_pwrseq>;
650
651 brcmf: wifi@1 {
652 compatible = "brcm,bcm4334-fmac";
653 reg = <1>;
654
655 interrupt-parent = <&gpx1>;
656 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
657 interrupt-names = "host-wake";
658 };
659};
660
661&serial_0 {
662 assigned-clocks = <&cmu CLK_SCLK_UART0>;
663 assigned-clock-rates = <100000000>;
664 status = "okay";
665
666 bluetooth {
667 compatible = "brcm,bcm4330-bt";
668 max-speed = <3000000>;
669 shutdown-gpios = <&gpe0 0 GPIO_ACTIVE_HIGH>;
670 device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
671 host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
672 clocks = <&s2mps14_osc S2MPS11_CLK_BT>;
673 };
674};
675
676&serial_1 {
677 status = "okay";
678};
679
680&tmu {
681 vtmu-supply = <&ldo7_reg>;
682 status = "okay";
683};
684
685&rtc {
686 clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>;
687 clock-names = "rtc", "rtc_src";
688 status = "okay";
689};
690
691&xusbxti {
692 clock-frequency = <24000000>;
693};
694
695&pinctrl_0 {
696 pinctrl-names = "default";
697 pinctrl-0 = <&initial0 &sleep0>;
698
699 initial0: initial-state {
700 PIN_IN(gpa1-4, DOWN, LV1);
701 PIN_IN(gpa1-5, DOWN, LV1);
702
703 PIN_IN(gpc0-0, DOWN, LV1);
704 PIN_IN(gpc0-1, DOWN, LV1);
705 PIN_IN(gpc0-2, DOWN, LV1);
706 PIN_IN(gpc0-3, DOWN, LV1);
707 PIN_IN(gpc0-4, DOWN, LV1);
708
709 PIN_IN(gpd0-0, DOWN, LV1);
710 PIN_IN(gpd0-1, DOWN, LV1);
711 };
712
713 sleep0: sleep-state {
714 PIN_SLP(gpa0-0, INPUT, DOWN);
715 PIN_SLP(gpa0-1, INPUT, DOWN);
716 PIN_SLP(gpa0-2, INPUT, DOWN);
717 PIN_SLP(gpa0-3, INPUT, DOWN);
718 PIN_SLP(gpa0-4, INPUT, DOWN);
719 PIN_SLP(gpa0-5, INPUT, DOWN);
720 PIN_SLP(gpa0-6, INPUT, DOWN);
721 PIN_SLP(gpa0-7, INPUT, DOWN);
722
723 PIN_SLP(gpa1-0, INPUT, DOWN);
724 PIN_SLP(gpa1-1, INPUT, DOWN);
725 PIN_SLP(gpa1-2, INPUT, DOWN);
726 PIN_SLP(gpa1-3, INPUT, DOWN);
727 PIN_SLP(gpa1-4, INPUT, DOWN);
728 PIN_SLP(gpa1-5, INPUT, DOWN);
729
730 PIN_SLP(gpb-0, PREV, NONE);
731 PIN_SLP(gpb-1, PREV, NONE);
732 PIN_SLP(gpb-2, PREV, NONE);
733 PIN_SLP(gpb-3, PREV, NONE);
734 PIN_SLP(gpb-4, INPUT, DOWN);
735 PIN_SLP(gpb-5, INPUT, DOWN);
736 PIN_SLP(gpb-6, INPUT, DOWN);
737 PIN_SLP(gpb-7, INPUT, DOWN);
738
739 PIN_SLP(gpc0-0, INPUT, DOWN);
740 PIN_SLP(gpc0-1, INPUT, DOWN);
741 PIN_SLP(gpc0-2, INPUT, DOWN);
742 PIN_SLP(gpc0-3, INPUT, DOWN);
743 PIN_SLP(gpc0-4, INPUT, DOWN);
744
745 PIN_SLP(gpc1-0, INPUT, DOWN);
746 PIN_SLP(gpc1-1, INPUT, DOWN);
747 PIN_SLP(gpc1-2, INPUT, DOWN);
748 PIN_SLP(gpc1-3, INPUT, DOWN);
749 PIN_SLP(gpc1-4, INPUT, DOWN);
750
751 PIN_SLP(gpd0-0, INPUT, DOWN);
752 PIN_SLP(gpd0-1, INPUT, DOWN);
753 PIN_SLP(gpd0-2, INPUT, NONE);
754 PIN_SLP(gpd0-3, INPUT, NONE);
755
756 PIN_SLP(gpd1-0, INPUT, NONE);
757 PIN_SLP(gpd1-1, INPUT, NONE);
758 PIN_SLP(gpd1-2, INPUT, NONE);
759 PIN_SLP(gpd1-3, INPUT, NONE);
760 };
761};
762
763&pinctrl_1 {
764 pinctrl-names = "default";
765 pinctrl-0 = <&initial1 &sleep1>;
766
767 initial1: initial-state {
768 PIN_IN(gpe0-6, DOWN, LV1);
769 PIN_IN(gpe0-7, DOWN, LV1);
770
771 PIN_IN(gpe1-0, DOWN, LV1);
772 PIN_IN(gpe1-3, DOWN, LV1);
773 PIN_IN(gpe1-4, DOWN, LV1);
774 PIN_IN(gpe1-5, DOWN, LV1);
775 PIN_IN(gpe1-6, DOWN, LV1);
776
777 PIN_IN(gpk2-0, DOWN, LV1);
778 PIN_IN(gpk2-1, DOWN, LV1);
779 PIN_IN(gpk2-2, DOWN, LV1);
780 PIN_IN(gpk2-3, DOWN, LV1);
781 PIN_IN(gpk2-4, DOWN, LV1);
782 PIN_IN(gpk2-5, DOWN, LV1);
783 PIN_IN(gpk2-6, DOWN, LV1);
784
785 PIN_IN(gpm0-0, DOWN, LV1);
786 PIN_IN(gpm0-1, DOWN, LV1);
787 PIN_IN(gpm0-2, DOWN, LV1);
788 PIN_IN(gpm0-3, DOWN, LV1);
789 PIN_IN(gpm0-4, DOWN, LV1);
790 PIN_IN(gpm0-5, DOWN, LV1);
791 PIN_IN(gpm0-6, DOWN, LV1);
792 PIN_IN(gpm0-7, DOWN, LV1);
793
794 PIN_IN(gpm1-0, DOWN, LV1);
795 PIN_IN(gpm1-1, DOWN, LV1);
796 PIN_IN(gpm1-2, DOWN, LV1);
797 PIN_IN(gpm1-3, DOWN, LV1);
798 PIN_IN(gpm1-4, DOWN, LV1);
799 PIN_IN(gpm1-5, DOWN, LV1);
800 PIN_IN(gpm1-6, DOWN, LV1);
801
802 PIN_IN(gpm2-0, DOWN, LV1);
803 PIN_IN(gpm2-1, DOWN, LV1);
804
805 PIN_IN(gpm3-0, DOWN, LV1);
806 PIN_IN(gpm3-1, DOWN, LV1);
807 PIN_IN(gpm3-2, DOWN, LV1);
808 PIN_IN(gpm3-3, DOWN, LV1);
809 PIN_IN(gpm3-4, DOWN, LV1);
810
811 PIN_IN(gpm4-1, DOWN, LV1);
812 PIN_IN(gpm4-2, DOWN, LV1);
813 PIN_IN(gpm4-3, DOWN, LV1);
814 PIN_IN(gpm4-4, DOWN, LV1);
815 PIN_IN(gpm4-5, DOWN, LV1);
816 PIN_IN(gpm4-6, DOWN, LV1);
817 PIN_IN(gpm4-7, DOWN, LV1);
818 };
819
820 sleep1: sleep-state {
821 PIN_SLP(gpe0-0, PREV, NONE);
822 PIN_SLP(gpe0-1, PREV, NONE);
823 PIN_SLP(gpe0-2, INPUT, DOWN);
824 PIN_SLP(gpe0-3, INPUT, UP);
825 PIN_SLP(gpe0-4, INPUT, DOWN);
826 PIN_SLP(gpe0-5, INPUT, DOWN);
827 PIN_SLP(gpe0-6, INPUT, DOWN);
828 PIN_SLP(gpe0-7, INPUT, DOWN);
829
830 PIN_SLP(gpe1-0, INPUT, DOWN);
831 PIN_SLP(gpe1-1, PREV, NONE);
832 PIN_SLP(gpe1-2, INPUT, DOWN);
833 PIN_SLP(gpe1-3, INPUT, DOWN);
834 PIN_SLP(gpe1-4, INPUT, DOWN);
835 PIN_SLP(gpe1-5, INPUT, DOWN);
836 PIN_SLP(gpe1-6, INPUT, DOWN);
837 PIN_SLP(gpe1-7, INPUT, NONE);
838
839 PIN_SLP(gpe2-0, INPUT, NONE);
840 PIN_SLP(gpe2-1, INPUT, NONE);
841 PIN_SLP(gpe2-2, INPUT, NONE);
842
843 PIN_SLP(gpk0-0, INPUT, DOWN);
844 PIN_SLP(gpk0-1, INPUT, DOWN);
845 PIN_SLP(gpk0-2, OUT0, NONE);
846 PIN_SLP(gpk0-3, INPUT, DOWN);
847 PIN_SLP(gpk0-4, INPUT, DOWN);
848 PIN_SLP(gpk0-5, INPUT, DOWN);
849 PIN_SLP(gpk0-6, INPUT, DOWN);
850 PIN_SLP(gpk0-7, INPUT, DOWN);
851
852 PIN_SLP(gpk1-0, INPUT, DOWN);
853 PIN_SLP(gpk1-1, INPUT, DOWN);
854 PIN_SLP(gpk1-2, INPUT, DOWN);
855 PIN_SLP(gpk1-3, INPUT, DOWN);
856 PIN_SLP(gpk1-4, INPUT, DOWN);
857 PIN_SLP(gpk1-5, INPUT, DOWN);
858 PIN_SLP(gpk1-6, INPUT, DOWN);
859
860 PIN_SLP(gpk2-0, INPUT, DOWN);
861 PIN_SLP(gpk2-1, INPUT, DOWN);
862 PIN_SLP(gpk2-2, INPUT, DOWN);
863 PIN_SLP(gpk2-3, INPUT, DOWN);
864 PIN_SLP(gpk2-4, INPUT, DOWN);
865 PIN_SLP(gpk2-5, INPUT, DOWN);
866 PIN_SLP(gpk2-6, INPUT, DOWN);
867
868 PIN_SLP(gpl0-0, INPUT, DOWN);
869 PIN_SLP(gpl0-1, INPUT, DOWN);
870 PIN_SLP(gpl0-2, INPUT, DOWN);
871 PIN_SLP(gpl0-3, INPUT, DOWN);
872
873 PIN_SLP(gpm0-0, INPUT, DOWN);
874 PIN_SLP(gpm0-1, INPUT, DOWN);
875 PIN_SLP(gpm0-2, INPUT, DOWN);
876 PIN_SLP(gpm0-3, INPUT, DOWN);
877 PIN_SLP(gpm0-4, INPUT, DOWN);
878 PIN_SLP(gpm0-5, INPUT, DOWN);
879 PIN_SLP(gpm0-6, INPUT, DOWN);
880 PIN_SLP(gpm0-7, INPUT, DOWN);
881
882 PIN_SLP(gpm1-0, INPUT, DOWN);
883 PIN_SLP(gpm1-1, INPUT, DOWN);
884 PIN_SLP(gpm1-2, INPUT, DOWN);
885 PIN_SLP(gpm1-3, INPUT, DOWN);
886 PIN_SLP(gpm1-4, INPUT, DOWN);
887 PIN_SLP(gpm1-5, INPUT, DOWN);
888 PIN_SLP(gpm1-6, INPUT, DOWN);
889
890 PIN_SLP(gpm2-0, INPUT, DOWN);
891 PIN_SLP(gpm2-1, INPUT, DOWN);
892 PIN_SLP(gpm2-2, INPUT, DOWN);
893 PIN_SLP(gpm2-3, INPUT, DOWN);
894 PIN_SLP(gpm2-4, INPUT, DOWN);
895
896 PIN_SLP(gpm3-0, INPUT, DOWN);
897 PIN_SLP(gpm3-1, INPUT, DOWN);
898 PIN_SLP(gpm3-2, INPUT, DOWN);
899 PIN_SLP(gpm3-3, INPUT, DOWN);
900 PIN_SLP(gpm3-4, INPUT, DOWN);
901 PIN_SLP(gpm3-5, INPUT, DOWN);
902 PIN_SLP(gpm3-6, INPUT, DOWN);
903 PIN_SLP(gpm3-7, INPUT, DOWN);
904
905 PIN_SLP(gpm4-0, INPUT, DOWN);
906 PIN_SLP(gpm4-1, INPUT, DOWN);
907 PIN_SLP(gpm4-2, INPUT, DOWN);
908 PIN_SLP(gpm4-3, INPUT, DOWN);
909 PIN_SLP(gpm4-4, INPUT, DOWN);
910 PIN_SLP(gpm4-5, INPUT, DOWN);
911 PIN_SLP(gpm4-6, INPUT, DOWN);
912 PIN_SLP(gpm4-7, INPUT, DOWN);
913 };
914};