1*5e9b1503SSimon Glass/* 2*5e9b1503SSimon Glass * Google Veyron Jerry Rev 3+ board device tree source 3*5e9b1503SSimon Glass * 4*5e9b1503SSimon Glass * Copyright 2014 Google, Inc 5*5e9b1503SSimon Glass * 6*5e9b1503SSimon Glass * SPDX-License-Identifier: GPL-2.0 7*5e9b1503SSimon Glass */ 8*5e9b1503SSimon Glass 9*5e9b1503SSimon Glass/dts-v1/; 10*5e9b1503SSimon Glass#include "rk3288-veyron-chromebook.dtsi" 11*5e9b1503SSimon Glass#include "cros-ec-sbs.dtsi" 12*5e9b1503SSimon Glass 13*5e9b1503SSimon Glass/ { 14*5e9b1503SSimon Glass model = "Google Jerry"; 15*5e9b1503SSimon Glass compatible = "google,veyron-jerry-rev7", "google,veyron-jerry-rev6", 16*5e9b1503SSimon Glass "google,veyron-jerry-rev5", "google,veyron-jerry-rev4", 17*5e9b1503SSimon Glass "google,veyron-jerry-rev3", "google,veyron-jerry", 18*5e9b1503SSimon Glass "google,veyron", "rockchip,rk3288"; 19*5e9b1503SSimon Glass 20*5e9b1503SSimon Glass chosen { 21*5e9b1503SSimon Glass stdout-path = &uart2; 22*5e9b1503SSimon Glass }; 23*5e9b1503SSimon Glass 24*5e9b1503SSimon Glass panel_regulator: panel-regualtor { 25*5e9b1503SSimon Glass compatible = "regulator-fixed"; 26*5e9b1503SSimon Glass enable-active-high; 27*5e9b1503SSimon Glass gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>; 28*5e9b1503SSimon Glass pinctrl-names = "default"; 29*5e9b1503SSimon Glass pinctrl-0 = <&lcd_enable_h>; 30*5e9b1503SSimon Glass regulator-name = "panel_regulator"; 31*5e9b1503SSimon Glass vin-supply = <&vcc33_sys>; 32*5e9b1503SSimon Glass }; 33*5e9b1503SSimon Glass 34*5e9b1503SSimon Glass vcc18_lcd: vcc18-lcd { 35*5e9b1503SSimon Glass compatible = "regulator-fixed"; 36*5e9b1503SSimon Glass enable-active-high; 37*5e9b1503SSimon Glass gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; 38*5e9b1503SSimon Glass pinctrl-names = "default"; 39*5e9b1503SSimon Glass pinctrl-0 = <&avdd_1v8_disp_en>; 40*5e9b1503SSimon Glass regulator-name = "vcc18_lcd"; 41*5e9b1503SSimon Glass regulator-always-on; 42*5e9b1503SSimon Glass regulator-boot-on; 43*5e9b1503SSimon Glass vin-supply = <&vcc18_wl>; 44*5e9b1503SSimon Glass }; 45*5e9b1503SSimon Glass 46*5e9b1503SSimon Glass backlight_regulator: backlight-regulator { 47*5e9b1503SSimon Glass compatible = "regulator-fixed"; 48*5e9b1503SSimon Glass enable-active-high; 49*5e9b1503SSimon Glass gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>; 50*5e9b1503SSimon Glass pinctrl-names = "default"; 51*5e9b1503SSimon Glass pinctrl-0 = <&bl_pwr_en>; 52*5e9b1503SSimon Glass regulator-name = "backlight_regulator"; 53*5e9b1503SSimon Glass vin-supply = <&vcc33_sys>; 54*5e9b1503SSimon Glass startup-delay-us = <15000>; 55*5e9b1503SSimon Glass }; 56*5e9b1503SSimon Glass}; 57*5e9b1503SSimon Glass 58*5e9b1503SSimon Glass&gpio_keys { 59*5e9b1503SSimon Glass power { 60*5e9b1503SSimon Glass gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; 61*5e9b1503SSimon Glass }; 62*5e9b1503SSimon Glass}; 63*5e9b1503SSimon Glass 64*5e9b1503SSimon Glass&backlight { 65*5e9b1503SSimon Glass power-supply = <&backlight_regulator>; 66*5e9b1503SSimon Glass}; 67*5e9b1503SSimon Glass 68*5e9b1503SSimon Glass&panel { 69*5e9b1503SSimon Glass power-supply= <&panel_regulator>; 70*5e9b1503SSimon Glass}; 71*5e9b1503SSimon Glass 72*5e9b1503SSimon Glass&rk808 { 73*5e9b1503SSimon Glass pinctrl-names = "default"; 74*5e9b1503SSimon Glass pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>; 75*5e9b1503SSimon Glass dvs-gpios = <&gpio7 12 GPIO_ACTIVE_HIGH>, 76*5e9b1503SSimon Glass <&gpio7 15 GPIO_ACTIVE_HIGH>; 77*5e9b1503SSimon Glass 78*5e9b1503SSimon Glass regulators { 79*5e9b1503SSimon Glass mic_vcc: LDO_REG2 { 80*5e9b1503SSimon Glass regulator-always-on; 81*5e9b1503SSimon Glass regulator-boot-on; 82*5e9b1503SSimon Glass regulator-min-microvolt = <1800000>; 83*5e9b1503SSimon Glass regulator-max-microvolt = <1800000>; 84*5e9b1503SSimon Glass regulator-name = "mic_vcc"; 85*5e9b1503SSimon Glass regulator-suspend-mem-disabled; 86*5e9b1503SSimon Glass }; 87*5e9b1503SSimon Glass }; 88*5e9b1503SSimon Glass}; 89*5e9b1503SSimon Glass 90*5e9b1503SSimon Glass&sdmmc { 91*5e9b1503SSimon Glass pinctrl-names = "default"; 92*5e9b1503SSimon Glass pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio 93*5e9b1503SSimon Glass &sdmmc_bus4>; 94*5e9b1503SSimon Glass disable-wp; 95*5e9b1503SSimon Glass}; 96*5e9b1503SSimon Glass 97*5e9b1503SSimon Glass&vcc_5v { 98*5e9b1503SSimon Glass enable-active-high; 99*5e9b1503SSimon Glass gpio = <&gpio7 21 GPIO_ACTIVE_HIGH>; 100*5e9b1503SSimon Glass pinctrl-names = "default"; 101*5e9b1503SSimon Glass pinctrl-0 = <&drv_5v>; 102*5e9b1503SSimon Glass}; 103*5e9b1503SSimon Glass 104*5e9b1503SSimon Glass&vcc50_hdmi { 105*5e9b1503SSimon Glass enable-active-high; 106*5e9b1503SSimon Glass gpio = <&gpio5 19 GPIO_ACTIVE_HIGH>; 107*5e9b1503SSimon Glass pinctrl-names = "default"; 108*5e9b1503SSimon Glass pinctrl-0 = <&vcc50_hdmi_en>; 109*5e9b1503SSimon Glass}; 110*5e9b1503SSimon Glass 111*5e9b1503SSimon Glass&edp { 112*5e9b1503SSimon Glass pinctrl-names = "default"; 113*5e9b1503SSimon Glass pinctrl-0 = <&edp_hpd>; 114*5e9b1503SSimon Glass}; 115*5e9b1503SSimon Glass 116*5e9b1503SSimon Glass&pinctrl { 117*5e9b1503SSimon Glass backlight { 118*5e9b1503SSimon Glass bl_pwr_en: bl_pwr_en { 119*5e9b1503SSimon Glass rockchip,pins = <2 12 RK_FUNC_GPIO &pcfg_pull_none>; 120*5e9b1503SSimon Glass }; 121*5e9b1503SSimon Glass }; 122*5e9b1503SSimon Glass 123*5e9b1503SSimon Glass buck-5v { 124*5e9b1503SSimon Glass drv_5v: drv-5v { 125*5e9b1503SSimon Glass rockchip,pins = <7 21 RK_FUNC_GPIO &pcfg_pull_none>; 126*5e9b1503SSimon Glass }; 127*5e9b1503SSimon Glass }; 128*5e9b1503SSimon Glass 129*5e9b1503SSimon Glass edp { 130*5e9b1503SSimon Glass edp_hpd: edp_hpd { 131*5e9b1503SSimon Glass rockchip,pins = <7 11 RK_FUNC_2 &pcfg_pull_down>; 132*5e9b1503SSimon Glass }; 133*5e9b1503SSimon Glass }; 134*5e9b1503SSimon Glass 135*5e9b1503SSimon Glass emmc { 136*5e9b1503SSimon Glass /* Make sure eMMC is not in reset */ 137*5e9b1503SSimon Glass emmc_deassert_reset: emmc-deassert-reset { 138*5e9b1503SSimon Glass rockchip,pins = <2 9 RK_FUNC_GPIO &pcfg_pull_none>; 139*5e9b1503SSimon Glass }; 140*5e9b1503SSimon Glass }; 141*5e9b1503SSimon Glass 142*5e9b1503SSimon Glass hdmi { 143*5e9b1503SSimon Glass vcc50_hdmi_en: vcc50-hdmi-en { 144*5e9b1503SSimon Glass rockchip,pins = <5 19 RK_FUNC_GPIO &pcfg_pull_none>; 145*5e9b1503SSimon Glass }; 146*5e9b1503SSimon Glass }; 147*5e9b1503SSimon Glass 148*5e9b1503SSimon Glass lcd { 149*5e9b1503SSimon Glass lcd_enable_h: lcd-en { 150*5e9b1503SSimon Glass rockchip,pins = <7 14 RK_FUNC_GPIO &pcfg_pull_none>; 151*5e9b1503SSimon Glass }; 152*5e9b1503SSimon Glass 153*5e9b1503SSimon Glass avdd_1v8_disp_en: avdd-1v8-disp-en { 154*5e9b1503SSimon Glass rockchip,pins = <2 13 RK_FUNC_GPIO &pcfg_pull_none>; 155*5e9b1503SSimon Glass }; 156*5e9b1503SSimon Glass }; 157*5e9b1503SSimon Glass 158*5e9b1503SSimon Glass pmic { 159*5e9b1503SSimon Glass dvs_1: dvs-1 { 160*5e9b1503SSimon Glass rockchip,pins = <7 12 RK_FUNC_GPIO &pcfg_pull_down>; 161*5e9b1503SSimon Glass }; 162*5e9b1503SSimon Glass 163*5e9b1503SSimon Glass dvs_2: dvs-2 { 164*5e9b1503SSimon Glass rockchip,pins = <7 15 RK_FUNC_GPIO &pcfg_pull_down>; 165*5e9b1503SSimon Glass }; 166*5e9b1503SSimon Glass }; 167*5e9b1503SSimon Glass}; 168*5e9b1503SSimon Glass 169*5e9b1503SSimon Glass&i2c4 { 170*5e9b1503SSimon Glass status = "okay"; 171*5e9b1503SSimon Glass 172*5e9b1503SSimon Glass /* 173*5e9b1503SSimon Glass * Trackpad pin control is shared between Elan and Synaptics devices 174*5e9b1503SSimon Glass * so we have to pull it up to the bus level. 175*5e9b1503SSimon Glass */ 176*5e9b1503SSimon Glass pinctrl-names = "default"; 177*5e9b1503SSimon Glass pinctrl-0 = <&i2c4_xfer &trackpad_int>; 178*5e9b1503SSimon Glass 179*5e9b1503SSimon Glass trackpad@15 { 180*5e9b1503SSimon Glass compatible = "elan,i2c_touchpad"; 181*5e9b1503SSimon Glass interrupt-parent = <&gpio7>; 182*5e9b1503SSimon Glass interrupts = <3 IRQ_TYPE_EDGE_FALLING>; 183*5e9b1503SSimon Glass /* 184*5e9b1503SSimon Glass * Remove the inherited pinctrl settings to avoid clashing 185*5e9b1503SSimon Glass * with bus-wide ones. 186*5e9b1503SSimon Glass */ 187*5e9b1503SSimon Glass /delete-property/pinctrl-names; 188*5e9b1503SSimon Glass /delete-property/pinctrl-0; 189*5e9b1503SSimon Glass reg = <0x15>; 190*5e9b1503SSimon Glass vcc-supply = <&vcc33_io>; 191*5e9b1503SSimon Glass wakeup-source; 192*5e9b1503SSimon Glass }; 193*5e9b1503SSimon Glass 194*5e9b1503SSimon Glass trackpad@2c { 195*5e9b1503SSimon Glass compatible = "hid-over-i2c"; 196*5e9b1503SSimon Glass interrupt-parent = <&gpio7>; 197*5e9b1503SSimon Glass interrupts = <3 IRQ_TYPE_EDGE_FALLING>; 198*5e9b1503SSimon Glass reg = <0x2c>; 199*5e9b1503SSimon Glass hid-descr-addr = <0x0020>; 200*5e9b1503SSimon Glass vcc-supply = <&vcc33_io>; 201*5e9b1503SSimon Glass wakeup-source; 202*5e9b1503SSimon Glass }; 203*5e9b1503SSimon Glass}; 204