2017-12-15 18:44:27 +07:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2015-07-08 01:09:34 +07:00
|
|
|
/*
|
|
|
|
* Google Veyron Pinky Rev 2 board device tree source
|
|
|
|
*
|
|
|
|
* Copyright 2015 Google, Inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3288-veyron-chromebook.dtsi"
|
|
|
|
#include "cros-ec-sbs.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Google Pinky";
|
|
|
|
compatible = "google,veyron-pinky-rev2", "google,veyron-pinky",
|
|
|
|
"google,veyron", "rockchip,rk3288";
|
|
|
|
|
2019-07-25 23:26:39 +07:00
|
|
|
/delete-node/backlight-regulator;
|
|
|
|
/delete-node/panel-regulator;
|
2015-07-08 01:09:34 +07:00
|
|
|
/delete-node/emmc-pwrseq;
|
2019-07-25 23:26:39 +07:00
|
|
|
/delete-node/vcc18-lcd;
|
|
|
|
};
|
|
|
|
|
|
|
|
&backlight {
|
|
|
|
/delete-property/power-supply;
|
2015-07-08 01:09:34 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&emmc {
|
|
|
|
/*
|
|
|
|
* Use a pullup instead of a drive since the output is 3.3V and
|
|
|
|
* really should be 1.8V (oops). The external pulldown will help
|
|
|
|
* bring the voltage down if we only drive with a pullup here.
|
|
|
|
* Therefore disable the powerseq (and actual reset) for pinky.
|
|
|
|
*/
|
|
|
|
/delete-property/mmc-pwrseq;
|
|
|
|
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8 &emmc_reset>;
|
|
|
|
};
|
|
|
|
|
2015-12-14 23:12:47 +07:00
|
|
|
&edp {
|
|
|
|
/delete-property/pinctrl-names;
|
|
|
|
/delete-property/pinctrl-0;
|
|
|
|
|
|
|
|
force-hpd;
|
|
|
|
};
|
|
|
|
|
2019-06-06 03:43:19 +07:00
|
|
|
&lid_switch {
|
2015-07-08 01:09:34 +07:00
|
|
|
pinctrl-0 = <&pwr_key_h &ap_lid_int_l>;
|
|
|
|
|
|
|
|
power {
|
2016-10-22 19:54:55 +07:00
|
|
|
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
|
2015-07-08 01:09:34 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Touchpad connector */
|
|
|
|
&i2c3 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
i2c-scl-falling-time-ns = <50>;
|
|
|
|
i2c-scl-rising-time-ns = <300>;
|
|
|
|
};
|
|
|
|
|
2019-07-25 23:26:39 +07:00
|
|
|
&panel {
|
|
|
|
power-supply = <&vcc33_lcd>;
|
|
|
|
};
|
|
|
|
|
2015-07-08 01:09:34 +07:00
|
|
|
&pinctrl {
|
2019-11-28 05:39:09 +07:00
|
|
|
pinctrl-names = "default", "sleep";
|
|
|
|
pinctrl-0 = <
|
|
|
|
/* Common for sleep and wake, but no owners */
|
|
|
|
&ddr0_retention
|
|
|
|
&ddrio_pwroff
|
|
|
|
&global_pwroff
|
|
|
|
|
|
|
|
/* Wake only */
|
|
|
|
&suspend_l_wake
|
|
|
|
&bt_dev_wake_awake
|
|
|
|
>;
|
|
|
|
pinctrl-1 = <
|
|
|
|
/* Common for sleep and wake, but no owners */
|
|
|
|
&ddr0_retention
|
|
|
|
&ddrio_pwroff
|
|
|
|
&global_pwroff
|
|
|
|
|
|
|
|
/* Sleep only */
|
|
|
|
&suspend_l_sleep
|
|
|
|
&bt_dev_wake_sleep
|
|
|
|
>;
|
|
|
|
|
2019-07-25 23:26:39 +07:00
|
|
|
/delete-node/ lcd;
|
|
|
|
|
|
|
|
backlight {
|
|
|
|
/delete-node/ bl_pwr_en;
|
|
|
|
};
|
|
|
|
|
2015-07-08 01:09:34 +07:00
|
|
|
buttons {
|
|
|
|
pwr_key_h: pwr-key-h {
|
2019-04-02 19:08:57 +07:00
|
|
|
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
2015-07-08 01:09:34 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
emmc {
|
|
|
|
emmc_reset: emmc-reset {
|
2019-04-02 19:08:57 +07:00
|
|
|
rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
|
2015-07-08 01:09:34 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sdmmc {
|
|
|
|
sdmmc_wp_gpio: sdmmc-wp-gpio {
|
2019-04-02 19:08:57 +07:00
|
|
|
rockchip,pins = <7 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
|
2015-07-08 01:09:34 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&rk808 {
|
|
|
|
regulators {
|
|
|
|
vcc18_lcd: SWITCH_REG2 {
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-name = "vcc18_lcd";
|
|
|
|
regulator-state-mem {
|
2015-08-20 05:18:41 +07:00
|
|
|
regulator-off-in-suspend;
|
2015-07-08 01:09:34 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdmmc {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
|
|
|
|
&sdmmc_wp_gpio &sdmmc_bus4>;
|
2016-10-22 19:54:55 +07:00
|
|
|
wp-gpios = <&gpio7 RK_PB2 GPIO_ACTIVE_HIGH>;
|
2015-07-08 01:09:34 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&tsadc {
|
|
|
|
/* Some connection is flaky making the tsadc hang the system */
|
|
|
|
status = "disabled";
|
|
|
|
};
|