1 // SPDX-License-Identifier: GPL-2.0
3 * Google Spring board device tree source
5 * Copyright (c) 2013 Google, Inc
6 * Copyright (c) 2014 SUSE LINUX Products GmbH
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/input/input.h>
13 #include "exynos5250.dtsi"
16 model = "Google Spring";
17 compatible = "google,spring", "samsung,exynos5250", "samsung,exynos5";
20 i2c0 = "/i2c@12C60000";
21 i2c1 = "/i2c@12C70000";
22 i2c2 = "/i2c@12C80000";
23 i2c3 = "/i2c@12C90000";
24 i2c4 = "/i2c@12CA0000";
25 i2c5 = "/i2c@12CB0000";
26 i2c6 = "/i2c@12CC0000";
27 i2c7 = "/i2c@12CD0000";
28 i2c104 = &cros_ec_ldo_tunnel;
29 spi0 = "/spi@12d20000";
30 spi1 = "/spi@12d30000";
31 spi2 = "/spi@12d40000";
32 spi3 = "/spi@131a0000";
33 spi4 = "/spi@131b0000";
34 mmc0 = "/mmc@12200000";
35 serial0 = "/serial@12C30000";
36 console = "/serial@12C30000";
40 reg = <0x40000000 0x80000000>;
44 reg = <0x02020000 0x60000>;
48 samsung,bl1-offset = <0x1400>;
49 samsung,bl2-offset = <0x3400>;
50 u-boot-memory = "/memory";
51 u-boot-offset = <0x3e00000 0x100000>;
59 label = "bl1 pre-boot";
62 filename = "e5250.nbl1.bin";
63 type = "blob exynos-bl1";
69 reg = <0x2000 0x8000>;
72 type = "blob exynos-bl2 boot,dtb";
73 payload = "/flash/ro-boot";
79 reg = <0xa000 0xb0000>;
81 type = "blob boot,dtb";
87 bootargs = "console=tty1";
88 stdout-path = "serial3:115200n8";
92 compatible = "google,board-revision";
93 google,board-rev-gpios = <&gpy4 0 0>, <&gpy4 1 0>,
98 clock-frequency = <100000>;
101 compatible = "infineon,slb9645tt";
107 samsung,dw-mshc-ciu-div = <3>;
108 samsung,dw-mshc-sdr-timing = <1 3>;
117 /* MMC2 pins are used as GPIO for eDP bridge */
126 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
131 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
135 compatible = "google,spring-audio-max98088";
137 samsung,model = "Spring-I2S-MAX98088";
138 samsung,audio-codec = <&max98088>;
139 codec-enable-gpio = <&gpx1 7 0>;
142 sound-dai = <&i2s1 0>;
146 sound-dai = <&max98088 0>;
151 spi-max-frequency = <50000000>;
152 firmware_storage_spi: flash@0 {
153 compatible = "jedec,spi-nor";
159 samsung,min-temp = <25>;
160 samsung,max-temp = <125>;
161 samsung,start-warning = <95>;
162 samsung,start-tripping = <105>;
163 samsung,hw-tripping = <110>;
164 samsung,efuse-min-value = <40>;
165 samsung,efuse-value = <55>;
166 samsung,efuse-max-value = <100>;
167 samsung,slope = <274761730>;
168 samsung,dc-value = <25>;
172 samsung,vl-freq = <60>;
173 samsung,vl-col = <1366>;
174 samsung,vl-row = <768>;
175 samsung,vl-width = <1366>;
176 samsung,vl-height = <768>;
183 samsung,vl-bpix = <4>;
185 samsung,vl-hspw = <32>;
186 samsung,vl-hbpd = <80>;
187 samsung,vl-hfpd = <48>;
188 samsung,vl-vspw = <5>;
189 samsung,vl-vbpd = <14>;
190 samsung,vl-vfpd = <3>;
191 samsung,vl-cmd-allow-len = <0xf>;
194 samsung,interface-mode = <1>;
195 samsung,dp-enabled = <1>;
196 samsung,dual-lcd-enabled = <0>;
200 samsung,lt-status = <0>;
202 samsung,master-mode = <0>;
203 samsung,bist-mode = <0>;
204 samsung,bist-pattern = <0>;
205 samsung,h-sync-polarity = <0>;
206 samsung,v-sync-polarity = <0>;
207 samsung,interlaced = <0>;
208 samsung,color-space = <0>;
209 samsung,dynamic-range = <0>;
210 samsung,ycbcr-coeff = <0>;
211 samsung,color-depth = <1>;
214 backlight: backlight {
215 compatible = "pwm-backlight";
216 pwms = <&pwm 0 1000000 0>;
217 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
218 default-brightness-level = <1>;
219 enable-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
220 power-supply = <&fet1>;
224 compatible = "auo,b116xw03";
225 power-supply = <&fet6>;
226 backlight = <&backlight>;
230 remote-endpoint = <&bridge_out>;
238 samsung,i2c-sda-delay = <100>;
239 samsung,i2c-max-bus-freq = <378000>;
242 compatible = "samsung,s5m8767-pmic";
244 interrupt-parent = <&gpx3>;
247 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>, /* DVS1 */
248 <&gpd1 1 GPIO_ACTIVE_LOW>, /* DVS2 */
249 <&gpd1 2 GPIO_ACTIVE_LOW>; /* DVS3 */
251 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_LOW>, /* SET1 */
252 <&gpx2 4 GPIO_ACTIVE_LOW>, /* SET2 */
253 <&gpx2 5 GPIO_ACTIVE_LOW>; /* SET3 */
256 * The following arrays of DVS voltages are not used, since we are
257 * not using GPIOs to control PMIC bucks, but they must be defined
258 * to please the driver.
260 s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
261 <1250000>, <1200000>,
262 <1150000>, <1100000>,
265 s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
266 <1100000>, <1100000>,
267 <1000000>, <1000000>,
268 <1000000>, <1000000>;
270 s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
271 <1200000>, <1200000>,
272 <1200000>, <1200000>,
273 <1200000>, <1200000>;
276 compatible = "samsung,s5m8767-clk";
278 clock-output-names = "en32khz_ap",
285 regulator-name = "P1.0V_LDO_OUT4";
286 regulator-min-microvolt = <1000000>;
287 regulator-max-microvolt = <1000000>;
293 regulator-name = "P1.8V_LDO_OUT5";
294 regulator-min-microvolt = <1800000>;
295 regulator-max-microvolt = <1800000>;
301 regulator-name = "vdd_mydp";
302 regulator-min-microvolt = <1200000>;
303 regulator-max-microvolt = <1200000>;
309 regulator-name = "P1.1V_LDO_OUT7";
310 regulator-min-microvolt = <1100000>;
311 regulator-max-microvolt = <1100000>;
317 regulator-name = "P1.0V_LDO_OUT8";
318 regulator-min-microvolt = <1000000>;
319 regulator-max-microvolt = <1000000>;
325 regulator-name = "P1.8V_LDO_OUT10";
326 regulator-min-microvolt = <1800000>;
327 regulator-max-microvolt = <1800000>;
333 regulator-name = "P1.8V_LDO_OUT11";
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1800000>;
341 regulator-name = "P3.0V_LDO_OUT12";
342 regulator-min-microvolt = <3000000>;
343 regulator-max-microvolt = <3000000>;
349 regulator-name = "P1.8V_LDO_OUT13";
350 regulator-min-microvolt = <1800000>;
351 regulator-max-microvolt = <1800000>;
357 regulator-name = "P1.8V_LDO_OUT14";
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
365 regulator-name = "P1.0V_LDO_OUT15";
366 regulator-min-microvolt = <1000000>;
367 regulator-max-microvolt = <1000000>;
373 regulator-name = "P1.8V_LDO_OUT16";
374 regulator-min-microvolt = <1800000>;
375 regulator-max-microvolt = <1800000>;
381 regulator-name = "P1.2V_LDO_OUT17";
382 regulator-min-microvolt = <1200000>;
383 regulator-max-microvolt = <1200000>;
389 regulator-name = "vdd_bridge";
390 regulator-min-microvolt = <1200000>;
391 regulator-max-microvolt = <1200000>;
397 regulator-name = "vdd_mif";
398 regulator-min-microvolt = <950000>;
399 regulator-max-microvolt = <1300000>;
406 regulator-name = "vdd_arm";
407 regulator-min-microvolt = <850000>;
408 regulator-max-microvolt = <1350000>;
415 regulator-name = "vdd_int";
416 regulator-min-microvolt = <900000>;
417 regulator-max-microvolt = <1200000>;
424 regulator-name = "vdd_g3d";
425 regulator-min-microvolt = <850000>;
426 regulator-max-microvolt = <1300000>;
432 regulator-name = "P1.8V_BUCK_OUT5";
433 regulator-min-microvolt = <1800000>;
434 regulator-max-microvolt = <1800000>;
441 regulator-name = "P1.2V_BUCK_OUT6";
442 regulator-min-microvolt = <2050000>;
443 regulator-max-microvolt = <2050000>;
450 regulator-name = "vdd_ummc";
451 regulator-min-microvolt = <950000>;
452 regulator-max-microvolt = <3000000>;
463 samsung,color-space = <0>;
464 samsung,dynamic-range = <0>;
465 samsung,ycbcr-coeff = <0>;
466 samsung,color-depth = <1>;
467 samsung,link-rate = <0x0a>;
468 samsung,lane-count = <1>;
469 samsung,hpd-gpio = <&gpc3 0 GPIO_ACTIVE_HIGH>;
474 remote-endpoint = <&bridge_in>;
482 samsung,i2c-sda-delay = <100>;
483 samsung,i2c-max-bus-freq = <378000>;
488 samsung,i2c-sda-delay = <100>;
489 samsung,i2c-max-bus-freq = <66000>;
494 samsung,i2c-sda-delay = <100>;
495 samsung,i2c-max-bus-freq = <66000>;
500 samsung,i2c-sda-delay = <100>;
501 samsung,i2c-max-bus-freq = <66000>;
502 clock-frequency = <66000>;
504 cros_ec: embedded-controller {
505 compatible = "google,cros-ec-i2c";
507 interrupts = <6 IRQ_TYPE_NONE>;
508 interrupt-parent = <&gpx1>;
510 u-boot,i2c-offset-len = <0>;
511 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
512 cros_ec_ldo_tunnel: cros-ec-ldo-tunnel {
513 compatible = "google,cros-ec-ldo-tunnel";
514 #address-cells = <1>;
517 compatible = "ti,tps65090";
522 ti,enable-ext-control;
525 ti,enable-ext-control;
528 ti,enable-ext-control;
531 regulator-name = "vcd_led";
532 ti,overcurrent-wait = <3>;
534 tps65090_fet2: fet2 {
535 regulator-name = "video_mid";
537 ti,overcurrent-wait = <3>;
540 regulator-name = "wwan_r";
542 ti,overcurrent-wait = <3>;
545 regulator-name = "sdcard";
546 ti,overcurrent-wait = <3>;
549 regulator-name = "camout";
551 ti,overcurrent-wait = <3>;
554 regulator-name = "lcd_vdd";
555 ti,overcurrent-wait = <3>;
557 tps65090_fet7: fet7 {
558 regulator-name = "video_mid_1a";
560 ti,overcurrent-wait = <3>;
574 samsung,i2c-sda-delay = <100>;
575 samsung,i2c-max-bus-freq = <66000>;
580 samsung,i2c-sda-delay = <100>;
581 samsung,i2c-max-bus-freq = <66000>;
584 compatible = "parade,ps8622";
586 sleep-gpios = <&gpc3 6 GPIO_ACTIVE_LOW>;
587 reset-gpios = <&gpc3 1 GPIO_ACTIVE_LOW>;
588 hotplug-gpios = <&gpc3 0 GPIO_ACTIVE_HIGH>;
589 power-supply = <&ldo6_reg>;
590 parade,regs = /bits/ 8 <
591 0x02 0xa1 0x01 /* HPD low */
593 * SW setting: [1:0] SW output 1.2V voltage is
597 /* RCO SS setting: [5:4] = b01 0.5%, b10 1%, b11 1.5% */
599 0x04 0xe2 0x80 /* [7] RCO SS enable */
601 * RPHY Setting: [3:2] CDR tune wait cycle before
602 * measure for fine tune b00: 1us,
603 * 01: 0.5us, 10:2us, 11:4us
606 0x04 0x89 0x08 /* [3] RFD always on */
608 * CTN lock in/out: 20000ppm/80000ppm. Lock out 2 times
611 /* 2.7G CDR settings */
612 0x04 0x7d 0x07 /* NOF=40LSB for HBR CDR setting */
613 0x04 0x7b 0x00 /* [1:0] Fmin=+4bands */
614 0x04 0x7a 0xfd /* [7:5] DCO_FTRNG=+-40% */
616 * 1.62G CDR settings:
617 * [5:2]NOF=64LSB [1:0]DCO scale is 2/5
620 0x04 0xc1 0x92 /* Gitune=-37% */
621 0x04 0xc2 0x1c /* Fbstep=100% */
622 0x04 0x32 0x80 /* [7] LOS signal disable */
624 /* [7:4] LVDS driver bias current 75% (250mV swing) */
626 /* [7:6] Right-bar GPIO output strength is 8mA */
628 /* EQ Training State Machine Setting */
629 0x04 0x54 0x10 /* RCO calibration start */
630 /* [4:0] MAX_LANE_COUNT set to one lane */
632 /* [4:0] LANE_COUNT_SET set to one lane */
635 0x00 0xf1 0x03 /* HPD CP toggle enable */
637 /* Counter number add 1ms counter delay */
640 * [6]PWM function control by DPCD0040f[7], default
641 * is PWM block always works
646 * 04h Adjust VTotal tolerance to fix the 30Hz no-
648 * DPCD00400='h00 Parade OUI = 'h001cf8
651 0x01 0xc1 0x1c /* DPCD00401='h1c */
652 0x01 0xc2 0xf8 /* DPCD00402='hf8 */
653 /* DPCD403~408 = ASCII code D2SLV5='h4432534c5635 */
655 0x01 0xc4 0x32 /* DPCD404 */
656 0x01 0xc5 0x53 /* DPCD405 */
657 0x01 0xc6 0x4c /* DPCD406 */
658 0x01 0xc7 0x56 /* DPCD407 */
659 0x01 0xc8 0x35 /* DPCD408 */
660 /* DPCD40A Initial Code major revision '01' */
662 /* DPCD40B Initial Code minor revision '05' */
664 0x01 0xa5 0xa0 /* DPCD720, Select internal PWM */
666 * 0xff for 100% PWM of brightness, 0h for 0% brightness
670 * Set LVDS output as 6bit-VESA mapping, single LVDS
674 0x02 0xb1 0x20 /* Enable SSC set by register */
675 /* Set SSC enabled and +/-1% central spreading */
677 0x04 0x59 0x60 /* MPU Clock source: LC => RCO */
678 0x04 0x54 0x14 /* LC -> RCO */
679 0x02 0xa1 0x91>; /* HPD high */
682 bridge_out: endpoint {
683 remote-endpoint = <&panel_in>;
688 bridge_in: endpoint {
689 remote-endpoint = <&dp_out>;
695 max98088: soundcodec@10 {
697 compatible = "maxim,max98088";
698 #sound-dai-cells = <1>;
702 #include "cros-ec-keyboard.dtsi"