• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google Veyron Pinky Rev 2 board device tree source
4 *
5 * Copyright 2015 Google, Inc
6 */
7
8/dts-v1/;
9#include "rk3288-veyron-chromebook.dtsi"
10#include "cros-ec-sbs.dtsi"
11
12/ {
13	model = "Google Pinky";
14	compatible = "google,veyron-pinky-rev2", "google,veyron-pinky",
15		     "google,veyron", "rockchip,rk3288";
16
17	/delete-node/emmc-pwrseq;
18};
19
20&emmc {
21	/*
22	 * Use a pullup instead of a drive since the output is 3.3V and
23	 * really should be 1.8V (oops).  The external pulldown will help
24	 * bring the voltage down if we only drive with a pullup here.
25	 * Therefore disable the powerseq (and actual reset) for pinky.
26	 */
27	/delete-property/mmc-pwrseq;
28	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8 &emmc_reset>;
29};
30
31&edp {
32	/delete-property/pinctrl-names;
33	/delete-property/pinctrl-0;
34
35	force-hpd;
36};
37
38&gpio_keys {
39	pinctrl-0 = <&pwr_key_h &ap_lid_int_l>;
40
41	power {
42		gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
43	};
44};
45
46/* Touchpad connector */
47&i2c3 {
48	status = "okay";
49
50	clock-frequency = <400000>;
51	i2c-scl-falling-time-ns = <50>;
52	i2c-scl-rising-time-ns = <300>;
53};
54
55&pinctrl {
56	buttons {
57		pwr_key_h: pwr-key-h {
58			rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_none>;
59		};
60	};
61
62	emmc {
63		emmc_reset: emmc-reset {
64			rockchip,pins = <7 12 RK_FUNC_GPIO &pcfg_pull_up>;
65		};
66	};
67
68	sdmmc {
69		sdmmc_wp_gpio: sdmmc-wp-gpio {
70			rockchip,pins = <7 10 RK_FUNC_GPIO &pcfg_pull_up>;
71		};
72	};
73};
74
75&rk808 {
76	regulators {
77		vcc18_lcd: SWITCH_REG2 {
78			regulator-always-on;
79			regulator-boot-on;
80			regulator-name = "vcc18_lcd";
81			regulator-state-mem {
82				regulator-off-in-suspend;
83			};
84		};
85	};
86};
87
88&sdmmc {
89	pinctrl-names = "default";
90	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
91		     &sdmmc_wp_gpio &sdmmc_bus4>;
92	wp-gpios = <&gpio7 RK_PB2 GPIO_ACTIVE_HIGH>;
93};
94
95&tsadc {
96	/* Some connection is flaky making the tsadc hang the system */
97	status = "disabled";
98};
99