2 * Google Spring board device tree source
4 * Copyright (c) 2013 Google, Inc
5 * Copyright (c) 2014 SUSE LINUX Products GmbH
7 * SPDX-License-Identifier: GPL-2.0
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include <dt-bindings/input/input.h>
14 #include "exynos5250.dtsi"
17 model = "Google Spring";
18 compatible = "google,spring", "samsung,exynos5250", "samsung,exynos5";
21 i2c0 = "/i2c@12C60000";
22 i2c1 = "/i2c@12C70000";
23 i2c2 = "/i2c@12C80000";
24 i2c3 = "/i2c@12C90000";
25 i2c4 = "/i2c@12CA0000";
26 i2c5 = "/i2c@12CB0000";
27 i2c6 = "/i2c@12CC0000";
28 i2c7 = "/i2c@12CD0000";
29 i2c104 = &cros_ec_ldo_tunnel;
30 spi0 = "/spi@12d20000";
31 spi1 = "/spi@12d30000";
32 spi2 = "/spi@12d40000";
33 spi3 = "/spi@131a0000";
34 spi4 = "/spi@131b0000";
35 mmc0 = "/mmc@12000000";
36 serial0 = "/serial@12C30000";
37 console = "/serial@12C30000";
38 i2s = "/sound@3830000";
42 reg = <0x40000000 0x80000000>;
46 spl { /* spl size override */
52 bootargs = "console=tty1";
53 stdout-path = "serial3:115200n8";
57 compatible = "google,board-revision";
58 google,board-rev-gpios = <&gpy4 0 0>, <&gpy4 1 0>,
63 clock-frequency = <100000>;
66 compatible = "infineon,slb9645tt";
71 samsung,bus-width = <8>;
72 samsung,timing = <1 3 3>;
73 samsung,removable = <0>;
81 /* MMC2 pins are used as GPIO for eDP bridge */
90 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
95 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
99 spi-max-frequency = <50000000>;
100 firmware_storage_spi: flash@0 {
101 compatible = "spi-flash";
107 samsung,min-temp = <25>;
108 samsung,max-temp = <125>;
109 samsung,start-warning = <95>;
110 samsung,start-tripping = <105>;
111 samsung,hw-tripping = <110>;
112 samsung,efuse-min-value = <40>;
113 samsung,efuse-value = <55>;
114 samsung,efuse-max-value = <100>;
115 samsung,slope = <274761730>;
116 samsung,dc-value = <25>;
120 samsung,vl-freq = <60>;
121 samsung,vl-col = <1366>;
122 samsung,vl-row = <768>;
123 samsung,vl-width = <1366>;
124 samsung,vl-height = <768>;
131 samsung,vl-bpix = <4>;
133 samsung,vl-hspw = <32>;
134 samsung,vl-hbpd = <80>;
135 samsung,vl-hfpd = <48>;
136 samsung,vl-vspw = <5>;
137 samsung,vl-vbpd = <14>;
138 samsung,vl-vfpd = <3>;
139 samsung,vl-cmd-allow-len = <0xf>;
142 samsung,interface-mode = <1>;
143 samsung,dp-enabled = <1>;
144 samsung,dual-lcd-enabled = <0>;
148 samsung,lt-status = <0>;
150 samsung,master-mode = <0>;
151 samsung,bist-mode = <0>;
152 samsung,bist-pattern = <0>;
153 samsung,h-sync-polarity = <0>;
154 samsung,v-sync-polarity = <0>;
155 samsung,interlaced = <0>;
156 samsung,color-space = <0>;
157 samsung,dynamic-range = <0>;
158 samsung,ycbcr-coeff = <0>;
159 samsung,color-depth = <1>;
165 samsung,i2c-sda-delay = <100>;
166 samsung,i2c-max-bus-freq = <378000>;
169 compatible = "samsung,s5m8767-pmic";
171 interrupt-parent = <&gpx3>;
174 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>, /* DVS1 */
175 <&gpd1 1 GPIO_ACTIVE_LOW>, /* DVS2 */
176 <&gpd1 2 GPIO_ACTIVE_LOW>; /* DVS3 */
178 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_LOW>, /* SET1 */
179 <&gpx2 4 GPIO_ACTIVE_LOW>, /* SET2 */
180 <&gpx2 5 GPIO_ACTIVE_LOW>; /* SET3 */
183 * The following arrays of DVS voltages are not used, since we are
184 * not using GPIOs to control PMIC bucks, but they must be defined
185 * to please the driver.
187 s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
188 <1250000>, <1200000>,
189 <1150000>, <1100000>,
192 s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
193 <1100000>, <1100000>,
194 <1000000>, <1000000>,
195 <1000000>, <1000000>;
197 s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
198 <1200000>, <1200000>,
199 <1200000>, <1200000>,
200 <1200000>, <1200000>;
203 compatible = "samsung,s5m8767-clk";
205 clock-output-names = "en32khz_ap",
212 regulator-name = "P1.0V_LDO_OUT4";
213 regulator-min-microvolt = <1000000>;
214 regulator-max-microvolt = <1000000>;
220 regulator-name = "P1.8V_LDO_OUT5";
221 regulator-min-microvolt = <1800000>;
222 regulator-max-microvolt = <1800000>;
228 regulator-name = "vdd_mydp";
229 regulator-min-microvolt = <1200000>;
230 regulator-max-microvolt = <1200000>;
236 regulator-name = "P1.1V_LDO_OUT7";
237 regulator-min-microvolt = <1100000>;
238 regulator-max-microvolt = <1100000>;
244 regulator-name = "P1.0V_LDO_OUT8";
245 regulator-min-microvolt = <1000000>;
246 regulator-max-microvolt = <1000000>;
252 regulator-name = "P1.8V_LDO_OUT10";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <1800000>;
260 regulator-name = "P1.8V_LDO_OUT11";
261 regulator-min-microvolt = <1800000>;
262 regulator-max-microvolt = <1800000>;
268 regulator-name = "P3.0V_LDO_OUT12";
269 regulator-min-microvolt = <3000000>;
270 regulator-max-microvolt = <3000000>;
276 regulator-name = "P1.8V_LDO_OUT13";
277 regulator-min-microvolt = <1800000>;
278 regulator-max-microvolt = <1800000>;
284 regulator-name = "P1.8V_LDO_OUT14";
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
292 regulator-name = "P1.0V_LDO_OUT15";
293 regulator-min-microvolt = <1000000>;
294 regulator-max-microvolt = <1000000>;
300 regulator-name = "P1.8V_LDO_OUT16";
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <1800000>;
308 regulator-name = "P1.2V_LDO_OUT17";
309 regulator-min-microvolt = <1200000>;
310 regulator-max-microvolt = <1200000>;
316 regulator-name = "vdd_bridge";
317 regulator-min-microvolt = <1200000>;
318 regulator-max-microvolt = <1200000>;
324 regulator-name = "vdd_mif";
325 regulator-min-microvolt = <950000>;
326 regulator-max-microvolt = <1300000>;
333 regulator-name = "vdd_arm";
334 regulator-min-microvolt = <850000>;
335 regulator-max-microvolt = <1350000>;
342 regulator-name = "vdd_int";
343 regulator-min-microvolt = <900000>;
344 regulator-max-microvolt = <1200000>;
351 regulator-name = "vdd_g3d";
352 regulator-min-microvolt = <850000>;
353 regulator-max-microvolt = <1300000>;
359 regulator-name = "P1.8V_BUCK_OUT5";
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <1800000>;
368 regulator-name = "P1.2V_BUCK_OUT6";
369 regulator-min-microvolt = <2050000>;
370 regulator-max-microvolt = <2050000>;
377 regulator-name = "vdd_ummc";
378 regulator-min-microvolt = <950000>;
379 regulator-max-microvolt = <3000000>;
390 samsung,i2c-sda-delay = <100>;
391 samsung,i2c-max-bus-freq = <378000>;
396 samsung,i2c-sda-delay = <100>;
397 samsung,i2c-max-bus-freq = <66000>;
402 samsung,i2c-sda-delay = <100>;
403 samsung,i2c-max-bus-freq = <66000>;
408 samsung,i2c-sda-delay = <100>;
409 samsung,i2c-max-bus-freq = <66000>;
410 clock-frequency = <66000>;
412 cros_ec: embedded-controller {
413 compatible = "google,cros-ec-i2c";
415 interrupts = <6 IRQ_TYPE_NONE>;
416 interrupt-parent = <&gpx1>;
418 u-boot,i2c-offset-len = <0>;
419 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
420 cros_ec_ldo_tunnel: cros-ec-ldo-tunnel {
421 compatible = "google,cros-ec-ldo-tunnel";
422 #address-cells = <1>;
425 compatible = "ti,tps65090";
430 ti,enable-ext-control;
433 ti,enable-ext-control;
436 ti,enable-ext-control;
439 regulator-name = "vcd_led";
440 ti,overcurrent-wait = <3>;
442 tps65090_fet2: fet2 {
443 regulator-name = "video_mid";
445 ti,overcurrent-wait = <3>;
448 regulator-name = "wwan_r";
450 ti,overcurrent-wait = <3>;
453 regulator-name = "sdcard";
454 ti,overcurrent-wait = <3>;
457 regulator-name = "camout";
459 ti,overcurrent-wait = <3>;
462 regulator-name = "lcd_vdd";
463 ti,overcurrent-wait = <3>;
465 tps65090_fet7: fet7 {
466 regulator-name = "video_mid_1a";
468 ti,overcurrent-wait = <3>;
482 samsung,i2c-sda-delay = <100>;
483 samsung,i2c-max-bus-freq = <66000>;
488 samsung,i2c-sda-delay = <100>;
489 samsung,i2c-max-bus-freq = <66000>;
492 compatible = "parade,ps8622";
494 sleep-gpios = <&gpc3 6 GPIO_ACTIVE_LOW>;
495 reset-gpios = <&gpc3 1 GPIO_ACTIVE_LOW>;
496 hotplug-gpios = <&gpc3 0 GPIO_ACTIVE_HIGH>;
497 power-supply = <&ldo6_reg>;
498 parade,regs = /bits/ 8 <
499 0x02 0xa1 0x01 /* HPD low */
501 * SW setting: [1:0] SW output 1.2V voltage is
505 /* RCO SS setting: [5:4] = b01 0.5%, b10 1%, b11 1.5% */
507 0x04 0xe2 0x80 /* [7] RCO SS enable */
509 * RPHY Setting: [3:2] CDR tune wait cycle before
510 * measure for fine tune b00: 1us,
511 * 01: 0.5us, 10:2us, 11:4us
514 0x04 0x89 0x08 /* [3] RFD always on */
516 * CTN lock in/out: 20000ppm/80000ppm. Lock out 2 times
519 /* 2.7G CDR settings */
520 0x04 0x7d 0x07 /* NOF=40LSB for HBR CDR setting */
521 0x04 0x7b 0x00 /* [1:0] Fmin=+4bands */
522 0x04 0x7a 0xfd /* [7:5] DCO_FTRNG=+-40% */
524 * 1.62G CDR settings:
525 * [5:2]NOF=64LSB [1:0]DCO scale is 2/5
528 0x04 0xc1 0x92 /* Gitune=-37% */
529 0x04 0xc2 0x1c /* Fbstep=100% */
530 0x04 0x32 0x80 /* [7] LOS signal disable */
532 /* [7:4] LVDS driver bias current 75% (250mV swing) */
534 /* [7:6] Right-bar GPIO output strength is 8mA */
536 /* EQ Training State Machine Setting */
537 0x04 0x54 0x10 /* RCO calibration start */
538 /* [4:0] MAX_LANE_COUNT set to one lane */
540 /* [4:0] LANE_COUNT_SET set to one lane */
543 0x00 0xf1 0x03 /* HPD CP toggle enable */
545 /* Counter number add 1ms counter delay */
548 * [6]PWM function control by DPCD0040f[7], default
549 * is PWM block always works
554 * 04h Adjust VTotal tolerance to fix the 30Hz no-
556 * DPCD00400='h00 Parade OUI = 'h001cf8
559 0x01 0xc1 0x1c /* DPCD00401='h1c */
560 0x01 0xc2 0xf8 /* DPCD00402='hf8 */
561 /* DPCD403~408 = ASCII code D2SLV5='h4432534c5635 */
563 0x01 0xc4 0x32 /* DPCD404 */
564 0x01 0xc5 0x53 /* DPCD405 */
565 0x01 0xc6 0x4c /* DPCD406 */
566 0x01 0xc7 0x56 /* DPCD407 */
567 0x01 0xc8 0x35 /* DPCD408 */
568 /* DPCD40A Initial Code major revision '01' */
570 /* DPCD40B Initial Code minor revision '05' */
572 0x01 0xa5 0xa0 /* DPCD720, Select internal PWM */
574 * 0xff for 100% PWM of brightness, 0h for 0% brightness
578 * Set LVDS output as 6bit-VESA mapping, single LVDS
582 0x02 0xb1 0x20 /* Enable SSC set by register */
583 /* Set SSC enabled and +/-1% central spreading */
585 0x04 0x59 0x60 /* MPU Clock source: LC => RCO */
586 0x04 0x54 0x14 /* LC -> RCO */
587 0x02 0xa1 0x91>; /* HPD high */
592 compatible = "maxim,max98088-codec";
596 #include "cros-ec-keyboard.dtsi"