1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google Trogdor board device tree source
4 *
5 * Copyright 2020 Google LLC.
6 */
7
8/dts-v1/;
9
10#include "sc7180-trogdor.dtsi"
11/* Must come after sc7180-trogdor.dtsi to modify cros_ec */
12#include <arm/cros-ec-keyboard.dtsi>
13#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
14
15/ {
16	model = "Google Trogdor (rev1+)";
17	compatible = "google,trogdor", "qcom,sc7180";
18};
19
20&ap_tp_i2c {
21	status = "okay";
22};
23
24ap_ts_pen_1v8: &i2c4 {
25	status = "okay";
26	clock-frequency = <400000>;
27
28	ap_ts: touchscreen@10 {
29		compatible = "elan,ekth3500";
30		reg = <0x10>;
31		pinctrl-names = "default";
32		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
33
34		interrupt-parent = <&tlmm>;
35		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
36
37		vcc33-supply = <&pp3300_ts>;
38
39		reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
40	};
41};
42
43&panel {
44	compatible = "auo,b116xa01";
45};
46
47&sdhc_2 {
48	status = "okay";
49};
50
51&trackpad {
52	interrupts = <58 IRQ_TYPE_EDGE_FALLING>;
53};
54
55&usb_hub_2_x {
56	 vdd-supply = <&pp3300_l7c>;
57};
58
59&usb_hub_3_x {
60	 vdd-supply = <&pp3300_l7c>;
61};
62
63/* PINCTRL - modifications to sc7180-trogdor.dtsi */
64
65&trackpad_int_1v8_odl {
66	pinmux {
67		pins = "gpio58";
68	};
69
70	pinconf {
71		pins = "gpio58";
72	};
73};
74
75/* PINCTRL - board-specific pinctrl */
76
77&tlmm {
78	gpio-line-names = "ESIM_MISO",
79			  "ESIM_MOSI",
80			  "ESIM_CLK",
81			  "ESIM_CS_L",
82			  "FP_TO_AP_IRQ_L",
83			  "FP_RST_L",
84			  "AP_TP_I2C_SDA",
85			  "AP_TP_I2C_SCL",
86			  "TS_RESET_L",
87			  "TS_INT_L",
88			  "FPMCU_BOOT0",
89			  "EDP_BRIJ_IRQ",
90			  "AP_EDP_BKLTEN",
91			  "",
92			  "",
93			  "EDP_BRIJ_I2C_SDA",
94			  "EDP_BRIJ_I2C_SCL",
95			  "HUB_RST_L",
96			  "PEN_RST_ODL",
97			  "AP_RAM_ID1",
98			  "AP_RAM_ID2",
99			  "PEN_IRQ_L",
100			  "FPMCU_SEL",
101			  "AMP_EN",
102			  "P_SENSOR_INT_L",
103			  "AP_SAR_SENSOR_SDA",
104			  "AP_SAR_SENSOR_SCL",
105			  "",
106			  "HP_IRQ",
107			  "AP_RAM_ID0",
108			  "EN_PP3300_DX_EDP",
109			  "AP_BRD_ID2",
110			  "BRIJ_SUSPEND",
111			  "AP_BRD_ID0",
112			  "AP_H1_SPI_MISO",
113			  "AP_H1_SPI_MOSI",
114			  "AP_H1_SPI_CLK",
115			  "AP_H1_SPI_CS_L",
116			  "",
117			  "",
118			  "",
119			  "",
120			  "H1_AP_INT_ODL",
121			  "",
122			  "UART_AP_TX_DBG_RX",
123			  "UART_DBG_TX_AP_RX",
124			  "HP_I2C_SDA",
125			  "HP_I2C_SCL",
126			  "FORCED_USB_BOOT",
127			  "",
128			  "",
129			  "AMP_DIN",
130			  "PEN_PDCT_L",
131			  "HP_BCLK",
132			  "HP_LRCLK",
133			  "HP_DOUT",
134			  "HP_DIN",
135			  "HP_MCLK",
136			  "TRACKPAD_INT_1V8_ODL",
137			  "AP_EC_SPI_MISO",
138			  "AP_EC_SPI_MOSI",
139			  "AP_EC_SPI_CLK",
140			  "AP_EC_SPI_CS_L",
141			  "AP_SPI_CLK",
142			  "AP_SPI_MOSI",
143			  "AP_SPI_MISO",
144			  /*
145			   * AP_FLASH_WP_L is crossystem ABI. Schematics
146			   * call it BIOS_FLASH_WP_L.
147			   */
148			  "AP_FLASH_WP_L",
149			  "DBG_SPI_HOLD_L",
150			  "AP_SPI_CS0_L",
151			  "SD_CD_ODL",
152			  "",
153			  "",
154			  "",
155			  "",
156			  "",
157			  "UIM2_DATA",
158			  "UIM2_CLK",
159			  "UIM2_RST",
160			  "UIM2_PRESENT",
161			  "UIM1_DATA",
162			  "UIM1_CLK",
163			  "UIM1_RST",
164			  "",
165			  "EN_PP3300_CODEC",
166			  "EN_PP3300_HUB",
167			  "",
168			  "AP_SPI_FP_MISO",
169			  "AP_SPI_FP_MOSI",
170			  "AP_SPI_FP_CLK",
171			  "AP_SPI_FP_CS_L",
172			  "AP_SKU_ID1",
173			  "AP_RST_REQ",
174			  "",
175			  "AP_BRD_ID1",
176			  "AP_EC_INT_L",
177			  "",
178			  "",
179			  "",
180			  "",
181			  "",
182			  "",
183			  "",
184			  "",
185			  "",
186			  "EDP_BRIJ_EN",
187			  "AP_SKU_ID0",
188			  "",
189			  "",
190			  "",
191			  "",
192			  "",
193			  "",
194			  "",
195			  "",
196			  "",
197			  "AP_TS_PEN_I2C_SDA",
198			  "AP_TS_PEN_I2C_SCL",
199			  "DP_HOT_PLUG_DET",
200			  "EC_IN_RW_ODL";
201};
202