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 spl { /* spl size override */
50 bootargs = "console=tty1";
51 stdout-path = "serial3:115200n8";
55 compatible = "google,board-revision";
56 google,board-rev-gpios = <&gpy4 0 0>, <&gpy4 1 0>,
61 clock-frequency = <100000>;
64 compatible = "infineon,slb9645tt";
69 samsung,bus-width = <8>;
70 samsung,timing = <1 3 3>;
71 samsung,removable = <0>;
79 /* MMC2 pins are used as GPIO for eDP bridge */
88 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
93 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
97 spi-max-frequency = <50000000>;
98 firmware_storage_spi: flash@0 {
99 compatible = "spi-flash";
105 samsung,min-temp = <25>;
106 samsung,max-temp = <125>;
107 samsung,start-warning = <95>;
108 samsung,start-tripping = <105>;
109 samsung,hw-tripping = <110>;
110 samsung,efuse-min-value = <40>;
111 samsung,efuse-value = <55>;
112 samsung,efuse-max-value = <100>;
113 samsung,slope = <274761730>;
114 samsung,dc-value = <25>;
118 samsung,vl-freq = <60>;
119 samsung,vl-col = <1366>;
120 samsung,vl-row = <768>;
121 samsung,vl-width = <1366>;
122 samsung,vl-height = <768>;
129 samsung,vl-bpix = <4>;
131 samsung,vl-hspw = <32>;
132 samsung,vl-hbpd = <80>;
133 samsung,vl-hfpd = <48>;
134 samsung,vl-vspw = <5>;
135 samsung,vl-vbpd = <14>;
136 samsung,vl-vfpd = <3>;
137 samsung,vl-cmd-allow-len = <0xf>;
140 samsung,interface-mode = <1>;
141 samsung,dp-enabled = <1>;
142 samsung,dual-lcd-enabled = <0>;
146 samsung,lt-status = <0>;
148 samsung,master-mode = <0>;
149 samsung,bist-mode = <0>;
150 samsung,bist-pattern = <0>;
151 samsung,h-sync-polarity = <0>;
152 samsung,v-sync-polarity = <0>;
153 samsung,interlaced = <0>;
154 samsung,color-space = <0>;
155 samsung,dynamic-range = <0>;
156 samsung,ycbcr-coeff = <0>;
157 samsung,color-depth = <1>;
160 backlight: backlight {
161 compatible = "pwm-backlight";
162 pwms = <&pwm 0 1000000 0>;
163 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
164 default-brightness-level = <1>;
165 enable-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
166 power-supply = <&fet1>;
170 compatible = "auo,b116xw03";
171 power-supply = <&fet6>;
172 backlight = <&backlight>;
176 remote-endpoint = <&bridge_out>;
184 samsung,i2c-sda-delay = <100>;
185 samsung,i2c-max-bus-freq = <378000>;
188 compatible = "samsung,s5m8767-pmic";
190 interrupt-parent = <&gpx3>;
193 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>, /* DVS1 */
194 <&gpd1 1 GPIO_ACTIVE_LOW>, /* DVS2 */
195 <&gpd1 2 GPIO_ACTIVE_LOW>; /* DVS3 */
197 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_LOW>, /* SET1 */
198 <&gpx2 4 GPIO_ACTIVE_LOW>, /* SET2 */
199 <&gpx2 5 GPIO_ACTIVE_LOW>; /* SET3 */
202 * The following arrays of DVS voltages are not used, since we are
203 * not using GPIOs to control PMIC bucks, but they must be defined
204 * to please the driver.
206 s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
207 <1250000>, <1200000>,
208 <1150000>, <1100000>,
211 s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
212 <1100000>, <1100000>,
213 <1000000>, <1000000>,
214 <1000000>, <1000000>;
216 s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
217 <1200000>, <1200000>,
218 <1200000>, <1200000>,
219 <1200000>, <1200000>;
222 compatible = "samsung,s5m8767-clk";
224 clock-output-names = "en32khz_ap",
231 regulator-name = "P1.0V_LDO_OUT4";
232 regulator-min-microvolt = <1000000>;
233 regulator-max-microvolt = <1000000>;
239 regulator-name = "P1.8V_LDO_OUT5";
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
247 regulator-name = "vdd_mydp";
248 regulator-min-microvolt = <1200000>;
249 regulator-max-microvolt = <1200000>;
255 regulator-name = "P1.1V_LDO_OUT7";
256 regulator-min-microvolt = <1100000>;
257 regulator-max-microvolt = <1100000>;
263 regulator-name = "P1.0V_LDO_OUT8";
264 regulator-min-microvolt = <1000000>;
265 regulator-max-microvolt = <1000000>;
271 regulator-name = "P1.8V_LDO_OUT10";
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
279 regulator-name = "P1.8V_LDO_OUT11";
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1800000>;
287 regulator-name = "P3.0V_LDO_OUT12";
288 regulator-min-microvolt = <3000000>;
289 regulator-max-microvolt = <3000000>;
295 regulator-name = "P1.8V_LDO_OUT13";
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
303 regulator-name = "P1.8V_LDO_OUT14";
304 regulator-min-microvolt = <1800000>;
305 regulator-max-microvolt = <1800000>;
311 regulator-name = "P1.0V_LDO_OUT15";
312 regulator-min-microvolt = <1000000>;
313 regulator-max-microvolt = <1000000>;
319 regulator-name = "P1.8V_LDO_OUT16";
320 regulator-min-microvolt = <1800000>;
321 regulator-max-microvolt = <1800000>;
327 regulator-name = "P1.2V_LDO_OUT17";
328 regulator-min-microvolt = <1200000>;
329 regulator-max-microvolt = <1200000>;
335 regulator-name = "vdd_bridge";
336 regulator-min-microvolt = <1200000>;
337 regulator-max-microvolt = <1200000>;
343 regulator-name = "vdd_mif";
344 regulator-min-microvolt = <950000>;
345 regulator-max-microvolt = <1300000>;
352 regulator-name = "vdd_arm";
353 regulator-min-microvolt = <850000>;
354 regulator-max-microvolt = <1350000>;
361 regulator-name = "vdd_int";
362 regulator-min-microvolt = <900000>;
363 regulator-max-microvolt = <1200000>;
370 regulator-name = "vdd_g3d";
371 regulator-min-microvolt = <850000>;
372 regulator-max-microvolt = <1300000>;
378 regulator-name = "P1.8V_BUCK_OUT5";
379 regulator-min-microvolt = <1800000>;
380 regulator-max-microvolt = <1800000>;
387 regulator-name = "P1.2V_BUCK_OUT6";
388 regulator-min-microvolt = <2050000>;
389 regulator-max-microvolt = <2050000>;
396 regulator-name = "vdd_ummc";
397 regulator-min-microvolt = <950000>;
398 regulator-max-microvolt = <3000000>;
409 samsung,color-space = <0>;
410 samsung,dynamic-range = <0>;
411 samsung,ycbcr-coeff = <0>;
412 samsung,color-depth = <1>;
413 samsung,link-rate = <0x0a>;
414 samsung,lane-count = <1>;
415 samsung,hpd-gpio = <&gpc3 0 GPIO_ACTIVE_HIGH>;
420 remote-endpoint = <&bridge_in>;
428 samsung,i2c-sda-delay = <100>;
429 samsung,i2c-max-bus-freq = <378000>;
434 samsung,i2c-sda-delay = <100>;
435 samsung,i2c-max-bus-freq = <66000>;
440 samsung,i2c-sda-delay = <100>;
441 samsung,i2c-max-bus-freq = <66000>;
446 samsung,i2c-sda-delay = <100>;
447 samsung,i2c-max-bus-freq = <66000>;
448 clock-frequency = <66000>;
450 cros_ec: embedded-controller {
451 compatible = "google,cros-ec-i2c";
453 interrupts = <6 IRQ_TYPE_NONE>;
454 interrupt-parent = <&gpx1>;
456 u-boot,i2c-offset-len = <0>;
457 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
458 cros_ec_ldo_tunnel: cros-ec-ldo-tunnel {
459 compatible = "google,cros-ec-ldo-tunnel";
460 #address-cells = <1>;
463 compatible = "ti,tps65090";
468 ti,enable-ext-control;
471 ti,enable-ext-control;
474 ti,enable-ext-control;
477 regulator-name = "vcd_led";
478 ti,overcurrent-wait = <3>;
480 tps65090_fet2: fet2 {
481 regulator-name = "video_mid";
483 ti,overcurrent-wait = <3>;
486 regulator-name = "wwan_r";
488 ti,overcurrent-wait = <3>;
491 regulator-name = "sdcard";
492 ti,overcurrent-wait = <3>;
495 regulator-name = "camout";
497 ti,overcurrent-wait = <3>;
500 regulator-name = "lcd_vdd";
501 ti,overcurrent-wait = <3>;
503 tps65090_fet7: fet7 {
504 regulator-name = "video_mid_1a";
506 ti,overcurrent-wait = <3>;
520 samsung,i2c-sda-delay = <100>;
521 samsung,i2c-max-bus-freq = <66000>;
526 samsung,i2c-sda-delay = <100>;
527 samsung,i2c-max-bus-freq = <66000>;
530 compatible = "parade,ps8622";
532 sleep-gpios = <&gpc3 6 GPIO_ACTIVE_LOW>;
533 reset-gpios = <&gpc3 1 GPIO_ACTIVE_LOW>;
534 hotplug-gpios = <&gpc3 0 GPIO_ACTIVE_HIGH>;
535 power-supply = <&ldo6_reg>;
536 parade,regs = /bits/ 8 <
537 0x02 0xa1 0x01 /* HPD low */
539 * SW setting: [1:0] SW output 1.2V voltage is
543 /* RCO SS setting: [5:4] = b01 0.5%, b10 1%, b11 1.5% */
545 0x04 0xe2 0x80 /* [7] RCO SS enable */
547 * RPHY Setting: [3:2] CDR tune wait cycle before
548 * measure for fine tune b00: 1us,
549 * 01: 0.5us, 10:2us, 11:4us
552 0x04 0x89 0x08 /* [3] RFD always on */
554 * CTN lock in/out: 20000ppm/80000ppm. Lock out 2 times
557 /* 2.7G CDR settings */
558 0x04 0x7d 0x07 /* NOF=40LSB for HBR CDR setting */
559 0x04 0x7b 0x00 /* [1:0] Fmin=+4bands */
560 0x04 0x7a 0xfd /* [7:5] DCO_FTRNG=+-40% */
562 * 1.62G CDR settings:
563 * [5:2]NOF=64LSB [1:0]DCO scale is 2/5
566 0x04 0xc1 0x92 /* Gitune=-37% */
567 0x04 0xc2 0x1c /* Fbstep=100% */
568 0x04 0x32 0x80 /* [7] LOS signal disable */
570 /* [7:4] LVDS driver bias current 75% (250mV swing) */
572 /* [7:6] Right-bar GPIO output strength is 8mA */
574 /* EQ Training State Machine Setting */
575 0x04 0x54 0x10 /* RCO calibration start */
576 /* [4:0] MAX_LANE_COUNT set to one lane */
578 /* [4:0] LANE_COUNT_SET set to one lane */
581 0x00 0xf1 0x03 /* HPD CP toggle enable */
583 /* Counter number add 1ms counter delay */
586 * [6]PWM function control by DPCD0040f[7], default
587 * is PWM block always works
592 * 04h Adjust VTotal tolerance to fix the 30Hz no-
594 * DPCD00400='h00 Parade OUI = 'h001cf8
597 0x01 0xc1 0x1c /* DPCD00401='h1c */
598 0x01 0xc2 0xf8 /* DPCD00402='hf8 */
599 /* DPCD403~408 = ASCII code D2SLV5='h4432534c5635 */
601 0x01 0xc4 0x32 /* DPCD404 */
602 0x01 0xc5 0x53 /* DPCD405 */
603 0x01 0xc6 0x4c /* DPCD406 */
604 0x01 0xc7 0x56 /* DPCD407 */
605 0x01 0xc8 0x35 /* DPCD408 */
606 /* DPCD40A Initial Code major revision '01' */
608 /* DPCD40B Initial Code minor revision '05' */
610 0x01 0xa5 0xa0 /* DPCD720, Select internal PWM */
612 * 0xff for 100% PWM of brightness, 0h for 0% brightness
616 * Set LVDS output as 6bit-VESA mapping, single LVDS
620 0x02 0xb1 0x20 /* Enable SSC set by register */
621 /* Set SSC enabled and +/-1% central spreading */
623 0x04 0x59 0x60 /* MPU Clock source: LC => RCO */
624 0x04 0x54 0x14 /* LC -> RCO */
625 0x02 0xa1 0x91>; /* HPD high */
628 bridge_out: endpoint {
629 remote-endpoint = <&panel_in>;
634 bridge_in: endpoint {
635 remote-endpoint = <&dp_out>;
641 max98095: soundcodec@10 {
643 compatible = "maxim,max98095";
644 #sound-dai-cells = <1>;
648 compatible = "google,spring-audio-max98095";
650 samsung,model = "Spring-I2S-MAX98095";
651 samsung,audio-codec = <&max98095>;
654 sound-dai = <&i2s0 0>;
658 sound-dai = <&max98095 0>;
664 #include "cros-ec-keyboard.dtsi"