1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Google Veyron (and derivatives) board device tree source 4*724ba675SRob Herring * Chromebook specific parts 5*724ba675SRob Herring * 6*724ba675SRob Herring * Copyright 2015 Google, Inc 7*724ba675SRob Herring */ 8*724ba675SRob Herring 9*724ba675SRob Herring#include <dt-bindings/clock/rockchip,rk808.h> 10*724ba675SRob Herring#include <dt-bindings/input/input.h> 11*724ba675SRob Herring#include "rk3288-veyron.dtsi" 12*724ba675SRob Herring#include "rk3288-veyron-analog-audio.dtsi" 13*724ba675SRob Herring#include "rk3288-veyron-edp.dtsi" 14*724ba675SRob Herring#include "rk3288-veyron-sdmmc.dtsi" 15*724ba675SRob Herring 16*724ba675SRob Herring/ { 17*724ba675SRob Herring aliases { 18*724ba675SRob Herring /* Assign 20 so we don't get confused w/ builtin ones */ 19*724ba675SRob Herring i2c20 = &i2c_tunnel; 20*724ba675SRob Herring }; 21*724ba675SRob Herring 22*724ba675SRob Herring gpio-charger { 23*724ba675SRob Herring compatible = "gpio-charger"; 24*724ba675SRob Herring charger-type = "mains"; 25*724ba675SRob Herring gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; 26*724ba675SRob Herring pinctrl-names = "default"; 27*724ba675SRob Herring pinctrl-0 = <&ac_present_ap>; 28*724ba675SRob Herring }; 29*724ba675SRob Herring 30*724ba675SRob Herring lid_switch: lid-switch { 31*724ba675SRob Herring compatible = "gpio-keys"; 32*724ba675SRob Herring pinctrl-names = "default"; 33*724ba675SRob Herring pinctrl-0 = <&ap_lid_int_l>; 34*724ba675SRob Herring 35*724ba675SRob Herring switch-lid { 36*724ba675SRob Herring label = "Lid"; 37*724ba675SRob Herring gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; 38*724ba675SRob Herring wakeup-source; 39*724ba675SRob Herring linux,code = <SW_LID>; 40*724ba675SRob Herring linux,input-type = <EV_SW>; 41*724ba675SRob Herring debounce-interval = <1>; 42*724ba675SRob Herring }; 43*724ba675SRob Herring }; 44*724ba675SRob Herring 45*724ba675SRob Herring /* A non-regulated voltage from power supply or battery */ 46*724ba675SRob Herring vccsys: vccsys { 47*724ba675SRob Herring compatible = "regulator-fixed"; 48*724ba675SRob Herring regulator-name = "vccsys"; 49*724ba675SRob Herring regulator-boot-on; 50*724ba675SRob Herring regulator-always-on; 51*724ba675SRob Herring }; 52*724ba675SRob Herring 53*724ba675SRob Herring vcc33_sys: vcc33-sys { 54*724ba675SRob Herring vin-supply = <&vccsys>; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring vcc_5v: vcc-5v { 58*724ba675SRob Herring vin-supply = <&vccsys>; 59*724ba675SRob Herring }; 60*724ba675SRob Herring 61*724ba675SRob Herring /* This turns on vbus for host1 (dwc2) */ 62*724ba675SRob Herring vcc5_host1: vcc5-host1-regulator { 63*724ba675SRob Herring compatible = "regulator-fixed"; 64*724ba675SRob Herring enable-active-high; 65*724ba675SRob Herring gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; 66*724ba675SRob Herring pinctrl-names = "default"; 67*724ba675SRob Herring pinctrl-0 = <&host1_pwr_en>; 68*724ba675SRob Herring regulator-name = "vcc5_host1"; 69*724ba675SRob Herring regulator-always-on; 70*724ba675SRob Herring regulator-boot-on; 71*724ba675SRob Herring }; 72*724ba675SRob Herring 73*724ba675SRob Herring /* This turns on vbus for otg for host mode (dwc2) */ 74*724ba675SRob Herring vcc5v_otg: vcc5v-otg-regulator { 75*724ba675SRob Herring compatible = "regulator-fixed"; 76*724ba675SRob Herring enable-active-high; 77*724ba675SRob Herring gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; 78*724ba675SRob Herring pinctrl-names = "default"; 79*724ba675SRob Herring pinctrl-0 = <&usbotg_pwren_h>; 80*724ba675SRob Herring regulator-name = "vcc5_host2"; 81*724ba675SRob Herring regulator-always-on; 82*724ba675SRob Herring regulator-boot-on; 83*724ba675SRob Herring }; 84*724ba675SRob Herring}; 85*724ba675SRob Herring 86*724ba675SRob Herring&rk808 { 87*724ba675SRob Herring vcc11-supply = <&vcc_5v>; 88*724ba675SRob Herring 89*724ba675SRob Herring regulators { 90*724ba675SRob Herring vcc33_ccd: LDO_REG8 { 91*724ba675SRob Herring regulator-name = "vcc33_ccd"; 92*724ba675SRob Herring regulator-always-on; 93*724ba675SRob Herring regulator-boot-on; 94*724ba675SRob Herring regulator-min-microvolt = <3300000>; 95*724ba675SRob Herring regulator-max-microvolt = <3300000>; 96*724ba675SRob Herring regulator-state-mem { 97*724ba675SRob Herring regulator-off-in-suspend; 98*724ba675SRob Herring }; 99*724ba675SRob Herring }; 100*724ba675SRob Herring }; 101*724ba675SRob Herring}; 102*724ba675SRob Herring 103*724ba675SRob Herring&spi0 { 104*724ba675SRob Herring status = "okay"; 105*724ba675SRob Herring 106*724ba675SRob Herring cros_ec: ec@0 { 107*724ba675SRob Herring compatible = "google,cros-ec-spi"; 108*724ba675SRob Herring reg = <0>; 109*724ba675SRob Herring google,cros-ec-spi-pre-delay = <30>; 110*724ba675SRob Herring interrupt-parent = <&gpio7>; 111*724ba675SRob Herring interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>; 112*724ba675SRob Herring pinctrl-names = "default"; 113*724ba675SRob Herring pinctrl-0 = <&ec_int>; 114*724ba675SRob Herring spi-max-frequency = <3000000>; 115*724ba675SRob Herring 116*724ba675SRob Herring i2c_tunnel: i2c-tunnel { 117*724ba675SRob Herring compatible = "google,cros-ec-i2c-tunnel"; 118*724ba675SRob Herring google,remote-bus = <0>; 119*724ba675SRob Herring #address-cells = <1>; 120*724ba675SRob Herring #size-cells = <0>; 121*724ba675SRob Herring }; 122*724ba675SRob Herring }; 123*724ba675SRob Herring}; 124*724ba675SRob Herring 125*724ba675SRob Herring&i2c4 { 126*724ba675SRob Herring trackpad@15 { 127*724ba675SRob Herring compatible = "elan,ekth3000"; 128*724ba675SRob Herring reg = <0x15>; 129*724ba675SRob Herring interrupt-parent = <&gpio7>; 130*724ba675SRob Herring interrupts = <RK_PA3 IRQ_TYPE_EDGE_FALLING>; 131*724ba675SRob Herring pinctrl-names = "default"; 132*724ba675SRob Herring pinctrl-0 = <&trackpad_int>; 133*724ba675SRob Herring vcc-supply = <&vcc33_io>; 134*724ba675SRob Herring wakeup-source; 135*724ba675SRob Herring }; 136*724ba675SRob Herring}; 137*724ba675SRob Herring 138*724ba675SRob Herring&pinctrl { 139*724ba675SRob Herring buttons { 140*724ba675SRob Herring ap_lid_int_l: ap-lid-int-l { 141*724ba675SRob Herring rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; 142*724ba675SRob Herring }; 143*724ba675SRob Herring }; 144*724ba675SRob Herring 145*724ba675SRob Herring charger { 146*724ba675SRob Herring ac_present_ap: ac-present-ap { 147*724ba675SRob Herring rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; 148*724ba675SRob Herring }; 149*724ba675SRob Herring }; 150*724ba675SRob Herring 151*724ba675SRob Herring cros-ec { 152*724ba675SRob Herring ec_int: ec-int { 153*724ba675SRob Herring rockchip,pins = <7 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; 154*724ba675SRob Herring }; 155*724ba675SRob Herring }; 156*724ba675SRob Herring 157*724ba675SRob Herring suspend { 158*724ba675SRob Herring suspend_l_wake: suspend-l-wake { 159*724ba675SRob Herring rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_output_low>; 160*724ba675SRob Herring }; 161*724ba675SRob Herring 162*724ba675SRob Herring suspend_l_sleep: suspend-l-sleep { 163*724ba675SRob Herring rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_output_high>; 164*724ba675SRob Herring }; 165*724ba675SRob Herring }; 166*724ba675SRob Herring 167*724ba675SRob Herring trackpad { 168*724ba675SRob Herring trackpad_int: trackpad-int { 169*724ba675SRob Herring rockchip,pins = <7 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 170*724ba675SRob Herring }; 171*724ba675SRob Herring }; 172*724ba675SRob Herring 173*724ba675SRob Herring usb-host { 174*724ba675SRob Herring host1_pwr_en: host1-pwr-en { 175*724ba675SRob Herring rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; 176*724ba675SRob Herring }; 177*724ba675SRob Herring 178*724ba675SRob Herring usbotg_pwren_h: usbotg-pwren-h { 179*724ba675SRob Herring rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 180*724ba675SRob Herring }; 181*724ba675SRob Herring }; 182*724ba675SRob Herring}; 183*724ba675SRob Herring 184*724ba675SRob Herring#include "../cros-ec-keyboard.dtsi" 185