xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/apq8039-t2.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (c) 2015, The Linux Foundation. All rights reserved.
4f126890aSEmmanuel Vadot * Copyright (c) 2020-2023, Linaro Ltd.
5f126890aSEmmanuel Vadot *
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/dts-v1/;
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot#include "msm8939.dtsi"
11f126890aSEmmanuel Vadot#include "msm8939-pm8916.dtsi"
12f126890aSEmmanuel Vadot#include <dt-bindings/arm/qcom,ids.h>
13f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
14f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
15f126890aSEmmanuel Vadot#include <dt-bindings/sound/apq8016-lpass.h>
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot/ {
18f126890aSEmmanuel Vadot	model = "Square, Inc. T2 Devkit";
19f126890aSEmmanuel Vadot	compatible = "square,apq8039-t2", "qcom,msm8939";
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot	qcom,board-id = <0x53 0x54>;
22f126890aSEmmanuel Vadot	qcom,msm-id = <QCOM_ID_APQ8039 0x30000>;
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot	aliases {
25f126890aSEmmanuel Vadot		mmc0 = &sdhc_1;
26f126890aSEmmanuel Vadot		mmc1 = &sdhc_2;
27f126890aSEmmanuel Vadot		serial0 = &blsp_uart1;
28f126890aSEmmanuel Vadot		serial1 = &blsp_uart2;
29f126890aSEmmanuel Vadot	};
30f126890aSEmmanuel Vadot
31f126890aSEmmanuel Vadot	bl: backlight {
32f126890aSEmmanuel Vadot		compatible = "gpio-backlight";
33f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_backlight>;
34f126890aSEmmanuel Vadot		pinctrl-names = "default";
35f126890aSEmmanuel Vadot		gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
36f126890aSEmmanuel Vadot	};
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot	chosen {
39f126890aSEmmanuel Vadot		stdout-path = "serial1:115200n8";
40f126890aSEmmanuel Vadot	};
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadot	vreg_lcd_avdd_reg: lcd-avdd-regulator {
43f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
44f126890aSEmmanuel Vadot		regulator-name = "lcd_avdd";
45f126890aSEmmanuel Vadot		regulator-min-microvolt = <5600000>;
46f126890aSEmmanuel Vadot		regulator-max-microvolt = <5600000>;
47f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_lcd_avdd_reg>;
48f126890aSEmmanuel Vadot		pinctrl-names = "default";
49f126890aSEmmanuel Vadot		gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>;
50f126890aSEmmanuel Vadot		startup-delay-us = <300>;
51f126890aSEmmanuel Vadot		enable-active-high;
52f126890aSEmmanuel Vadot	};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot	vreg_lcd_avee_reg: lcd-avee-regulator {
55f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
56f126890aSEmmanuel Vadot		regulator-name = "lcd_avee";
57f126890aSEmmanuel Vadot		regulator-min-microvolt = <5600000>;
58f126890aSEmmanuel Vadot		regulator-max-microvolt = <5600000>;
59f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_lcd_avee_reg>;
60f126890aSEmmanuel Vadot		pinctrl-names = "default";
61f126890aSEmmanuel Vadot		gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>;
62f126890aSEmmanuel Vadot		startup-delay-us = <300>;
63f126890aSEmmanuel Vadot		enable-active-high;
64f126890aSEmmanuel Vadot	};
65f126890aSEmmanuel Vadot
66f126890aSEmmanuel Vadot	vreg_lcd_iovcc_reg: lcd-iovcc-regulator {
67f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
68f126890aSEmmanuel Vadot		regulator-name = "lcd_iovcc";
69f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
70f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
71f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_lcd_iovcc_reg>;
72f126890aSEmmanuel Vadot		pinctrl-names = "default";
73f126890aSEmmanuel Vadot		gpio = <&tlmm 9 GPIO_ACTIVE_HIGH>;
74f126890aSEmmanuel Vadot		startup-delay-us = <300>;
75f126890aSEmmanuel Vadot		enable-active-high;
76f126890aSEmmanuel Vadot	};
77f126890aSEmmanuel Vadot};
78f126890aSEmmanuel Vadot
79f126890aSEmmanuel Vadot&blsp_i2c1 {
80f126890aSEmmanuel Vadot	status = "okay";
81f126890aSEmmanuel Vadot};
82f126890aSEmmanuel Vadot
83f126890aSEmmanuel Vadot&blsp_i2c2 {
84f126890aSEmmanuel Vadot	status = "okay";
85f126890aSEmmanuel Vadot};
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot&blsp_i2c3 {
88f126890aSEmmanuel Vadot	status = "okay";
89f126890aSEmmanuel Vadot
90f126890aSEmmanuel Vadot	typec_pd: usb-pd@38 {
91f126890aSEmmanuel Vadot		compatible = "ti,tps6598x";
92f126890aSEmmanuel Vadot		reg = <0x38>;
93f126890aSEmmanuel Vadot
94f126890aSEmmanuel Vadot		interrupt-parent = <&tlmm>;
95f126890aSEmmanuel Vadot		interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
96f126890aSEmmanuel Vadot		interrupt-names = "irq";
97f126890aSEmmanuel Vadot
98f126890aSEmmanuel Vadot		pinctrl-names = "default";
99f126890aSEmmanuel Vadot		pinctrl-0 = <&typec_irq>;
100f126890aSEmmanuel Vadot
101f126890aSEmmanuel Vadot		typec_con: connector {
102f126890aSEmmanuel Vadot			compatible = "usb-c-connector";
103f126890aSEmmanuel Vadot			label = "USB-C";
104f126890aSEmmanuel Vadot
105f126890aSEmmanuel Vadot			port {
106f126890aSEmmanuel Vadot				typec_ep: endpoint {
107f126890aSEmmanuel Vadot					remote-endpoint = <&otg_ep>;
108f126890aSEmmanuel Vadot				};
109f126890aSEmmanuel Vadot			};
110f126890aSEmmanuel Vadot		};
111f126890aSEmmanuel Vadot	};
112f126890aSEmmanuel Vadot};
113f126890aSEmmanuel Vadot
114f126890aSEmmanuel Vadot&blsp_i2c5 {
115f126890aSEmmanuel Vadot	status = "okay";
116f126890aSEmmanuel Vadot};
117f126890aSEmmanuel Vadot
118f126890aSEmmanuel Vadot&blsp_uart1 {
119f126890aSEmmanuel Vadot	status = "okay";
120f126890aSEmmanuel Vadot};
121f126890aSEmmanuel Vadot
122f126890aSEmmanuel Vadot&blsp_uart1_default {
123f126890aSEmmanuel Vadot	pins = "gpio0", "gpio1";
124f126890aSEmmanuel Vadot};
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot&blsp_uart1_sleep {
127f126890aSEmmanuel Vadot	pins = "gpio0", "gpio1";
128f126890aSEmmanuel Vadot};
129f126890aSEmmanuel Vadot
130f126890aSEmmanuel Vadot&blsp_uart2 {
131f126890aSEmmanuel Vadot	status = "okay";
132f126890aSEmmanuel Vadot};
133f126890aSEmmanuel Vadot
134*84943d6fSEmmanuel Vadot&gpu {
135*84943d6fSEmmanuel Vadot	status = "okay";
136*84943d6fSEmmanuel Vadot};
137*84943d6fSEmmanuel Vadot
138f126890aSEmmanuel Vadot&lpass {
139f126890aSEmmanuel Vadot	status = "okay";
140f126890aSEmmanuel Vadot};
141f126890aSEmmanuel Vadot
142f126890aSEmmanuel Vadot&lpass_codec {
143f126890aSEmmanuel Vadot	status = "okay";
144f126890aSEmmanuel Vadot};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot&mdss {
147f126890aSEmmanuel Vadot	status = "okay";
148f126890aSEmmanuel Vadot};
149f126890aSEmmanuel Vadot
150f126890aSEmmanuel Vadot&pm8916_codec {
151f126890aSEmmanuel Vadot	qcom,hphl-jack-type-normally-open;
152f126890aSEmmanuel Vadot	qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
153f126890aSEmmanuel Vadot	qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
154f126890aSEmmanuel Vadot	status = "okay";
155f126890aSEmmanuel Vadot};
156f126890aSEmmanuel Vadot
157f126890aSEmmanuel Vadot&pm8916_gpios {
158f126890aSEmmanuel Vadot	gpio-line-names =
159f126890aSEmmanuel Vadot		"PM_GPIO1",     /* WIFI_GPIO1_PRE */
160f126890aSEmmanuel Vadot		"PM_GPIO2",     /* WIFI_GPIO2_PRE */
161f126890aSEmmanuel Vadot		"PM_GPIO3",
162f126890aSEmmanuel Vadot		"PM_GPIO4";
163f126890aSEmmanuel Vadot};
164f126890aSEmmanuel Vadot
165f126890aSEmmanuel Vadot&sdhc_1 {
166f126890aSEmmanuel Vadot	status = "okay";
167f126890aSEmmanuel Vadot};
168f126890aSEmmanuel Vadot
169f126890aSEmmanuel Vadot&sound {
170f126890aSEmmanuel Vadot	model = "apq8039-square-sndcard";
171f126890aSEmmanuel Vadot	audio-routing = "AMIC2", "MIC BIAS Internal2";
172f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
173f126890aSEmmanuel Vadot	pinctrl-0 = <&cdc_pdm_default>;
174f126890aSEmmanuel Vadot	pinctrl-1 = <&cdc_pdm_sleep>;
175f126890aSEmmanuel Vadot
176f126890aSEmmanuel Vadot	internal-codec-playback-dai-link {
177f126890aSEmmanuel Vadot		link-name = "WCD";
178f126890aSEmmanuel Vadot		cpu {
179f126890aSEmmanuel Vadot			sound-dai = <&lpass MI2S_PRIMARY>;
180f126890aSEmmanuel Vadot		};
181f126890aSEmmanuel Vadot		codec {
182f126890aSEmmanuel Vadot			sound-dai = <&lpass_codec 0>, <&pm8916_codec 0>;
183f126890aSEmmanuel Vadot		};
184f126890aSEmmanuel Vadot	};
185f126890aSEmmanuel Vadot
186f126890aSEmmanuel Vadot	internal-codec-capture-dai-link {
187f126890aSEmmanuel Vadot		link-name = "WCD-Capture";
188f126890aSEmmanuel Vadot		cpu {
189f126890aSEmmanuel Vadot			sound-dai = <&lpass MI2S_TERTIARY>;
190f126890aSEmmanuel Vadot		};
191f126890aSEmmanuel Vadot		codec {
192f126890aSEmmanuel Vadot			sound-dai = <&lpass_codec 1>, <&pm8916_codec 1>;
193f126890aSEmmanuel Vadot		};
194f126890aSEmmanuel Vadot	};
195f126890aSEmmanuel Vadot};
196f126890aSEmmanuel Vadot
197f126890aSEmmanuel Vadot/*
198f126890aSEmmanuel Vadot * Line names are taken from the schematic of T2, Ver X03.
199f126890aSEmmanuel Vadot * July 14, 2018. Page 4 in particular.
200f126890aSEmmanuel Vadot */
201f126890aSEmmanuel Vadot&tlmm {
202f126890aSEmmanuel Vadot	gpio-line-names =
203f126890aSEmmanuel Vadot		"APQ_UART1_TX",		/* GPIO_0 */
204f126890aSEmmanuel Vadot		"APQ_UART1_RX",
205f126890aSEmmanuel Vadot		"APQ_I2C1_SDA",
206f126890aSEmmanuel Vadot		"APQ_I2C1_SCL",
207f126890aSEmmanuel Vadot		"APQ_UART2_TX_1V8",
208f126890aSEmmanuel Vadot		"APQ_UART2_RX_1V8",
209f126890aSEmmanuel Vadot		"APQ_I2C2_SDA",
210f126890aSEmmanuel Vadot		"APQ_I2C2_SCL",
211f126890aSEmmanuel Vadot		"NC",
212f126890aSEmmanuel Vadot		"APQ_LCD_IOVCC_EN",
213f126890aSEmmanuel Vadot		"APQ_I2C3_SDA",		/* GPIO_10 */
214f126890aSEmmanuel Vadot		"APQ_I2C3_SCL",
215f126890aSEmmanuel Vadot		"TOUCH_RST_1V8_L",
216f126890aSEmmanuel Vadot		"NC",
217f126890aSEmmanuel Vadot		"APQ_I2C4_SDA",
218f126890aSEmmanuel Vadot		"APQ_I2C4_SCL",
219f126890aSEmmanuel Vadot		"APQ_ID5",
220f126890aSEmmanuel Vadot		"USB_DISCONNECT",
221f126890aSEmmanuel Vadot		"APQ_I2C5_SDA",
222f126890aSEmmanuel Vadot		"APQ_I2C5_SCL",
223f126890aSEmmanuel Vadot		"APQ_USBC_SPI_MOSI",	/* GPIO_20 */
224f126890aSEmmanuel Vadot		"APQ_USBC_SPI_MISO",
225f126890aSEmmanuel Vadot		"APQ_USBC_SPI_SS_L",
226f126890aSEmmanuel Vadot		"APQ_USBC_SPI_CLK",
227f126890aSEmmanuel Vadot		"APQ_LCD_TE0",
228f126890aSEmmanuel Vadot		"APQ_LCD_RST_L",
229f126890aSEmmanuel Vadot		"NC",
230f126890aSEmmanuel Vadot		"NC",
231f126890aSEmmanuel Vadot		"ACCELEROMETER_INT1",
232f126890aSEmmanuel Vadot		"APQ_CAM_I2C0_SDA",
233f126890aSEmmanuel Vadot		"APQ_CAM_I2C0_SCL",	/* GPIO_30 */
234f126890aSEmmanuel Vadot		"ACCELEROMETER_INT2",
235f126890aSEmmanuel Vadot		"NC",
236f126890aSEmmanuel Vadot		"NC",
237f126890aSEmmanuel Vadot		"NC",
238f126890aSEmmanuel Vadot		"APQ_K21_RST_1V8_L",
239f126890aSEmmanuel Vadot		"NC",
240f126890aSEmmanuel Vadot		"APQ_EDL_1V8",
241f126890aSEmmanuel Vadot		"TP145",
242f126890aSEmmanuel Vadot		"BT_SSBI",
243f126890aSEmmanuel Vadot		"NC",			/* GPIO_40 */
244f126890aSEmmanuel Vadot		"NC",
245f126890aSEmmanuel Vadot		"NC",
246f126890aSEmmanuel Vadot		"NC",
247f126890aSEmmanuel Vadot		"NC",
248f126890aSEmmanuel Vadot		"NC",
249f126890aSEmmanuel Vadot		"NC",
250f126890aSEmmanuel Vadot		"BT_CTRL",
251f126890aSEmmanuel Vadot		"BT_DAT",
252f126890aSEmmanuel Vadot		"PWR_GPIO_IN",
253f126890aSEmmanuel Vadot		"PWR_GPIO_OUT",		/* GPIO_50 */
254f126890aSEmmanuel Vadot		"CARD_DET_MLB_L",
255f126890aSEmmanuel Vadot		"HALL_SENSOR",
256f126890aSEmmanuel Vadot		"TP63",
257f126890aSEmmanuel Vadot		"TP64",
258f126890aSEmmanuel Vadot		"TP65",
259f126890aSEmmanuel Vadot		"NC",
260f126890aSEmmanuel Vadot		"NC",
261f126890aSEmmanuel Vadot		"NC",
262f126890aSEmmanuel Vadot		"NC",
263f126890aSEmmanuel Vadot		"NC",			/* GPIO_60 */
264f126890aSEmmanuel Vadot		"NC",
265f126890aSEmmanuel Vadot		"APQ_K21_GPIO0_1V8",
266f126890aSEmmanuel Vadot		"CDC_PDM_CLK",
267f126890aSEmmanuel Vadot		"CDC_PDM_SYNC",
268f126890aSEmmanuel Vadot		"CDC_PDM_TX",
269f126890aSEmmanuel Vadot		"CDC_PDM_RX0",
270f126890aSEmmanuel Vadot		"CDC_PDM_RX1",
271f126890aSEmmanuel Vadot		"CDC_PDM_RX2",
272f126890aSEmmanuel Vadot		"APQ_K21_GPIO1_1V8",
273f126890aSEmmanuel Vadot		"NC",			/* GPIO_70 */
274f126890aSEmmanuel Vadot		"APQ_HUB_SEL_1V8",
275f126890aSEmmanuel Vadot		"APQ_K21_GPIO2_1V8",
276f126890aSEmmanuel Vadot		"APQ_K21_GPIO3_1V8",
277f126890aSEmmanuel Vadot		"APQ_ID0",
278f126890aSEmmanuel Vadot		"APQ_ID1",
279f126890aSEmmanuel Vadot		"APQ_ID2",
280f126890aSEmmanuel Vadot		"APQ_ID3",
281f126890aSEmmanuel Vadot		"APQ_ID4",
282f126890aSEmmanuel Vadot		"APQ_HUB_SUSP_IND",
283f126890aSEmmanuel Vadot		"BOOT_CONFIG_0",	/* GPIO_80 */
284f126890aSEmmanuel Vadot		"BOOT_CONFIG_1",
285f126890aSEmmanuel Vadot		"BOOT_CONFIG_2",
286f126890aSEmmanuel Vadot		"BOOT_CONFIG_3",
287f126890aSEmmanuel Vadot		"NC",
288f126890aSEmmanuel Vadot		"NC",
289f126890aSEmmanuel Vadot		"APQ_LCD_AVDD_EN",
290f126890aSEmmanuel Vadot		"APQ_LCD_AVEE_EN",
291f126890aSEmmanuel Vadot		"TP70",
292f126890aSEmmanuel Vadot		"NC",
293f126890aSEmmanuel Vadot		"APQ_DEBUG0",		/* GPIO_90 */
294f126890aSEmmanuel Vadot		"APQ_DEBUG1",
295f126890aSEmmanuel Vadot		"APQ_DEBUG2",
296f126890aSEmmanuel Vadot		"APQ_DEBUG3",
297f126890aSEmmanuel Vadot		"TP165",
298f126890aSEmmanuel Vadot		"NC",
299f126890aSEmmanuel Vadot		"APQ_LNA_PWR_EN",
300f126890aSEmmanuel Vadot		"NC",
301f126890aSEmmanuel Vadot		"APQ_LCD_BL_EN",
302f126890aSEmmanuel Vadot		"NC",
303f126890aSEmmanuel Vadot		"APQ_LCD_ID0",		/* GPIO_100 */
304f126890aSEmmanuel Vadot		"APQ_LCD_ID1",
305f126890aSEmmanuel Vadot		"USBC_GPIO5_1V8",
306f126890aSEmmanuel Vadot		"NC",
307f126890aSEmmanuel Vadot		"NC",
308f126890aSEmmanuel Vadot		"NC",
309f126890aSEmmanuel Vadot		"APQ_HUB_RST_1V8_L",
310f126890aSEmmanuel Vadot		"USBC_I2C_IRQ_1V8_L",
311f126890aSEmmanuel Vadot		"SPE_PWR_EN",
312f126890aSEmmanuel Vadot		"NC",
313f126890aSEmmanuel Vadot		"APQ_USB_ID",		/* GPIO_110 */
314f126890aSEmmanuel Vadot		"APQ_EXT_BUCK_VSEL",
315f126890aSEmmanuel Vadot		"APQ_USB_ID_OUT",
316f126890aSEmmanuel Vadot		"NC",
317f126890aSEmmanuel Vadot		"PRNT_RST_L",
318f126890aSEmmanuel Vadot		"APQ_CRQ_I2C_RDY_1V8",
319f126890aSEmmanuel Vadot		"TYPEC_RST_1V8_H",
320f126890aSEmmanuel Vadot		"CHG_BACKPWR_EN",
321f126890aSEmmanuel Vadot		"CHG_PROCHOT_L",
322f126890aSEmmanuel Vadot		"NC",
323f126890aSEmmanuel Vadot		"USBC_GPIO7_1V8",	/* GPIO_120 */
324f126890aSEmmanuel Vadot		"NC";
325f126890aSEmmanuel Vadot
326f126890aSEmmanuel Vadot	pinctrl_backlight: backlight-state {
327f126890aSEmmanuel Vadot		pins = "gpio98";
328f126890aSEmmanuel Vadot		function = "gpio";
329f126890aSEmmanuel Vadot	};
330f126890aSEmmanuel Vadot
331f126890aSEmmanuel Vadot	pinctrl_lcd_avdd_reg: lcd-avdd-reg-state {
332f126890aSEmmanuel Vadot		pins = "gpio86";
333f126890aSEmmanuel Vadot		function = "gpio";
334f126890aSEmmanuel Vadot	};
335f126890aSEmmanuel Vadot
336f126890aSEmmanuel Vadot	pinctrl_lcd_avee_reg: lcd-avee-reg-state {
337f126890aSEmmanuel Vadot		pins = "gpio87";
338f126890aSEmmanuel Vadot		function = "gpio";
339f126890aSEmmanuel Vadot	};
340f126890aSEmmanuel Vadot
341f126890aSEmmanuel Vadot	pinctrl_lcd_iovcc_reg: lcd-iovcc-reg-state {
342f126890aSEmmanuel Vadot		pins = "gpio9";
343f126890aSEmmanuel Vadot		function = "gpio";
344f126890aSEmmanuel Vadot	};
345f126890aSEmmanuel Vadot
346f126890aSEmmanuel Vadot	pinctrl_lcd_rst: lcd-rst-state {
347f126890aSEmmanuel Vadot		pins = "gpio25";
348f126890aSEmmanuel Vadot		function = "gpio";
349f126890aSEmmanuel Vadot	};
350f126890aSEmmanuel Vadot
351f126890aSEmmanuel Vadot	pinctrl_otg_default: otg-default-state {
352f126890aSEmmanuel Vadot		function = "gpio";
353f126890aSEmmanuel Vadot		pins = "gpio17";
354f126890aSEmmanuel Vadot		output-high;
355f126890aSEmmanuel Vadot	};
356f126890aSEmmanuel Vadot
357f126890aSEmmanuel Vadot	pinctrl_otg_device: otg-device-state {
358f126890aSEmmanuel Vadot		function = "gpio";
359f126890aSEmmanuel Vadot		pins = "gpio17";
360f126890aSEmmanuel Vadot		output-low;
361f126890aSEmmanuel Vadot	};
362f126890aSEmmanuel Vadot
363f126890aSEmmanuel Vadot	pinctrl_otg_host: otg-host-state {
364f126890aSEmmanuel Vadot		function = "gpio";
365f126890aSEmmanuel Vadot		pins = "gpio17";
366f126890aSEmmanuel Vadot		output-low;
367f126890aSEmmanuel Vadot	};
368f126890aSEmmanuel Vadot
369f126890aSEmmanuel Vadot	typec_irq: typec-irq-state {
370f126890aSEmmanuel Vadot		function = "gpio";
371f126890aSEmmanuel Vadot		pins = "gpio107";
372f126890aSEmmanuel Vadot		bias-pull-up;
373f126890aSEmmanuel Vadot	};
374f126890aSEmmanuel Vadot};
375f126890aSEmmanuel Vadot
376f126890aSEmmanuel Vadot&usb {
377f126890aSEmmanuel Vadot	pinctrl-names = "default", "host", "device";
378f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_otg_default>;
379f126890aSEmmanuel Vadot	pinctrl-1 = <&pinctrl_otg_host>;
380f126890aSEmmanuel Vadot	pinctrl-2 = <&pinctrl_otg_device>;
381f126890aSEmmanuel Vadot	usb-role-switch;
382f126890aSEmmanuel Vadot	status = "okay";
383f126890aSEmmanuel Vadot
384f126890aSEmmanuel Vadot	port {
385f126890aSEmmanuel Vadot		otg_ep: endpoint {
386f126890aSEmmanuel Vadot			remote-endpoint = <&typec_ep>;
387f126890aSEmmanuel Vadot		};
388f126890aSEmmanuel Vadot	};
389f126890aSEmmanuel Vadot};
390f126890aSEmmanuel Vadot
391f126890aSEmmanuel Vadot&wcnss {
392f126890aSEmmanuel Vadot	status = "okay";
393f126890aSEmmanuel Vadot};
394f126890aSEmmanuel Vadot
395f126890aSEmmanuel Vadot&wcnss_iris {
396f126890aSEmmanuel Vadot	compatible = "qcom,wcn3680";
397f126890aSEmmanuel Vadot};
398*84943d6fSEmmanuel Vadot
399*84943d6fSEmmanuel Vadot&wcnss_mem {
400*84943d6fSEmmanuel Vadot	status = "okay";
401*84943d6fSEmmanuel Vadot};
402