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/clock/samsung,s2mps11.h>
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 device_type = "memory";
22 reg = <0x40000000 0x80000000>;
26 bootargs = "console=tty1";
27 stdout-path = "serial3:115200n8";
31 compatible = "gpio-keys";
32 pinctrl-names = "default";
33 pinctrl-0 = <&power_key_irq>, <&lid_irq>;
37 gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_POWER>;
44 gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
45 linux,input-type = <5>; /* EV_SW */
46 linux,code = <0>; /* SW_LID */
47 debounce-interval = <1>;
53 compatible = "smsc,usb3503a";
54 reset-gpios = <&gpe1 0 GPIO_ACTIVE_LOW>;
55 pinctrl-names = "default";
56 pinctrl-0 = <&hsic_reset>;
61 compatible = "samsung,clock-xxti";
62 clock-frequency = <24000000>;
68 cpu0-supply = <&buck2_reg>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&dp_hpd_gpio>;
75 samsung,color-space = <0>;
76 samsung,color-depth = <1>;
77 samsung,link-rate = <0x0a>;
78 samsung,lane-count = <1>;
79 hpd-gpios = <&gpc3 0 GPIO_ACTIVE_HIGH>;
83 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
93 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&hdmi_hpd_irq>;
97 hdmi-en-supply = <&ldo8_reg>;
98 vdd-supply = <&ldo8_reg>;
99 vdd_osc-supply = <&ldo10_reg>;
100 vdd_pll-supply = <&ldo8_reg>;
105 samsung,i2c-sda-delay = <100>;
106 samsung,i2c-max-bus-freq = <378000>;
109 compatible = "samsung,s5m8767-pmic";
111 interrupt-parent = <&gpx3>;
112 interrupts = <2 IRQ_TYPE_NONE>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&s5m8767_irq &s5m8767_dvs &s5m8767_ds>;
117 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>, /* DVS1 */
118 <&gpd1 1 GPIO_ACTIVE_LOW>, /* DVS2 */
119 <&gpd1 2 GPIO_ACTIVE_LOW>; /* DVS3 */
121 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_LOW>, /* SET1 */
122 <&gpx2 4 GPIO_ACTIVE_LOW>, /* SET2 */
123 <&gpx2 5 GPIO_ACTIVE_LOW>; /* SET3 */
126 * The following arrays of DVS voltages are not used, since we are
127 * not using GPIOs to control PMIC bucks, but they must be defined
128 * to please the driver.
130 s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
131 <1250000>, <1200000>,
132 <1150000>, <1100000>,
135 s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
136 <1100000>, <1100000>,
137 <1000000>, <1000000>,
138 <1000000>, <1000000>;
140 s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
141 <1200000>, <1200000>,
142 <1200000>, <1200000>,
143 <1200000>, <1200000>;
145 s5m8767_osc: clocks {
146 compatible = "samsung,s5m8767-clk";
148 clock-output-names = "en32khz_ap",
155 regulator-name = "P1.0V_LDO_OUT4";
156 regulator-min-microvolt = <1000000>;
157 regulator-max-microvolt = <1000000>;
163 regulator-name = "P1.0V_LDO_OUT5";
164 regulator-min-microvolt = <1000000>;
165 regulator-max-microvolt = <1000000>;
171 regulator-name = "vdd_mydp";
172 regulator-min-microvolt = <1000000>;
173 regulator-max-microvolt = <1000000>;
179 regulator-name = "P1.1V_LDO_OUT7";
180 regulator-min-microvolt = <1100000>;
181 regulator-max-microvolt = <1100000>;
187 regulator-name = "P1.0V_LDO_OUT8";
188 regulator-min-microvolt = <1000000>;
189 regulator-max-microvolt = <1000000>;
195 regulator-name = "P1.8V_LDO_OUT10";
196 regulator-min-microvolt = <1800000>;
197 regulator-max-microvolt = <1800000>;
203 regulator-name = "P1.8V_LDO_OUT11";
204 regulator-min-microvolt = <1800000>;
205 regulator-max-microvolt = <1800000>;
211 regulator-name = "P3.0V_LDO_OUT12";
212 regulator-min-microvolt = <3000000>;
213 regulator-max-microvolt = <3000000>;
219 regulator-name = "P1.8V_LDO_OUT13";
220 regulator-min-microvolt = <1800000>;
221 regulator-max-microvolt = <1800000>;
227 regulator-name = "P1.8V_LDO_OUT14";
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <1800000>;
235 regulator-name = "P1.0V_LDO_OUT15";
236 regulator-min-microvolt = <1000000>;
237 regulator-max-microvolt = <1000000>;
243 regulator-name = "P1.8V_LDO_OUT16";
244 regulator-min-microvolt = <1800000>;
245 regulator-max-microvolt = <1800000>;
251 regulator-name = "P2.8V_LDO_OUT17";
252 regulator-min-microvolt = <2800000>;
253 regulator-max-microvolt = <2800000>;
259 regulator-name = "vdd_bridge";
260 regulator-min-microvolt = <1200000>;
261 regulator-max-microvolt = <1200000>;
267 regulator-name = "vdd_mif";
268 regulator-min-microvolt = <950000>;
269 regulator-max-microvolt = <1300000>;
276 regulator-name = "vdd_arm";
277 regulator-min-microvolt = <850000>;
278 regulator-max-microvolt = <1350000>;
285 regulator-name = "vdd_int";
286 regulator-min-microvolt = <900000>;
287 regulator-max-microvolt = <1200000>;
294 regulator-name = "vdd_g3d";
295 regulator-min-microvolt = <850000>;
296 regulator-max-microvolt = <1300000>;
302 regulator-name = "P1.8V_BUCK_OUT5";
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <1800000>;
311 regulator-name = "P1.2V_BUCK_OUT6";
312 regulator-min-microvolt = <1200000>;
313 regulator-max-microvolt = <1200000>;
320 regulator-name = "vdd_ummc";
321 regulator-min-microvolt = <950000>;
322 regulator-max-microvolt = <3000000>;
333 samsung,i2c-sda-delay = <100>;
334 samsung,i2c-max-bus-freq = <378000>;
337 compatible = "atmel,maxtouch";
339 interrupt-parent = <&gpx1>;
340 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
341 pinctrl-names = "default";
342 pinctrl-0 = <&trackpad_irq>;
343 linux,gpio-keymap = <KEY_RESERVED
354 * Disabled pullups since external part has its own pullups and
355 * double-pulling gets us out of spec in some cases.
358 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
363 /* used by HDMI DDC */
364 samsung,i2c-sda-delay = <100>;
365 samsung,i2c-max-bus-freq = <66000>;
370 samsung,i2c-sda-delay = <100>;
371 samsung,i2c-max-bus-freq = <66000>;
376 samsung,i2c-sda-delay = <100>;
377 samsung,i2c-max-bus-freq = <66000>;
379 cros_ec: embedded-controller@1e {
380 compatible = "google,cros-ec-i2c";
382 interrupts = <6 IRQ_TYPE_NONE>;
383 interrupt-parent = <&gpx1>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&ec_irq>;
392 samsung,i2c-sda-delay = <100>;
393 samsung,i2c-max-bus-freq = <66000>;
398 samsung,i2c-sda-delay = <100>;
399 samsung,i2c-max-bus-freq = <66000>;
401 temperature-sensor@4c {
402 compatible = "gmt,g781";
409 /* used by HDMI PHY */
410 samsung,i2c-sda-delay = <100>;
411 samsung,i2c-max-bus-freq = <378000>;
425 card-detect-delay = <200>;
426 samsung,dw-mshc-ciu-div = <3>;
427 samsung,dw-mshc-sdr-timing = <2 3>;
428 samsung,dw-mshc-ddr-timing = <1 2>;
429 pinctrl-names = "default";
430 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4 &sd0_bus8>;
436 * On Spring we've got SIP WiFi and so can keep drive strengths low to
442 card-detect-delay = <200>;
443 samsung,dw-mshc-ciu-div = <3>;
444 samsung,dw-mshc-sdr-timing = <2 3>;
445 samsung,dw-mshc-ddr-timing = <1 2>;
446 pinctrl-names = "default";
447 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus4>;
453 s5m8767_dvs: s5m8767-dvs {
454 samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2";
455 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
456 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
457 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
460 dp_hpd_gpio: dp-hpd {
461 samsung,pins = "gpc3-0";
462 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
463 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
464 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
467 trackpad_irq: trackpad-irq {
468 samsung,pins = "gpx1-2";
469 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
470 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
471 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
474 power_key_irq: power-key-irq {
475 samsung,pins = "gpx1-3";
476 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
477 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
478 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
482 samsung,pins = "gpx1-6";
483 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
484 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
485 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
488 s5m8767_ds: s5m8767-ds {
489 samsung,pins = "gpx2-3", "gpx2-4", "gpx2-5";
490 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
491 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
492 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
495 s5m8767_irq: s5m8767-irq {
496 samsung,pins = "gpx3-2";
497 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
498 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
499 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
503 samsung,pins = "gpx3-5";
504 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
505 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
506 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
509 hdmi_hpd_irq: hdmi-hpd-irq {
510 samsung,pins = "gpx3-7";
511 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
512 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
513 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
518 hsic_reset: hsic-reset {
519 samsung,pins = "gpe1-0";
520 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
521 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
522 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
528 clocks = <&clock CLK_RTC>, <&s5m8767_osc S2MPS11_CLK_AP>;
529 clock-names = "rtc", "rtc_src";
533 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
537 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
541 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
545 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
546 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
551 samsung,spi-src-clk = <0>;
555 #include "cros-ec-keyboard.dtsi"