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	status = "disabled";
59
60	/delete-node/ charger-thermistor@4f;
61};
62
63&pm6150_adc_tm {
64	status = "disabled";
65
66	/delete-node/ charger-thermistor@0;
67};
68
69&trackpad {
70	interrupts = <58 IRQ_TYPE_EDGE_FALLING>;
71};
72
73&wifi {
74	qcom,ath10k-calibration-variant = "GO_LAZOR";
75};
76
77/* PINCTRL - modifications to sc7180-trogdor.dtsi */
78
79&trackpad_int_1v8_odl {
80	pinmux {
81		pins = "gpio58";
82	};
83
84	pinconf {
85		pins = "gpio58";
86	};
87};
88
89&ts_reset_l {
90	pinconf {
91		/* This pin is not connected on -rev0, pull up to park. */
92		/delete-property/bias-disable;
93		bias-pull-up;
94	};
95};
96
97/* PINCTRL - board-specific pinctrl */
98
99&tlmm {
100	gpio-line-names = "ESIM_MISO",
101			  "ESIM_MOSI",
102			  "ESIM_CLK",
103			  "ESIM_CS_L",
104			  "",
105			  "",
106			  "AP_TP_I2C_SDA",
107			  "AP_TP_I2C_SCL",
108			  "TS_RESET_L",
109			  "TS_INT_L",
110			  "",
111			  "EDP_BRIJ_IRQ",
112			  "AP_EDP_BKLTEN",
113			  "AP_RAM_ID2",
114			  "",
115			  "EDP_BRIJ_I2C_SDA",
116			  "EDP_BRIJ_I2C_SCL",
117			  "HUB_RST_L",
118			  "",
119			  "AP_RAM_ID1",
120			  "AP_SKU_ID2",
121			  "",
122			  "",
123			  "AMP_EN",
124			  "P_SENSOR_INT_L",
125			  "AP_SAR_SENSOR_SDA",
126			  "AP_SAR_SENSOR_SCL",
127			  "",
128			  "HP_IRQ",
129			  "AP_RAM_ID0",
130			  "EN_PP3300_DX_EDP",
131			  "AP_BRD_ID2",
132			  "BRIJ_SUSPEND",
133			  "AP_BRD_ID0",
134			  "AP_H1_SPI_MISO",
135			  "AP_H1_SPI_MOSI",
136			  "AP_H1_SPI_CLK",
137			  "AP_H1_SPI_CS_L",
138			  "",
139			  "",
140			  "",
141			  "",
142			  "H1_AP_INT_ODL",
143			  "",
144			  "UART_AP_TX_DBG_RX",
145			  "UART_DBG_TX_AP_RX",
146			  "HP_I2C_SDA",
147			  "HP_I2C_SCL",
148			  "FORCED_USB_BOOT",
149			  "",
150			  "",
151			  "AMP_DIN",
152			  "",
153			  "HP_BCLK",
154			  "HP_LRCLK",
155			  "HP_DOUT",
156			  "HP_DIN",
157			  "HP_MCLK",
158			  "TRACKPAD_INT_1V8_ODL",
159			  "AP_EC_SPI_MISO",
160			  "AP_EC_SPI_MOSI",
161			  "AP_EC_SPI_CLK",
162			  "AP_EC_SPI_CS_L",
163			  "AP_SPI_CLK",
164			  "AP_SPI_MOSI",
165			  "AP_SPI_MISO",
166			  /*
167			   * AP_FLASH_WP_L is crossystem ABI. Schematics
168			   * call it BIOS_FLASH_WP_L.
169			   */
170			  "AP_FLASH_WP_L",
171			  "DBG_SPI_HOLD_L",
172			  "AP_SPI_CS0_L",
173			  "",
174			  "",
175			  "",
176			  "",
177			  "",
178			  "",
179			  "UIM2_DATA",
180			  "UIM2_CLK",
181			  "UIM2_RST",
182			  "UIM2_PRESENT",
183			  "UIM1_DATA",
184			  "UIM1_CLK",
185			  "UIM1_RST",
186			  "",
187			  "EN_PP3300_CODEC",
188			  "EN_PP3300_HUB",
189			  "",
190			  "",
191			  "",
192			  "",
193			  "",
194			  "AP_SKU_ID1",
195			  "AP_RST_REQ",
196			  "",
197			  "AP_BRD_ID1",
198			  "AP_EC_INT_L",
199			  "",
200			  "",
201			  "",
202			  "",
203			  "",
204			  "",
205			  "",
206			  "",
207			  "",
208			  "EDP_BRIJ_EN",
209			  "AP_SKU_ID0",
210			  "",
211			  "",
212			  "",
213			  "",
214			  "",
215			  "",
216			  "",
217			  "",
218			  "",
219			  "AP_TS_PEN_I2C_SDA",
220			  "AP_TS_PEN_I2C_SCL",
221			  "DP_HOT_PLUG_DET",
222			  "EC_IN_RW_ODL";
223};
224