dts: exynos: snow: Add memory layout description
[oweals/u-boot.git] / arch / arm / dts / exynos5250-snow.dts
1 /*
2  * SAMSUNG Snow board device tree source
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11
12 /dts-v1/;
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/input/input.h>
16 #include "exynos5250.dtsi"
17
18 / {
19         model = "Google Snow";
20         compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5";
21
22         aliases {
23                 i2c0 = "/i2c@12C60000";
24                 i2c1 = "/i2c@12C70000";
25                 i2c2 = "/i2c@12C80000";
26                 i2c3 = "/i2c@12C90000";
27                 i2c4 = "/i2c@12CA0000";
28                 i2c104 = &i2c_104;
29                 i2c5 = "/i2c@12CB0000";
30                 i2c6 = "/i2c@12CC0000";
31                 i2c7 = "/i2c@12CD0000";
32                 spi0 = "/spi@12d20000";
33                 spi1 = "/spi@12d30000";
34                 spi2 = "/spi@12d40000";
35                 spi3 = "/spi@131a0000";
36                 spi4 = "/spi@131b0000";
37                 mmc0 = "/mmc@12200000";
38                 mmc1 = "/mmc@12210000";
39                 mmc2 = "/mmc@12220000";
40                 mmc3 = "/mmc@12230000";
41                 serial0 = "/serial@12C30000";
42                 console = "/serial@12C30000";
43                 i2s = "/sound@3830000";
44         };
45
46         memory {
47                 reg = <0x40000000 0x80000000>;
48         };
49
50         chosen {
51                 bootargs = "console=tty1";
52                 stdout-path = "serial3:115200n8";
53         };
54
55         iram {
56                 reg = <0x02020000 0x60000>;
57         };
58
59         config {
60                 samsung,bl1-offset = <0x1400>;
61                 samsung,bl2-offset = <0x3400>;
62                 u-boot-memory = "/memory";
63                 u-boot-offset = <0x3e00000 0x100000>;
64         };
65
66         flash {
67                 reg = <0 0x100000>;
68                 #address-cells = <1>;
69                 #size-cells = <1>;
70                 pre-boot {
71                         label = "bl1 pre-boot";
72                         reg = <0 0x2000>;
73                         read-only;
74                         filename = "e5250.nbl1.bin";
75                         type = "blob exynos-bl1";
76                         required;
77                 };
78
79                 spl {
80                         label = "bl2 spl";
81                         reg = <0x2000 0x4000>;
82                         read-only;
83                         filename = "bl2.bin";
84                         type = "blob exynos-bl2 boot,dtb";
85                         payload = "/flash/ro-boot";
86                         required;
87                 };
88
89                 ro-boot {
90                         label = "u-boot";
91                         reg = <0x6000 0x9a000>;
92                         read-only;
93                         type = "blob boot,dtb";
94                         required;
95                 };
96         };
97
98
99         i2c4: i2c@12CA0000 {
100                 cros_ec_old: cros-ec@1e {
101                         reg = <0x1e>;
102                         compatible = "google,cros-ec-i2c";
103                         i2c-max-frequency = <100000>;
104                         u-boot,i2c-offset-len = <0>;
105                         ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
106                 };
107
108                 power-regulator@48 {
109                         compatible = "ti,tps65090";
110                         reg = <0x48>;
111                 };
112         };
113
114         i2c-arbitrator {
115                 compatible = "i2c-arb-gpio-challenge";
116                 #address-cells = <1>;
117                 #size-cells = <0>;
118
119                 i2c-parent = <&{/i2c@12CA0000}>;
120
121                 our-claim-gpio = <&gpf0 3 GPIO_ACTIVE_LOW>;
122                 their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
123                 slew-delay-us = <10>;
124                 wait-retry-us = <3000>;
125                 wait-free-us = <50000>;
126
127                 /* Use ID 104 as a hint that we're on physical bus 4 */
128                 i2c_104: i2c@0 {
129                         reg = <0>;
130                         #address-cells = <1>;
131                         #size-cells = <0>;
132
133                         battery: sbs-battery@b {
134                                 compatible = "sbs,sbs-battery";
135                                 reg = <0xb>;
136                                 sbs,poll-retry-count = <1>;
137                         };
138
139                         cros_ec: embedded-controller {
140                                 compatible = "google,cros-ec-i2c";
141                                 reg = <0x1e>;
142                                 interrupts = <6 IRQ_TYPE_NONE>;
143                                 interrupt-parent = <&gpx1>;
144                                 wakeup-source;
145                                 i2c-max-frequency = <100000>;
146                                 u-boot,i2c-offset-len = <0>;
147                                 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
148                         };
149
150                         power-regulator {
151                                 compatible = "ti,tps65090";
152                                 reg = <0x48>;
153
154                                 regulators {
155                                         dcdc1 {
156                                                 ti,enable-ext-control;
157                                         };
158                                         dcdc2 {
159                                                 ti,enable-ext-control;
160                                         };
161                                         dcdc3 {
162                                                 ti,enable-ext-control;
163                                         };
164                                         fet1: fet1 {
165                                                 regulator-name = "vcd_led";
166                                                 ti,overcurrent-wait = <3>;
167                                         };
168                                         tps65090_fet2: fet2 {
169                                                 regulator-name = "video_mid";
170                                                 regulator-always-on;
171                                                 ti,overcurrent-wait = <3>;
172                                         };
173                                         fet3 {
174                                                 regulator-name = "wwan_r";
175                                                 regulator-always-on;
176                                                 ti,overcurrent-wait = <3>;
177                                         };
178                                         fet4 {
179                                                 regulator-name = "sdcard";
180                                                 ti,overcurrent-wait = <3>;
181                                         };
182                                         fet5 {
183                                                 regulator-name = "camout";
184                                                 regulator-always-on;
185                                                 ti,overcurrent-wait = <3>;
186                                         };
187                                         fet6: fet6 {
188                                                 regulator-name = "lcd_vdd";
189                                                 ti,overcurrent-wait = <3>;
190                                         };
191                                         tps65090_fet7: fet7 {
192                                                 regulator-name = "video_mid_1a";
193                                                 regulator-always-on;
194                                                 ti,overcurrent-wait = <3>;
195                                         };
196                                         ldo1 {
197                                         };
198                                         ldo2 {
199                                         };
200                                 };
201
202                                 charger {
203                                         compatible = "ti,tps65090-charger";
204                                 };
205                         };
206                 };
207         };
208
209         spi@12d30000 {
210                 spi-max-frequency = <50000000>;
211                 firmware_storage_spi: flash@0 {
212                         compatible = "spi-flash";
213                         reg = <0>;
214                 };
215         };
216
217         spi@131b0000 {
218                 spi-max-frequency = <1000000>;
219                 spi-deactivate-delay = <100>;
220
221                 /* Snow did support SPI but the released version used I2C */
222                 embedded-controller {
223                         compatible = "google,cros-ec-i2c";
224                         reg = <0x1e>;
225                         spi-max-frequency = <5000000>;
226                         ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
227                         optimise-flash-write;
228                         status = "disabled";
229                 };
230         };
231
232         sound@3830000 {
233                 samsung,codec-type = "max98095";
234                 codec-enable-gpio = <&gpx1 7 GPIO_ACTIVE_HIGH>;
235         };
236
237         sound@12d60000 {
238                 status = "disabled";
239         };
240
241         i2c@12CD0000 {
242                 soundcodec@22 {
243                         reg = <0x22>;
244                         compatible = "maxim,max98095-codec";
245                 };
246
247                 ptn3460-bridge@20 {
248                         compatible = "nxp,ptn3460";
249                         reg = <0x20>;
250                         /*
251                          * TODO(sjg@chromium.org): Use GPIOs here
252                          * powerdown-gpio = <&gpy2 5 0>;
253                          * reset-gpio = <&gpx1 5 0>;
254                          * edid-emulation = <5>;
255                          * pinctrl-names = "default";
256                          * pinctrl-0 = <&ptn3460_gpios>;
257                          */
258                 };
259         };
260
261         i2c@12C60000 {
262                 max77686@09 {
263                         reg = <0x9>;
264                         compatible = "maxim,max77686";
265                 };
266         };
267
268         mmc@12200000 {
269                 samsung,bus-width = <8>;
270                 samsung,timing = <1 3 3>;
271                 samsung,removable = <0>;
272         };
273
274         mmc@12210000 {
275                 status = "disabled";
276         };
277
278         mmc@12220000 {
279                 samsung,bus-width = <4>;
280                 samsung,timing = <1 2 3>;
281                 samsung,removable = <1>;
282         };
283
284         mmc@12230000 {
285                 status = "disabled";
286         };
287
288         ehci@12110000 {
289                 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
290                 status = "okay";
291         };
292
293         xhci@12000000 {
294                 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
295         };
296
297         tmu@10060000 {
298                 samsung,min-temp        = <25>;
299                 samsung,max-temp        = <125>;
300                 samsung,start-warning   = <95>;
301                 samsung,start-tripping  = <105>;
302                 samsung,hw-tripping     = <110>;
303                 samsung,efuse-min-value = <40>;
304                 samsung,efuse-value     = <55>;
305                 samsung,efuse-max-value = <100>;
306                 samsung,slope           = <274761730>;
307                 samsung,dc-value        = <25>;
308         };
309
310         fimd@14400000 {
311                 samsung,vl-freq = <60>;
312                 samsung,vl-col = <1366>;
313                 samsung,vl-row = <768>;
314                 samsung,vl-width = <1366>;
315                 samsung,vl-height = <768>;
316
317                 samsung,vl-clkp;
318                 samsung,vl-dp;
319                 samsung,vl-hsp;
320                 samsung,vl-vsp;
321
322                 samsung,vl-bpix = <4>;
323
324                 samsung,vl-hspw = <32>;
325                 samsung,vl-hbpd = <80>;
326                 samsung,vl-hfpd = <48>;
327                 samsung,vl-vspw = <5>;
328                 samsung,vl-vbpd = <14>;
329                 samsung,vl-vfpd = <3>;
330                 samsung,vl-cmd-allow-len = <0xf>;
331
332                 samsung,winid = <0>;
333                 samsung,interface-mode = <1>;
334                 samsung,dp-enabled = <1>;
335                 samsung,dual-lcd-enabled = <0>;
336         };
337
338         dp@145b0000 {
339                 samsung,lt-status = <0>;
340
341                 samsung,master-mode = <0>;
342                 samsung,bist-mode = <0>;
343                 samsung,bist-pattern = <0>;
344                 samsung,h-sync-polarity = <0>;
345                 samsung,v-sync-polarity = <0>;
346                 samsung,interlaced = <0>;
347                 samsung,color-space = <0>;
348                 samsung,dynamic-range = <0>;
349                 samsung,ycbcr-coeff = <0>;
350                 samsung,color-depth = <1>;
351         };
352
353 };
354
355 &i2c_0 {
356         status = "okay";
357         samsung,i2c-sda-delay = <100>;
358         samsung,i2c-max-bus-freq = <378000>;
359
360         max77686: max77686@09 {
361                 compatible = "maxim,max77686";
362                 interrupt-parent = <&gpx3>;
363                 interrupts = <2 IRQ_TYPE_NONE>;
364                 wakeup-source;
365                 reg = <0x09>;
366                 #clock-cells = <1>;
367
368                 voltage-regulators {
369                         ldo1_reg: LDO1 {
370                                 regulator-name = "P1.0V_LDO_OUT1";
371                                 regulator-min-microvolt = <1000000>;
372                                 regulator-max-microvolt = <1000000>;
373                                 regulator-always-on;
374                         };
375
376                         ldo2_reg: LDO2 {
377                                 regulator-name = "P1.8V_LDO_OUT2";
378                                 regulator-min-microvolt = <1800000>;
379                                 regulator-max-microvolt = <1800000>;
380                                 regulator-always-on;
381                         };
382
383                         ldo3_reg: LDO3 {
384                                 regulator-name = "P1.8V_LDO_OUT3";
385                                 regulator-min-microvolt = <1800000>;
386                                 regulator-max-microvolt = <1800000>;
387                                 regulator-always-on;
388                         };
389
390                         ldo7_reg: LDO7 {
391                                 regulator-name = "P1.1V_LDO_OUT7";
392                                 regulator-min-microvolt = <1100000>;
393                                 regulator-max-microvolt = <1100000>;
394                                 regulator-always-on;
395                         };
396
397                         ldo8_reg: LDO8 {
398                                 regulator-name = "P1.0V_LDO_OUT8";
399                                 regulator-min-microvolt = <1000000>;
400                                 regulator-max-microvolt = <1000000>;
401                                 regulator-always-on;
402                         };
403
404                         ldo10_reg: LDO10 {
405                                 regulator-name = "P1.8V_LDO_OUT10";
406                                 regulator-min-microvolt = <1800000>;
407                                 regulator-max-microvolt = <1800000>;
408                                 regulator-always-on;
409                         };
410
411                         ldo12_reg: LDO12 {
412                                 regulator-name = "P3.0V_LDO_OUT12";
413                                 regulator-min-microvolt = <3000000>;
414                                 regulator-max-microvolt = <3000000>;
415                                 regulator-always-on;
416                         };
417
418                         ldo14_reg: LDO14 {
419                                 regulator-name = "P1.8V_LDO_OUT14";
420                                 regulator-min-microvolt = <1800000>;
421                                 regulator-max-microvolt = <1800000>;
422                                 regulator-always-on;
423                         };
424
425                         ldo15_reg: LDO15 {
426                                 regulator-name = "P1.0V_LDO_OUT15";
427                                 regulator-min-microvolt = <1000000>;
428                                 regulator-max-microvolt = <1000000>;
429                                 regulator-always-on;
430                         };
431
432                         ldo16_reg: LDO16 {
433                                 regulator-name = "P1.8V_LDO_OUT16";
434                                 regulator-min-microvolt = <1800000>;
435                                 regulator-max-microvolt = <1800000>;
436                                 regulator-always-on;
437                         };
438
439                         ldo17_reg: LDO17 {
440                                 regulator-name = "vdd_mydp";
441                                 regulator-min-microvolt = <1200000>;
442                                 regulator-max-microvolt = <1200000>;
443                         };
444
445                         buck1_reg: BUCK1 {
446                                 regulator-name = "vdd_mif";
447                                 regulator-min-microvolt = <950000>;
448                                 regulator-max-microvolt = <1300000>;
449                                 regulator-always-on;
450                                 regulator-boot-on;
451                         };
452
453                         buck2_reg: BUCK2 {
454                                 regulator-name = "vdd_arm";
455                                 regulator-min-microvolt = <850000>;
456                                 regulator-max-microvolt = <1350000>;
457                                 regulator-always-on;
458                                 regulator-boot-on;
459                         };
460
461                         buck3_reg: BUCK3 {
462                                 regulator-name = "vdd_int";
463                                 regulator-min-microvolt = <900000>;
464                                 regulator-max-microvolt = <1200000>;
465                                 regulator-always-on;
466                                 regulator-boot-on;
467                         };
468
469                         buck4_reg: BUCK4 {
470                                 regulator-name = "vdd_g3d";
471                                 regulator-min-microvolt = <850000>;
472                                 regulator-max-microvolt = <1300000>;
473                                 regulator-always-on;
474                                 regulator-boot-on;
475                         };
476
477                         buck5_reg: BUCK5 {
478                                 regulator-name = "P1.8V_BUCK_OUT5";
479                                 regulator-min-microvolt = <1800000>;
480                                 regulator-max-microvolt = <1800000>;
481                                 regulator-always-on;
482                                 regulator-boot-on;
483                         };
484
485                         buck6_reg: BUCK6 {
486                                 regulator-name = "P1.35V_BUCK_OUT6";
487                                 regulator-min-microvolt = <1350000>;
488                                 regulator-max-microvolt = <1350000>;
489                                 regulator-always-on;
490                         };
491
492                         buck7_reg: BUCK7 {
493                                 regulator-name = "P2.0V_BUCK_OUT7";
494                                 regulator-min-microvolt = <2000000>;
495                                 regulator-max-microvolt = <2000000>;
496                                 regulator-always-on;
497                         };
498
499                         buck8_reg: BUCK8 {
500                                 regulator-name = "P2.85V_BUCK_OUT8";
501                                 regulator-min-microvolt = <2850000>;
502                                 regulator-max-microvolt = <2850000>;
503                                 regulator-always-on;
504                         };
505                 };
506         };
507 };
508
509 #include "cros-ec-keyboard.dtsi"