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