xref: /linux/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi (revision 67f49869106f78882a8a09b736d4884be85aba18)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google Lazor board device tree source
4 *
5 * Copyright 2020 Google LLC.
6 */
7
8/* This file must be included after sc7180-trogdor.dtsi */
9#include <arm/cros-ec-keyboard.dtsi>
10
11&ap_sar_sensor {
12	semtech,cs0-ground;
13	semtech,combined-sensors = <3>;
14	semtech,resolution = "fine";
15	semtech,startup-sensor = <0>;
16	semtech,proxraw-strength = <8>;
17	semtech,avg-pos-strength = <64>;
18};
19
20&ap_tp_i2c {
21	status = "okay";
22};
23
24/*
25 * Lazor is stuffed with a 47k NTC as charger thermistor which currently is
26 * not supported by the PM6150 ADC driver. Disable the charger thermal zone
27 * to avoid using bogus temperature values.
28 */
29&charger_thermal {
30	status = "disabled";
31};
32
33ap_ts_pen_1v8: &i2c4 {
34	status = "okay";
35	clock-frequency = <400000>;
36
37	ap_ts: touchscreen@10 {
38		compatible = "hid-over-i2c";
39		reg = <0x10>;
40		pinctrl-names = "default";
41		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
42
43		interrupt-parent = <&tlmm>;
44		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
45
46		post-power-on-delay-ms = <20>;
47		hid-descr-addr = <0x0001>;
48
49		vdd-supply = <&pp3300_ts>;
50	};
51};
52
53&panel {
54	compatible = "boe,nv133fhm-n62";
55};
56
57&pm6150_adc {
58	/delete-node/ charger-thermistor@4f;
59};
60
61&pm6150_adc_tm {
62	status = "disabled";
63
64	/delete-node/ charger-thermistor@0;
65};
66
67&trackpad {
68	interrupts = <58 IRQ_TYPE_EDGE_FALLING>;
69};
70
71&wifi {
72	qcom,ath10k-calibration-variant = "GO_LAZOR";
73};
74
75/* PINCTRL - modifications to sc7180-trogdor.dtsi */
76
77&trackpad_int_1v8_odl {
78	pins = "gpio58";
79};
80
81&ts_reset_l {
82	/* This pin is not connected on -rev0, pull up to park. */
83	/delete-property/bias-disable;
84	bias-pull-up;
85};
86
87/* PINCTRL - board-specific pinctrl */
88
89&tlmm {
90	gpio-line-names = "ESIM_MISO",
91			  "ESIM_MOSI",
92			  "ESIM_CLK",
93			  "ESIM_CS_L",
94			  "",
95			  "",
96			  "AP_TP_I2C_SDA",
97			  "AP_TP_I2C_SCL",
98			  "TS_RESET_L",
99			  "TS_INT_L",
100			  "",
101			  "EDP_BRIJ_IRQ",
102			  "AP_EDP_BKLTEN",
103			  "AP_RAM_ID2",
104			  "",
105			  "EDP_BRIJ_I2C_SDA",
106			  "EDP_BRIJ_I2C_SCL",
107			  "HUB_RST_L",
108			  "",
109			  "AP_RAM_ID1",
110			  "AP_SKU_ID2",
111			  "",
112			  "",
113			  "AMP_EN",
114			  "P_SENSOR_INT_L",
115			  "AP_SAR_SENSOR_SDA",
116			  "AP_SAR_SENSOR_SCL",
117			  "",
118			  "HP_IRQ",
119			  "AP_RAM_ID0",
120			  "EN_PP3300_DX_EDP",
121			  "AP_BRD_ID2",
122			  "BRIJ_SUSPEND",
123			  "AP_BRD_ID0",
124			  "AP_H1_SPI_MISO",
125			  "AP_H1_SPI_MOSI",
126			  "AP_H1_SPI_CLK",
127			  "AP_H1_SPI_CS_L",
128			  "",
129			  "",
130			  "",
131			  "",
132			  "H1_AP_INT_ODL",
133			  "",
134			  "UART_AP_TX_DBG_RX",
135			  "UART_DBG_TX_AP_RX",
136			  "HP_I2C_SDA",
137			  "HP_I2C_SCL",
138			  "FORCED_USB_BOOT",
139			  "",
140			  "",
141			  "AMP_DIN",
142			  "",
143			  "HP_BCLK",
144			  "HP_LRCLK",
145			  "HP_DOUT",
146			  "HP_DIN",
147			  "HP_MCLK",
148			  "TRACKPAD_INT_1V8_ODL",
149			  "AP_EC_SPI_MISO",
150			  "AP_EC_SPI_MOSI",
151			  "AP_EC_SPI_CLK",
152			  "AP_EC_SPI_CS_L",
153			  "AP_SPI_CLK",
154			  "AP_SPI_MOSI",
155			  "AP_SPI_MISO",
156			  /*
157			   * AP_FLASH_WP_L is crossystem ABI. Schematics
158			   * call it BIOS_FLASH_WP_L.
159			   */
160			  "AP_FLASH_WP_L",
161			  "DBG_SPI_HOLD_L",
162			  "AP_SPI_CS0_L",
163			  "",
164			  "",
165			  "",
166			  "",
167			  "",
168			  "",
169			  "UIM2_DATA",
170			  "UIM2_CLK",
171			  "UIM2_RST",
172			  "UIM2_PRESENT",
173			  "UIM1_DATA",
174			  "UIM1_CLK",
175			  "UIM1_RST",
176			  "",
177			  "EN_PP3300_CODEC",
178			  "EN_PP3300_HUB",
179			  "",
180			  "",
181			  "",
182			  "",
183			  "",
184			  "AP_SKU_ID1",
185			  "AP_RST_REQ",
186			  "",
187			  "AP_BRD_ID1",
188			  "AP_EC_INT_L",
189			  "",
190			  "",
191			  "",
192			  "",
193			  "",
194			  "",
195			  "",
196			  "",
197			  "",
198			  "EDP_BRIJ_EN",
199			  "AP_SKU_ID0",
200			  "",
201			  "",
202			  "",
203			  "",
204			  "",
205			  "",
206			  "",
207			  "",
208			  "",
209			  "AP_TS_PEN_I2C_SDA",
210			  "AP_TS_PEN_I2C_SCL",
211			  "DP_HOT_PLUG_DET",
212			  "EC_IN_RW_ODL";
213};
214