1 // SPDX-License-Identifier: GPL-2.0
3 * Google Snow board device tree source
5 * Copyright (c) 2012 Google, Inc
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/clock/maxim,max77686.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/sound/samsung-i2s.h>
13 #include "exynos5250.dtsi"
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>;
52 vbat: vbat-fixed-regulator {
53 compatible = "regulator-fixed";
54 regulator-name = "vbat-supply";
59 compatible = "i2c-arb-gpio-challenge";
63 i2c-parent = <&i2c_4>;
65 our-claim-gpio = <&gpf0 3 GPIO_ACTIVE_LOW>;
66 their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
68 wait-retry-us = <3000>;
69 wait-free-us = <50000>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&arb_our_claim &arb_their_claim>;
74 /* Use ID 104 as a hint that we're on physical bus 4 */
80 battery: sbs-battery@b {
81 compatible = "sbs,sbs-battery";
83 sbs,poll-retry-count = <1>;
86 cros_ec: embedded-controller@1e {
87 compatible = "google,cros-ec-i2c";
89 interrupts = <6 IRQ_TYPE_NONE>;
90 interrupt-parent = <&gpx1>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&ec_irq>;
97 compatible = "ti,tps65090";
101 * Config irq to disable internal pulls
102 * even though we run in polling mode.
104 pinctrl-names = "default";
105 pinctrl-0 = <&tps65090_irq>;
107 vsys1-supply = <&vbat>;
108 vsys2-supply = <&vbat>;
109 vsys3-supply = <&vbat>;
110 infet1-supply = <&vbat>;
111 infet2-supply = <&vbat>;
112 infet3-supply = <&vbat>;
113 infet4-supply = <&vbat>;
114 infet5-supply = <&vbat>;
115 infet6-supply = <&vbat>;
116 infet7-supply = <&vbat>;
117 vsys-l1-supply = <&vbat>;
118 vsys-l2-supply = <&vbat>;
122 ti,enable-ext-control;
125 ti,enable-ext-control;
128 ti,enable-ext-control;
131 regulator-name = "vcd_led";
132 ti,overcurrent-wait = <3>;
134 tps65090_fet2: fet2 {
135 regulator-name = "video_mid";
137 ti,overcurrent-wait = <3>;
140 regulator-name = "wwan_r";
142 ti,overcurrent-wait = <3>;
145 regulator-name = "sdcard";
146 ti,overcurrent-wait = <3>;
149 regulator-name = "camout";
151 ti,overcurrent-wait = <3>;
154 regulator-name = "lcd_vdd";
155 ti,overcurrent-wait = <3>;
157 tps65090_fet7: fet7 {
158 regulator-name = "video_mid_1a";
160 ti,overcurrent-wait = <3>;
169 compatible = "ti,tps65090-charger";
176 samsung,i2s-controller = <&i2s0>;
179 usb3_vbus_reg: regulator-usb3 {
180 compatible = "regulator-fixed";
181 regulator-name = "P5.0V_USB3CON";
182 regulator-min-microvolt = <5000000>;
183 regulator-max-microvolt = <5000000>;
184 gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&usb3_vbus_en>;
192 compatible = "samsung,clock-xxti";
193 clock-frequency = <24000000>;
197 backlight: backlight {
198 compatible = "pwm-backlight";
199 pwms = <&pwm 0 1000000 0>;
200 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
201 default-brightness-level = <7>;
202 enable-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
203 power-supply = <&fet1>;
204 pinctrl-0 = <&pwm0_out>;
205 pinctrl-names = "default";
209 compatible = "auo,b116xw03";
210 power-supply = <&fet6>;
211 backlight = <&backlight>;
215 remote-endpoint = <&bridge_out>;
220 mmc3_pwrseq: mmc3_pwrseq {
221 compatible = "mmc-pwrseq-simple";
222 reset-gpios = <&gpx0 2 GPIO_ACTIVE_LOW>, /* WIFI_RSTn */
223 <&gpx0 1 GPIO_ACTIVE_LOW>; /* WIFI_EN */
224 clocks = <&max77686 MAX77686_CLK_PMIC>;
225 clock-names = "ext_clock";
230 assigned-clocks = <&clock CLK_FOUT_EPLL>;
231 assigned-clock-rates = <49152000>;
235 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
236 assigned-clock-parents = <&clock CLK_FOUT_EPLL>;
240 cpu0-supply = <&buck2_reg>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&dp_hpd>;
247 samsung,color-space = <0>;
248 samsung,color-depth = <1>;
249 samsung,link-rate = <0x0a>;
250 samsung,lane-count = <2>;
251 hpd-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
256 remote-endpoint = <&bridge_in>;
263 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
273 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&hdmi_hpd_irq>;
277 hdmi-en-supply = <&tps65090_fet7>;
278 vdd-supply = <&ldo8_reg>;
279 vdd_osc-supply = <&ldo10_reg>;
280 vdd_pll-supply = <&ldo8_reg>;
289 samsung,i2c-sda-delay = <100>;
290 samsung,i2c-max-bus-freq = <378000>;
292 max77686: max77686@9 {
293 compatible = "maxim,max77686";
294 interrupt-parent = <&gpx3>;
295 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
296 pinctrl-names = "default";
297 pinctrl-0 = <&max77686_irq>;
304 regulator-name = "P1.0V_LDO_OUT1";
305 regulator-min-microvolt = <1000000>;
306 regulator-max-microvolt = <1000000>;
311 regulator-name = "P1.8V_LDO_OUT2";
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <1800000>;
318 regulator-name = "P1.8V_LDO_OUT3";
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
325 regulator-name = "P1.1V_LDO_OUT7";
326 regulator-min-microvolt = <1100000>;
327 regulator-max-microvolt = <1100000>;
332 regulator-name = "P1.0V_LDO_OUT8";
333 regulator-min-microvolt = <1000000>;
334 regulator-max-microvolt = <1000000>;
339 regulator-name = "P1.8V_LDO_OUT10";
340 regulator-min-microvolt = <1800000>;
341 regulator-max-microvolt = <1800000>;
346 regulator-name = "P3.0V_LDO_OUT12";
347 regulator-min-microvolt = <3000000>;
348 regulator-max-microvolt = <3000000>;
353 regulator-name = "P1.8V_LDO_OUT14";
354 regulator-min-microvolt = <1800000>;
355 regulator-max-microvolt = <1800000>;
360 regulator-name = "P1.0V_LDO_OUT15";
361 regulator-min-microvolt = <1000000>;
362 regulator-max-microvolt = <1000000>;
367 regulator-name = "P1.8V_LDO_OUT16";
368 regulator-min-microvolt = <1800000>;
369 regulator-max-microvolt = <1800000>;
374 regulator-name = "vdd_mif";
375 regulator-min-microvolt = <950000>;
376 regulator-max-microvolt = <1300000>;
382 regulator-name = "vdd_arm";
383 regulator-min-microvolt = <850000>;
384 regulator-max-microvolt = <1350000>;
390 regulator-name = "vdd_int";
391 regulator-min-microvolt = <900000>;
392 regulator-max-microvolt = <1200000>;
398 regulator-name = "vdd_g3d";
399 regulator-min-microvolt = <850000>;
400 regulator-max-microvolt = <1300000>;
406 regulator-name = "P1.8V_BUCK_OUT5";
407 regulator-min-microvolt = <1800000>;
408 regulator-max-microvolt = <1800000>;
414 regulator-name = "P1.35V_BUCK_OUT6";
415 regulator-min-microvolt = <1350000>;
416 regulator-max-microvolt = <1350000>;
421 regulator-name = "P2.0V_BUCK_OUT7";
422 regulator-min-microvolt = <2000000>;
423 regulator-max-microvolt = <2000000>;
428 regulator-name = "P2.85V_BUCK_OUT8";
429 regulator-min-microvolt = <2850000>;
430 regulator-max-microvolt = <2850000>;
439 samsung,i2c-sda-delay = <100>;
440 samsung,i2c-max-bus-freq = <378000>;
444 compatible = "cypress,cyapa";
445 interrupts = <2 IRQ_TYPE_NONE>;
446 interrupt-parent = <&gpx1>;
452 * Disabled pullups since external part has its own pullups and
453 * double-pulling gets us out of spec in some cases.
456 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
461 /* used by HDMI DDC */
462 samsung,i2c-sda-delay = <100>;
463 samsung,i2c-max-bus-freq = <66000>;
468 samsung,i2c-sda-delay = <100>;
469 samsung,i2c-max-bus-freq = <66000>;
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>;
486 samsung,i2c-sda-delay = <100>;
487 samsung,i2c-max-bus-freq = <66000>;
489 ptn3460: lvds-bridge@20 {
490 compatible = "nxp,ptn3460";
492 powerdown-gpios = <&gpy2 5 GPIO_ACTIVE_HIGH>;
493 reset-gpios = <&gpx1 5 GPIO_ACTIVE_HIGH>;
494 edid-emulation = <5>;
497 #address-cells = <1>;
503 bridge_out: endpoint {
504 remote-endpoint = <&panel_in>;
511 bridge_in: endpoint {
512 remote-endpoint = <&dp_out>;
521 /* used by HDMI PHY */
522 samsung,i2c-sda-delay = <100>;
523 samsung,i2c-max-bus-freq = <378000>;
527 assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
528 assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
540 samsung,dw-mshc-ciu-div = <3>;
541 samsung,dw-mshc-sdr-timing = <2 3>;
542 samsung,dw-mshc-ddr-timing = <1 2>;
543 pinctrl-names = "default";
544 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4 &sd0_bus8>;
552 card-detect-delay = <200>;
553 samsung,dw-mshc-ciu-div = <3>;
554 samsung,dw-mshc-sdr-timing = <2 3>;
555 samsung,dw-mshc-ddr-timing = <1 2>;
556 pinctrl-names = "default";
557 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
559 wp-gpios = <&gpc2 1 GPIO_ACTIVE_HIGH>;
564 * On Snow we've got SIP WiFi and so can keep drive strengths low to
573 keep-power-in-suspend;
574 samsung,dw-mshc-ciu-div = <3>;
575 samsung,dw-mshc-sdr-timing = <2 3>;
576 samsung,dw-mshc-ddr-timing = <1 2>;
577 pinctrl-names = "default";
578 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4 &wifi_en &wifi_rst>;
581 mmc-pwrseq = <&mmc3_pwrseq>;
586 samsung,pins = "gpx0-1";
587 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
588 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
589 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
593 samsung,pins = "gpx0-2";
594 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
595 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
596 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
599 power_key_irq: power-key-irq {
600 samsung,pins = "gpx1-3";
601 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
602 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
603 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
607 samsung,pins = "gpx1-6";
608 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
609 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
610 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
613 tps65090_irq: tps65090-irq {
614 samsung,pins = "gpx2-6";
615 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
616 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
617 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
620 usb3_vbus_en: usb3-vbus-en {
621 samsung,pins = "gpx2-7";
622 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
623 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
624 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
627 max77686_irq: max77686-irq {
628 samsung,pins = "gpx3-2";
629 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
630 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
631 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
635 samsung,pins = "gpx3-5";
636 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
637 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
638 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
641 hdmi_hpd_irq: hdmi-hpd-irq {
642 samsung,pins = "gpx3-7";
643 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
644 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
645 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
650 arb_their_claim: arb-their-claim {
651 samsung,pins = "gpe0-4";
652 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
653 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
654 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
657 arb_our_claim: arb-our-claim {
658 samsung,pins = "gpf0-3";
659 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
660 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
661 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
665 &pmu_system_controller {
666 assigned-clocks = <&pmu_system_controller 0>;
667 assigned-clock-parents = <&clock CLK_FIN_PLL>;
672 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
673 clock-names = "rtc", "rtc_src";
677 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
681 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
685 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
686 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
691 samsung,spi-src-clk = <0>;
693 cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>;
701 vbus-supply = <&usb3_vbus_reg>;
704 #include "cros-ec-keyboard.dtsi"