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 device_type = "memory";
21 reg = <0x40000000 0x80000000>;
25 bootargs = "console=tty1";
26 stdout-path = "serial3:115200n8";
30 compatible = "gpio-keys";
31 pinctrl-names = "default";
32 pinctrl-0 = <&power_key_irq>, <&lid_irq>;
36 gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_POWER>;
43 gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
44 linux,input-type = <5>; /* EV_SW */
45 linux,code = <0>; /* SW_LID */
46 debounce-interval = <1>;
52 compatible = "smsc,usb3503a";
53 reset-gpios = <&gpe1 0 GPIO_ACTIVE_LOW>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&hsic_reset>;
60 compatible = "samsung,clock-xxti";
61 clock-frequency = <24000000>;
67 cpu0-supply = <&buck2_reg>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&dp_hpd_gpio>;
74 samsung,color-space = <0>;
75 samsung,color-depth = <1>;
76 samsung,link-rate = <0x0a>;
77 samsung,lane-count = <1>;
78 hpd-gpios = <&gpc3 0 GPIO_ACTIVE_HIGH>;
82 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
92 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&hdmi_hpd_irq>;
96 hdmi-en-supply = <&ldo8_reg>;
97 vdd-supply = <&ldo8_reg>;
98 vdd_osc-supply = <&ldo10_reg>;
99 vdd_pll-supply = <&ldo8_reg>;
104 samsung,i2c-sda-delay = <100>;
105 samsung,i2c-max-bus-freq = <378000>;
108 compatible = "samsung,s5m8767-pmic";
110 interrupt-parent = <&gpx3>;
111 interrupts = <2 IRQ_TYPE_NONE>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&s5m8767_irq &s5m8767_dvs &s5m8767_ds>;
116 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>, /* DVS1 */
117 <&gpd1 1 GPIO_ACTIVE_LOW>, /* DVS2 */
118 <&gpd1 2 GPIO_ACTIVE_LOW>; /* DVS3 */
120 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_LOW>, /* SET1 */
121 <&gpx2 4 GPIO_ACTIVE_LOW>, /* SET2 */
122 <&gpx2 5 GPIO_ACTIVE_LOW>; /* SET3 */
125 * The following arrays of DVS voltages are not used, since we are
126 * not using GPIOs to control PMIC bucks, but they must be defined
127 * to please the driver.
129 s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
130 <1250000>, <1200000>,
131 <1150000>, <1100000>,
134 s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
135 <1100000>, <1100000>,
136 <1000000>, <1000000>,
137 <1000000>, <1000000>;
139 s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
140 <1200000>, <1200000>,
141 <1200000>, <1200000>,
142 <1200000>, <1200000>;
145 compatible = "samsung,s5m8767-clk";
147 clock-output-names = "en32khz_ap",
154 regulator-name = "P1.0V_LDO_OUT4";
155 regulator-min-microvolt = <1000000>;
156 regulator-max-microvolt = <1000000>;
162 regulator-name = "P1.0V_LDO_OUT5";
163 regulator-min-microvolt = <1000000>;
164 regulator-max-microvolt = <1000000>;
170 regulator-name = "vdd_mydp";
171 regulator-min-microvolt = <1000000>;
172 regulator-max-microvolt = <1000000>;
178 regulator-name = "P1.1V_LDO_OUT7";
179 regulator-min-microvolt = <1100000>;
180 regulator-max-microvolt = <1100000>;
186 regulator-name = "P1.0V_LDO_OUT8";
187 regulator-min-microvolt = <1000000>;
188 regulator-max-microvolt = <1000000>;
194 regulator-name = "P1.8V_LDO_OUT10";
195 regulator-min-microvolt = <1800000>;
196 regulator-max-microvolt = <1800000>;
202 regulator-name = "P1.8V_LDO_OUT11";
203 regulator-min-microvolt = <1800000>;
204 regulator-max-microvolt = <1800000>;
210 regulator-name = "P3.0V_LDO_OUT12";
211 regulator-min-microvolt = <3000000>;
212 regulator-max-microvolt = <3000000>;
218 regulator-name = "P1.8V_LDO_OUT13";
219 regulator-min-microvolt = <1800000>;
220 regulator-max-microvolt = <1800000>;
226 regulator-name = "P1.8V_LDO_OUT14";
227 regulator-min-microvolt = <1800000>;
228 regulator-max-microvolt = <1800000>;
234 regulator-name = "P1.0V_LDO_OUT15";
235 regulator-min-microvolt = <1000000>;
236 regulator-max-microvolt = <1000000>;
242 regulator-name = "P1.8V_LDO_OUT16";
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
250 regulator-name = "P2.8V_LDO_OUT17";
251 regulator-min-microvolt = <2800000>;
252 regulator-max-microvolt = <2800000>;
258 regulator-name = "vdd_bridge";
259 regulator-min-microvolt = <1200000>;
260 regulator-max-microvolt = <1200000>;
266 regulator-name = "vdd_mif";
267 regulator-min-microvolt = <950000>;
268 regulator-max-microvolt = <1300000>;
275 regulator-name = "vdd_arm";
276 regulator-min-microvolt = <850000>;
277 regulator-max-microvolt = <1350000>;
284 regulator-name = "vdd_int";
285 regulator-min-microvolt = <900000>;
286 regulator-max-microvolt = <1200000>;
293 regulator-name = "vdd_g3d";
294 regulator-min-microvolt = <850000>;
295 regulator-max-microvolt = <1300000>;
301 regulator-name = "P1.8V_BUCK_OUT5";
302 regulator-min-microvolt = <1800000>;
303 regulator-max-microvolt = <1800000>;
310 regulator-name = "P1.2V_BUCK_OUT6";
311 regulator-min-microvolt = <1200000>;
312 regulator-max-microvolt = <1200000>;
319 regulator-name = "vdd_ummc";
320 regulator-min-microvolt = <950000>;
321 regulator-max-microvolt = <3000000>;
332 samsung,i2c-sda-delay = <100>;
333 samsung,i2c-max-bus-freq = <378000>;
336 compatible = "atmel,maxtouch";
338 interrupt-parent = <&gpx1>;
339 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
340 pinctrl-names = "default";
341 pinctrl-0 = <&trackpad_irq>;
342 linux,gpio-keymap = <KEY_RESERVED
353 * Disabled pullups since external part has its own pullups and
354 * double-pulling gets us out of spec in some cases.
357 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
362 /* used by HDMI DDC */
363 samsung,i2c-sda-delay = <100>;
364 samsung,i2c-max-bus-freq = <66000>;
369 samsung,i2c-sda-delay = <100>;
370 samsung,i2c-max-bus-freq = <66000>;
375 samsung,i2c-sda-delay = <100>;
376 samsung,i2c-max-bus-freq = <66000>;
378 cros_ec: embedded-controller@1e {
379 compatible = "google,cros-ec-i2c";
381 interrupts = <6 IRQ_TYPE_NONE>;
382 interrupt-parent = <&gpx1>;
384 pinctrl-names = "default";
385 pinctrl-0 = <&ec_irq>;
391 samsung,i2c-sda-delay = <100>;
392 samsung,i2c-max-bus-freq = <66000>;
397 samsung,i2c-sda-delay = <100>;
398 samsung,i2c-max-bus-freq = <66000>;
400 temperature-sensor@4c {
401 compatible = "gmt,g781";
408 /* used by HDMI PHY */
409 samsung,i2c-sda-delay = <100>;
410 samsung,i2c-max-bus-freq = <378000>;
424 card-detect-delay = <200>;
425 samsung,dw-mshc-ciu-div = <3>;
426 samsung,dw-mshc-sdr-timing = <2 3>;
427 samsung,dw-mshc-ddr-timing = <1 2>;
428 pinctrl-names = "default";
429 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4 &sd0_bus8>;
435 * On Spring we've got SIP WiFi and so can keep drive strengths low to
441 card-detect-delay = <200>;
442 samsung,dw-mshc-ciu-div = <3>;
443 samsung,dw-mshc-sdr-timing = <2 3>;
444 samsung,dw-mshc-ddr-timing = <1 2>;
445 pinctrl-names = "default";
446 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus4>;
452 s5m8767_dvs: s5m8767-dvs {
453 samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2";
454 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
455 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
456 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
459 dp_hpd_gpio: dp-hpd-gpio {
460 samsung,pins = "gpc3-0";
461 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
462 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
463 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
466 trackpad_irq: trackpad-irq {
467 samsung,pins = "gpx1-2";
468 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
469 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
470 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
473 power_key_irq: power-key-irq {
474 samsung,pins = "gpx1-3";
475 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
476 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
477 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
481 samsung,pins = "gpx1-6";
482 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
483 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
484 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
487 s5m8767_ds: s5m8767-ds {
488 samsung,pins = "gpx2-3", "gpx2-4", "gpx2-5";
489 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
490 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
491 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
494 s5m8767_irq: s5m8767-irq {
495 samsung,pins = "gpx3-2";
496 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
497 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
498 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
502 samsung,pins = "gpx3-5";
503 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
504 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
505 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
508 hdmi_hpd_irq: hdmi-hpd-irq {
509 samsung,pins = "gpx3-7";
510 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
511 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
512 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
517 hsic_reset: hsic-reset {
518 samsung,pins = "gpe1-0";
519 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
520 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
521 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
526 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
530 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
534 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
538 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
539 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
544 samsung,spi-src-clk = <0>;
548 #include "cros-ec-keyboard.dtsi"