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#include "sc7180.dtsi"
9
10ap_ec_spi: &spi6 {};
11ap_h1_spi: &spi0 {};
12
13#include "sc7180-trogdor.dtsi"
14
15/ {
16	panel: panel {
17		compatible = "boe,nv133fhm-n62";
18		power-supply = <&pp3300_dx_edp>;
19		backlight = <&backlight>;
20		hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>;
21
22		ports {
23			port {
24				panel_in_edp: endpoint {
25					remote-endpoint = <&sn65dsi86_out>;
26				};
27			};
28		};
29	};
30};
31
32&ap_sar_sensor {
33	status = "okay";
34};
35
36ap_ts_pen_1v8: &i2c4 {
37	status = "okay";
38	clock-frequency = <400000>;
39
40	ap_ts: touchscreen@10 {
41		compatible = "hid-over-i2c";
42		reg = <0x10>;
43		pinctrl-names = "default";
44		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
45
46		interrupt-parent = <&tlmm>;
47		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
48
49		post-power-on-delay-ms = <20>;
50		hid-descr-addr = <0x0001>;
51
52		vdd-supply = <&pp3300_ts>;
53	};
54};
55
56/* PINCTRL - modifications to sc7180-trogdor.dtsi */
57
58&ts_reset_l {
59	pinconf {
60		/* This pin is not connected on -rev0, pull up to park. */
61		/delete-property/bias-disable;
62		bias-pull-up;
63	};
64};
65
66/* PINCTRL - board-specific pinctrl */
67
68&tlmm {
69	gpio-line-names = "ESIM_MISO",
70			  "ESIM_MOSI",
71			  "ESIM_CLK",
72			  "ESIM_CS_L",
73			  "",
74			  "",
75			  "AP_TP_I2C_SDA",
76			  "AP_TP_I2C_SCL",
77			  "TS_RESET_L",
78			  "TS_INT_L",
79			  "",
80			  "EDP_BRIJ_IRQ",
81			  "AP_EDP_BKLTEN",
82			  "AP_RAM_ID2",
83			  "",
84			  "EDP_BRIJ_I2C_SDA",
85			  "EDP_BRIJ_I2C_SCL",
86			  "HUB_RST_L",
87			  "",
88			  "AP_RAM_ID1",
89			  "AP_SKU_ID2",
90			  "",
91			  "",
92			  "AMP_EN",
93			  "P_SENSOR_INT_L",
94			  "AP_SAR_SENSOR_SDA",
95			  "AP_SAR_SENSOR_SCL",
96			  "",
97			  "HP_IRQ",
98			  "AP_RAM_ID0",
99			  "EN_PP3300_DX_EDP",
100			  "AP_BRD_ID2",
101			  "BRIJ_SUSPEND",
102			  "AP_BRD_ID0",
103			  "AP_H1_SPI_MISO",
104			  "AP_H1_SPI_MOSI",
105			  "AP_H1_SPI_CLK",
106			  "AP_H1_SPI_CS_L",
107			  "",
108			  "",
109			  "",
110			  "",
111			  "H1_AP_INT_ODL",
112			  "",
113			  "UART_AP_TX_DBG_RX",
114			  "UART_DBG_TX_AP_RX",
115			  "HP_I2C_SDA",
116			  "HP_I2C_SCL",
117			  "FORCED_USB_BOOT",
118			  "",
119			  "",
120			  "AMP_DIN",
121			  "",
122			  "HP_BCLK",
123			  "HP_LRCLK",
124			  "HP_DOUT",
125			  "HP_DIN",
126			  "HP_MCLK",
127			  "TRACKPAD_INT_1V8_ODL",
128			  "AP_EC_SPI_MISO",
129			  "AP_EC_SPI_MOSI",
130			  "AP_EC_SPI_CLK",
131			  "AP_EC_SPI_CS_L",
132			  "AP_SPI_CLK",
133			  "AP_SPI_MOSI",
134			  "AP_SPI_MISO",
135			  /*
136			   * AP_FLASH_WP_L is crossystem ABI. Schematics
137			   * call it BIOS_FLASH_WP_L.
138			   */
139			  "AP_FLASH_WP_L",
140			  "DBG_SPI_HOLD_L",
141			  "AP_SPI_CS0_L",
142			  "",
143			  "",
144			  "",
145			  "",
146			  "",
147			  "",
148			  "UIM2_DATA",
149			  "UIM2_CLK",
150			  "UIM2_RST",
151			  "UIM2_PRESENT",
152			  "UIM1_DATA",
153			  "UIM1_CLK",
154			  "UIM1_RST",
155			  "",
156			  "EN_PP3300_CODEC",
157			  "EN_PP3300_HUB",
158			  "",
159			  "",
160			  "",
161			  "",
162			  "",
163			  "AP_SKU_ID1",
164			  "AP_RST_REQ",
165			  "",
166			  "AP_BRD_ID1",
167			  "AP_EC_INT_L",
168			  "",
169			  "",
170			  "",
171			  "",
172			  "",
173			  "",
174			  "",
175			  "",
176			  "",
177			  "EDP_BRIJ_EN",
178			  "AP_SKU_ID0",
179			  "",
180			  "",
181			  "",
182			  "",
183			  "",
184			  "",
185			  "",
186			  "",
187			  "",
188			  "AP_TS_PEN_I2C_SDA",
189			  "AP_TS_PEN_I2C_SCL",
190			  "DP_HOT_PLUG_DET",
191			  "EC_IN_RW_ODL";
192};
193