ARM: dts: enable RTC and WDT nodes on Origen boards
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / exynos4210-origen.dts
1 /*
2  * Samsung's Exynos4210 based Origen board device tree source
3  *
4  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  * Copyright (c) 2010-2011 Linaro Ltd.
7  *              www.linaro.org
8  *
9  * Device tree source file for Insignal's Origen board which is based on
10  * Samsung's Exynos4210 SoC.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License version 2 as
14  * published by the Free Software Foundation.
15 */
16
17 /dts-v1/;
18 #include "exynos4210.dtsi"
19
20 / {
21         model = "Insignal Origen evaluation board based on Exynos4210";
22         compatible = "insignal,origen", "samsung,exynos4210", "samsung,exynos4";
23
24         memory {
25                 reg = <0x40000000 0x10000000
26                        0x50000000 0x10000000
27                        0x60000000 0x10000000
28                        0x70000000 0x10000000>;
29         };
30
31         chosen {
32                 bootargs ="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc";
33         };
34
35         regulators {
36                 compatible = "simple-bus";
37                 #address-cells = <1>;
38                 #size-cells = <0>;
39
40                 mmc_reg: regulator@0 {
41                         compatible = "regulator-fixed";
42                         reg = <0>;
43                         regulator-name = "VMEM_VDD_2.8V";
44                         regulator-min-microvolt = <2800000>;
45                         regulator-max-microvolt = <2800000>;
46                         gpio = <&gpx1 1 0>;
47                         enable-active-high;
48                 };
49         };
50
51         watchdog@10060000 {
52                 status = "okay";
53         };
54
55         rtc@10070000 {
56                 status = "okay";
57         };
58
59         tmu@100C0000 {
60                 status = "okay";
61         };
62
63         sdhci@12530000 {
64                 bus-width = <4>;
65                 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>;
66                 pinctrl-names = "default";
67                 vmmc-supply = <&mmc_reg>;
68                 status = "okay";
69         };
70
71         sdhci@12510000 {
72                 bus-width = <4>;
73                 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_cd>;
74                 pinctrl-names = "default";
75                 vmmc-supply = <&mmc_reg>;
76                 status = "okay";
77         };
78
79         g2d@12800000 {
80                 status = "okay";
81         };
82
83         codec@13400000 {
84                 samsung,mfc-r = <0x43000000 0x800000>;
85                 samsung,mfc-l = <0x51000000 0x800000>;
86                 status = "okay";
87         };
88
89         serial@13800000 {
90                 status = "okay";
91         };
92
93         serial@13810000 {
94                 status = "okay";
95         };
96
97         serial@13820000 {
98                 status = "okay";
99         };
100
101         serial@13830000 {
102                 status = "okay";
103         };
104
105         i2c@13860000 {
106                 status = "okay";
107                 samsung,i2c-sda-delay = <100>;
108                 samsung,i2c-max-bus-freq = <20000>;
109                 pinctrl-0 = <&i2c0_bus>;
110                 pinctrl-names = "default";
111
112                 max8997_pmic@66 {
113                         compatible = "maxim,max8997-pmic";
114                         reg = <0x66>;
115                         interrupt-parent = <&gpx0>;
116                         interrupts = <4 0>, <3 0>;
117
118                         max8997,pmic-buck1-dvs-voltage = <1350000>;
119                         max8997,pmic-buck2-dvs-voltage = <1100000>;
120                         max8997,pmic-buck5-dvs-voltage = <1200000>;
121
122                         regulators {
123                                 ldo1_reg: LDO1 {
124                                         regulator-name = "VDD_ABB_3.3V";
125                                         regulator-min-microvolt = <3300000>;
126                                         regulator-max-microvolt = <3300000>;
127                                 };
128
129                                 ldo2_reg: LDO2 {
130                                         regulator-name = "VDD_ALIVE_1.1V";
131                                         regulator-min-microvolt = <1100000>;
132                                         regulator-max-microvolt = <1100000>;
133                                         regulator-always-on;
134                                 };
135
136                                 ldo3_reg: LDO3 {
137                                         regulator-name = "VMIPI_1.1V";
138                                         regulator-min-microvolt = <1100000>;
139                                         regulator-max-microvolt = <1100000>;
140                                 };
141
142                                 ldo4_reg: LDO4 {
143                                         regulator-name = "VDD_RTC_1.8V";
144                                         regulator-min-microvolt = <1800000>;
145                                         regulator-max-microvolt = <1800000>;
146                                         regulator-always-on;
147                                 };
148
149                                 ldo6_reg: LDO6 {
150                                         regulator-name = "VMIPI_1.8V";
151                                         regulator-min-microvolt = <1800000>;
152                                         regulator-max-microvolt = <1800000>;
153                                         regulator-always-on;
154                                 };
155
156                                 ldo7_reg: LDO7 {
157                                         regulator-name = "VDD_AUD_1.8V";
158                                         regulator-min-microvolt = <1800000>;
159                                         regulator-max-microvolt = <1800000>;
160                                 };
161
162                                 ldo8_reg: LDO8 {
163                                         regulator-name = "VADC_3.3V";
164                                         regulator-min-microvolt = <3300000>;
165                                         regulator-max-microvolt = <3300000>;
166                                 };
167
168                                 ldo9_reg: LDO9 {
169                                         regulator-name = "DVDD_SWB_2.8V";
170                                         regulator-min-microvolt = <2800000>;
171                                         regulator-max-microvolt = <2800000>;
172                                         regulator-always-on;
173                                 };
174
175                                 ldo10_reg: LDO10 {
176                                         regulator-name = "VDD_PLL_1.1V";
177                                         regulator-min-microvolt = <1100000>;
178                                         regulator-max-microvolt = <1100000>;
179                                         regulator-always-on;
180                                 };
181
182                                 ldo11_reg: LDO11 {
183                                         regulator-name = "VDD_AUD_3V";
184                                         regulator-min-microvolt = <3000000>;
185                                         regulator-max-microvolt = <3000000>;
186                                 };
187
188                                 ldo14_reg: LDO14 {
189                                         regulator-name = "AVDD18_SWB_1.8V";
190                                         regulator-min-microvolt = <1800000>;
191                                         regulator-max-microvolt = <1800000>;
192                                         regulator-always-on;
193                                 };
194
195                                 ldo17_reg: LDO17 {
196                                         regulator-name = "VDD_SWB_3.3V";
197                                         regulator-min-microvolt = <3300000>;
198                                         regulator-max-microvolt = <3300000>;
199                                         regulator-always-on;
200                                 };
201
202                                 ldo21_reg: LDO21 {
203                                         regulator-name = "VDD_MIF_1.2V";
204                                         regulator-min-microvolt = <1200000>;
205                                         regulator-max-microvolt = <1200000>;
206                                         regulator-always-on;
207                                 };
208
209                                 buck1_reg: BUCK1 {
210                                         /*
211                                         * HACK: The real name is VDD_ARM_1.2V,
212                                         * but exynos-cpufreq does not support
213                                         * DT-based regulator lookup yet.
214                                         */
215                                         regulator-name = "vdd_arm";
216                                         regulator-min-microvolt = <950000>;
217                                         regulator-max-microvolt = <1350000>;
218                                         regulator-always-on;
219                                         regulator-boot-on;
220                                 };
221
222                                 buck2_reg: BUCK2 {
223                                         regulator-name = "VDD_INT_1.1V";
224                                         regulator-min-microvolt = <900000>;
225                                         regulator-max-microvolt = <1100000>;
226                                         regulator-always-on;
227                                         regulator-boot-on;
228                                 };
229
230                                 buck3_reg: BUCK3 {
231                                         regulator-name = "VDD_G3D_1.1V";
232                                         regulator-min-microvolt = <900000>;
233                                         regulator-max-microvolt = <1100000>;
234                                 };
235
236                                 buck5_reg: BUCK5 {
237                                         regulator-name = "VDDQ_M1M2_1.2V";
238                                         regulator-min-microvolt = <1200000>;
239                                         regulator-max-microvolt = <1200000>;
240                                         regulator-always-on;
241                                 };
242
243                                 buck7_reg: BUCK7 {
244                                         regulator-name = "VDD_LCD_3.3V";
245                                         regulator-min-microvolt = <3300000>;
246                                         regulator-max-microvolt = <3300000>;
247                                         regulator-boot-on;
248                                         regulator-always-on;
249                                 };
250                         };
251                 };
252         };
253
254         gpio_keys {
255                 compatible = "gpio-keys";
256                 #address-cells = <1>;
257                 #size-cells = <0>;
258
259                 up {
260                         label = "Up";
261                         gpios = <&gpx2 0 1>;
262                         linux,code = <103>;
263                         gpio-key,wakeup;
264                 };
265
266                 down {
267                         label = "Down";
268                         gpios = <&gpx2 1 1>;
269                         linux,code = <108>;
270                         gpio-key,wakeup;
271                 };
272
273                 back {
274                         label = "Back";
275                         gpios = <&gpx1 7 1>;
276                         linux,code = <158>;
277                         gpio-key,wakeup;
278                 };
279
280                 home {
281                         label = "Home";
282                         gpios = <&gpx1 6 1>;
283                         linux,code = <102>;
284                         gpio-key,wakeup;
285                 };
286
287                 menu {
288                         label = "Menu";
289                         gpios = <&gpx1 5 1>;
290                         linux,code = <139>;
291                         gpio-key,wakeup;
292                 };
293         };
294
295         leds {
296                 compatible = "gpio-leds";
297                 status {
298                         gpios = <&gpx1 3 1>;
299                         linux,default-trigger = "heartbeat";
300                 };
301         };
302
303         fixed-rate-clocks {
304                 xxti {
305                         compatible = "samsung,clock-xxti";
306                         clock-frequency = <0>;
307                 };
308
309                 xusbxti {
310                         compatible = "samsung,clock-xusbxti";
311                         clock-frequency = <24000000>;
312                 };
313         };
314
315         fimd@11c00000 {
316                 pinctrl-0 = <&lcd_en &lcd_clk &lcd_data24 &pwm0_out>;
317                 pinctrl-names = "default";
318                 status = "okay";
319         };
320
321         display-timings {
322                 native-mode = <&timing0>;
323                 timing0: timing {
324                         clock-frequency = <47500000>;
325                         hactive = <1024>;
326                         vactive = <600>;
327                         hfront-porch = <64>;
328                         hback-porch = <16>;
329                         hsync-len = <48>;
330                         vback-porch = <64>;
331                         vfront-porch = <16>;
332                         vsync-len = <3>;
333                 };
334         };
335 };