xref: /freebsd/sys/contrib/device-tree/src/arm/rockchip/rk3288-veyron-speedy.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Google Veyron Speedy Rev 1+ board device tree source
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright 2015 Google, Inc
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot#include "rk3288-veyron-chromebook.dtsi"
10*f126890aSEmmanuel Vadot#include "rk3288-veyron-broadcom-bluetooth.dtsi"
11*f126890aSEmmanuel Vadot#include "../cros-ec-sbs.dtsi"
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot/ {
14*f126890aSEmmanuel Vadot	model = "Google Speedy";
15*f126890aSEmmanuel Vadot	compatible = "google,veyron-speedy-rev9", "google,veyron-speedy-rev8",
16*f126890aSEmmanuel Vadot		     "google,veyron-speedy-rev7", "google,veyron-speedy-rev6",
17*f126890aSEmmanuel Vadot		     "google,veyron-speedy-rev5", "google,veyron-speedy-rev4",
18*f126890aSEmmanuel Vadot		     "google,veyron-speedy-rev3", "google,veyron-speedy-rev2",
19*f126890aSEmmanuel Vadot		     "google,veyron-speedy", "google,veyron", "rockchip,rk3288";
20*f126890aSEmmanuel Vadot};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot&cpu_alert0 {
23*f126890aSEmmanuel Vadot	temperature = <65000>;
24*f126890aSEmmanuel Vadot};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot&cpu_alert1 {
27*f126890aSEmmanuel Vadot	temperature = <70000>;
28*f126890aSEmmanuel Vadot};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot&cpu_crit {
31*f126890aSEmmanuel Vadot	temperature = <90000>;
32*f126890aSEmmanuel Vadot};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot&edp {
35*f126890aSEmmanuel Vadot	/delete-property/pinctrl-names;
36*f126890aSEmmanuel Vadot	/delete-property/pinctrl-0;
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot	force-hpd;
39*f126890aSEmmanuel Vadot};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot&gpu_alert0 {
42*f126890aSEmmanuel Vadot	temperature = <80000>;
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&gpu_crit {
46*f126890aSEmmanuel Vadot	temperature = <90000>;
47*f126890aSEmmanuel Vadot};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot&rk808 {
50*f126890aSEmmanuel Vadot	pinctrl-names = "default";
51*f126890aSEmmanuel Vadot	pinctrl-0 = <&pmic_int_l>;
52*f126890aSEmmanuel Vadot};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot&sdmmc {
55*f126890aSEmmanuel Vadot	disable-wp;
56*f126890aSEmmanuel Vadot	pinctrl-names = "default";
57*f126890aSEmmanuel Vadot	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
58*f126890aSEmmanuel Vadot			&sdmmc_bus4>;
59*f126890aSEmmanuel Vadot};
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot&vcc_5v {
62*f126890aSEmmanuel Vadot	enable-active-high;
63*f126890aSEmmanuel Vadot	gpio = <&gpio7 RK_PC5 GPIO_ACTIVE_HIGH>;
64*f126890aSEmmanuel Vadot	pinctrl-names = "default";
65*f126890aSEmmanuel Vadot	pinctrl-0 = <&drv_5v>;
66*f126890aSEmmanuel Vadot};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot&vcc50_hdmi {
69*f126890aSEmmanuel Vadot	enable-active-high;
70*f126890aSEmmanuel Vadot	gpio = <&gpio5 RK_PC3 GPIO_ACTIVE_HIGH>;
71*f126890aSEmmanuel Vadot	pinctrl-names = "default";
72*f126890aSEmmanuel Vadot	pinctrl-0 = <&vcc50_hdmi_en>;
73*f126890aSEmmanuel Vadot};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot&gpio0 {
76*f126890aSEmmanuel Vadot	gpio-line-names = "PMIC_SLEEP_AP",
77*f126890aSEmmanuel Vadot			  "DDRIO_PWROFF",
78*f126890aSEmmanuel Vadot			  "DDRIO_RETEN",
79*f126890aSEmmanuel Vadot			  "TS3A227E_INT_L",
80*f126890aSEmmanuel Vadot			  "PMIC_INT_L",
81*f126890aSEmmanuel Vadot			  "PWR_KEY_L",
82*f126890aSEmmanuel Vadot			  "AP_LID_INT_L",
83*f126890aSEmmanuel Vadot			  "EC_IN_RW",
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot			  "AC_PRESENT_AP",
86*f126890aSEmmanuel Vadot			  /*
87*f126890aSEmmanuel Vadot			   * RECOVERY_SW_L is Chrome OS ABI.  Schematics call
88*f126890aSEmmanuel Vadot			   * it REC_MODE_L.
89*f126890aSEmmanuel Vadot			   */
90*f126890aSEmmanuel Vadot			  "RECOVERY_SW_L",
91*f126890aSEmmanuel Vadot			  "OTP_OUT",
92*f126890aSEmmanuel Vadot			  "HOST1_PWR_EN",
93*f126890aSEmmanuel Vadot			  "USBOTG_PWREN_H",
94*f126890aSEmmanuel Vadot			  "AP_WARM_RESET_H",
95*f126890aSEmmanuel Vadot			  "nFALUT2",
96*f126890aSEmmanuel Vadot			  "I2C0_SDA_PMIC",
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot			  "I2C0_SCL_PMIC",
99*f126890aSEmmanuel Vadot			  "SUSPEND_L",
100*f126890aSEmmanuel Vadot			  "USB_INT";
101*f126890aSEmmanuel Vadot};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot&gpio2 {
104*f126890aSEmmanuel Vadot	gpio-line-names = "CONFIG0",
105*f126890aSEmmanuel Vadot			  "CONFIG1",
106*f126890aSEmmanuel Vadot			  "CONFIG2",
107*f126890aSEmmanuel Vadot			  "",
108*f126890aSEmmanuel Vadot			  "",
109*f126890aSEmmanuel Vadot			  "",
110*f126890aSEmmanuel Vadot			  "",
111*f126890aSEmmanuel Vadot			  "CONFIG3",
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot			  "PWRLIMIT#_CPU",
114*f126890aSEmmanuel Vadot			  "EMMC_RST_L",
115*f126890aSEmmanuel Vadot			  "",
116*f126890aSEmmanuel Vadot			  "",
117*f126890aSEmmanuel Vadot			  "BL_PWR_EN",
118*f126890aSEmmanuel Vadot			  "AVDD_1V8_DISP_EN";
119*f126890aSEmmanuel Vadot};
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot&gpio3 {
122*f126890aSEmmanuel Vadot	gpio-line-names = "FLASH0_D0",
123*f126890aSEmmanuel Vadot			  "FLASH0_D1",
124*f126890aSEmmanuel Vadot			  "FLASH0_D2",
125*f126890aSEmmanuel Vadot			  "FLASH0_D3",
126*f126890aSEmmanuel Vadot			  "FLASH0_D4",
127*f126890aSEmmanuel Vadot			  "FLASH0_D5",
128*f126890aSEmmanuel Vadot			  "FLASH0_D6",
129*f126890aSEmmanuel Vadot			  "FLASH0_D7",
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot			  "",
132*f126890aSEmmanuel Vadot			  "",
133*f126890aSEmmanuel Vadot			  "",
134*f126890aSEmmanuel Vadot			  "",
135*f126890aSEmmanuel Vadot			  "",
136*f126890aSEmmanuel Vadot			  "",
137*f126890aSEmmanuel Vadot			  "",
138*f126890aSEmmanuel Vadot			  "",
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot			  "FLASH0_CS2/EMMC_CMD",
141*f126890aSEmmanuel Vadot			  "",
142*f126890aSEmmanuel Vadot			  "FLASH0_DQS/EMMC_CLKO";
143*f126890aSEmmanuel Vadot};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot&gpio4 {
146*f126890aSEmmanuel Vadot	gpio-line-names = "",
147*f126890aSEmmanuel Vadot			  "",
148*f126890aSEmmanuel Vadot			  "",
149*f126890aSEmmanuel Vadot			  "",
150*f126890aSEmmanuel Vadot			  "",
151*f126890aSEmmanuel Vadot			  "",
152*f126890aSEmmanuel Vadot			  "",
153*f126890aSEmmanuel Vadot			  "",
154*f126890aSEmmanuel Vadot
155*f126890aSEmmanuel Vadot			  "",
156*f126890aSEmmanuel Vadot			  "",
157*f126890aSEmmanuel Vadot			  "",
158*f126890aSEmmanuel Vadot			  "",
159*f126890aSEmmanuel Vadot			  "",
160*f126890aSEmmanuel Vadot			  "",
161*f126890aSEmmanuel Vadot			  "",
162*f126890aSEmmanuel Vadot			  "",
163*f126890aSEmmanuel Vadot
164*f126890aSEmmanuel Vadot			  "UART0_RXD",
165*f126890aSEmmanuel Vadot			  "UART0_TXD",
166*f126890aSEmmanuel Vadot			  "UART0_CTS",
167*f126890aSEmmanuel Vadot			  "UART0_RTS",
168*f126890aSEmmanuel Vadot			  "SDIO0_D0",
169*f126890aSEmmanuel Vadot			  "SDIO0_D1",
170*f126890aSEmmanuel Vadot			  "SDIO0_D2",
171*f126890aSEmmanuel Vadot			  "SDIO0_D3",
172*f126890aSEmmanuel Vadot
173*f126890aSEmmanuel Vadot			  "SDIO0_CMD",
174*f126890aSEmmanuel Vadot			  "SDIO0_CLK",
175*f126890aSEmmanuel Vadot			  "BT_DEV_WAKE",
176*f126890aSEmmanuel Vadot			  "",
177*f126890aSEmmanuel Vadot			  "WIFI_ENABLE_H",
178*f126890aSEmmanuel Vadot			  "BT_ENABLE_L",
179*f126890aSEmmanuel Vadot			  "WIFI_HOST_WAKE",
180*f126890aSEmmanuel Vadot			  "BT_HOST_WAKE";
181*f126890aSEmmanuel Vadot};
182*f126890aSEmmanuel Vadot
183*f126890aSEmmanuel Vadot&gpio5 {
184*f126890aSEmmanuel Vadot	gpio-line-names = "",
185*f126890aSEmmanuel Vadot			  "",
186*f126890aSEmmanuel Vadot			  "",
187*f126890aSEmmanuel Vadot			  "",
188*f126890aSEmmanuel Vadot			  "",
189*f126890aSEmmanuel Vadot			  "",
190*f126890aSEmmanuel Vadot			  "",
191*f126890aSEmmanuel Vadot			  "",
192*f126890aSEmmanuel Vadot
193*f126890aSEmmanuel Vadot			  "",
194*f126890aSEmmanuel Vadot			  "",
195*f126890aSEmmanuel Vadot			  "",
196*f126890aSEmmanuel Vadot			  "",
197*f126890aSEmmanuel Vadot			  "SPI0_CLK",
198*f126890aSEmmanuel Vadot			  "SPI0_CS0",
199*f126890aSEmmanuel Vadot			  "SPI0_TXD",
200*f126890aSEmmanuel Vadot			  "SPI0_RXD",
201*f126890aSEmmanuel Vadot
202*f126890aSEmmanuel Vadot			  "",
203*f126890aSEmmanuel Vadot			  "",
204*f126890aSEmmanuel Vadot			  "",
205*f126890aSEmmanuel Vadot			  "VCC50_HDMI_EN";
206*f126890aSEmmanuel Vadot};
207*f126890aSEmmanuel Vadot
208*f126890aSEmmanuel Vadot&gpio6 {
209*f126890aSEmmanuel Vadot	gpio-line-names = "I2S0_SCLK",
210*f126890aSEmmanuel Vadot			  "I2S0_LRCK_RX",
211*f126890aSEmmanuel Vadot			  "I2S0_LRCK_TX",
212*f126890aSEmmanuel Vadot			  "I2S0_SDI",
213*f126890aSEmmanuel Vadot			  "I2S0_SDO0",
214*f126890aSEmmanuel Vadot			  "HP_DET_H",
215*f126890aSEmmanuel Vadot			  "ALS_INT",		/* not connected */
216*f126890aSEmmanuel Vadot			  "INT_CODEC",
217*f126890aSEmmanuel Vadot
218*f126890aSEmmanuel Vadot			  "I2S0_CLK",
219*f126890aSEmmanuel Vadot			  "I2C2_SDA",
220*f126890aSEmmanuel Vadot			  "I2C2_SCL",
221*f126890aSEmmanuel Vadot			  "MICDET",
222*f126890aSEmmanuel Vadot			  "",
223*f126890aSEmmanuel Vadot			  "",
224*f126890aSEmmanuel Vadot			  "",
225*f126890aSEmmanuel Vadot			  "",
226*f126890aSEmmanuel Vadot
227*f126890aSEmmanuel Vadot			  "SDMMC_D0",
228*f126890aSEmmanuel Vadot			  "SDMMC_D1",
229*f126890aSEmmanuel Vadot			  "SDMMC_D2",
230*f126890aSEmmanuel Vadot			  "SDMMC_D3",
231*f126890aSEmmanuel Vadot			  "SDMMC_CLK",
232*f126890aSEmmanuel Vadot			  "SDMMC_CMD";
233*f126890aSEmmanuel Vadot};
234*f126890aSEmmanuel Vadot
235*f126890aSEmmanuel Vadot&gpio7 {
236*f126890aSEmmanuel Vadot	gpio-line-names = "LCDC_BL",
237*f126890aSEmmanuel Vadot			  "PWM_LOG",
238*f126890aSEmmanuel Vadot			  "BL_EN",
239*f126890aSEmmanuel Vadot			  "TRACKPAD_INT",
240*f126890aSEmmanuel Vadot			  "TPM_INT_H",
241*f126890aSEmmanuel Vadot			  "SDMMC_DET_L",
242*f126890aSEmmanuel Vadot			  /*
243*f126890aSEmmanuel Vadot			   * AP_FLASH_WP_L is Chrome OS ABI.  Schematics call
244*f126890aSEmmanuel Vadot			   * it FW_WP_AP.
245*f126890aSEmmanuel Vadot			   */
246*f126890aSEmmanuel Vadot			  "AP_FLASH_WP_L",
247*f126890aSEmmanuel Vadot			  "EC_INT",
248*f126890aSEmmanuel Vadot
249*f126890aSEmmanuel Vadot			  "CPU_NMI",
250*f126890aSEmmanuel Vadot			  "DVS_OK",
251*f126890aSEmmanuel Vadot			  "",
252*f126890aSEmmanuel Vadot			  "EDP_HOTPLUG",
253*f126890aSEmmanuel Vadot			  "DVS1",
254*f126890aSEmmanuel Vadot			  "nFALUT1",
255*f126890aSEmmanuel Vadot			  "LCD_EN",
256*f126890aSEmmanuel Vadot			  "DVS2",
257*f126890aSEmmanuel Vadot
258*f126890aSEmmanuel Vadot			  "VCC5V_GOOD_H",
259*f126890aSEmmanuel Vadot			  "I2C4_SDA_TP",
260*f126890aSEmmanuel Vadot			  "I2C4_SCL_TP",
261*f126890aSEmmanuel Vadot			  "I2C5_SDA_HDMI",
262*f126890aSEmmanuel Vadot			  "I2C5_SCL_HDMI",
263*f126890aSEmmanuel Vadot			  "5V_DRV",
264*f126890aSEmmanuel Vadot			  "UART2_RXD",
265*f126890aSEmmanuel Vadot			  "UART2_TXD";
266*f126890aSEmmanuel Vadot};
267*f126890aSEmmanuel Vadot
268*f126890aSEmmanuel Vadot&gpio8 {
269*f126890aSEmmanuel Vadot	gpio-line-names = "RAM_ID0",
270*f126890aSEmmanuel Vadot			  "RAM_ID1",
271*f126890aSEmmanuel Vadot			  "RAM_ID2",
272*f126890aSEmmanuel Vadot			  "RAM_ID3",
273*f126890aSEmmanuel Vadot			  "I2C1_SDA_TPM",
274*f126890aSEmmanuel Vadot			  "I2C1_SCL_TPM",
275*f126890aSEmmanuel Vadot			  "SPI2_CLK",
276*f126890aSEmmanuel Vadot			  "SPI2_CS0",
277*f126890aSEmmanuel Vadot
278*f126890aSEmmanuel Vadot			  "SPI2_RXD",
279*f126890aSEmmanuel Vadot			  "SPI2_TXD";
280*f126890aSEmmanuel Vadot};
281*f126890aSEmmanuel Vadot
282*f126890aSEmmanuel Vadot&pinctrl {
283*f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
284*f126890aSEmmanuel Vadot	pinctrl-0 = <
285*f126890aSEmmanuel Vadot		/* Common for sleep and wake, but no owners */
286*f126890aSEmmanuel Vadot		&ddr0_retention
287*f126890aSEmmanuel Vadot		&ddrio_pwroff
288*f126890aSEmmanuel Vadot		&global_pwroff
289*f126890aSEmmanuel Vadot
290*f126890aSEmmanuel Vadot		/* Wake only */
291*f126890aSEmmanuel Vadot		&suspend_l_wake
292*f126890aSEmmanuel Vadot	>;
293*f126890aSEmmanuel Vadot	pinctrl-1 = <
294*f126890aSEmmanuel Vadot		/* Common for sleep and wake, but no owners */
295*f126890aSEmmanuel Vadot		&ddr0_retention
296*f126890aSEmmanuel Vadot		&ddrio_pwroff
297*f126890aSEmmanuel Vadot		&global_pwroff
298*f126890aSEmmanuel Vadot
299*f126890aSEmmanuel Vadot		/* Sleep only */
300*f126890aSEmmanuel Vadot		&suspend_l_sleep
301*f126890aSEmmanuel Vadot	>;
302*f126890aSEmmanuel Vadot
303*f126890aSEmmanuel Vadot	buck-5v {
304*f126890aSEmmanuel Vadot		drv_5v: drv-5v {
305*f126890aSEmmanuel Vadot			rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
306*f126890aSEmmanuel Vadot		};
307*f126890aSEmmanuel Vadot	};
308*f126890aSEmmanuel Vadot
309*f126890aSEmmanuel Vadot	hdmi {
310*f126890aSEmmanuel Vadot		vcc50_hdmi_en: vcc50-hdmi-en {
311*f126890aSEmmanuel Vadot			rockchip,pins = <5 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
312*f126890aSEmmanuel Vadot		};
313*f126890aSEmmanuel Vadot	};
314*f126890aSEmmanuel Vadot
315*f126890aSEmmanuel Vadot	pmic {
316*f126890aSEmmanuel Vadot		dvs_1: dvs-1 {
317*f126890aSEmmanuel Vadot			rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
318*f126890aSEmmanuel Vadot		};
319*f126890aSEmmanuel Vadot
320*f126890aSEmmanuel Vadot		dvs_2: dvs-2 {
321*f126890aSEmmanuel Vadot			rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
322*f126890aSEmmanuel Vadot		};
323*f126890aSEmmanuel Vadot	};
324*f126890aSEmmanuel Vadot};
325