Merge tag 'exynos-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene...
[cascardo/linux.git] / arch / arm / boot / dts / exynos4412-trats2.dts
1 /*
2  * Samsung's Exynos4412 based Trats 2 board device tree source
3  *
4  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  *
7  * Device tree source file for Samsung's Trats 2 board which is based on
8  * Samsung's Exynos4412 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 "exynos4412.dtsi"
17
18 / {
19         model = "Samsung Trats 2 based on Exynos4412";
20         compatible = "samsung,trats2", "samsung,exynos4412", "samsung,exynos4";
21
22         aliases {
23                 i2c8 = &i2c_ak8975;
24         };
25
26         memory {
27                 reg =  <0x40000000 0x40000000>;
28         };
29
30         chosen {
31                 bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
32         };
33
34         firmware@0204F000 {
35                 compatible = "samsung,secure-firmware";
36                 reg = <0x0204F000 0x1000>;
37         };
38
39         fixed-rate-clocks {
40                 xxti {
41                         compatible = "samsung,clock-xxti", "fixed-clock";
42                         clock-frequency = <0>;
43                 };
44
45                 xusbxti {
46                         compatible = "samsung,clock-xusbxti", "fixed-clock";
47                         clock-frequency = <24000000>;
48                 };
49         };
50
51         regulators {
52                 compatible = "simple-bus";
53                 #address-cells = <1>;
54                 #size-cells = <0>;
55
56                 vemmc_reg: regulator-0 {
57                         compatible = "regulator-fixed";
58                         regulator-name = "VMEM_VDD_2.8V";
59                         regulator-min-microvolt = <2800000>;
60                         regulator-max-microvolt = <2800000>;
61                         gpio = <&gpk0 2 0>;
62                         enable-active-high;
63                 };
64
65                 cam_io_reg: voltage-regulator-1 {
66                         compatible = "regulator-fixed";
67                         regulator-name = "CAM_SENSOR_A";
68                         regulator-min-microvolt = <2800000>;
69                         regulator-max-microvolt = <2800000>;
70                         gpio = <&gpm0 2 0>;
71                         enable-active-high;
72                 };
73
74                 /* More to come */
75         };
76
77         gpio-keys {
78                 compatible = "gpio-keys";
79
80                 key-down {
81                         interrupt-parent = <&gpj1>;
82                         interrupts = <2 0>;
83                         gpios = <&gpj1 2 1>;
84                         linux,code = <114>;
85                         label = "volume down";
86                         debounce-interval = <10>;
87                 };
88
89                 key-up {
90                         interrupt-parent = <&gpj1>;
91                         interrupts = <1 0>;
92                         gpios = <&gpj1 1 1>;
93                         linux,code = <115>;
94                         label = "volume up";
95                         debounce-interval = <10>;
96                 };
97
98                 key-power {
99                         interrupt-parent = <&gpx2>;
100                         interrupts = <7 0>;
101                         gpios = <&gpx2 7 1>;
102                         linux,code = <116>;
103                         label = "power";
104                         debounce-interval = <10>;
105                         gpio-key,wakeup;
106                 };
107         };
108
109         adc: adc@126C0000 {
110                 vdd-supply = <&ldo3_reg>;
111                 status = "okay";
112         };
113
114         i2c@13890000 {
115                 samsung,i2c-sda-delay = <100>;
116                 samsung,i2c-slave-addr = <0x10>;
117                 samsung,i2c-max-bus-freq = <400000>;
118                 pinctrl-0 = <&i2c3_bus>;
119                 pinctrl-names = "default";
120                 status = "okay";
121
122                 mms114-touchscreen@48 {
123                         compatible = "melfas,mms114";
124                         reg = <0x48>;
125                         interrupt-parent = <&gpm2>;
126                         interrupts = <3 2>;
127                         x-size = <720>;
128                         y-size = <1280>;
129                         avdd-supply = <&ldo23_reg>;
130                         vdd-supply = <&ldo24_reg>;
131                 };
132         };
133
134         i2c@138D0000 {
135                 samsung,i2c-sda-delay = <100>;
136                 samsung,i2c-slave-addr = <0x10>;
137                 samsung,i2c-max-bus-freq = <100000>;
138                 pinctrl-0 = <&i2c7_bus>;
139                 pinctrl-names = "default";
140                 status = "okay";
141
142                 max77686_pmic@09 {
143                         compatible = "maxim,max77686";
144                         interrupt-parent = <&gpx0>;
145                         interrupts = <7 0>;
146                         reg = <0x09>;
147                         #clock-cells = <1>;
148
149                         voltage-regulators {
150                                 ldo1_reg: ldo1 {
151                                         regulator-compatible = "LDO1";
152                                         regulator-name = "VALIVE_1.0V_AP";
153                                         regulator-min-microvolt = <1000000>;
154                                         regulator-max-microvolt = <1000000>;
155                                         regulator-always-on;
156                                         regulator-mem-on;
157                                 };
158
159                                 ldo2_reg: ldo2 {
160                                         regulator-compatible = "LDO2";
161                                         regulator-name = "VM1M2_1.2V_AP";
162                                         regulator-min-microvolt = <1200000>;
163                                         regulator-max-microvolt = <1200000>;
164                                         regulator-always-on;
165                                         regulator-mem-on;
166                                 };
167
168                                 ldo3_reg: ldo3 {
169                                         regulator-compatible = "LDO3";
170                                         regulator-name = "VCC_1.8V_AP";
171                                         regulator-min-microvolt = <1800000>;
172                                         regulator-max-microvolt = <1800000>;
173                                         regulator-always-on;
174                                         regulator-mem-on;
175                                 };
176
177                                 ldo4_reg: ldo4 {
178                                         regulator-compatible = "LDO4";
179                                         regulator-name = "VCC_2.8V_AP";
180                                         regulator-min-microvolt = <2800000>;
181                                         regulator-max-microvolt = <2800000>;
182                                         regulator-always-on;
183                                         regulator-mem-on;
184                                 };
185
186                                 ldo5_reg: ldo5 {
187                                         regulator-compatible = "LDO5";
188                                         regulator-name = "VCC_1.8V_IO";
189                                         regulator-min-microvolt = <1800000>;
190                                         regulator-max-microvolt = <1800000>;
191                                         regulator-always-on;
192                                         regulator-mem-on;
193                                 };
194
195                                 ldo6_reg: ldo6 {
196                                         regulator-compatible = "LDO6";
197                                         regulator-name = "VMPLL_1.0V_AP";
198                                         regulator-min-microvolt = <1000000>;
199                                         regulator-max-microvolt = <1000000>;
200                                         regulator-always-on;
201                                         regulator-mem-on;
202                                 };
203
204                                 ldo7_reg: ldo7 {
205                                         regulator-compatible = "LDO7";
206                                         regulator-name = "VPLL_1.0V_AP";
207                                         regulator-min-microvolt = <1000000>;
208                                         regulator-max-microvolt = <1000000>;
209                                         regulator-always-on;
210                                         regulator-mem-on;
211                                 };
212
213                                 ldo8_reg: ldo8 {
214                                         regulator-compatible = "LDO8";
215                                         regulator-name = "VMIPI_1.0V";
216                                         regulator-min-microvolt = <1000000>;
217                                         regulator-max-microvolt = <1000000>;
218                                         regulator-mem-off;
219                                 };
220
221                                 ldo9_reg: ldo9 {
222                                         regulator-compatible = "LDO9";
223                                         regulator-name = "CAM_ISP_MIPI_1.2V";
224                                         regulator-min-microvolt = <1200000>;
225                                         regulator-max-microvolt = <1200000>;
226                                         regulator-mem-idle;
227                                 };
228
229                                 ldo10_reg: ldo10 {
230                                         regulator-compatible = "LDO10";
231                                         regulator-name = "VMIPI_1.8V";
232                                         regulator-min-microvolt = <1800000>;
233                                         regulator-max-microvolt = <1800000>;
234                                         regulator-mem-off;
235                                 };
236
237                                 ldo11_reg: ldo11 {
238                                         regulator-compatible = "LDO11";
239                                         regulator-name = "VABB1_1.95V";
240                                         regulator-min-microvolt = <1950000>;
241                                         regulator-max-microvolt = <1950000>;
242                                         regulator-always-on;
243                                         regulator-mem-off;
244                                 };
245
246                                 ldo12_reg: ldo12 {
247                                         regulator-compatible = "LDO12";
248                                         regulator-name = "VUOTG_3.0V";
249                                         regulator-min-microvolt = <3000000>;
250                                         regulator-max-microvolt = <3000000>;
251                                         regulator-mem-off;
252                                 };
253
254                                 ldo13_reg: ldo13 {
255                                         regulator-compatible = "LDO13";
256                                         regulator-name = "NFC_AVDD_1.8V";
257                                         regulator-min-microvolt = <1800000>;
258                                         regulator-max-microvolt = <1800000>;
259                                         regulator-mem-idle;
260                                 };
261
262                                 ldo14_reg: ldo14 {
263                                         regulator-compatible = "LDO14";
264                                         regulator-name = "VABB2_1.95V";
265                                         regulator-min-microvolt = <1950000>;
266                                         regulator-max-microvolt = <1950000>;
267                                         regulator-always-on;
268                                         regulator-mem-off;
269                                 };
270
271                                 ldo15_reg: ldo15 {
272                                         regulator-compatible = "LDO15";
273                                         regulator-name = "VHSIC_1.0V";
274                                         regulator-min-microvolt = <1000000>;
275                                         regulator-max-microvolt = <1000000>;
276                                         regulator-mem-off;
277                                 };
278
279                                 ldo16_reg: ldo16 {
280                                         regulator-compatible = "LDO16";
281                                         regulator-name = "VHSIC_1.8V";
282                                         regulator-min-microvolt = <1800000>;
283                                         regulator-max-microvolt = <1800000>;
284                                         regulator-mem-off;
285                                 };
286
287                                 ldo17_reg: ldo17 {
288                                         regulator-compatible = "LDO17";
289                                         regulator-name = "CAM_SENSOR_CORE_1.2V";
290                                         regulator-min-microvolt = <1200000>;
291                                         regulator-max-microvolt = <1200000>;
292                                         regulator-mem-idle;
293                                 };
294
295                                 ldo18_reg: ldo18 {
296                                         regulator-compatible = "LDO18";
297                                         regulator-name = "CAM_ISP_SEN_IO_1.8V";
298                                         regulator-min-microvolt = <1800000>;
299                                         regulator-max-microvolt = <1800000>;
300                                         regulator-mem-idle;
301                                 };
302
303                                 ldo19_reg: ldo19 {
304                                         regulator-compatible = "LDO19";
305                                         regulator-name = "VT_CAM_1.8V";
306                                         regulator-min-microvolt = <1800000>;
307                                         regulator-max-microvolt = <1800000>;
308                                         regulator-mem-idle;
309                                 };
310
311                                 ldo20_reg: ldo20 {
312                                         regulator-compatible = "LDO20";
313                                         regulator-name = "VDDQ_PRE_1.8V";
314                                         regulator-min-microvolt = <1800000>;
315                                         regulator-max-microvolt = <1800000>;
316                                         regulator-mem-idle;
317                                 };
318
319                                 ldo21_reg: ldo21 {
320                                         regulator-compatible = "LDO21";
321                                         regulator-name = "VTF_2.8V";
322                                         regulator-min-microvolt = <2800000>;
323                                         regulator-max-microvolt = <2800000>;
324                                         regulator-mem-idle;
325                                 };
326
327                                 ldo22_reg: ldo22 {
328                                         regulator-compatible = "LDO22";
329                                         regulator-name = "VMEM_VDD_2.8V";
330                                         regulator-min-microvolt = <2800000>;
331                                         regulator-max-microvolt = <2800000>;
332                                         regulator-always-on;
333                                         regulator-mem-off;
334                                 };
335
336                                 ldo23_reg: ldo23 {
337                                         regulator-compatible = "LDO23";
338                                         regulator-name = "TSP_AVDD_3.3V";
339                                         regulator-min-microvolt = <3300000>;
340                                         regulator-max-microvolt = <3300000>;
341                                         regulator-mem-idle;
342                                 };
343
344                                 ldo24_reg: ldo24 {
345                                         regulator-compatible = "LDO24";
346                                         regulator-name = "TSP_VDD_1.8V";
347                                         regulator-min-microvolt = <1800000>;
348                                         regulator-max-microvolt = <1800000>;
349                                         regulator-mem-idle;
350                                 };
351
352                                 ldo25_reg: ldo25 {
353                                         regulator-compatible = "LDO25";
354                                         regulator-name = "LCD_VCC_3.3V";
355                                         regulator-min-microvolt = <2800000>;
356                                         regulator-max-microvolt = <2800000>;
357                                         regulator-mem-idle;
358                                 };
359
360                                 ldo26_reg: ldo26 {
361                                         regulator-compatible = "LDO26";
362                                         regulator-name = "MOTOR_VCC_3.0V";
363                                         regulator-min-microvolt = <3000000>;
364                                         regulator-max-microvolt = <3000000>;
365                                         regulator-mem-idle;
366                                 };
367
368                                 buck1_reg: buck1 {
369                                         regulator-compatible = "BUCK1";
370                                         regulator-name = "vdd_mif";
371                                         regulator-min-microvolt = <850000>;
372                                         regulator-max-microvolt = <1100000>;
373                                         regulator-always-on;
374                                         regulator-boot-on;
375                                         regulator-mem-off;
376                                 };
377
378                                 buck2_reg: buck2 {
379                                         regulator-compatible = "BUCK2";
380                                         regulator-name = "vdd_arm";
381                                         regulator-min-microvolt = <850000>;
382                                         regulator-max-microvolt = <1500000>;
383                                         regulator-always-on;
384                                         regulator-boot-on;
385                                         regulator-mem-off;
386                                 };
387
388                                 buck3_reg: buck3 {
389                                         regulator-compatible = "BUCK3";
390                                         regulator-name = "vdd_int";
391                                         regulator-min-microvolt = <850000>;
392                                         regulator-max-microvolt = <1150000>;
393                                         regulator-always-on;
394                                         regulator-boot-on;
395                                         regulator-mem-off;
396                                 };
397
398                                 buck4_reg: buck4 {
399                                         regulator-compatible = "BUCK4";
400                                         regulator-name = "vdd_g3d";
401                                         regulator-min-microvolt = <850000>;
402                                         regulator-max-microvolt = <1150000>;
403                                         regulator-boot-on;
404                                         regulator-mem-off;
405                                 };
406
407                                 buck5_reg: buck5 {
408                                         regulator-compatible = "BUCK5";
409                                         regulator-name = "VMEM_1.2V_AP";
410                                         regulator-min-microvolt = <1200000>;
411                                         regulator-max-microvolt = <1200000>;
412                                         regulator-always-on;
413                                 };
414
415                                 buck6_reg: buck6 {
416                                         regulator-compatible = "BUCK6";
417                                         regulator-name = "VCC_SUB_1.35V";
418                                         regulator-min-microvolt = <1350000>;
419                                         regulator-max-microvolt = <1350000>;
420                                         regulator-always-on;
421                                 };
422
423                                 buck7_reg: buck7 {
424                                         regulator-compatible = "BUCK7";
425                                         regulator-name = "VCC_SUB_2.0V";
426                                         regulator-min-microvolt = <2000000>;
427                                         regulator-max-microvolt = <2000000>;
428                                         regulator-always-on;
429                                 };
430
431                                 buck8_reg: buck8 {
432                                         regulator-compatible = "BUCK8";
433                                         regulator-name = "VMEM_VDDF_3.0V";
434                                         regulator-min-microvolt = <2850000>;
435                                         regulator-max-microvolt = <2850000>;
436                                         regulator-always-on;
437                                         regulator-mem-off;
438                                 };
439
440                                 buck9_reg: buck9 {
441                                         regulator-compatible = "BUCK9";
442                                         regulator-name = "CAM_ISP_CORE_1.2V";
443                                         regulator-min-microvolt = <1000000>;
444                                         regulator-max-microvolt = <1200000>;
445                                         regulator-mem-off;
446                                 };
447                         };
448                 };
449         };
450
451         mmc@12550000 {
452                 num-slots = <1>;
453                 supports-highspeed;
454                 broken-cd;
455                 non-removable;
456                 card-detect-delay = <200>;
457                 vmmc-supply = <&vemmc_reg>;
458                 clock-frequency = <400000000>;
459                 samsung,dw-mshc-ciu-div = <0>;
460                 samsung,dw-mshc-sdr-timing = <2 3>;
461                 samsung,dw-mshc-ddr-timing = <1 2>;
462                 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
463                 pinctrl-names = "default";
464                 status = "okay";
465
466                 slot@0 {
467                         reg = <0>;
468                         bus-width = <8>;
469                 };
470         };
471
472         serial@13800000 {
473                 status = "okay";
474         };
475
476         serial@13810000 {
477                 status = "okay";
478         };
479
480         serial@13820000 {
481                 status = "okay";
482         };
483
484         serial@13830000 {
485                 status = "okay";
486         };
487
488         i2c_ak8975: i2c-gpio-0 {
489                 compatible = "i2c-gpio";
490                 gpios = <&gpy2 4 0>, <&gpy2 5 0>;
491                 i2c-gpio,delay-us = <2>;
492                 #address-cells = <1>;
493                 #size-cells = <0>;
494                 status = "okay";
495
496                 ak8975@0c {
497                         compatible = "ak,ak8975";
498                         reg = <0x0c>;
499                         gpios = <&gpj0 7 0>;
500                 };
501         };
502
503         spi_1: spi@13930000 {
504                 pinctrl-names = "default";
505                 pinctrl-0 = <&spi1_bus>;
506                 status = "okay";
507
508                 s5c73m3_spi: s5c73m3 {
509                         compatible = "samsung,s5c73m3";
510                         spi-max-frequency = <50000000>;
511                         reg = <0>;
512                         controller-data {
513                                 cs-gpio = <&gpb 5 0>;
514                                 samsung,spi-feedback-delay = <2>;
515                         };
516                 };
517         };
518
519         camera {
520                 pinctrl-0 = <&cam_port_b_clk_active>;
521                 pinctrl-names = "default";
522                 status = "okay";
523
524                 fimc_0: fimc@11800000 {
525                         status = "okay";
526                 };
527
528                 fimc_1: fimc@11810000 {
529                         status = "okay";
530                 };
531
532                 fimc_2: fimc@11820000 {
533                         status = "okay";
534                 };
535
536                 fimc_3: fimc@11830000 {
537                         status = "okay";
538                 };
539
540                 csis_1: csis@11890000 {
541                         vddcore-supply = <&ldo8_reg>;
542                         vddio-supply = <&ldo10_reg>;
543                         clock-frequency = <160000000>;
544                         status = "okay";
545
546                         /* Camera D (4) MIPI CSI-2 (CSIS1) */
547                         port@4 {
548                                 reg = <4>;
549                                 csis1_ep: endpoint {
550                                         remote-endpoint = <&is_s5k6a3_ep>;
551                                         data-lanes = <1>;
552                                         samsung,csis-hs-settle = <18>;
553                                         samsung,csis-wclk;
554                                 };
555                         };
556                 };
557
558                 fimc_lite_0: fimc-lite@12390000 {
559                         status = "okay";
560                 };
561
562                 fimc_lite_1: fimc-lite@123A0000 {
563                         status = "okay";
564                 };
565
566                 fimc-is@12000000 {
567                         pinctrl-0 = <&fimc_is_uart>;
568                         pinctrl-names = "default";
569                         status = "okay";
570
571                         i2c1_isp: i2c-isp@12140000 {
572                                 pinctrl-0 = <&fimc_is_i2c1>;
573                                 pinctrl-names = "default";
574
575                                 s5k6a3@10 {
576                                         compatible = "samsung,s5k6a3";
577                                         reg = <0x10>;
578                                         svdda-supply = <&cam_io_reg>;
579                                         svddio-supply = <&ldo19_reg>;
580                                         clock-frequency = <24000000>;
581                                         /* CAM_B_CLKOUT */
582                                         clocks = <&clock_cam 1>;
583                                         clock-names = "mclk";
584                                         samsung,camclk-out = <1>;
585                                         gpios = <&gpm1 6 0>;
586
587                                         port {
588                                                 is_s5k6a3_ep: endpoint {
589                                                         remote-endpoint = <&csis1_ep>;
590                                                         data-lanes = <1>;
591                                                 };
592                                         };
593                                 };
594                         };
595                 };
596         };
597
598         thermistor-ap@0 {
599                 compatible = "ntc,ncp15wb473";
600                 pullup-uv = <1800000>;   /* VCC_1.8V_AP */
601                 pullup-ohm = <100000>;   /* 100K */
602                 pulldown-ohm = <100000>; /* 100K */
603                 io-channels = <&adc 1>;  /* AP temperature */
604         };
605
606         thermistor-battery@1 {
607                 compatible = "ntc,ncp15wb473";
608                 pullup-uv = <1800000>;   /* VCC_1.8V_AP */
609                 pullup-ohm = <100000>;   /* 100K */
610                 pulldown-ohm = <100000>; /* 100K */
611                 io-channels = <&adc 2>;  /* Battery temperature */
612         };
613 };