xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7180-trogdor-r1.dts (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
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&pp3300_hub {
48	/* pp3300_l7c is used to power the USB hub */
49	/delete-property/regulator-always-on;
50	/delete-property/regulator-boot-on;
51};
52
53&pp3300_l7c {
54	regulator-always-on;
55	regulator-boot-on;
56};
57
58&sdhc_2 {
59	status = "okay";
60};
61
62&trackpad {
63	interrupts = <58 IRQ_TYPE_EDGE_FALLING>;
64};
65
66/* PINCTRL - modifications to sc7180-trogdor.dtsi */
67
68&trackpad_int_1v8_odl {
69	pinmux {
70		pins = "gpio58";
71	};
72
73	pinconf {
74		pins = "gpio58";
75	};
76};
77
78/* PINCTRL - board-specific pinctrl */
79
80&tlmm {
81	gpio-line-names = "ESIM_MISO",
82			  "ESIM_MOSI",
83			  "ESIM_CLK",
84			  "ESIM_CS_L",
85			  "FP_TO_AP_IRQ_L",
86			  "FP_RST_L",
87			  "AP_TP_I2C_SDA",
88			  "AP_TP_I2C_SCL",
89			  "TS_RESET_L",
90			  "TS_INT_L",
91			  "FPMCU_BOOT0",
92			  "EDP_BRIJ_IRQ",
93			  "AP_EDP_BKLTEN",
94			  "",
95			  "",
96			  "EDP_BRIJ_I2C_SDA",
97			  "EDP_BRIJ_I2C_SCL",
98			  "HUB_RST_L",
99			  "PEN_RST_ODL",
100			  "AP_RAM_ID1",
101			  "AP_RAM_ID2",
102			  "PEN_IRQ_L",
103			  "FPMCU_SEL",
104			  "AMP_EN",
105			  "P_SENSOR_INT_L",
106			  "AP_SAR_SENSOR_SDA",
107			  "AP_SAR_SENSOR_SCL",
108			  "",
109			  "HP_IRQ",
110			  "AP_RAM_ID0",
111			  "EN_PP3300_DX_EDP",
112			  "AP_BRD_ID2",
113			  "BRIJ_SUSPEND",
114			  "AP_BRD_ID0",
115			  "AP_H1_SPI_MISO",
116			  "AP_H1_SPI_MOSI",
117			  "AP_H1_SPI_CLK",
118			  "AP_H1_SPI_CS_L",
119			  "",
120			  "",
121			  "",
122			  "",
123			  "H1_AP_INT_ODL",
124			  "",
125			  "UART_AP_TX_DBG_RX",
126			  "UART_DBG_TX_AP_RX",
127			  "HP_I2C_SDA",
128			  "HP_I2C_SCL",
129			  "FORCED_USB_BOOT",
130			  "",
131			  "",
132			  "AMP_DIN",
133			  "PEN_PDCT_L",
134			  "HP_BCLK",
135			  "HP_LRCLK",
136			  "HP_DOUT",
137			  "HP_DIN",
138			  "HP_MCLK",
139			  "TRACKPAD_INT_1V8_ODL",
140			  "AP_EC_SPI_MISO",
141			  "AP_EC_SPI_MOSI",
142			  "AP_EC_SPI_CLK",
143			  "AP_EC_SPI_CS_L",
144			  "AP_SPI_CLK",
145			  "AP_SPI_MOSI",
146			  "AP_SPI_MISO",
147			  /*
148			   * AP_FLASH_WP_L is crossystem ABI. Schematics
149			   * call it BIOS_FLASH_WP_L.
150			   */
151			  "AP_FLASH_WP_L",
152			  "DBG_SPI_HOLD_L",
153			  "AP_SPI_CS0_L",
154			  "SD_CD_ODL",
155			  "",
156			  "",
157			  "",
158			  "",
159			  "",
160			  "UIM2_DATA",
161			  "UIM2_CLK",
162			  "UIM2_RST",
163			  "UIM2_PRESENT",
164			  "UIM1_DATA",
165			  "UIM1_CLK",
166			  "UIM1_RST",
167			  "",
168			  "EN_PP3300_CODEC",
169			  "EN_PP3300_HUB",
170			  "",
171			  "AP_SPI_FP_MISO",
172			  "AP_SPI_FP_MOSI",
173			  "AP_SPI_FP_CLK",
174			  "AP_SPI_FP_CS_L",
175			  "AP_SKU_ID1",
176			  "AP_RST_REQ",
177			  "",
178			  "AP_BRD_ID1",
179			  "AP_EC_INT_L",
180			  "",
181			  "",
182			  "",
183			  "",
184			  "",
185			  "",
186			  "",
187			  "",
188			  "",
189			  "EDP_BRIJ_EN",
190			  "AP_SKU_ID0",
191			  "",
192			  "",
193			  "",
194			  "",
195			  "",
196			  "",
197			  "",
198			  "",
199			  "",
200			  "AP_TS_PEN_I2C_SDA",
201			  "AP_TS_PEN_I2C_SCL",
202			  "DP_HOT_PLUG_DET",
203			  "EC_IN_RW_ODL";
204};
205