]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/dts/exynos5250-snow.dts
334a5af6cc8697e2171e193d90affd0dae7e9e9f
[karo-tx-uboot.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         i2c@12CD0000 {
210                 ptn3460: lvds-bridge@20 {
211                         compatible = "nxp,ptn3460";
212                         reg = <0x20>;
213                         sleep-gpios = <&gpy2 5 GPIO_ACTIVE_LOW>;
214                         reset-gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
215                         hotplug-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
216                         edid-emulation = <5>;
217                 };
218
219                 soundcodec@22 {
220                         reg = <0x22>;
221                         compatible = "maxim,max98095-codec";
222                 };
223         };
224
225         spi@12d30000 {
226                 spi-max-frequency = <50000000>;
227                 firmware_storage_spi: flash@0 {
228                         compatible = "spi-flash";
229                         reg = <0>;
230                 };
231         };
232
233         spi@131b0000 {
234                 spi-max-frequency = <1000000>;
235                 spi-deactivate-delay = <100>;
236
237                 /* Snow did support SPI but the released version used I2C */
238                 embedded-controller {
239                         compatible = "google,cros-ec-i2c";
240                         reg = <0x1e>;
241                         spi-max-frequency = <5000000>;
242                         ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
243                         optimise-flash-write;
244                         status = "disabled";
245                 };
246         };
247
248         sound@3830000 {
249                 samsung,codec-type = "max98095";
250                 codec-enable-gpio = <&gpx1 7 GPIO_ACTIVE_HIGH>;
251         };
252
253         sound@12d60000 {
254                 status = "disabled";
255         };
256
257         i2c@12C60000 {
258                 max77686@09 {
259                         reg = <0x9>;
260                         compatible = "maxim,max77686";
261                 };
262         };
263
264         mmc@12200000 {
265                 samsung,bus-width = <8>;
266                 samsung,timing = <1 3 3>;
267                 samsung,removable = <0>;
268         };
269
270         mmc@12210000 {
271                 status = "disabled";
272         };
273
274         mmc@12220000 {
275                 samsung,bus-width = <4>;
276                 samsung,timing = <1 2 3>;
277                 samsung,removable = <1>;
278         };
279
280         mmc@12230000 {
281                 status = "disabled";
282         };
283
284         ehci@12110000 {
285                 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
286                 status = "okay";
287         };
288
289         xhci@12000000 {
290                 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
291         };
292
293         tmu@10060000 {
294                 samsung,min-temp        = <25>;
295                 samsung,max-temp        = <125>;
296                 samsung,start-warning   = <95>;
297                 samsung,start-tripping  = <105>;
298                 samsung,hw-tripping     = <110>;
299                 samsung,efuse-min-value = <40>;
300                 samsung,efuse-value     = <55>;
301                 samsung,efuse-max-value = <100>;
302                 samsung,slope           = <274761730>;
303                 samsung,dc-value        = <25>;
304         };
305
306         fimd@14400000 {
307                 samsung,vl-freq = <60>;
308                 samsung,vl-col = <1366>;
309                 samsung,vl-row = <768>;
310                 samsung,vl-width = <1366>;
311                 samsung,vl-height = <768>;
312
313                 samsung,vl-clkp;
314                 samsung,vl-dp;
315                 samsung,vl-hsp;
316                 samsung,vl-vsp;
317
318                 samsung,vl-bpix = <4>;
319
320                 samsung,vl-hspw = <32>;
321                 samsung,vl-hbpd = <80>;
322                 samsung,vl-hfpd = <48>;
323                 samsung,vl-vspw = <5>;
324                 samsung,vl-vbpd = <14>;
325                 samsung,vl-vfpd = <3>;
326                 samsung,vl-cmd-allow-len = <0xf>;
327
328                 samsung,winid = <0>;
329                 samsung,interface-mode = <1>;
330                 samsung,dp-enabled = <1>;
331                 samsung,dual-lcd-enabled = <0>;
332         };
333
334         dp@145b0000 {
335                 samsung,lt-status = <0>;
336
337                 samsung,master-mode = <0>;
338                 samsung,bist-mode = <0>;
339                 samsung,bist-pattern = <0>;
340                 samsung,h-sync-polarity = <0>;
341                 samsung,v-sync-polarity = <0>;
342                 samsung,interlaced = <0>;
343                 samsung,color-space = <0>;
344                 samsung,dynamic-range = <0>;
345                 samsung,ycbcr-coeff = <0>;
346                 samsung,color-depth = <1>;
347         };
348
349 };
350
351 &i2c_0 {
352         status = "okay";
353         samsung,i2c-sda-delay = <100>;
354         samsung,i2c-max-bus-freq = <378000>;
355
356         max77686: max77686@09 {
357                 compatible = "maxim,max77686";
358                 interrupt-parent = <&gpx3>;
359                 interrupts = <2 IRQ_TYPE_NONE>;
360                 wakeup-source;
361                 reg = <0x09>;
362                 #clock-cells = <1>;
363
364                 voltage-regulators {
365                         ldo1_reg: LDO1 {
366                                 regulator-name = "P1.0V_LDO_OUT1";
367                                 regulator-min-microvolt = <1000000>;
368                                 regulator-max-microvolt = <1000000>;
369                                 regulator-always-on;
370                         };
371
372                         ldo2_reg: LDO2 {
373                                 regulator-name = "P1.8V_LDO_OUT2";
374                                 regulator-min-microvolt = <1800000>;
375                                 regulator-max-microvolt = <1800000>;
376                                 regulator-always-on;
377                         };
378
379                         ldo3_reg: LDO3 {
380                                 regulator-name = "P1.8V_LDO_OUT3";
381                                 regulator-min-microvolt = <1800000>;
382                                 regulator-max-microvolt = <1800000>;
383                                 regulator-always-on;
384                         };
385
386                         ldo7_reg: LDO7 {
387                                 regulator-name = "P1.1V_LDO_OUT7";
388                                 regulator-min-microvolt = <1100000>;
389                                 regulator-max-microvolt = <1100000>;
390                                 regulator-always-on;
391                         };
392
393                         ldo8_reg: LDO8 {
394                                 regulator-name = "P1.0V_LDO_OUT8";
395                                 regulator-min-microvolt = <1000000>;
396                                 regulator-max-microvolt = <1000000>;
397                                 regulator-always-on;
398                         };
399
400                         ldo10_reg: LDO10 {
401                                 regulator-name = "P1.8V_LDO_OUT10";
402                                 regulator-min-microvolt = <1800000>;
403                                 regulator-max-microvolt = <1800000>;
404                                 regulator-always-on;
405                         };
406
407                         ldo12_reg: LDO12 {
408                                 regulator-name = "P3.0V_LDO_OUT12";
409                                 regulator-min-microvolt = <3000000>;
410                                 regulator-max-microvolt = <3000000>;
411                                 regulator-always-on;
412                         };
413
414                         ldo14_reg: LDO14 {
415                                 regulator-name = "P1.8V_LDO_OUT14";
416                                 regulator-min-microvolt = <1800000>;
417                                 regulator-max-microvolt = <1800000>;
418                                 regulator-always-on;
419                         };
420
421                         ldo15_reg: LDO15 {
422                                 regulator-name = "P1.0V_LDO_OUT15";
423                                 regulator-min-microvolt = <1000000>;
424                                 regulator-max-microvolt = <1000000>;
425                                 regulator-always-on;
426                         };
427
428                         ldo16_reg: LDO16 {
429                                 regulator-name = "P1.8V_LDO_OUT16";
430                                 regulator-min-microvolt = <1800000>;
431                                 regulator-max-microvolt = <1800000>;
432                                 regulator-always-on;
433                         };
434
435                         ldo17_reg: LDO17 {
436                                 regulator-name = "vdd_mydp";
437                                 regulator-min-microvolt = <1200000>;
438                                 regulator-max-microvolt = <1200000>;
439                         };
440
441                         buck1_reg: BUCK1 {
442                                 regulator-name = "vdd_mif";
443                                 regulator-min-microvolt = <950000>;
444                                 regulator-max-microvolt = <1300000>;
445                                 regulator-always-on;
446                                 regulator-boot-on;
447                         };
448
449                         buck2_reg: BUCK2 {
450                                 regulator-name = "vdd_arm";
451                                 regulator-min-microvolt = <850000>;
452                                 regulator-max-microvolt = <1350000>;
453                                 regulator-always-on;
454                                 regulator-boot-on;
455                         };
456
457                         buck3_reg: BUCK3 {
458                                 regulator-name = "vdd_int";
459                                 regulator-min-microvolt = <900000>;
460                                 regulator-max-microvolt = <1200000>;
461                                 regulator-always-on;
462                                 regulator-boot-on;
463                         };
464
465                         buck4_reg: BUCK4 {
466                                 regulator-name = "vdd_g3d";
467                                 regulator-min-microvolt = <850000>;
468                                 regulator-max-microvolt = <1300000>;
469                                 regulator-always-on;
470                                 regulator-boot-on;
471                         };
472
473                         buck5_reg: BUCK5 {
474                                 regulator-name = "P1.8V_BUCK_OUT5";
475                                 regulator-min-microvolt = <1800000>;
476                                 regulator-max-microvolt = <1800000>;
477                                 regulator-always-on;
478                                 regulator-boot-on;
479                         };
480
481                         buck6_reg: BUCK6 {
482                                 regulator-name = "P1.35V_BUCK_OUT6";
483                                 regulator-min-microvolt = <1350000>;
484                                 regulator-max-microvolt = <1350000>;
485                                 regulator-always-on;
486                         };
487
488                         buck7_reg: BUCK7 {
489                                 regulator-name = "P2.0V_BUCK_OUT7";
490                                 regulator-min-microvolt = <2000000>;
491                                 regulator-max-microvolt = <2000000>;
492                                 regulator-always-on;
493                         };
494
495                         buck8_reg: BUCK8 {
496                                 regulator-name = "P2.85V_BUCK_OUT8";
497                                 regulator-min-microvolt = <2850000>;
498                                 regulator-max-microvolt = <2850000>;
499                                 regulator-always-on;
500                         };
501                 };
502         };
503 };
504
505 #include "cros-ec-keyboard.dtsi"