blob: 5e4a471faee168035d2d1f54f595525292d27883 [file] [log] [blame]
Youngjun Choe0cefb32014-11-27 02:43:39 +09001/*
2 * Samsung's Exynos3250 based Monk 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 Monk 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 <dt-bindings/input/input.h>
Beomho Seo13b9b642015-01-12 18:00:15 +090018#include <dt-bindings/gpio/gpio.h>
Youngjun Choe0cefb32014-11-27 02:43:39 +090019
20/ {
21 model = "Samsung Monk board";
22 compatible = "samsung,monk", "samsung,exynos3250", "samsung,exynos3";
23
24 aliases {
25 i2c7 = &i2c_max77836;
26 };
27
28 memory {
29 reg = <0x40000000 0x1ff00000>;
30 };
31
32 firmware@0205F000 {
33 compatible = "samsung,secure-firmware";
34 reg = <0x0205F000 0x1000>;
35 };
36
37 gpio_keys {
38 compatible = "gpio-keys";
39
40 power_key {
Beomho Seo13b9b642015-01-12 18:00:15 +090041 gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
Youngjun Choe0cefb32014-11-27 02:43:39 +090042 linux,code = <KEY_POWER>;
43 label = "power key";
44 debounce-interval = <10>;
45 gpio-key,wakeup;
46 };
47 };
48
49 vemmc_reg: voltage-regulator-0 {
50 compatible = "regulator-fixed";
51 regulator-name = "V_EMMC_2.8V-fixed";
52 regulator-min-microvolt = <2800000>;
53 regulator-max-microvolt = <2800000>;
54 gpio = <&gpk0 2 0>;
55 enable-active-high;
56 };
57
58 i2c_max77836: i2c-gpio-0 {
59 compatible = "i2c-gpio";
60 gpios = <&gpd0 2 0>, <&gpd0 3 0>;
61 #address-cells = <1>;
62 #size-cells = <0>;
63
64 max77836: subpmic@25 {
65 compatible = "maxim,max77836";
66 interrupt-parent = <&gpx1>;
67 interrupts = <5 0>;
68 reg = <0x25>;
69 wakeup;
70
71 muic: max77836-muic {
72 compatible = "maxim,max77836-muic";
73 };
74
75 regulators {
76 compatible = "maxim,max77836-regulator";
77 safeout_reg: SAFEOUT {
78 regulator-name = "SAFEOUT";
79 };
80
81 charger_reg: CHARGER {
82 regulator-name = "CHARGER";
83 regulator-min-microamp = <45000>;
84 regulator-max-microamp = <475000>;
85 regulator-boot-on;
86 };
87
88 motor_reg: LDO1 {
89 regulator-name = "MOT_2.7V";
90 regulator-min-microvolt = <1100000>;
91 regulator-max-microvolt = <2700000>;
92 };
93
94 LDO2 {
95 regulator-name = "UNUSED_LDO2";
96 regulator-min-microvolt = <800000>;
97 regulator-max-microvolt = <3950000>;
98 };
99 };
100
101 charger {
102 compatible = "maxim,max77836-charger";
103
104 maxim,constant-uvolt = <4350000>;
105 maxim,fast-charge-uamp = <225000>;
106 maxim,eoc-uamp = <7500>;
107 maxim,ovp-uvolt = <6500000>;
108 };
109 };
110 };
111};
112
113&adc {
114 vdd-supply = <&ldo3_reg>;
115 status = "okay";
116 assigned-clocks = <&cmu CLK_SCLK_TSADC>;
117 assigned-clock-rates = <6000000>;
118
119 thermistor-ap {
120 compatible = "ntc,ncp15wb473";
121 pullup-uv = <1800000>;
122 pullup-ohm = <100000>;
123 pulldown-ohm = <100000>;
124 io-channels = <&adc 0>;
125 };
126
127 thermistor-battery {
128 compatible = "ntc,ncp15wb473";
129 pullup-uv = <1800000>;
130 pullup-ohm = <100000>;
131 pulldown-ohm = <100000>;
132 io-channels = <&adc 1>;
133 };
134};
135
Jaewon Kim3fc5f3a2015-01-12 17:54:54 +0900136&exynos_usbphy {
137 status = "okay";
138};
139
140&hsotg {
141 vusb_d-supply = <&ldo15_reg>;
142 vusb_a-supply = <&ldo12_reg>;
143 status = "okay";
144};
145
Youngjun Choe0cefb32014-11-27 02:43:39 +0900146&i2c_0 {
147 #address-cells = <1>;
148 #size-cells = <0>;
149 samsung,i2c-sda-delay = <100>;
150 samsung,i2c-slave-addr = <0x10>;
151 samsung,i2c-max-bus-freq = <100000>;
152 status = "okay";
153
154 s2mps14_pmic@66 {
155 compatible = "samsung,s2mps14-pmic";
156 interrupt-parent = <&gpx0>;
157 interrupts = <7 0>;
158 reg = <0x66>;
159 wakeup;
160
161 s2mps14_osc: clocks {
162 compatible = "samsung,s2mps14-clk";
163 #clock-cells = <1>;
164 clock-output-names = "s2mps14_ap", "unused",
165 "s2mps14_bt";
166 };
167
168 regulators {
169 ldo1_reg: LDO1 {
170 regulator-name = "VAP_ALIVE_1.0V";
171 regulator-min-microvolt = <1000000>;
172 regulator-max-microvolt = <1000000>;
173 regulator-always-on;
174 };
175
176 ldo2_reg: LDO2 {
177 regulator-name = "VAP_M1_1.2V";
178 regulator-min-microvolt = <1200000>;
179 regulator-max-microvolt = <1200000>;
180 regulator-always-on;
181 };
182
183 ldo3_reg: LDO3 {
184 regulator-name = "VCC_AP_1.8V";
185 regulator-min-microvolt = <1800000>;
186 regulator-max-microvolt = <1800000>;
187 regulator-always-on;
188 };
189
190 ldo4_reg: LDO4 {
191 regulator-name = "VAP_AVDD_PLL1";
192 regulator-min-microvolt = <1800000>;
193 regulator-max-microvolt = <1800000>;
194 regulator-always-on;
195 };
196
197 ldo5_reg: LDO5 {
198 regulator-name = "VAP_PLL_ISO_1.0V";
199 regulator-min-microvolt = <1000000>;
200 regulator-max-microvolt = <1000000>;
201 regulator-always-on;
202 };
203
204 ldo6_reg: LDO6 {
205 regulator-name = "VAP_MIPI_1.0V";
206 regulator-min-microvolt = <1000000>;
207 regulator-max-microvolt = <1000000>;
208 };
209
210 ldo7_reg: LDO7 {
211 regulator-name = "VAP_AVDD_1.8V";
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <1800000>;
214 regulator-always-on;
215 };
216
217 ldo8_reg: LDO8 {
218 regulator-name = "VAP_USB_3.0V";
219 regulator-min-microvolt = <3000000>;
220 regulator-max-microvolt = <3000000>;
221 regulator-always-on;
222 };
223
224 ldo9_reg: LDO9 {
225 regulator-name = "V_LPDDR_1.2V";
226 regulator-min-microvolt = <1200000>;
227 regulator-max-microvolt = <1200000>;
228 regulator-always-on;
229 };
230
231 ldo10_reg: LDO10 {
232 regulator-name = "UNUSED_LDO10";
233 regulator-min-microvolt = <1000000>;
234 regulator-max-microvolt = <1000000>;
235 };
236
237 ldo11_reg: LDO11 {
238 regulator-name = "V_EMMC_1.8V";
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <1800000>;
241 samsung,ext-control-gpios = <&gpk0 2 0>;
242 };
243
244 ldo12_reg: LDO12 {
245 regulator-name = "V_EMMC_2.8V";
246 regulator-min-microvolt = <2800000>;
247 regulator-max-microvolt = <2800000>;
248 samsung,ext-control-gpios = <&gpk0 2 0>;
249 };
250
251 ldo13_reg: LDO13 {
252 regulator-name = "VSENSOR_2.85V";
253 regulator-min-microvolt = <2850000>;
254 regulator-max-microvolt = <2850000>;
255 regulator-always-on;
256 };
257
258 ldo14_reg: LDO14 {
259 regulator-name = "UNUSED_LDO14";
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
262 };
263
264 ldo15_reg: LDO15 {
265 regulator-name = "TSP_AVDD_3.3V";
266 regulator-min-microvolt = <3300000>;
267 regulator-max-microvolt = <3300000>;
268 };
269
270 ldo16_reg: LDO16 {
271 regulator-name = "LCD_VDD_3.3V";
272 regulator-min-microvolt = <3300000>;
273 regulator-max-microvolt = <3300000>;
274 };
275
276 ldo17_reg: LDO17 {
277 regulator-name = "UNUSED_LDO17";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
280 };
281
282 ldo18_reg: LDO18 {
283 regulator-name = "UNUSED_LDO18";
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <1800000>;
286 };
287
288 ldo19_reg: LDO19 {
289 regulator-name = "TSP_VDD_1.8V";
290 regulator-min-microvolt = <1800000>;
291 regulator-max-microvolt = <1800000>;
292 };
293
294 ldo20_reg: LDO20 {
295 regulator-name = "LCD_VDD_1.8V";
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
298 };
299
300 ldo21_reg: LDO21 {
301 regulator-name = "UNUSED_LDO21";
302 regulator-min-microvolt = <1000000>;
303 regulator-max-microvolt = <1000000>;
304 };
305
306 ldo22_reg: LDO22 {
307 regulator-name = "UNUSED_LDO22";
308 regulator-min-microvolt = <1000000>;
309 regulator-max-microvolt = <1000000>;
310 };
311
312 ldo23_reg: LDO23 {
313 regulator-name = "UNUSED_LDO23";
314 regulator-min-microvolt = <1000000>;
315 regulator-max-microvolt = <1000000>;
316 regulator-always-on;
317 };
318
319 ldo24_reg: LDO24 {
320 regulator-name = "UNUSED_LDO24";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
323 };
324
325 ldo25_reg: LDO25 {
326 regulator-name = "UNUSED_LDO25";
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <1800000>;
329 };
330
331 buck1_reg: BUCK1 {
332 regulator-name = "VAP_MIF_1.0V";
333 regulator-min-microvolt = <800000>;
334 regulator-max-microvolt = <900000>;
335 regulator-always-on;
336 };
337
338 buck2_reg: BUCK2 {
339 regulator-name = "VAP_ARM_1.0V";
340 regulator-min-microvolt = <850000>;
341 regulator-max-microvolt = <1150000>;
342 regulator-always-on;
343 };
344
345 buck3_reg: BUCK3 {
346 regulator-name = "VAP_INT3D_1.0V";
347 regulator-min-microvolt = <850000>;
348 regulator-max-microvolt = <1000000>;
349 regulator-always-on;
350 };
351
352 buck4_reg: BUCK4 {
353 regulator-name = "VCC_SUB_1.95V";
354 regulator-min-microvolt = <1950000>;
355 regulator-max-microvolt = <1950000>;
356 regulator-always-on;
357 };
358
359 buck5_reg: BUCK5 {
360 regulator-name = "VCC_SUB_1.35V";
361 regulator-min-microvolt = <1350000>;
362 regulator-max-microvolt = <1350000>;
363 regulator-always-on;
364 };
365 };
366 };
367};
368
369&i2c_1 {
370 #address-cells = <1>;
371 #size-cells = <0>;
372 samsung,i2c-sda-delay = <100>;
373 samsung,i2c-slave-addr = <0x10>;
374 samsung,i2c-max-bus-freq = <400000>;
375 status = "okay";
376
377 fuelgauge@36 {
378 compatible = "maxim,max77836-battery";
379 interrupt-parent = <&gpx1>;
380 interrupts = <2 8>;
381 reg = <0x36>;
382 };
383};
384
385&i2s2 {
386 status = "okay";
387};
388
389&mshc_0 {
390 #address-cells = <1>;
391 #size-cells = <0>;
392 num-slots = <1>;
393 broken-cd;
394 non-removable;
395 cap-mmc-highspeed;
396 desc-num = <4>;
397 mmc-hs200-1_8v;
398 card-detect-delay = <200>;
399 vmmc-supply = <&vemmc_reg>;
400 clock-frequency = <100000000>;
401 clock-freq-min-max = <400000 100000000>;
402 samsung,dw-mshc-ciu-div = <1>;
403 samsung,dw-mshc-sdr-timing = <0 1>;
404 samsung,dw-mshc-ddr-timing = <1 2>;
405 pinctrl-names = "default";
406 pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
407 bus-width = <8>;
408 status = "okay";
409};
410
411&serial_0 {
412 assigned-clocks = <&cmu CLK_SCLK_UART0>;
413 assigned-clock-rates = <100000000>;
414 status = "okay";
415};
416
417&serial_1 {
418 status = "okay";
419};
420
421&tmu {
422 vtmu-supply = <&ldo7_reg>;
423 status = "okay";
424};
425
426&rtc {
427 clocks = <&cmu CLK_RTC>, <&s2mps14_osc 0>;
428 clock-names = "rtc", "rtc_src";
429 status = "okay";
430};
431
432&xusbxti {
433 clock-frequency = <24000000>;
434};
435
436&pinctrl_0 {
437 pinctrl-names = "default";
438 pinctrl-0 = <&sleep0>;
439
440 sleep0: sleep-state {
441 PIN_SLP(gpa0-0, INPUT, DOWN);
442 PIN_SLP(gpa0-1, INPUT, DOWN);
443 PIN_SLP(gpa0-2, INPUT, DOWN);
444 PIN_SLP(gpa0-3, INPUT, DOWN);
445 PIN_SLP(gpa0-4, INPUT, DOWN);
446 PIN_SLP(gpa0-5, INPUT, DOWN);
447 PIN_SLP(gpa0-6, INPUT, DOWN);
448 PIN_SLP(gpa0-7, INPUT, DOWN);
449
450 PIN_SLP(gpa1-0, INPUT, DOWN);
451 PIN_SLP(gpa1-1, INPUT, DOWN);
452 PIN_SLP(gpa1-2, INPUT, DOWN);
453 PIN_SLP(gpa1-3, INPUT, DOWN);
454 PIN_SLP(gpa1-4, INPUT, DOWN);
455 PIN_SLP(gpa1-5, INPUT, DOWN);
456
457 PIN_SLP(gpb-0, PREV, NONE);
458 PIN_SLP(gpb-1, PREV, NONE);
459 PIN_SLP(gpb-2, PREV, NONE);
460 PIN_SLP(gpb-3, PREV, NONE);
461 PIN_SLP(gpb-4, INPUT, DOWN);
462 PIN_SLP(gpb-5, INPUT, DOWN);
463 PIN_SLP(gpb-6, INPUT, DOWN);
464 PIN_SLP(gpb-7, INPUT, DOWN);
465
466 PIN_SLP(gpc0-0, INPUT, DOWN);
467 PIN_SLP(gpc0-1, INPUT, DOWN);
468 PIN_SLP(gpc0-2, INPUT, DOWN);
469 PIN_SLP(gpc0-3, INPUT, DOWN);
470 PIN_SLP(gpc0-4, INPUT, DOWN);
471
472 PIN_SLP(gpc1-0, INPUT, DOWN);
473 PIN_SLP(gpc1-1, INPUT, DOWN);
474 PIN_SLP(gpc1-2, INPUT, DOWN);
475 PIN_SLP(gpc1-3, INPUT, DOWN);
476 PIN_SLP(gpc1-4, INPUT, DOWN);
477
478 PIN_SLP(gpd0-0, INPUT, DOWN);
479 PIN_SLP(gpd0-1, INPUT, DOWN);
480 PIN_SLP(gpd0-2, INPUT, NONE);
481 PIN_SLP(gpd0-3, INPUT, NONE);
482
483 PIN_SLP(gpd1-0, INPUT, NONE);
484 PIN_SLP(gpd1-1, INPUT, NONE);
485 PIN_SLP(gpd1-2, INPUT, NONE);
486 PIN_SLP(gpd1-3, INPUT, NONE);
487 };
488};
489
490&pinctrl_1 {
491 pinctrl-names = "default";
492 pinctrl-0 = <&sleep1>;
493
494 sleep1: sleep-state {
495 PIN_SLP(gpe0-0, PREV, NONE);
496 PIN_SLP(gpe0-1, PREV, NONE);
497 PIN_SLP(gpe0-2, INPUT, DOWN);
498 PIN_SLP(gpe0-3, INPUT, DOWN);
499 PIN_SLP(gpe0-4, PREV, NONE);
500 PIN_SLP(gpe0-5, INPUT, DOWN);
501 PIN_SLP(gpe0-6, INPUT, DOWN);
502 PIN_SLP(gpe0-7, INPUT, DOWN);
503
504 PIN_SLP(gpe1-0, INPUT, DOWN);
505 PIN_SLP(gpe1-1, PREV, NONE);
506 PIN_SLP(gpe1-2, INPUT, DOWN);
507 PIN_SLP(gpe1-3, INPUT, DOWN);
508 PIN_SLP(gpe1-4, INPUT, DOWN);
509 PIN_SLP(gpe1-5, INPUT, DOWN);
510 PIN_SLP(gpe1-6, INPUT, DOWN);
511 PIN_SLP(gpe1-7, INPUT, NONE);
512
513 PIN_SLP(gpe2-0, INPUT, NONE);
514 PIN_SLP(gpe2-1, INPUT, NONE);
515 PIN_SLP(gpe2-2, INPUT, NONE);
516
517 PIN_SLP(gpk0-0, INPUT, DOWN);
518 PIN_SLP(gpk0-1, INPUT, DOWN);
519 PIN_SLP(gpk0-2, OUT0, NONE);
520 PIN_SLP(gpk0-3, INPUT, DOWN);
521 PIN_SLP(gpk0-4, INPUT, DOWN);
522 PIN_SLP(gpk0-5, INPUT, DOWN);
523 PIN_SLP(gpk0-6, INPUT, DOWN);
524 PIN_SLP(gpk0-7, INPUT, DOWN);
525
526 PIN_SLP(gpk1-0, PREV, NONE);
527 PIN_SLP(gpk1-1, PREV, NONE);
528 PIN_SLP(gpk1-2, INPUT, DOWN);
529 PIN_SLP(gpk1-3, PREV, NONE);
530 PIN_SLP(gpk1-4, PREV, NONE);
531 PIN_SLP(gpk1-5, PREV, NONE);
532 PIN_SLP(gpk1-6, PREV, NONE);
533
534 PIN_SLP(gpk2-0, INPUT, DOWN);
535 PIN_SLP(gpk2-1, INPUT, DOWN);
536 PIN_SLP(gpk2-2, INPUT, DOWN);
537 PIN_SLP(gpk2-3, INPUT, DOWN);
538 PIN_SLP(gpk2-4, INPUT, DOWN);
539 PIN_SLP(gpk2-5, INPUT, DOWN);
540 PIN_SLP(gpk2-6, INPUT, DOWN);
541
542 PIN_SLP(gpl0-0, INPUT, DOWN);
543 PIN_SLP(gpl0-1, INPUT, DOWN);
544 PIN_SLP(gpl0-2, INPUT, DOWN);
545 PIN_SLP(gpl0-3, INPUT, DOWN);
546
547 PIN_SLP(gpm0-0, INPUT, DOWN);
548 PIN_SLP(gpm0-1, INPUT, DOWN);
549 PIN_SLP(gpm0-2, INPUT, DOWN);
550 PIN_SLP(gpm0-3, INPUT, DOWN);
551 PIN_SLP(gpm0-4, INPUT, DOWN);
552 PIN_SLP(gpm0-5, INPUT, DOWN);
553 PIN_SLP(gpm0-6, INPUT, DOWN);
554 PIN_SLP(gpm0-7, INPUT, DOWN);
555
556 PIN_SLP(gpm1-0, INPUT, DOWN);
557 PIN_SLP(gpm1-1, INPUT, DOWN);
558 PIN_SLP(gpm1-2, INPUT, DOWN);
559 PIN_SLP(gpm1-3, INPUT, DOWN);
560 PIN_SLP(gpm1-4, INPUT, DOWN);
561 PIN_SLP(gpm1-5, INPUT, DOWN);
562 PIN_SLP(gpm1-6, INPUT, DOWN);
563
564 PIN_SLP(gpm2-0, INPUT, DOWN);
565 PIN_SLP(gpm2-1, INPUT, DOWN);
566 PIN_SLP(gpm2-2, INPUT, DOWN);
567 PIN_SLP(gpm2-3, INPUT, DOWN);
568 PIN_SLP(gpm2-4, INPUT, DOWN);
569
570 PIN_SLP(gpm3-0, INPUT, DOWN);
571 PIN_SLP(gpm3-1, INPUT, DOWN);
572 PIN_SLP(gpm3-2, INPUT, DOWN);
573 PIN_SLP(gpm3-3, INPUT, DOWN);
574 PIN_SLP(gpm3-4, INPUT, DOWN);
575 PIN_SLP(gpm3-5, INPUT, DOWN);
576 PIN_SLP(gpm3-6, INPUT, DOWN);
577 PIN_SLP(gpm3-7, INPUT, DOWN);
578
579 PIN_SLP(gpm4-0, INPUT, DOWN);
580 PIN_SLP(gpm4-1, INPUT, DOWN);
581 PIN_SLP(gpm4-2, INPUT, DOWN);
582 PIN_SLP(gpm4-3, INPUT, DOWN);
583 PIN_SLP(gpm4-4, INPUT, DOWN);
584 PIN_SLP(gpm4-5, INPUT, DOWN);
585 PIN_SLP(gpm4-6, INPUT, DOWN);
586 PIN_SLP(gpm4-7, INPUT, DOWN);
587 };
588};