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 samsung,bus-width = <8>;
64 samsung,timing = <1 3 3>;
65 samsung,removable = <0>;
73 /* MMC2 pins are used as GPIO for eDP bridge */
82 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
87 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
91 spi-max-frequency = <50000000>;
92 firmware_storage_spi: flash@0 {
93 compatible = "spi-flash";
99 samsung,min-temp = <25>;
100 samsung,max-temp = <125>;
101 samsung,start-warning = <95>;
102 samsung,start-tripping = <105>;
103 samsung,hw-tripping = <110>;
104 samsung,efuse-min-value = <40>;
105 samsung,efuse-value = <55>;
106 samsung,efuse-max-value = <100>;
107 samsung,slope = <274761730>;
108 samsung,dc-value = <25>;
112 samsung,vl-freq = <60>;
113 samsung,vl-col = <1366>;
114 samsung,vl-row = <768>;
115 samsung,vl-width = <1366>;
116 samsung,vl-height = <768>;
123 samsung,vl-bpix = <4>;
125 samsung,vl-hspw = <32>;
126 samsung,vl-hbpd = <80>;
127 samsung,vl-hfpd = <48>;
128 samsung,vl-vspw = <5>;
129 samsung,vl-vbpd = <14>;
130 samsung,vl-vfpd = <3>;
131 samsung,vl-cmd-allow-len = <0xf>;
134 samsung,interface-mode = <1>;
135 samsung,dp-enabled = <1>;
136 samsung,dual-lcd-enabled = <0>;
140 samsung,lt-status = <0>;
142 samsung,master-mode = <0>;
143 samsung,bist-mode = <0>;
144 samsung,bist-pattern = <0>;
145 samsung,h-sync-polarity = <0>;
146 samsung,v-sync-polarity = <0>;
147 samsung,interlaced = <0>;
148 samsung,color-space = <0>;
149 samsung,dynamic-range = <0>;
150 samsung,ycbcr-coeff = <0>;
151 samsung,color-depth = <1>;
157 samsung,i2c-sda-delay = <100>;
158 samsung,i2c-max-bus-freq = <378000>;
161 compatible = "samsung,s5m8767-pmic";
163 interrupt-parent = <&gpx3>;
166 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>, /* DVS1 */
167 <&gpd1 1 GPIO_ACTIVE_LOW>, /* DVS2 */
168 <&gpd1 2 GPIO_ACTIVE_LOW>; /* DVS3 */
170 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_LOW>, /* SET1 */
171 <&gpx2 4 GPIO_ACTIVE_LOW>, /* SET2 */
172 <&gpx2 5 GPIO_ACTIVE_LOW>; /* SET3 */
175 * The following arrays of DVS voltages are not used, since we are
176 * not using GPIOs to control PMIC bucks, but they must be defined
177 * to please the driver.
179 s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
180 <1250000>, <1200000>,
181 <1150000>, <1100000>,
184 s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
185 <1100000>, <1100000>,
186 <1000000>, <1000000>,
187 <1000000>, <1000000>;
189 s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
190 <1200000>, <1200000>,
191 <1200000>, <1200000>,
192 <1200000>, <1200000>;
195 compatible = "samsung,s5m8767-clk";
197 clock-output-names = "en32khz_ap",
204 regulator-name = "P1.0V_LDO_OUT4";
205 regulator-min-microvolt = <1000000>;
206 regulator-max-microvolt = <1000000>;
212 regulator-name = "P1.8V_LDO_OUT5";
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <1800000>;
220 regulator-name = "vdd_mydp";
221 regulator-min-microvolt = <1200000>;
222 regulator-max-microvolt = <1200000>;
228 regulator-name = "P1.1V_LDO_OUT7";
229 regulator-min-microvolt = <1100000>;
230 regulator-max-microvolt = <1100000>;
236 regulator-name = "P1.0V_LDO_OUT8";
237 regulator-min-microvolt = <1000000>;
238 regulator-max-microvolt = <1000000>;
244 regulator-name = "P1.8V_LDO_OUT10";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
252 regulator-name = "P1.8V_LDO_OUT11";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <1800000>;
260 regulator-name = "P3.0V_LDO_OUT12";
261 regulator-min-microvolt = <3000000>;
262 regulator-max-microvolt = <3000000>;
268 regulator-name = "P1.8V_LDO_OUT13";
269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <1800000>;
276 regulator-name = "P1.8V_LDO_OUT14";
277 regulator-min-microvolt = <1800000>;
278 regulator-max-microvolt = <1800000>;
284 regulator-name = "P1.0V_LDO_OUT15";
285 regulator-min-microvolt = <1000000>;
286 regulator-max-microvolt = <1000000>;
292 regulator-name = "P1.8V_LDO_OUT16";
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
300 regulator-name = "P1.2V_LDO_OUT17";
301 regulator-min-microvolt = <1200000>;
302 regulator-max-microvolt = <1200000>;
308 regulator-name = "vdd_bridge";
309 regulator-min-microvolt = <1200000>;
310 regulator-max-microvolt = <1200000>;
316 regulator-name = "vdd_mif";
317 regulator-min-microvolt = <950000>;
318 regulator-max-microvolt = <1300000>;
325 regulator-name = "vdd_arm";
326 regulator-min-microvolt = <850000>;
327 regulator-max-microvolt = <1350000>;
334 regulator-name = "vdd_int";
335 regulator-min-microvolt = <900000>;
336 regulator-max-microvolt = <1200000>;
343 regulator-name = "vdd_g3d";
344 regulator-min-microvolt = <850000>;
345 regulator-max-microvolt = <1300000>;
351 regulator-name = "P1.8V_BUCK_OUT5";
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <1800000>;
360 regulator-name = "P1.2V_BUCK_OUT6";
361 regulator-min-microvolt = <2050000>;
362 regulator-max-microvolt = <2050000>;
369 regulator-name = "vdd_ummc";
370 regulator-min-microvolt = <950000>;
371 regulator-max-microvolt = <3000000>;
382 samsung,i2c-sda-delay = <100>;
383 samsung,i2c-max-bus-freq = <378000>;
388 samsung,i2c-sda-delay = <100>;
389 samsung,i2c-max-bus-freq = <66000>;
394 samsung,i2c-sda-delay = <100>;
395 samsung,i2c-max-bus-freq = <66000>;
400 samsung,i2c-sda-delay = <100>;
401 samsung,i2c-max-bus-freq = <66000>;
402 clock-frequency = <66000>;
404 cros_ec: embedded-controller {
405 compatible = "google,cros-ec-i2c";
407 interrupts = <6 IRQ_TYPE_NONE>;
408 interrupt-parent = <&gpx1>;
410 u-boot,i2c-offset-len = <0>;
411 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
412 cros_ec_ldo_tunnel: cros-ec-ldo-tunnel {
413 compatible = "google,cros-ec-ldo-tunnel";
414 #address-cells = <1>;
417 compatible = "ti,tps65090";
422 ti,enable-ext-control;
425 ti,enable-ext-control;
428 ti,enable-ext-control;
431 regulator-name = "vcd_led";
432 ti,overcurrent-wait = <3>;
434 tps65090_fet2: fet2 {
435 regulator-name = "video_mid";
437 ti,overcurrent-wait = <3>;
440 regulator-name = "wwan_r";
442 ti,overcurrent-wait = <3>;
445 regulator-name = "sdcard";
446 ti,overcurrent-wait = <3>;
449 regulator-name = "camout";
451 ti,overcurrent-wait = <3>;
454 regulator-name = "lcd_vdd";
455 ti,overcurrent-wait = <3>;
457 tps65090_fet7: fet7 {
458 regulator-name = "video_mid_1a";
460 ti,overcurrent-wait = <3>;
474 samsung,i2c-sda-delay = <100>;
475 samsung,i2c-max-bus-freq = <66000>;
480 samsung,i2c-sda-delay = <100>;
481 samsung,i2c-max-bus-freq = <66000>;
484 compatible = "parade,ps8622";
486 sleep-gpios = <&gpc3 6 GPIO_ACTIVE_LOW>;
487 reset-gpios = <&gpc3 1 GPIO_ACTIVE_LOW>;
488 hotplug-gpios = <&gpc3 0 GPIO_ACTIVE_HIGH>;
489 power-supply = <&ldo6_reg>;
490 parade,regs = /bits/ 8 <
491 0x02 0xa1 0x01 /* HPD low */
493 * SW setting: [1:0] SW output 1.2V voltage is
497 /* RCO SS setting: [5:4] = b01 0.5%, b10 1%, b11 1.5% */
499 0x04 0xe2 0x80 /* [7] RCO SS enable */
501 * RPHY Setting: [3:2] CDR tune wait cycle before
502 * measure for fine tune b00: 1us,
503 * 01: 0.5us, 10:2us, 11:4us
506 0x04 0x89 0x08 /* [3] RFD always on */
508 * CTN lock in/out: 20000ppm/80000ppm. Lock out 2 times
511 /* 2.7G CDR settings */
512 0x04 0x7d 0x07 /* NOF=40LSB for HBR CDR setting */
513 0x04 0x7b 0x00 /* [1:0] Fmin=+4bands */
514 0x04 0x7a 0xfd /* [7:5] DCO_FTRNG=+-40% */
516 * 1.62G CDR settings:
517 * [5:2]NOF=64LSB [1:0]DCO scale is 2/5
520 0x04 0xc1 0x92 /* Gitune=-37% */
521 0x04 0xc2 0x1c /* Fbstep=100% */
522 0x04 0x32 0x80 /* [7] LOS signal disable */
524 /* [7:4] LVDS driver bias current 75% (250mV swing) */
526 /* [7:6] Right-bar GPIO output strength is 8mA */
528 /* EQ Training State Machine Setting */
529 0x04 0x54 0x10 /* RCO calibration start */
530 /* [4:0] MAX_LANE_COUNT set to one lane */
532 /* [4:0] LANE_COUNT_SET set to one lane */
535 0x00 0xf1 0x03 /* HPD CP toggle enable */
537 /* Counter number add 1ms counter delay */
540 * [6]PWM function control by DPCD0040f[7], default
541 * is PWM block always works
546 * 04h Adjust VTotal tolerance to fix the 30Hz no-
548 * DPCD00400='h00 Parade OUI = 'h001cf8
551 0x01 0xc1 0x1c /* DPCD00401='h1c */
552 0x01 0xc2 0xf8 /* DPCD00402='hf8 */
553 /* DPCD403~408 = ASCII code D2SLV5='h4432534c5635 */
555 0x01 0xc4 0x32 /* DPCD404 */
556 0x01 0xc5 0x53 /* DPCD405 */
557 0x01 0xc6 0x4c /* DPCD406 */
558 0x01 0xc7 0x56 /* DPCD407 */
559 0x01 0xc8 0x35 /* DPCD408 */
560 /* DPCD40A Initial Code major revision '01' */
562 /* DPCD40B Initial Code minor revision '05' */
564 0x01 0xa5 0xa0 /* DPCD720, Select internal PWM */
566 * 0xff for 100% PWM of brightness, 0h for 0% brightness
570 * Set LVDS output as 6bit-VESA mapping, single LVDS
574 0x02 0xb1 0x20 /* Enable SSC set by register */
575 /* Set SSC enabled and +/-1% central spreading */
577 0x04 0x59 0x60 /* MPU Clock source: LC => RCO */
578 0x04 0x54 0x14 /* LC -> RCO */
579 0x02 0xa1 0x91>; /* HPD high */
584 compatible = "maxim,max98088-codec";
588 #include "cros-ec-keyboard.dtsi"