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