Merge tag 'irqchip-4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos4210-trats.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Samsung's Exynos4210 based Trats board device tree source
4  *
5  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6  *              http://www.samsung.com
7  *
8  * Device tree source file for Samsung's Trats board which is based on
9  * Samsung's Exynos4210 SoC.
10  */
11
12 /dts-v1/;
13 #include "exynos4210.dtsi"
14 #include <dt-bindings/gpio/gpio.h>
15
16 / {
17         model = "Samsung Trats based on Exynos4210";
18         compatible = "samsung,trats", "samsung,exynos4210", "samsung,exynos4";
19
20         memory@40000000 {
21                 device_type = "memory";
22                 reg =  <0x40000000 0x10000000
23                         0x50000000 0x10000000
24                         0x60000000 0x10000000
25                         0x70000000 0x10000000>;
26         };
27
28         chosen {
29                 bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
30                 stdout-path = &serial_2;
31         };
32
33         regulators {
34                 compatible = "simple-bus";
35
36                 vemmc_reg: regulator-0 {
37                         compatible = "regulator-fixed";
38                         regulator-name = "VMEM_VDD_2.8V";
39                         regulator-min-microvolt = <2800000>;
40                         regulator-max-microvolt = <2800000>;
41                         gpio = <&gpk0 2 GPIO_ACTIVE_HIGH>;
42                         enable-active-high;
43                 };
44
45                 tsp_reg: regulator-1 {
46                         compatible = "regulator-fixed";
47                         regulator-name = "TSP_FIXED_VOLTAGES";
48                         regulator-min-microvolt = <2800000>;
49                         regulator-max-microvolt = <2800000>;
50                         gpio = <&gpl0 3 GPIO_ACTIVE_HIGH>;
51                         enable-active-high;
52                 };
53
54                 cam_af_28v_reg: regulator-2 {
55                         compatible = "regulator-fixed";
56                         regulator-name = "8M_AF_2.8V_EN";
57                         regulator-min-microvolt = <2800000>;
58                         regulator-max-microvolt = <2800000>;
59                         gpio = <&gpk1 1 GPIO_ACTIVE_HIGH>;
60                         enable-active-high;
61                 };
62
63                 cam_io_en_reg: regulator-3 {
64                         compatible = "regulator-fixed";
65                         regulator-name = "CAM_IO_EN";
66                         regulator-min-microvolt = <2800000>;
67                         regulator-max-microvolt = <2800000>;
68                         gpio = <&gpe2 1 GPIO_ACTIVE_HIGH>;
69                         enable-active-high;
70                 };
71
72                 cam_io_12v_reg: regulator-4 {
73                         compatible = "regulator-fixed";
74                         regulator-name = "8M_1.2V_EN";
75                         regulator-min-microvolt = <1200000>;
76                         regulator-max-microvolt = <1200000>;
77                         gpio = <&gpe2 5 GPIO_ACTIVE_HIGH>;
78                         enable-active-high;
79                 };
80
81                 vt_core_15v_reg: regulator-5 {
82                         compatible = "regulator-fixed";
83                         regulator-name = "VT_CORE_1.5V";
84                         regulator-min-microvolt = <1500000>;
85                         regulator-max-microvolt = <1500000>;
86                         gpio = <&gpe2 2 GPIO_ACTIVE_HIGH>;
87                         enable-active-high;
88                 };
89         };
90
91         gpio-keys {
92                 compatible = "gpio-keys";
93
94                 vol-down-key {
95                         gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
96                         linux,code = <114>;
97                         label = "volume down";
98                         debounce-interval = <10>;
99                 };
100
101                 vol-up-key {
102                         gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
103                         linux,code = <115>;
104                         label = "volume up";
105                         debounce-interval = <10>;
106                 };
107
108                 power-key {
109                         gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
110                         linux,code = <116>;
111                         label = "power";
112                         debounce-interval = <10>;
113                         wakeup-source;
114                 };
115
116                 ok-key {
117                         gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
118                         linux,code = <352>;
119                         label = "ok";
120                         debounce-interval = <10>;
121                 };
122         };
123
124         fixed-rate-clocks {
125                 xxti {
126                         compatible = "samsung,clock-xxti";
127                         clock-frequency = <0>;
128                 };
129
130                 xusbxti {
131                         compatible = "samsung,clock-xusbxti";
132                         clock-frequency = <24000000>;
133                 };
134         };
135
136         thermal-zones {
137                 cpu_thermal: cpu-thermal {
138                         cooling-maps {
139                                 map0 {
140                                      /* Corresponds to 800MHz at freq_table */
141                                      cooling-device = <&cpu0 2 2>;
142                                 };
143                                 map1 {
144                                      /* Corresponds to 200MHz at freq_table */
145                                      cooling-device = <&cpu0 4 4>;
146                                };
147                        };
148                 };
149         };
150
151         camera {
152                 pinctrl-names = "default";
153                 pinctrl-0 = <>;
154                 status = "okay";
155
156                 fimc_0: fimc@11800000 {
157                         status = "okay";
158                         assigned-clocks = <&clock CLK_MOUT_FIMC0>,
159                                         <&clock CLK_SCLK_FIMC0>;
160                         assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
161                         assigned-clock-rates = <0>, <160000000>;
162                 };
163
164                 fimc_1: fimc@11810000 {
165                         status = "okay";
166                         assigned-clocks = <&clock CLK_MOUT_FIMC1>,
167                                         <&clock CLK_SCLK_FIMC1>;
168                         assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
169                         assigned-clock-rates = <0>, <160000000>;
170                 };
171
172                 fimc_2: fimc@11820000 {
173                         status = "okay";
174                         assigned-clocks = <&clock CLK_MOUT_FIMC2>,
175                                         <&clock CLK_SCLK_FIMC2>;
176                         assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
177                         assigned-clock-rates = <0>, <160000000>;
178                 };
179
180                 fimc_3: fimc@11830000 {
181                         status = "okay";
182                         assigned-clocks = <&clock CLK_MOUT_FIMC3>,
183                                         <&clock CLK_SCLK_FIMC3>;
184                         assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
185                         assigned-clock-rates = <0>, <160000000>;
186                 };
187         };
188 };
189
190 &cpu0 {
191         cpu0-supply = <&varm_breg>;
192 };
193
194 &dsi_0 {
195         vddcore-supply = <&vusb_reg>;
196         vddio-supply = <&vmipi_reg>;
197         samsung,burst-clock-frequency = <500000000>;
198         samsung,esc-clock-frequency = <20000000>;
199         samsung,pll-clock-frequency = <24000000>;
200         status = "okay";
201
202         panel@0 {
203                 reg = <0>;
204                 compatible = "samsung,s6e8aa0";
205                 vdd3-supply = <&vcclcd_reg>;
206                 vci-supply = <&vlcd_reg>;
207                 reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>;
208                 power-on-delay= <50>;
209                 reset-delay = <100>;
210                 init-delay = <100>;
211                 flip-horizontal;
212                 flip-vertical;
213                 panel-width-mm = <58>;
214                 panel-height-mm = <103>;
215
216                 display-timings {
217                         timing-0 {
218                                 clock-frequency = <57153600>;
219                                 hactive = <720>;
220                                 vactive = <1280>;
221                                 hfront-porch = <5>;
222                                 hback-porch = <5>;
223                                 hsync-len = <5>;
224                                 vfront-porch = <13>;
225                                 vback-porch = <1>;
226                                 vsync-len = <2>;
227                         };
228                 };
229         };
230 };
231
232 &exynos_usbphy {
233         status = "okay";
234         vbus-supply = <&safe1_sreg>;
235 };
236
237 &fimd {
238         status = "okay";
239 };
240
241 &hsotg {
242         vusb_d-supply = <&vusb_reg>;
243         vusb_a-supply = <&vusbdac_reg>;
244         dr_mode = "peripheral";
245         status = "okay";
246 };
247
248 &i2c_3 {
249         samsung,i2c-sda-delay = <100>;
250         samsung,i2c-slave-addr = <0x10>;
251         samsung,i2c-max-bus-freq = <400000>;
252         pinctrl-0 = <&i2c3_bus>;
253         pinctrl-names = "default";
254         status = "okay";
255
256         mms114-touchscreen@48 {
257                 compatible = "melfas,mms114";
258                 reg = <0x48>;
259                 interrupt-parent = <&gpx0>;
260                 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
261                 x-size = <720>;
262                 y-size = <1280>;
263                 avdd-supply = <&tsp_reg>;
264                 vdd-supply = <&tsp_reg>;
265         };
266 };
267
268 &i2c_5 {
269         samsung,i2c-sda-delay = <100>;
270         samsung,i2c-slave-addr = <0x10>;
271         samsung,i2c-max-bus-freq = <100000>;
272         pinctrl-0 = <&i2c5_bus>;
273         pinctrl-names = "default";
274         status = "okay";
275
276         max8997_pmic@66 {
277                 compatible = "maxim,max8997-pmic";
278
279                 reg = <0x66>;
280                 interrupt-parent = <&gpx0>;
281                 interrupts = <7 IRQ_TYPE_NONE>;
282
283                 max8997,pmic-buck1-uses-gpio-dvs;
284                 max8997,pmic-buck2-uses-gpio-dvs;
285                 max8997,pmic-buck5-uses-gpio-dvs;
286
287                 max8997,pmic-ignore-gpiodvs-side-effect;
288                 max8997,pmic-buck125-default-dvs-idx = <0>;
289
290                 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
291                                                  <&gpx0 6 GPIO_ACTIVE_HIGH>,
292                                                  <&gpl0 0 GPIO_ACTIVE_HIGH>;
293
294                 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
295                                                  <1250000>, <1200000>,
296                                                  <1150000>, <1100000>,
297                                                  <1000000>, <950000>;
298
299                 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
300                                                  <950000>,  <900000>,
301                                                  <1100000>, <1000000>,
302                                                  <950000>,  <900000>;
303
304                 max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>,
305                                                  <1200000>, <1200000>,
306                                                  <1200000>, <1200000>,
307                                                  <1200000>, <1200000>;
308
309                 regulators {
310                         valive_reg: LDO2 {
311                              regulator-name = "VALIVE_1.1V_C210";
312                              regulator-min-microvolt = <1100000>;
313                              regulator-max-microvolt = <1100000>;
314                              regulator-always-on;
315                         };
316
317                         vusb_reg: LDO3 {
318                              regulator-name = "VUSB_1.1V_C210";
319                              regulator-min-microvolt = <1100000>;
320                              regulator-max-microvolt = <1100000>;
321                         };
322
323                         vmipi_reg: LDO4 {
324                              regulator-name = "VMIPI_1.8V";
325                              regulator-min-microvolt = <1800000>;
326                              regulator-max-microvolt = <1800000>;
327                         };
328
329                         vpda_reg: LDO6 {
330                              regulator-name = "VCC_1.8V_PDA";
331                              regulator-min-microvolt = <1800000>;
332                              regulator-max-microvolt = <1800000>;
333                              regulator-always-on;
334                         };
335
336                         vcam_reg: LDO7 {
337                              regulator-name = "CAM_ISP_1.8V";
338                              regulator-min-microvolt = <1800000>;
339                              regulator-max-microvolt = <1800000>;
340                         };
341
342                         vusbdac_reg: LDO8 {
343                              regulator-name = "VUSB+VDAC_3.3V_C210";
344                              regulator-min-microvolt = <3300000>;
345                              regulator-max-microvolt = <3300000>;
346                         };
347
348                         vccpda_reg: LDO9 {
349                              regulator-name = "VCC_2.8V_PDA";
350                              regulator-min-microvolt = <2800000>;
351                              regulator-max-microvolt = <2800000>;
352                              regulator-always-on;
353                         };
354
355                         vpll_reg: LDO10 {
356                              regulator-name = "VPLL_1.1V_C210";
357                              regulator-min-microvolt = <1100000>;
358                              regulator-max-microvolt = <1100000>;
359                              regulator-always-on;
360                         };
361
362                         vtcam_reg: LDO12 {
363                              regulator-name = "VT_CAM_1.8V";
364                              regulator-min-microvolt = <1800000>;
365                              regulator-max-microvolt = <1800000>;
366                         };
367
368                         vcclcd_reg: LDO13 {
369                              regulator-name = "VCC_3.3V_LCD";
370                              regulator-min-microvolt = <3300000>;
371                              regulator-max-microvolt = <3300000>;
372                         };
373
374                         vlcd_reg: LDO15 {
375                              regulator-name = "VLCD_2.2V";
376                              regulator-min-microvolt = <2200000>;
377                              regulator-max-microvolt = <2200000>;
378                         };
379
380                         camsensor_reg: LDO16 {
381                              regulator-name = "CAM_SENSOR_IO_1.8V";
382                              regulator-min-microvolt = <1800000>;
383                              regulator-max-microvolt = <1800000>;
384                         };
385
386                         vddq_reg: LDO21 {
387                              regulator-name = "VDDQ_M1M2_1.2V";
388                              regulator-min-microvolt = <1200000>;
389                              regulator-max-microvolt = <1200000>;
390                              regulator-always-on;
391                         };
392
393                         varm_breg: BUCK1 {
394                              /*
395                               * HACK: The real name is VARM_1.2V_C210,
396                               * but exynos-cpufreq does not support
397                               * DT-based regulator lookup yet.
398                               */
399                              regulator-name = "vdd_arm";
400                              regulator-min-microvolt = <900000>;
401                              regulator-max-microvolt = <1350000>;
402                              regulator-always-on;
403                         };
404
405                         vint_breg: BUCK2 {
406                              regulator-name = "VINT_1.1V_C210";
407                              regulator-min-microvolt = <900000>;
408                              regulator-max-microvolt = <1100000>;
409                              regulator-always-on;
410                         };
411
412                         camisp_breg: BUCK4 {
413                              regulator-name = "CAM_ISP_CORE_1.2V";
414                              regulator-min-microvolt = <1200000>;
415                              regulator-max-microvolt = <1200000>;
416                         };
417
418                         vmem_breg: BUCK5 {
419                              regulator-name = "VMEM_1.2V_C210";
420                              regulator-min-microvolt = <1200000>;
421                              regulator-max-microvolt = <1200000>;
422                              regulator-always-on;
423                         };
424
425                         vccsub_breg: BUCK7 {
426                              regulator-name = "VCC_SUB_2.0V";
427                              regulator-min-microvolt = <2000000>;
428                              regulator-max-microvolt = <2000000>;
429                              regulator-always-on;
430                         };
431
432                         safe1_sreg: ESAFEOUT1 {
433                              regulator-name = "SAFEOUT1";
434                         };
435
436                         safe2_sreg: ESAFEOUT2 {
437                              regulator-name = "SAFEOUT2";
438                              regulator-boot-on;
439                         };
440                 };
441         };
442 };
443
444 &sdhci_0 {
445         bus-width = <8>;
446         non-removable;
447         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus8>;
448         pinctrl-names = "default";
449         vmmc-supply = <&vemmc_reg>;
450         status = "okay";
451 };
452
453 &serial_0 {
454         status = "okay";
455 };
456
457 &serial_1 {
458         status = "okay";
459 };
460
461 &serial_2 {
462         status = "okay";
463 };
464
465 &serial_3 {
466         status = "okay";
467 };
468
469 &tmu {
470         status = "okay";
471 };