0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Google Veyron Pinky Rev 2 board device tree source
0004 *
0005 * Copyright 2015 Google, Inc
0006 */
0007
0008 /dts-v1/;
0009 #include "rk3288-veyron-chromebook.dtsi"
0010 #include "cros-ec-sbs.dtsi"
0011
0012 / {
0013 model = "Google Pinky";
0014 compatible = "google,veyron-pinky-rev2", "google,veyron-pinky",
0015 "google,veyron", "rockchip,rk3288";
0016
0017 /delete-node/backlight-regulator;
0018 /delete-node/panel-regulator;
0019 /delete-node/emmc-pwrseq;
0020 /delete-node/vcc18-lcd;
0021 };
0022
0023 &backlight {
0024 /delete-property/power-supply;
0025 };
0026
0027 &emmc {
0028 /*
0029 * Use a pullup instead of a drive since the output is 3.3V and
0030 * really should be 1.8V (oops). The external pulldown will help
0031 * bring the voltage down if we only drive with a pullup here.
0032 * Therefore disable the powerseq (and actual reset) for pinky.
0033 */
0034 /delete-property/mmc-pwrseq;
0035 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8 &emmc_reset>;
0036 };
0037
0038 &edp {
0039 /delete-property/pinctrl-names;
0040 /delete-property/pinctrl-0;
0041
0042 force-hpd;
0043 };
0044
0045 &lid_switch {
0046 pinctrl-0 = <&pwr_key_h &ap_lid_int_l>;
0047
0048 key-power {
0049 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
0050 };
0051 };
0052
0053 /* Touchpad connector */
0054 &i2c3 {
0055 status = "okay";
0056
0057 clock-frequency = <400000>;
0058 i2c-scl-falling-time-ns = <50>;
0059 i2c-scl-rising-time-ns = <300>;
0060 };
0061
0062 &panel {
0063 power-supply = <&vcc33_lcd>;
0064 };
0065
0066 &pinctrl {
0067 pinctrl-names = "default", "sleep";
0068 pinctrl-0 = <
0069 /* Common for sleep and wake, but no owners */
0070 &ddr0_retention
0071 &ddrio_pwroff
0072 &global_pwroff
0073
0074 /* Wake only */
0075 &suspend_l_wake
0076 &bt_dev_wake_awake
0077 >;
0078 pinctrl-1 = <
0079 /* Common for sleep and wake, but no owners */
0080 &ddr0_retention
0081 &ddrio_pwroff
0082 &global_pwroff
0083
0084 /* Sleep only */
0085 &suspend_l_sleep
0086 &bt_dev_wake_sleep
0087 >;
0088
0089 /delete-node/ lcd;
0090
0091 backlight {
0092 /delete-node/ bl_pwr_en;
0093 };
0094
0095 buttons {
0096 pwr_key_h: pwr-key-h {
0097 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
0098 };
0099 };
0100
0101 emmc {
0102 emmc_reset: emmc-reset {
0103 rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
0104 };
0105 };
0106
0107 sdmmc {
0108 sdmmc_wp_pin: sdmmc-wp-pin {
0109 rockchip,pins = <7 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
0110 };
0111 };
0112 };
0113
0114 &rk808 {
0115 regulators {
0116 vcc18_lcd: SWITCH_REG2 {
0117 regulator-always-on;
0118 regulator-boot-on;
0119 regulator-name = "vcc18_lcd";
0120 regulator-state-mem {
0121 regulator-off-in-suspend;
0122 };
0123 };
0124 };
0125 };
0126
0127 &sdmmc {
0128 pinctrl-names = "default";
0129 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
0130 &sdmmc_wp_pin &sdmmc_bus4>;
0131 wp-gpios = <&gpio7 RK_PB2 GPIO_ACTIVE_HIGH>;
0132 };
0133
0134 &tsadc {
0135 /* Some connection is flaky making the tsadc hang the system */
0136 status = "disabled";
0137 };