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