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