1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google CoachZ board device tree source
4 *
5 * Copyright 2020 Google LLC.
6 */
7
8#include "sc7180.dtsi"
9
10ap_ec_spi: &spi6 {};
11ap_h1_spi: &spi0 {};
12
13#include "sc7180-trogdor.dtsi"
14
15/* Deleted nodes from trogdor.dtsi */
16
17/delete-node/ &alc5682;
18/delete-node/ &pp3300_codec;
19
20/ {
21	/* BOARD-SPECIFIC TOP LEVEL NODES */
22
23	adau7002: audio-codec-1 {
24		compatible = "adi,adau7002";
25		IOVDD-supply = <&pp1800_l15a>;
26		#sound-dai-cells = <0>;
27	};
28};
29
30&ap_spi_fp {
31	status = "okay";
32};
33
34&backlight {
35	pwms = <&cros_ec_pwm 0>;
36};
37
38&camcc {
39	status = "okay";
40};
41
42&cros_ec {
43	cros_ec_proximity: proximity {
44		compatible = "google,cros-ec-mkbp-proximity";
45		label = "proximity-wifi";
46	};
47};
48
49ap_ts_pen_1v8: &i2c4 {
50	status = "okay";
51	clock-frequency = <400000>;
52
53	ap_ts: touchscreen@5d {
54		compatible = "goodix,gt7375p";
55		reg = <0x5d>;
56		pinctrl-names = "default";
57		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
58
59		interrupt-parent = <&tlmm>;
60		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
61
62		reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
63
64		vdd-supply = <&pp3300_ts>;
65	};
66};
67
68&i2c7 {
69	status = "disabled";
70};
71
72&i2c9 {
73	status = "disabled";
74};
75
76&panel {
77	compatible = "boe,nv110wtm-n61";
78};
79
80&pp3300_dx_edp {
81	gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>;
82};
83
84&sdhc_2 {
85	status = "okay";
86};
87
88&sn65dsi86_out {
89	data-lanes = <0 1 2 3>;
90};
91
92&sound {
93	compatible = "google,sc7180-coachz";
94	model = "sc7180-adau7002-max98357a";
95	audio-routing = "PDM_DAT", "DMIC";
96
97	pinctrl-names = "default";
98	pinctrl-0 = <&dmic_clk_en>;
99};
100
101&sound_multimedia0_codec {
102	sound-dai = <&adau7002>;
103};
104
105/* PINCTRL - modifications to sc7180-trogdor.dtsi */
106
107&en_pp3300_dx_edp {
108	pinmux  {
109		pins = "gpio67";
110	};
111
112	pinconf {
113		pins = "gpio67";
114	};
115};
116
117&ts_reset_l {
118	pinconf {
119		/*
120		 * We want reset state by default and it will be up to the
121		 * driver to disable this when it's ready.
122		 */
123		output-low;
124	};
125};
126
127/* PINCTRL - board-specific pinctrl */
128
129&tlmm {
130	gpio-line-names = "HUB_RST_L",
131			  "AP_RAM_ID0",
132			  "AP_SKU_ID2",
133			  "AP_RAM_ID1",
134			  "FP_TO_AP_IRQ_L",
135			  "AP_RAM_ID2",
136			  "UF_CAM_EN",
137			  "WF_CAM_EN",
138			  "TS_RESET_L",
139			  "TS_INT_L",
140			  "FPMCU_BOOT0",
141			  "EDP_BRIJ_IRQ",
142			  "AP_EDP_BKLTEN",
143			  "UF_CAM_MCLK",
144			  "WF_CAM_CLK",
145			  "EDP_BRIJ_I2C_SDA",
146			  "EDP_BRIJ_I2C_SCL",
147			  "UF_CAM_SDA",
148			  "UF_CAM_SCL",
149			  "WF_CAM_SDA",
150			  "WF_CAM_SCL",
151			  "WLC_IRQ",
152			  "FP_RST_L",
153			  "AMP_EN",
154			  "WLC_NRST",
155			  "AP_SAR_SENSOR_SDA",
156			  "AP_SAR_SENSOR_SCL",
157			  "",
158			  "",
159			  "WF_CAM_RST_L",
160			  "UF_CAM_RST_L",
161			  "AP_BRD_ID2",
162			  "BRIJ_SUSPEND",
163			  "AP_BRD_ID0",
164			  "AP_H1_SPI_MISO",
165			  "AP_H1_SPI_MOSI",
166			  "AP_H1_SPI_CLK",
167			  "AP_H1_SPI_CS_L",
168			  "",
169			  "",
170			  "",
171			  "",
172			  "H1_AP_INT_ODL",
173			  "",
174			  "UART_AP_TX_DBG_RX",
175			  "UART_DBG_TX_AP_RX",
176			  "",
177			  "",
178			  "FORCED_USB_BOOT",
179			  "AMP_BCLK",
180			  "AMP_LRCLK",
181			  "AMP_DIN",
182			  "",
183			  "HP_BCLK",
184			  "HP_LRCLK",
185			  "HP_DOUT",
186			  "HP_DIN",
187			  "HP_MCLK",
188			  "AP_SKU_ID0",
189			  "AP_EC_SPI_MISO",
190			  "AP_EC_SPI_MOSI",
191			  "AP_EC_SPI_CLK",
192			  "AP_EC_SPI_CS_L",
193			  "AP_SPI_CLK",
194			  "AP_SPI_MOSI",
195			  "AP_SPI_MISO",
196			  /*
197			   * AP_FLASH_WP_L is crossystem ABI. Schematics
198			   * call it BIOS_FLASH_WP_L.
199			   */
200			  "AP_FLASH_WP_L",
201			  "EN_PP3300_DX_EDP",
202			  "AP_SPI_CS0_L",
203			  "SD_CD_ODL",
204			  "",
205			  "",
206			  "",
207			  "",
208			  "EN_FP_RAILS",
209			  "UIM2_DATA",
210			  "UIM2_CLK",
211			  "UIM2_RST",
212			  "UIM2_PRESENT_L",
213			  "UIM1_DATA",
214			  "UIM1_CLK",
215			  "UIM1_RST",
216			  "",
217			  "",
218			  "HUB_EN",
219			  "",
220			  "AP_SPI_FP_MISO",
221			  "AP_SPI_FP_MOSI",
222			  "AP_SPI_FP_CLK",
223			  "AP_SPI_FP_CS_L",
224			  "AP_SKU_ID1",
225			  "AP_RST_REQ",
226			  "",
227			  "AP_BRD_ID1",
228			  "AP_EC_INT_L",
229			  "",
230			  "",
231			  "",
232			  "",
233			  "",
234			  "",
235			  "",
236			  "",
237			  "",
238			  "EDP_BRIJ_EN",
239			  "",
240			  "",
241			  "",
242			  "",
243			  "",
244			  "",
245			  "",
246			  "",
247			  "",
248			  "",
249			  "AP_TS_PEN_I2C_SDA",
250			  "AP_TS_PEN_I2C_SCL",
251			  "DP_HOT_PLUG_DET",
252			  "EC_IN_RW_ODL";
253
254	dmic_clk_en: dmic_clk_en {
255		pinmux {
256			pins = "gpio83";
257			function = "gpio";
258		};
259
260		pinconf {
261			pins = "gpio83";
262			drive-strength = <8>;
263			bias-pull-up;
264		};
265	};
266};
267