xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/apq8096-db820c.dtsi (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
4c66ec88fSEmmanuel Vadot */
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot#include "msm8996.dtsi"
7c66ec88fSEmmanuel Vadot#include "pm8994.dtsi"
8c66ec88fSEmmanuel Vadot#include "pmi8994.dtsi"
9c66ec88fSEmmanuel Vadot#include <dt-bindings/input/input.h>
10c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
11c66ec88fSEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
12c66ec88fSEmmanuel Vadot#include <dt-bindings/sound/qcom,q6afe.h>
13c66ec88fSEmmanuel Vadot#include <dt-bindings/sound/qcom,q6asm.h>
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel Vadot/*
16c66ec88fSEmmanuel Vadot * GPIO name legend: proper name = the GPIO line is used as GPIO
17c66ec88fSEmmanuel Vadot *         NC      = not connected (pin out but not routed from the chip to
18c66ec88fSEmmanuel Vadot *                   anything the board)
19c66ec88fSEmmanuel Vadot *         "[PER]" = pin is muxed for [peripheral] (not GPIO)
20c66ec88fSEmmanuel Vadot *         LSEC    = Low Speed External Connector
21c66ec88fSEmmanuel Vadot *         P HSEC  = Primary High Speed External Connector
22c66ec88fSEmmanuel Vadot *         S HSEC  = Secondary High Speed External Connector
23c66ec88fSEmmanuel Vadot *         J14     = Camera Connector
24c66ec88fSEmmanuel Vadot *         TP      = Test Points
25c66ec88fSEmmanuel Vadot *
26c66ec88fSEmmanuel Vadot * Line names are taken from the schematic "DragonBoard 820c",
27c66ec88fSEmmanuel Vadot * drawing no: LM25-P2751-1
28c66ec88fSEmmanuel Vadot *
29c66ec88fSEmmanuel Vadot * For the lines routed to the external connectors the
30c66ec88fSEmmanuel Vadot * lines are named after the 96Boards CE Specification 1.0,
31c66ec88fSEmmanuel Vadot * Appendix "Expansion Connector Signal Description".
32c66ec88fSEmmanuel Vadot *
33c66ec88fSEmmanuel Vadot * When the 96Board naming of a line and the schematic name of
34c66ec88fSEmmanuel Vadot * the same line are in conflict, the 96Board specification
35c66ec88fSEmmanuel Vadot * takes precedence, which means that the external UART on the
36c66ec88fSEmmanuel Vadot * LSEC is named UART0 while the schematic and SoC names this
37c66ec88fSEmmanuel Vadot * UART3. This is only for the informational lines i.e. "[FOO]",
38c66ec88fSEmmanuel Vadot * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
39c66ec88fSEmmanuel Vadot * ones actually used for GPIO.
40c66ec88fSEmmanuel Vadot */
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot/ {
43c66ec88fSEmmanuel Vadot	aliases {
44*5956d97fSEmmanuel Vadot		serial0 = &blsp2_uart2;
45*5956d97fSEmmanuel Vadot		serial1 = &blsp2_uart3;
46*5956d97fSEmmanuel Vadot		serial2 = &blsp1_uart2;
47*5956d97fSEmmanuel Vadot		i2c0	= &blsp1_i2c3;
48c66ec88fSEmmanuel Vadot		i2c1	= &blsp2_i2c1;
49*5956d97fSEmmanuel Vadot		i2c2	= &blsp2_i2c1;
50*5956d97fSEmmanuel Vadot		spi0	= &blsp1_spi1;
51*5956d97fSEmmanuel Vadot		spi1	= &blsp2_spi6;
52c66ec88fSEmmanuel Vadot	};
53c66ec88fSEmmanuel Vadot
54c66ec88fSEmmanuel Vadot	chosen {
55c66ec88fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
56c66ec88fSEmmanuel Vadot	};
57c66ec88fSEmmanuel Vadot
58c66ec88fSEmmanuel Vadot	clocks {
59c66ec88fSEmmanuel Vadot		compatible = "simple-bus";
60c66ec88fSEmmanuel Vadot		divclk4: divclk4 {
61c66ec88fSEmmanuel Vadot			compatible = "fixed-clock";
62c66ec88fSEmmanuel Vadot			#clock-cells = <0>;
63c66ec88fSEmmanuel Vadot			clock-frequency = <32768>;
64c66ec88fSEmmanuel Vadot			clock-output-names = "divclk4";
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadot			pinctrl-names = "default";
67c66ec88fSEmmanuel Vadot			pinctrl-0 = <&divclk4_pin_a>;
68c66ec88fSEmmanuel Vadot		};
69c66ec88fSEmmanuel Vadot
70c66ec88fSEmmanuel Vadot		div1_mclk: divclk1 {
71c66ec88fSEmmanuel Vadot			compatible = "gpio-gate-clock";
72c66ec88fSEmmanuel Vadot			pinctrl-0 = <&audio_mclk>;
73c66ec88fSEmmanuel Vadot			pinctrl-names = "default";
74c66ec88fSEmmanuel Vadot			clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
75c66ec88fSEmmanuel Vadot			#clock-cells = <0>;
76c66ec88fSEmmanuel Vadot			enable-gpios = <&pm8994_gpios 15 0>;
77c66ec88fSEmmanuel Vadot		};
78c66ec88fSEmmanuel Vadot	};
79c66ec88fSEmmanuel Vadot
80c66ec88fSEmmanuel Vadot	gpio_keys {
81c66ec88fSEmmanuel Vadot		compatible = "gpio-keys";
82c66ec88fSEmmanuel Vadot		#address-cells = <1>;
83c66ec88fSEmmanuel Vadot		#size-cells = <0>;
84c66ec88fSEmmanuel Vadot		autorepeat;
85c66ec88fSEmmanuel Vadot
86c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
87c66ec88fSEmmanuel Vadot		pinctrl-0 = <&volume_up_gpio>;
88c66ec88fSEmmanuel Vadot
89c66ec88fSEmmanuel Vadot		button@0 {
90c66ec88fSEmmanuel Vadot			label = "Volume Up";
91c66ec88fSEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
92c66ec88fSEmmanuel Vadot			gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>;
93c66ec88fSEmmanuel Vadot		};
94c66ec88fSEmmanuel Vadot	};
95c66ec88fSEmmanuel Vadot
96c66ec88fSEmmanuel Vadot	usb2_id: usb2-id {
97c66ec88fSEmmanuel Vadot		compatible = "linux,extcon-usb-gpio";
98c66ec88fSEmmanuel Vadot		id-gpio = <&pmi8994_gpios 6 GPIO_ACTIVE_HIGH>;
99c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
100c66ec88fSEmmanuel Vadot		pinctrl-0 = <&usb2_vbus_det_gpio>;
101c66ec88fSEmmanuel Vadot	};
102c66ec88fSEmmanuel Vadot
103c66ec88fSEmmanuel Vadot	usb3_id: usb3-id {
104c66ec88fSEmmanuel Vadot		compatible = "linux,extcon-usb-gpio";
105c66ec88fSEmmanuel Vadot		id-gpio = <&pm8994_gpios 22 GPIO_ACTIVE_HIGH>;
106c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
107c66ec88fSEmmanuel Vadot		pinctrl-0 = <&usb3_vbus_det_gpio>;
108c66ec88fSEmmanuel Vadot	};
109c66ec88fSEmmanuel Vadot
110c66ec88fSEmmanuel Vadot	vph_pwr: vph-pwr-regulator {
111c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
112c66ec88fSEmmanuel Vadot		regulator-name = "vph_pwr";
113c66ec88fSEmmanuel Vadot		regulator-always-on;
114c66ec88fSEmmanuel Vadot		regulator-boot-on;
115c66ec88fSEmmanuel Vadot
116c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <3700000>;
117c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <3700000>;
118c66ec88fSEmmanuel Vadot	};
119c66ec88fSEmmanuel Vadot
120c66ec88fSEmmanuel Vadot	wlan_en: wlan-en-1-8v {
121c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
122c66ec88fSEmmanuel Vadot		pinctrl-0 = <&wlan_en_gpios>;
123c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
124c66ec88fSEmmanuel Vadot		regulator-name = "wlan-en-regulator";
125c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
126c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
127c66ec88fSEmmanuel Vadot
128c66ec88fSEmmanuel Vadot		gpio = <&pm8994_gpios 8 0>;
129c66ec88fSEmmanuel Vadot
130c66ec88fSEmmanuel Vadot		/* WLAN card specific delay */
131c66ec88fSEmmanuel Vadot		startup-delay-us = <70000>;
132c66ec88fSEmmanuel Vadot		enable-active-high;
133c66ec88fSEmmanuel Vadot	};
134c66ec88fSEmmanuel Vadot};
135c66ec88fSEmmanuel Vadot
136*5956d97fSEmmanuel Vadot&blsp1_i2c3 {
137c66ec88fSEmmanuel Vadot	/* On Low speed expansion */
138c66ec88fSEmmanuel Vadot	label = "LS-I2C0";
139c66ec88fSEmmanuel Vadot	status = "okay";
140c66ec88fSEmmanuel Vadot};
141c66ec88fSEmmanuel Vadot
142*5956d97fSEmmanuel Vadot&blsp1_spi1 {
143c66ec88fSEmmanuel Vadot	/* On Low speed expansion */
144c66ec88fSEmmanuel Vadot	label = "LS-SPI0";
145c66ec88fSEmmanuel Vadot	status = "okay";
146c66ec88fSEmmanuel Vadot};
147c66ec88fSEmmanuel Vadot
148*5956d97fSEmmanuel Vadot&blsp1_uart2 {
149c66ec88fSEmmanuel Vadot	label = "BT-UART";
150c66ec88fSEmmanuel Vadot	status = "okay";
151c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "sleep";
152*5956d97fSEmmanuel Vadot	pinctrl-0 = <&blsp1_uart2_default>;
153*5956d97fSEmmanuel Vadot	pinctrl-1 = <&blsp1_uart2_sleep>;
154c66ec88fSEmmanuel Vadot
155c66ec88fSEmmanuel Vadot	bluetooth {
156c66ec88fSEmmanuel Vadot		compatible = "qcom,qca6174-bt";
157c66ec88fSEmmanuel Vadot
158c66ec88fSEmmanuel Vadot		/* bt_disable_n gpio */
159c66ec88fSEmmanuel Vadot		enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>;
160c66ec88fSEmmanuel Vadot
161c66ec88fSEmmanuel Vadot		clocks = <&divclk4>;
162c66ec88fSEmmanuel Vadot	};
163c66ec88fSEmmanuel Vadot};
164c66ec88fSEmmanuel Vadot
165*5956d97fSEmmanuel Vadot&adsp_pil {
166*5956d97fSEmmanuel Vadot	status = "okay";
167*5956d97fSEmmanuel Vadot};
168*5956d97fSEmmanuel Vadot
169*5956d97fSEmmanuel Vadot&blsp2_i2c1 {
170c66ec88fSEmmanuel Vadot	/* On High speed expansion */
171c66ec88fSEmmanuel Vadot	label = "HS-I2C2";
172c66ec88fSEmmanuel Vadot	status = "okay";
173c66ec88fSEmmanuel Vadot};
174c66ec88fSEmmanuel Vadot
175c66ec88fSEmmanuel Vadot&blsp2_i2c1 {
176c66ec88fSEmmanuel Vadot	/* On Low speed expansion */
177c66ec88fSEmmanuel Vadot	label = "LS-I2C1";
178c66ec88fSEmmanuel Vadot	status = "okay";
179c66ec88fSEmmanuel Vadot};
180c66ec88fSEmmanuel Vadot
181*5956d97fSEmmanuel Vadot&blsp2_spi6 {
182c66ec88fSEmmanuel Vadot	/* On High speed expansion */
183c66ec88fSEmmanuel Vadot	label = "HS-SPI1";
184c66ec88fSEmmanuel Vadot	status = "okay";
185c66ec88fSEmmanuel Vadot};
186c66ec88fSEmmanuel Vadot
187*5956d97fSEmmanuel Vadot&blsp2_uart2 {
188c66ec88fSEmmanuel Vadot	label = "LS-UART1";
189c66ec88fSEmmanuel Vadot	status = "okay";
190c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "sleep";
191*5956d97fSEmmanuel Vadot	pinctrl-0 = <&blsp2_uart2_2pins_default>;
192*5956d97fSEmmanuel Vadot	pinctrl-1 = <&blsp2_uart2_2pins_sleep>;
193c66ec88fSEmmanuel Vadot};
194c66ec88fSEmmanuel Vadot
195*5956d97fSEmmanuel Vadot&blsp2_uart3 {
196c66ec88fSEmmanuel Vadot	label = "LS-UART0";
197c66ec88fSEmmanuel Vadot	status = "disabled";
198c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "sleep";
199*5956d97fSEmmanuel Vadot	pinctrl-0 = <&blsp2_uart3_4pins_default>;
200*5956d97fSEmmanuel Vadot	pinctrl-1 = <&blsp2_uart3_4pins_sleep>;
201c66ec88fSEmmanuel Vadot};
202c66ec88fSEmmanuel Vadot
203c66ec88fSEmmanuel Vadot&camss {
204c66ec88fSEmmanuel Vadot	vdda-supply = <&vreg_l2a_1p25>;
205c66ec88fSEmmanuel Vadot};
206c66ec88fSEmmanuel Vadot
207*5956d97fSEmmanuel Vadot&gpu {
208*5956d97fSEmmanuel Vadot	status = "okay";
209*5956d97fSEmmanuel Vadot};
210*5956d97fSEmmanuel Vadot
211c66ec88fSEmmanuel Vadot&hdmi {
212c66ec88fSEmmanuel Vadot	status = "okay";
213c66ec88fSEmmanuel Vadot
214c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "sleep";
215c66ec88fSEmmanuel Vadot	pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>;
216c66ec88fSEmmanuel Vadot	pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>;
217c66ec88fSEmmanuel Vadot
218c66ec88fSEmmanuel Vadot	core-vdda-supply = <&vreg_l12a_1p8>;
219c66ec88fSEmmanuel Vadot	core-vcc-supply = <&vreg_s4a_1p8>;
220c66ec88fSEmmanuel Vadot};
221c66ec88fSEmmanuel Vadot
222c66ec88fSEmmanuel Vadot&hdmi_phy {
223c66ec88fSEmmanuel Vadot	status = "okay";
224c66ec88fSEmmanuel Vadot
225c66ec88fSEmmanuel Vadot	vddio-supply = <&vreg_l12a_1p8>;
226c66ec88fSEmmanuel Vadot	vcca-supply = <&vreg_l28a_0p925>;
227c66ec88fSEmmanuel Vadot	#phy-cells = <0>;
228c66ec88fSEmmanuel Vadot};
229c66ec88fSEmmanuel Vadot
230c66ec88fSEmmanuel Vadot&hsusb_phy1 {
231c66ec88fSEmmanuel Vadot	status = "okay";
232c66ec88fSEmmanuel Vadot
233c66ec88fSEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
234c66ec88fSEmmanuel Vadot	vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
235c66ec88fSEmmanuel Vadot};
236c66ec88fSEmmanuel Vadot
237c66ec88fSEmmanuel Vadot&hsusb_phy2 {
238c66ec88fSEmmanuel Vadot	status = "okay";
239c66ec88fSEmmanuel Vadot
240c66ec88fSEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
241c66ec88fSEmmanuel Vadot	vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
242c66ec88fSEmmanuel Vadot};
243c66ec88fSEmmanuel Vadot
244c66ec88fSEmmanuel Vadot&mdp {
245c66ec88fSEmmanuel Vadot	status = "okay";
246c66ec88fSEmmanuel Vadot};
247c66ec88fSEmmanuel Vadot
248c66ec88fSEmmanuel Vadot&mdss {
249c66ec88fSEmmanuel Vadot	status = "okay";
250c66ec88fSEmmanuel Vadot};
251c66ec88fSEmmanuel Vadot
252c66ec88fSEmmanuel Vadot&mmcc {
253c66ec88fSEmmanuel Vadot	vdd-gfx-supply = <&vdd_gfx>;
254c66ec88fSEmmanuel Vadot};
255c66ec88fSEmmanuel Vadot
256*5956d97fSEmmanuel Vadot&pm8994_resin {
257*5956d97fSEmmanuel Vadot	status = "okay";
258*5956d97fSEmmanuel Vadot	linux,code = <KEY_VOLUMEDOWN>;
259*5956d97fSEmmanuel Vadot};
260*5956d97fSEmmanuel Vadot
261*5956d97fSEmmanuel Vadot&tlmm {
262c66ec88fSEmmanuel Vadot	gpio-line-names =
263c66ec88fSEmmanuel Vadot		"[SPI0_DOUT]", /* GPIO_0, BLSP1_SPI_MOSI, LSEC pin 14 */
264c66ec88fSEmmanuel Vadot		"[SPI0_DIN]", /* GPIO_1, BLSP1_SPI_MISO, LSEC pin 10 */
265c66ec88fSEmmanuel Vadot		"[SPI0_CS]", /* GPIO_2, BLSP1_SPI_CS_N, LSEC pin 12 */
266c66ec88fSEmmanuel Vadot		"[SPI0_SCLK]", /* GPIO_3, BLSP1_SPI_CLK, LSEC pin 8 */
267c66ec88fSEmmanuel Vadot		"[UART1_TxD]", /* GPIO_4, BLSP8_UART_TX, LSEC pin 11 */
268c66ec88fSEmmanuel Vadot		"[UART1_RxD]", /* GPIO_5, BLSP8_UART_RX, LSEC pin 13 */
269c66ec88fSEmmanuel Vadot		"[I2C1_SDA]", /* GPIO_6, BLSP8_I2C_SDA, LSEC pin 21 */
270c66ec88fSEmmanuel Vadot		"[I2C1_SCL]", /* GPIO_7, BLSP8_I2C_SCL, LSEC pin 19 */
271c66ec88fSEmmanuel Vadot		"GPIO-H", /* GPIO_8, LCD0_RESET_N, LSEC pin 30 */
272c66ec88fSEmmanuel Vadot		"TP93", /* GPIO_9 */
273c66ec88fSEmmanuel Vadot		"GPIO-G", /* GPIO_10, MDP_VSYNC_P, LSEC pin 29 */
274c66ec88fSEmmanuel Vadot		"[MDP_VSYNC_S]", /* GPIO_11, S HSEC pin 55 */
275c66ec88fSEmmanuel Vadot		"NC", /* GPIO_12 */
276c66ec88fSEmmanuel Vadot		"[CSI0_MCLK]", /* GPIO_13, CAM_MCLK0, P HSEC pin 15 */
277c66ec88fSEmmanuel Vadot		"[CAM_MCLK1]", /* GPIO_14, J14 pin 11 */
278c66ec88fSEmmanuel Vadot		"[CSI1_MCLK]", /* GPIO_15, CAM_MCLK2, P HSEC pin 17 */
279c66ec88fSEmmanuel Vadot		"TP99", /* GPIO_16 */
280c66ec88fSEmmanuel Vadot		"[I2C2_SDA]", /* GPIO_17, CCI_I2C_SDA0, P HSEC pin 34 */
281c66ec88fSEmmanuel Vadot		"[I2C2_SCL]", /* GPIO_18, CCI_I2C_SCL0, P HSEC pin 32 */
282c66ec88fSEmmanuel Vadot		"[CCI_I2C_SDA1]", /* GPIO_19, S HSEC pin 38 */
283c66ec88fSEmmanuel Vadot		"[CCI_I2C_SCL1]", /* GPIO_20, S HSEC pin 36 */
284c66ec88fSEmmanuel Vadot		"FLASH_STROBE_EN", /* GPIO_21, S HSEC pin 5 */
285c66ec88fSEmmanuel Vadot		"FLASH_STROBE_TRIG", /* GPIO_22, S HSEC pin 1 */
286c66ec88fSEmmanuel Vadot		"GPIO-K", /* GPIO_23, CAM2_RST_N, LSEC pin 33 */
287c66ec88fSEmmanuel Vadot		"GPIO-D", /* GPIO_24, LSEC pin 26 */
288c66ec88fSEmmanuel Vadot		"GPIO-I", /* GPIO_25, CAM0_RST_N, LSEC pin 31 */
289c66ec88fSEmmanuel Vadot		"GPIO-J", /* GPIO_26, CAM0_STANDBY_N, LSEC pin 32 */
290c66ec88fSEmmanuel Vadot		"BLSP6_I2C_SDA", /* GPIO_27 */
291c66ec88fSEmmanuel Vadot		"BLSP6_I2C_SCL", /* GPIO_28 */
292c66ec88fSEmmanuel Vadot		"GPIO-B", /* GPIO_29, TS0_RESET_N, LSEC pin 24 */
293c66ec88fSEmmanuel Vadot		"GPIO30", /* GPIO_30, S HSEC pin 4 */
294c66ec88fSEmmanuel Vadot		"HDMI_CEC", /* GPIO_31 */
295c66ec88fSEmmanuel Vadot		"HDMI_DDC_CLOCK", /* GPIO_32 */
296c66ec88fSEmmanuel Vadot		"HDMI_DDC_DATA", /* GPIO_33 */
297c66ec88fSEmmanuel Vadot		"HDMI_HOT_PLUG_DETECT", /* GPIO_34 */
298c66ec88fSEmmanuel Vadot		"PCIE0_RST_N", /* GPIO_35 */
299c66ec88fSEmmanuel Vadot		"PCIE0_CLKREQ_N", /* GPIO_36 */
300c66ec88fSEmmanuel Vadot		"PCIE0_WAKE", /* GPIO_37 */
301c66ec88fSEmmanuel Vadot		"SD_CARD_DET_N", /* GPIO_38 */
302c66ec88fSEmmanuel Vadot		"TSIF1_SYNC", /* GPIO_39, S HSEC pin 48 */
303c66ec88fSEmmanuel Vadot		"W_DISABLE_N", /* GPIO_40 */
304c66ec88fSEmmanuel Vadot		"[BLSP9_UART_TX]", /* GPIO_41 */
305c66ec88fSEmmanuel Vadot		"[BLSP9_UART_RX]", /* GPIO_42 */
306c66ec88fSEmmanuel Vadot		"[BLSP2_UART_CTS_N]", /* GPIO_43 */
307c66ec88fSEmmanuel Vadot		"[BLSP2_UART_RFR_N]", /* GPIO_44 */
308c66ec88fSEmmanuel Vadot		"[BLSP3_UART_TX]", /* GPIO_45 */
309c66ec88fSEmmanuel Vadot		"[BLSP3_UART_RX]", /* GPIO_46 */
310c66ec88fSEmmanuel Vadot		"[I2C0_SDA]", /* GPIO_47, LS_I2C0_SDA, LSEC pin 17 */
311c66ec88fSEmmanuel Vadot		"[I2C0_SCL]", /* GPIO_48, LS_I2C0_SCL, LSEC pin 15 */
312c66ec88fSEmmanuel Vadot		"[UART0_TxD]", /* GPIO_49, BLSP9_UART_TX, LSEC pin 5 */
313c66ec88fSEmmanuel Vadot		"[UART0_RxD]", /* GPIO_50, BLSP9_UART_RX, LSEC pin 7 */
314c66ec88fSEmmanuel Vadot		"[UART0_CTS]", /* GPIO_51, BLSP9_UART_CTS_N, LSEC pin 3 */
315c66ec88fSEmmanuel Vadot		"[UART0_RTS]", /* GPIO_52, BLSP9_UART_RFR_N, LSEC pin 9 */
316c66ec88fSEmmanuel Vadot		"[CODEC_INT1_N]", /* GPIO_53 */
317c66ec88fSEmmanuel Vadot		"[CODEC_INT2_N]", /* GPIO_54 */
318c66ec88fSEmmanuel Vadot		"[BLSP7_I2C_SDA]", /* GPIO_55 */
319c66ec88fSEmmanuel Vadot		"[BLSP7_I2C_SCL]", /* GPIO_56 */
320c66ec88fSEmmanuel Vadot		"MI2S_MCLK", /* GPIO_57, S HSEC pin 3 */
321c66ec88fSEmmanuel Vadot		"[PCM_CLK]", /* GPIO_58, QUA_MI2S_SCK, LSEC pin 18 */
322c66ec88fSEmmanuel Vadot		"[PCM_FS]", /* GPIO_59, QUA_MI2S_WS, LSEC pin 16 */
323c66ec88fSEmmanuel Vadot		"[PCM_DO]", /* GPIO_60, QUA_MI2S_DATA0, LSEC pin 20 */
324c66ec88fSEmmanuel Vadot		"[PCM_DI]", /* GPIO_61, QUA_MI2S_DATA1, LSEC pin 22 */
325c66ec88fSEmmanuel Vadot		"GPIO-E", /* GPIO_62, LSEC pin 27 */
326c66ec88fSEmmanuel Vadot		"TP87", /* GPIO_63 */
327c66ec88fSEmmanuel Vadot		"[CODEC_RST_N]", /* GPIO_64 */
328c66ec88fSEmmanuel Vadot		"[PCM1_CLK]", /* GPIO_65 */
329c66ec88fSEmmanuel Vadot		"[PCM1_SYNC]", /* GPIO_66 */
330c66ec88fSEmmanuel Vadot		"[PCM1_DIN]", /* GPIO_67 */
331c66ec88fSEmmanuel Vadot		"[PCM1_DOUT]", /* GPIO_68 */
332c66ec88fSEmmanuel Vadot		"AUDIO_REF_CLK", /* GPIO_69 */
333c66ec88fSEmmanuel Vadot		"SLIMBUS_CLK", /* GPIO_70 */
334c66ec88fSEmmanuel Vadot		"SLIMBUS_DATA0", /* GPIO_71 */
335c66ec88fSEmmanuel Vadot		"SLIMBUS_DATA1", /* GPIO_72 */
336c66ec88fSEmmanuel Vadot		"NC", /* GPIO_73 */
337c66ec88fSEmmanuel Vadot		"NC", /* GPIO_74 */
338c66ec88fSEmmanuel Vadot		"NC", /* GPIO_75 */
339c66ec88fSEmmanuel Vadot		"NC", /* GPIO_76 */
340c66ec88fSEmmanuel Vadot		"TP94", /* GPIO_77 */
341c66ec88fSEmmanuel Vadot		"NC", /* GPIO_78 */
342c66ec88fSEmmanuel Vadot		"TP95", /* GPIO_79 */
343c66ec88fSEmmanuel Vadot		"GPIO-A", /* GPIO_80, MEMS_RESET_N, LSEC pin 23 */
344c66ec88fSEmmanuel Vadot		"TP88", /* GPIO_81 */
345c66ec88fSEmmanuel Vadot		"TP89", /* GPIO_82 */
346c66ec88fSEmmanuel Vadot		"TP90", /* GPIO_83 */
347c66ec88fSEmmanuel Vadot		"TP91", /* GPIO_84 */
348c66ec88fSEmmanuel Vadot		"[SD_DAT0]", /* GPIO_85, BLSP12_SPI_MOSI, P HSEC pin 1 */
349c66ec88fSEmmanuel Vadot		"[SD_CMD]", /* GPIO_86, BLSP12_SPI_MISO, P HSEC pin 11 */
350c66ec88fSEmmanuel Vadot		"[SD_DAT3]", /* GPIO_87, BLSP12_SPI_CS_N, P HSEC pin 7 */
351c66ec88fSEmmanuel Vadot		"[SD_SCLK]", /* GPIO_88, BLSP12_SPI_CLK, P HSEC pin 9 */
352c66ec88fSEmmanuel Vadot		"TSIF1_CLK", /* GPIO_89, S HSEC pin 42 */
353c66ec88fSEmmanuel Vadot		"TSIF1_EN", /* GPIO_90, S HSEC pin 46 */
354c66ec88fSEmmanuel Vadot		"TSIF1_DATA", /* GPIO_91, S HSEC pin 44 */
355c66ec88fSEmmanuel Vadot		"NC", /* GPIO_92 */
356c66ec88fSEmmanuel Vadot		"TSIF2_CLK", /* GPIO_93, S HSEC pin 52 */
357c66ec88fSEmmanuel Vadot		"TSIF2_EN", /* GPIO_94, S HSEC pin 56 */
358c66ec88fSEmmanuel Vadot		"TSIF2_DATA", /* GPIO_95, S HSEC pin 54 */
359c66ec88fSEmmanuel Vadot		"TSIF2_SYNC", /* GPIO_96, S HSEC pin 58 */
360c66ec88fSEmmanuel Vadot		"NC", /* GPIO_97 */
361c66ec88fSEmmanuel Vadot		"CAM1_STANDBY_N", /* GPIO_98 */
362c66ec88fSEmmanuel Vadot		"NC", /* GPIO_99 */
363c66ec88fSEmmanuel Vadot		"NC", /* GPIO_100 */
364c66ec88fSEmmanuel Vadot		"[LCD1_RESET_N]", /* GPIO_101, S HSEC pin 51 */
365c66ec88fSEmmanuel Vadot		"BOOT_CONFIG1", /* GPIO_102 */
366c66ec88fSEmmanuel Vadot		"USB_HUB_RESET", /* GPIO_103 */
367c66ec88fSEmmanuel Vadot		"CAM1_RST_N", /* GPIO_104 */
368c66ec88fSEmmanuel Vadot		"NC", /* GPIO_105 */
369c66ec88fSEmmanuel Vadot		"NC", /* GPIO_106 */
370c66ec88fSEmmanuel Vadot		"NC", /* GPIO_107 */
371c66ec88fSEmmanuel Vadot		"NC", /* GPIO_108 */
372c66ec88fSEmmanuel Vadot		"NC", /* GPIO_109 */
373c66ec88fSEmmanuel Vadot		"NC", /* GPIO_110 */
374c66ec88fSEmmanuel Vadot		"NC", /* GPIO_111 */
375c66ec88fSEmmanuel Vadot		"NC", /* GPIO_112 */
376c66ec88fSEmmanuel Vadot		"PMI8994_BUA", /* GPIO_113 */
377c66ec88fSEmmanuel Vadot		"PCIE2_RST_N", /* GPIO_114 */
378c66ec88fSEmmanuel Vadot		"PCIE2_CLKREQ_N", /* GPIO_115 */
379c66ec88fSEmmanuel Vadot		"PCIE2_WAKE", /* GPIO_116 */
380c66ec88fSEmmanuel Vadot		"SSC_IRQ_0", /* GPIO_117 */
381c66ec88fSEmmanuel Vadot		"SSC_IRQ_1", /* GPIO_118 */
382c66ec88fSEmmanuel Vadot		"SSC_IRQ_2", /* GPIO_119 */
383c66ec88fSEmmanuel Vadot		"NC", /* GPIO_120 */
384c66ec88fSEmmanuel Vadot		"GPIO121", /* GPIO_121, S HSEC pin 2 */
385c66ec88fSEmmanuel Vadot		"NC", /* GPIO_122 */
386c66ec88fSEmmanuel Vadot		"SSC_IRQ_6", /* GPIO_123 */
387c66ec88fSEmmanuel Vadot		"SSC_IRQ_7", /* GPIO_124 */
388c66ec88fSEmmanuel Vadot		"GPIO-C", /* GPIO_125, TS_INT0, LSEC pin 25 */
389c66ec88fSEmmanuel Vadot		"BOOT_CONFIG5", /* GPIO_126 */
390c66ec88fSEmmanuel Vadot		"NC", /* GPIO_127 */
391c66ec88fSEmmanuel Vadot		"NC", /* GPIO_128 */
392c66ec88fSEmmanuel Vadot		"BOOT_CONFIG7", /* GPIO_129 */
393c66ec88fSEmmanuel Vadot		"PCIE1_RST_N", /* GPIO_130 */
394c66ec88fSEmmanuel Vadot		"PCIE1_CLKREQ_N", /* GPIO_131 */
395c66ec88fSEmmanuel Vadot		"PCIE1_WAKE", /* GPIO_132 */
396c66ec88fSEmmanuel Vadot		"GPIO-L", /* GPIO_133, CAM2_STANDBY_N, LSEC pin 34 */
397c66ec88fSEmmanuel Vadot		"NC", /* GPIO_134 */
398c66ec88fSEmmanuel Vadot		"NC", /* GPIO_135 */
399c66ec88fSEmmanuel Vadot		"BOOT_CONFIG8", /* GPIO_136 */
400c66ec88fSEmmanuel Vadot		"NC", /* GPIO_137 */
401c66ec88fSEmmanuel Vadot		"NC", /* GPIO_138 */
402c66ec88fSEmmanuel Vadot		"GPS_SSBI2", /* GPIO_139 */
403c66ec88fSEmmanuel Vadot		"GPS_SSBI1", /* GPIO_140 */
404c66ec88fSEmmanuel Vadot		"NC", /* GPIO_141 */
405c66ec88fSEmmanuel Vadot		"NC", /* GPIO_142 */
406c66ec88fSEmmanuel Vadot		"NC", /* GPIO_143 */
407c66ec88fSEmmanuel Vadot		"BOOT_CONFIG6", /* GPIO_144 */
408c66ec88fSEmmanuel Vadot		"NC", /* GPIO_145 */
409c66ec88fSEmmanuel Vadot		"NC", /* GPIO_146 */
410c66ec88fSEmmanuel Vadot		"NC", /* GPIO_147 */
411c66ec88fSEmmanuel Vadot		"NC", /* GPIO_148 */
412c66ec88fSEmmanuel Vadot		"NC"; /* GPIO_149 */
413c66ec88fSEmmanuel Vadot
414c66ec88fSEmmanuel Vadot	sdc2_cd_on: sdc2_cd_on {
415c66ec88fSEmmanuel Vadot		mux {
416c66ec88fSEmmanuel Vadot			pins = "gpio38";
417c66ec88fSEmmanuel Vadot			function = "gpio";
418c66ec88fSEmmanuel Vadot		};
419c66ec88fSEmmanuel Vadot
420c66ec88fSEmmanuel Vadot		config {
421c66ec88fSEmmanuel Vadot			pins = "gpio38";
422c66ec88fSEmmanuel Vadot			bias-pull-up;		/* pull up */
423c66ec88fSEmmanuel Vadot			drive-strength = <16>;	/* 16 MA */
424c66ec88fSEmmanuel Vadot		};
425c66ec88fSEmmanuel Vadot	};
426c66ec88fSEmmanuel Vadot
427c66ec88fSEmmanuel Vadot	sdc2_cd_off: sdc2_cd_off {
428c66ec88fSEmmanuel Vadot		mux {
429c66ec88fSEmmanuel Vadot			pins = "gpio38";
430c66ec88fSEmmanuel Vadot			function = "gpio";
431c66ec88fSEmmanuel Vadot		};
432c66ec88fSEmmanuel Vadot
433c66ec88fSEmmanuel Vadot		config {
434c66ec88fSEmmanuel Vadot			pins = "gpio38";
435c66ec88fSEmmanuel Vadot			bias-pull-up;		/* pull up */
436c66ec88fSEmmanuel Vadot			drive-strength = <2>;	/* 2 MA */
437c66ec88fSEmmanuel Vadot		};
438c66ec88fSEmmanuel Vadot	};
439c66ec88fSEmmanuel Vadot
440*5956d97fSEmmanuel Vadot	blsp1_uart2_default: blsp1_uart2_default {
441c66ec88fSEmmanuel Vadot		mux {
442c66ec88fSEmmanuel Vadot			pins = "gpio41", "gpio42", "gpio43", "gpio44";
443c66ec88fSEmmanuel Vadot			function = "blsp_uart2";
444c66ec88fSEmmanuel Vadot		};
445c66ec88fSEmmanuel Vadot
446c66ec88fSEmmanuel Vadot		config {
447c66ec88fSEmmanuel Vadot			pins = "gpio41", "gpio42", "gpio43", "gpio44";
448c66ec88fSEmmanuel Vadot			drive-strength = <16>;
449c66ec88fSEmmanuel Vadot			bias-disable;
450c66ec88fSEmmanuel Vadot		};
451c66ec88fSEmmanuel Vadot	};
452c66ec88fSEmmanuel Vadot
453*5956d97fSEmmanuel Vadot	blsp1_uart2_sleep: blsp1_uart2_sleep {
454c66ec88fSEmmanuel Vadot		mux {
455c66ec88fSEmmanuel Vadot			pins = "gpio41", "gpio42", "gpio43", "gpio44";
456c66ec88fSEmmanuel Vadot			function = "gpio";
457c66ec88fSEmmanuel Vadot		};
458c66ec88fSEmmanuel Vadot
459c66ec88fSEmmanuel Vadot		config {
460c66ec88fSEmmanuel Vadot			pins = "gpio41", "gpio42", "gpio43", "gpio44";
461c66ec88fSEmmanuel Vadot			drive-strength = <2>;
462c66ec88fSEmmanuel Vadot			bias-disable;
463c66ec88fSEmmanuel Vadot		};
464c66ec88fSEmmanuel Vadot	};
465c66ec88fSEmmanuel Vadot
466c66ec88fSEmmanuel Vadot	hdmi_hpd_active: hdmi_hpd_active {
467c66ec88fSEmmanuel Vadot		mux {
468c66ec88fSEmmanuel Vadot			pins = "gpio34";
469c66ec88fSEmmanuel Vadot			function = "hdmi_hot";
470c66ec88fSEmmanuel Vadot		};
471c66ec88fSEmmanuel Vadot
472c66ec88fSEmmanuel Vadot		config {
473c66ec88fSEmmanuel Vadot			pins = "gpio34";
474c66ec88fSEmmanuel Vadot			bias-pull-down;
475c66ec88fSEmmanuel Vadot			drive-strength = <16>;
476c66ec88fSEmmanuel Vadot		};
477c66ec88fSEmmanuel Vadot	};
478c66ec88fSEmmanuel Vadot
479c66ec88fSEmmanuel Vadot	hdmi_hpd_suspend: hdmi_hpd_suspend {
480c66ec88fSEmmanuel Vadot		mux {
481c66ec88fSEmmanuel Vadot			pins = "gpio34";
482c66ec88fSEmmanuel Vadot			function = "hdmi_hot";
483c66ec88fSEmmanuel Vadot		};
484c66ec88fSEmmanuel Vadot
485c66ec88fSEmmanuel Vadot		config {
486c66ec88fSEmmanuel Vadot			pins = "gpio34";
487c66ec88fSEmmanuel Vadot			bias-pull-down;
488c66ec88fSEmmanuel Vadot			drive-strength = <2>;
489c66ec88fSEmmanuel Vadot		};
490c66ec88fSEmmanuel Vadot	};
491c66ec88fSEmmanuel Vadot
492c66ec88fSEmmanuel Vadot	hdmi_ddc_active: hdmi_ddc_active {
493c66ec88fSEmmanuel Vadot		mux {
494c66ec88fSEmmanuel Vadot			pins = "gpio32", "gpio33";
495c66ec88fSEmmanuel Vadot			function = "hdmi_ddc";
496c66ec88fSEmmanuel Vadot		};
497c66ec88fSEmmanuel Vadot
498c66ec88fSEmmanuel Vadot		config {
499c66ec88fSEmmanuel Vadot			pins = "gpio32", "gpio33";
500c66ec88fSEmmanuel Vadot			drive-strength = <2>;
501c66ec88fSEmmanuel Vadot			bias-pull-up;
502c66ec88fSEmmanuel Vadot		};
503c66ec88fSEmmanuel Vadot	};
504c66ec88fSEmmanuel Vadot
505c66ec88fSEmmanuel Vadot	hdmi_ddc_suspend: hdmi_ddc_suspend {
506c66ec88fSEmmanuel Vadot		mux {
507c66ec88fSEmmanuel Vadot			pins = "gpio32", "gpio33";
508c66ec88fSEmmanuel Vadot			function = "hdmi_ddc";
509c66ec88fSEmmanuel Vadot		};
510c66ec88fSEmmanuel Vadot
511c66ec88fSEmmanuel Vadot		config {
512c66ec88fSEmmanuel Vadot			pins = "gpio32", "gpio33";
513c66ec88fSEmmanuel Vadot			drive-strength = <2>;
514c66ec88fSEmmanuel Vadot			bias-pull-down;
515c66ec88fSEmmanuel Vadot		};
516c66ec88fSEmmanuel Vadot	};
517c66ec88fSEmmanuel Vadot};
518c66ec88fSEmmanuel Vadot
519c66ec88fSEmmanuel Vadot&pcie0 {
520c66ec88fSEmmanuel Vadot	status = "okay";
521*5956d97fSEmmanuel Vadot	perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>;
522c66ec88fSEmmanuel Vadot	vddpe-3v3-supply = <&wlan_en>;
523c66ec88fSEmmanuel Vadot	vdda-supply = <&vreg_l28a_0p925>;
524c66ec88fSEmmanuel Vadot};
525c66ec88fSEmmanuel Vadot
526c66ec88fSEmmanuel Vadot&pcie1 {
527c66ec88fSEmmanuel Vadot	status = "okay";
528*5956d97fSEmmanuel Vadot	perst-gpio = <&tlmm 130 GPIO_ACTIVE_LOW>;
529c66ec88fSEmmanuel Vadot	vdda-supply = <&vreg_l28a_0p925>;
530c66ec88fSEmmanuel Vadot};
531c66ec88fSEmmanuel Vadot
532c66ec88fSEmmanuel Vadot&pcie2 {
533c66ec88fSEmmanuel Vadot	status = "okay";
534*5956d97fSEmmanuel Vadot	perst-gpio = <&tlmm 114 GPIO_ACTIVE_LOW>;
535c66ec88fSEmmanuel Vadot	vdda-supply = <&vreg_l28a_0p925>;
536c66ec88fSEmmanuel Vadot};
537c66ec88fSEmmanuel Vadot
538c66ec88fSEmmanuel Vadot&pcie_phy {
539c66ec88fSEmmanuel Vadot	status = "okay";
540c66ec88fSEmmanuel Vadot
541c66ec88fSEmmanuel Vadot	vdda-phy-supply = <&vreg_l28a_0p925>;
542c66ec88fSEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
543c66ec88fSEmmanuel Vadot};
544c66ec88fSEmmanuel Vadot
545c66ec88fSEmmanuel Vadot&pm8994_gpios {
546c66ec88fSEmmanuel Vadot	gpio-line-names =
547c66ec88fSEmmanuel Vadot		"NC",
548c66ec88fSEmmanuel Vadot		"KEY_VOLP_N",
549c66ec88fSEmmanuel Vadot		"NC",
550c66ec88fSEmmanuel Vadot		"BL1_PWM",
551c66ec88fSEmmanuel Vadot		"GPIO-F", /* BL0_PWM, LSEC pin 28 */
552c66ec88fSEmmanuel Vadot		"BL1_EN",
553c66ec88fSEmmanuel Vadot		"NC",
554c66ec88fSEmmanuel Vadot		"WLAN_EN",
555c66ec88fSEmmanuel Vadot		"NC",
556c66ec88fSEmmanuel Vadot		"NC",
557c66ec88fSEmmanuel Vadot		"NC",
558c66ec88fSEmmanuel Vadot		"NC",
559c66ec88fSEmmanuel Vadot		"NC",
560c66ec88fSEmmanuel Vadot		"NC",
561c66ec88fSEmmanuel Vadot		"DIVCLK1",
562c66ec88fSEmmanuel Vadot		"DIVCLK2",
563c66ec88fSEmmanuel Vadot		"DIVCLK3",
564c66ec88fSEmmanuel Vadot		"DIVCLK4",
565c66ec88fSEmmanuel Vadot		"BT_EN",
566c66ec88fSEmmanuel Vadot		"PMIC_SLB",
567c66ec88fSEmmanuel Vadot		"PMIC_BUA",
568c66ec88fSEmmanuel Vadot		"USB_VBUS_DET";
569c66ec88fSEmmanuel Vadot
570c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
571c66ec88fSEmmanuel Vadot	pinctrl-0 = <&ls_exp_gpio_f &bt_en_gpios>;
572c66ec88fSEmmanuel Vadot
573c66ec88fSEmmanuel Vadot	ls_exp_gpio_f: pm8994_gpio5 {
574c66ec88fSEmmanuel Vadot		pinconf {
575c66ec88fSEmmanuel Vadot			pins = "gpio5";
576c66ec88fSEmmanuel Vadot			output-low;
577c66ec88fSEmmanuel Vadot			power-source = <2>; // PM8994_GPIO_S4, 1.8V
578c66ec88fSEmmanuel Vadot		};
579c66ec88fSEmmanuel Vadot	};
580c66ec88fSEmmanuel Vadot
581c66ec88fSEmmanuel Vadot	bt_en_gpios: bt_en_gpios {
582c66ec88fSEmmanuel Vadot		pinconf {
583c66ec88fSEmmanuel Vadot			pins = "gpio19";
584c66ec88fSEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
585c66ec88fSEmmanuel Vadot			output-low;
586c66ec88fSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; // 1.8V
587c66ec88fSEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
588c66ec88fSEmmanuel Vadot			bias-pull-down;
589c66ec88fSEmmanuel Vadot		};
590c66ec88fSEmmanuel Vadot	};
591c66ec88fSEmmanuel Vadot
592c66ec88fSEmmanuel Vadot	wlan_en_gpios: wlan_en_gpios {
593c66ec88fSEmmanuel Vadot		pinconf {
594c66ec88fSEmmanuel Vadot			pins = "gpio8";
595c66ec88fSEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
596c66ec88fSEmmanuel Vadot			output-low;
597c66ec88fSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; // 1.8V
598c66ec88fSEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
599c66ec88fSEmmanuel Vadot			bias-pull-down;
600c66ec88fSEmmanuel Vadot		};
601c66ec88fSEmmanuel Vadot	};
602c66ec88fSEmmanuel Vadot
603c66ec88fSEmmanuel Vadot	audio_mclk: clk_div1 {
604c66ec88fSEmmanuel Vadot		pinconf {
605c66ec88fSEmmanuel Vadot			pins = "gpio15";
606c66ec88fSEmmanuel Vadot			function = "func1";
607c66ec88fSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; // 1.8V
608c66ec88fSEmmanuel Vadot		};
609c66ec88fSEmmanuel Vadot	};
610c66ec88fSEmmanuel Vadot
611c66ec88fSEmmanuel Vadot	volume_up_gpio: pm8996_gpio2 {
612c66ec88fSEmmanuel Vadot		pinconf {
613c66ec88fSEmmanuel Vadot			pins = "gpio2";
614c66ec88fSEmmanuel Vadot			function = "normal";
615c66ec88fSEmmanuel Vadot			input-enable;
616c66ec88fSEmmanuel Vadot			drive-push-pull;
617c66ec88fSEmmanuel Vadot			bias-pull-up;
618c66ec88fSEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
619c66ec88fSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; // 1.8V
620c66ec88fSEmmanuel Vadot		};
621c66ec88fSEmmanuel Vadot	};
622c66ec88fSEmmanuel Vadot
623c66ec88fSEmmanuel Vadot	divclk4_pin_a: divclk4 {
624c66ec88fSEmmanuel Vadot		pinconf {
625c66ec88fSEmmanuel Vadot			pins = "gpio18";
626c66ec88fSEmmanuel Vadot			function = PMIC_GPIO_FUNC_FUNC2;
627c66ec88fSEmmanuel Vadot
628c66ec88fSEmmanuel Vadot			bias-disable;
629c66ec88fSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>;
630c66ec88fSEmmanuel Vadot		};
631c66ec88fSEmmanuel Vadot	};
632c66ec88fSEmmanuel Vadot
633c66ec88fSEmmanuel Vadot	usb3_vbus_det_gpio: pm8996_gpio22 {
634c66ec88fSEmmanuel Vadot		pinconf {
635c66ec88fSEmmanuel Vadot			pins = "gpio22";
636c66ec88fSEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
637c66ec88fSEmmanuel Vadot			input-enable;
638c66ec88fSEmmanuel Vadot			bias-pull-down;
639c66ec88fSEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
640c66ec88fSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; // 1.8V
641c66ec88fSEmmanuel Vadot		};
642c66ec88fSEmmanuel Vadot	};
643c66ec88fSEmmanuel Vadot};
644c66ec88fSEmmanuel Vadot
645c66ec88fSEmmanuel Vadot&pm8994_mpps {
646c66ec88fSEmmanuel Vadot	gpio-line-names =
647c66ec88fSEmmanuel Vadot		"VDDPX_BIAS",
648c66ec88fSEmmanuel Vadot		"WIFI_LED",
649c66ec88fSEmmanuel Vadot		"NC",
650c66ec88fSEmmanuel Vadot		"BT_LED",
651c66ec88fSEmmanuel Vadot		"PM_MPP05",
652c66ec88fSEmmanuel Vadot		"PM_MPP06",
653c66ec88fSEmmanuel Vadot		"PM_MPP07",
654c66ec88fSEmmanuel Vadot		"NC";
655c66ec88fSEmmanuel Vadot};
656c66ec88fSEmmanuel Vadot
657c66ec88fSEmmanuel Vadot&pm8994_spmi_regulators {
658c66ec88fSEmmanuel Vadot	qcom,saw-reg = <&saw3>;
659c66ec88fSEmmanuel Vadot	s9 {
660c66ec88fSEmmanuel Vadot		qcom,saw-slave;
661c66ec88fSEmmanuel Vadot	};
662c66ec88fSEmmanuel Vadot	s10 {
663c66ec88fSEmmanuel Vadot		qcom,saw-slave;
664c66ec88fSEmmanuel Vadot	};
665c66ec88fSEmmanuel Vadot	s11 {
666c66ec88fSEmmanuel Vadot		qcom,saw-leader;
667c66ec88fSEmmanuel Vadot		regulator-always-on;
668c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <980000>;
669c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <980000>;
670c66ec88fSEmmanuel Vadot	};
671c66ec88fSEmmanuel Vadot};
672c66ec88fSEmmanuel Vadot
673c66ec88fSEmmanuel Vadot&pmi8994_gpios {
674c66ec88fSEmmanuel Vadot	gpio-line-names =
675c66ec88fSEmmanuel Vadot		"NC",
676c66ec88fSEmmanuel Vadot		"SPKR_AMP_EN1",
677c66ec88fSEmmanuel Vadot		"SPKR_AMP_EN2",
678c66ec88fSEmmanuel Vadot		"TP61",
679c66ec88fSEmmanuel Vadot		"NC",
680c66ec88fSEmmanuel Vadot		"USB2_VBUS_DET",
681c66ec88fSEmmanuel Vadot		"NC",
682c66ec88fSEmmanuel Vadot		"NC",
683c66ec88fSEmmanuel Vadot		"NC",
684c66ec88fSEmmanuel Vadot		"NC";
685c66ec88fSEmmanuel Vadot
686c66ec88fSEmmanuel Vadot	usb2_vbus_det_gpio: pmi8996_gpio6 {
687c66ec88fSEmmanuel Vadot		pinconf {
688c66ec88fSEmmanuel Vadot			pins = "gpio6";
689c66ec88fSEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
690c66ec88fSEmmanuel Vadot			input-enable;
691c66ec88fSEmmanuel Vadot			bias-pull-down;
692c66ec88fSEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
693c66ec88fSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; // 1.8V
694c66ec88fSEmmanuel Vadot		};
695c66ec88fSEmmanuel Vadot	};
696c66ec88fSEmmanuel Vadot};
697c66ec88fSEmmanuel Vadot
698c66ec88fSEmmanuel Vadot&pmi8994_spmi_regulators {
699c66ec88fSEmmanuel Vadot	vdd_gfx: s2@1700 {
700c66ec88fSEmmanuel Vadot		reg = <0x1700 0x100>;
701c66ec88fSEmmanuel Vadot		regulator-name = "VDD_GFX";
702c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <980000>;
703c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <980000>;
704c66ec88fSEmmanuel Vadot	};
705c66ec88fSEmmanuel Vadot};
706c66ec88fSEmmanuel Vadot
707c66ec88fSEmmanuel Vadot&rpm_requests {
708c66ec88fSEmmanuel Vadot	pm8994-regulators {
709c66ec88fSEmmanuel Vadot		compatible = "qcom,rpm-pm8994-regulators";
710c66ec88fSEmmanuel Vadot
711c66ec88fSEmmanuel Vadot		vdd_s1-supply = <&vph_pwr>;
712c66ec88fSEmmanuel Vadot		vdd_s2-supply = <&vph_pwr>;
713c66ec88fSEmmanuel Vadot		vdd_s3-supply = <&vph_pwr>;
714c66ec88fSEmmanuel Vadot		vdd_s4-supply = <&vph_pwr>;
715c66ec88fSEmmanuel Vadot		vdd_s5-supply = <&vph_pwr>;
716c66ec88fSEmmanuel Vadot		vdd_s6-supply = <&vph_pwr>;
717c66ec88fSEmmanuel Vadot		vdd_s7-supply = <&vph_pwr>;
718c66ec88fSEmmanuel Vadot		vdd_s8-supply = <&vph_pwr>;
719c66ec88fSEmmanuel Vadot		vdd_s9-supply = <&vph_pwr>;
720c66ec88fSEmmanuel Vadot		vdd_s10-supply = <&vph_pwr>;
721c66ec88fSEmmanuel Vadot		vdd_s11-supply = <&vph_pwr>;
722c66ec88fSEmmanuel Vadot		vdd_s12-supply = <&vph_pwr>;
723c66ec88fSEmmanuel Vadot		vdd_l1-supply = <&vreg_s1b_1p025>;
724c66ec88fSEmmanuel Vadot		vdd_l2_l26_l28-supply = <&vreg_s3a_1p3>;
725c66ec88fSEmmanuel Vadot		vdd_l3_l11-supply = <&vreg_s3a_1p3>;
726c66ec88fSEmmanuel Vadot		vdd_l4_l27_l31-supply = <&vreg_s3a_1p3>;
727c66ec88fSEmmanuel Vadot		vdd_l5_l7-supply = <&vreg_s5a_2p15>;
728c66ec88fSEmmanuel Vadot		vdd_l6_l12_l32-supply = <&vreg_s5a_2p15>;
729c66ec88fSEmmanuel Vadot		vdd_l8_l16_l30-supply = <&vph_pwr>;
730c66ec88fSEmmanuel Vadot		vdd_l9_l10_l18_l22-supply = <&vph_pwr_bbyp>;
731c66ec88fSEmmanuel Vadot		vdd_l13_l19_l23_l24-supply = <&vph_pwr_bbyp>;
732c66ec88fSEmmanuel Vadot		vdd_l14_l15-supply = <&vreg_s5a_2p15>;
733c66ec88fSEmmanuel Vadot		vdd_l17_l29-supply = <&vph_pwr_bbyp>;
734c66ec88fSEmmanuel Vadot		vdd_l20_l21-supply = <&vph_pwr_bbyp>;
735c66ec88fSEmmanuel Vadot		vdd_l25-supply = <&vreg_s3a_1p3>;
736c66ec88fSEmmanuel Vadot		vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
737c66ec88fSEmmanuel Vadot
738c66ec88fSEmmanuel Vadot		vreg_s3a_1p3: s3 {
739c66ec88fSEmmanuel Vadot			regulator-name = "vreg_s3a_1p3";
740c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1300000>;
741c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1300000>;
742c66ec88fSEmmanuel Vadot		};
743c66ec88fSEmmanuel Vadot
744c66ec88fSEmmanuel Vadot		/**
745c66ec88fSEmmanuel Vadot		 * 1.8v required on LS expansion
746c66ec88fSEmmanuel Vadot		 * for mezzanine boards
747c66ec88fSEmmanuel Vadot		 */
748c66ec88fSEmmanuel Vadot		vreg_s4a_1p8: s4 {
749c66ec88fSEmmanuel Vadot			regulator-name = "vreg_s4a_1p8";
750c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
751c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
752c66ec88fSEmmanuel Vadot			regulator-always-on;
753c66ec88fSEmmanuel Vadot		};
754c66ec88fSEmmanuel Vadot		vreg_s5a_2p15: s5 {
755c66ec88fSEmmanuel Vadot			regulator-name = "vreg_s5a_2p15";
756c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2150000>;
757c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2150000>;
758c66ec88fSEmmanuel Vadot		};
759c66ec88fSEmmanuel Vadot		vreg_s7a_1p0: s7 {
760c66ec88fSEmmanuel Vadot			regulator-name = "vreg_s7a_1p0";
761c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <800000>;
762c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <800000>;
763c66ec88fSEmmanuel Vadot		};
764c66ec88fSEmmanuel Vadot
765c66ec88fSEmmanuel Vadot		vreg_l1a_1p0: l1 {
766c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l1a_1p0";
767c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1000000>;
768c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1000000>;
769c66ec88fSEmmanuel Vadot		};
770c66ec88fSEmmanuel Vadot		vreg_l2a_1p25: l2 {
771c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l2a_1p25";
772c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1250000>;
773c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1250000>;
774c66ec88fSEmmanuel Vadot		};
775c66ec88fSEmmanuel Vadot		vreg_l3a_0p875: l3 {
776c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l3a_0p875";
777c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <850000>;
778c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <850000>;
779c66ec88fSEmmanuel Vadot		};
780c66ec88fSEmmanuel Vadot		vreg_l4a_1p225: l4 {
781c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l4a_1p225";
782c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
783c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
784c66ec88fSEmmanuel Vadot		};
785c66ec88fSEmmanuel Vadot		vreg_l6a_1p2: l6 {
786c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l6a_1p2";
787c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
788c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
789c66ec88fSEmmanuel Vadot		};
790c66ec88fSEmmanuel Vadot		vreg_l8a_1p8: l8 {
791c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l8a_1p8";
792c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
793c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
794c66ec88fSEmmanuel Vadot		};
795c66ec88fSEmmanuel Vadot		vreg_l9a_1p8: l9 {
796c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l9a_1p8";
797c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
798c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
799c66ec88fSEmmanuel Vadot		};
800c66ec88fSEmmanuel Vadot		vreg_l10a_1p8: l10 {
801c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l10a_1p8";
802c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
803c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
804c66ec88fSEmmanuel Vadot		};
805c66ec88fSEmmanuel Vadot		vreg_l11a_1p15: l11 {
806c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l11a_1p15";
807c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1150000>;
808c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1150000>;
809c66ec88fSEmmanuel Vadot		};
810c66ec88fSEmmanuel Vadot		vreg_l12a_1p8: l12 {
811c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l12a_1p8";
812c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
813c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
814c66ec88fSEmmanuel Vadot		};
815c66ec88fSEmmanuel Vadot		vreg_l13a_2p95: l13 {
816c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l13a_2p95";
817c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
818c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
819c66ec88fSEmmanuel Vadot		};
820c66ec88fSEmmanuel Vadot		vreg_l14a_1p8: l14 {
821c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l14a_1p8";
822c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
823c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
824c66ec88fSEmmanuel Vadot		};
825c66ec88fSEmmanuel Vadot		vreg_l15a_1p8: l15 {
826c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l15a_1p8";
827c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
828c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
829c66ec88fSEmmanuel Vadot		};
830c66ec88fSEmmanuel Vadot		vreg_l16a_2p7: l16 {
831c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l16a_2p7";
832c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2700000>;
833c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2700000>;
834c66ec88fSEmmanuel Vadot		};
835c66ec88fSEmmanuel Vadot		vreg_l17a_2p8: l17 {
836c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l17a_2p8";
837c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2500000>;
838c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2500000>;
839c66ec88fSEmmanuel Vadot		};
840c66ec88fSEmmanuel Vadot		vreg_l18a_2p85: l18 {
841c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l18a_2p85";
842c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2700000>;
843c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2900000>;
844c66ec88fSEmmanuel Vadot		};
845c66ec88fSEmmanuel Vadot		vreg_l19a_2p8: l19 {
846c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l19a_2p8";
847c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
848c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <3000000>;
849c66ec88fSEmmanuel Vadot		};
850c66ec88fSEmmanuel Vadot		vreg_l20a_2p95: l20 {
851c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l20a_2p95";
852c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
853c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
854c66ec88fSEmmanuel Vadot			regulator-allow-set-load;
855c66ec88fSEmmanuel Vadot		};
856c66ec88fSEmmanuel Vadot		vreg_l21a_2p95: l21 {
857c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l21a_2p95";
858c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
859c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
860c66ec88fSEmmanuel Vadot			regulator-allow-set-load;
861c66ec88fSEmmanuel Vadot			regulator-system-load = <200000>;
862c66ec88fSEmmanuel Vadot		};
863c66ec88fSEmmanuel Vadot		vreg_l22a_3p0: l22 {
864c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l22a_3p0";
865c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <3300000>;
866c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <3300000>;
867c66ec88fSEmmanuel Vadot		};
868c66ec88fSEmmanuel Vadot		vreg_l23a_2p8: l23 {
869c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l23a_2p8";
870c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2800000>;
871c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2800000>;
872c66ec88fSEmmanuel Vadot		};
873c66ec88fSEmmanuel Vadot		vreg_l24a_3p075: l24 {
874c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l24a_3p075";
875c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <3075000>;
876c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <3075000>;
877c66ec88fSEmmanuel Vadot		};
878c66ec88fSEmmanuel Vadot		vreg_l25a_1p2: l25 {
879c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l25a_1p2";
880c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
881c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
882c66ec88fSEmmanuel Vadot			regulator-allow-set-load;
883c66ec88fSEmmanuel Vadot		};
884c66ec88fSEmmanuel Vadot		vreg_l26a_0p8: l27 {
885c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l26a_0p8";
886c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1000000>;
887c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1000000>;
888c66ec88fSEmmanuel Vadot		};
889c66ec88fSEmmanuel Vadot		vreg_l28a_0p925: l28 {
890c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l28a_0p925";
891c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <925000>;
892c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <925000>;
893c66ec88fSEmmanuel Vadot			regulator-allow-set-load;
894c66ec88fSEmmanuel Vadot		};
895c66ec88fSEmmanuel Vadot		vreg_l29a_2p8: l29 {
896c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l29a_2p8";
897c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <2800000>;
898c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <2800000>;
899c66ec88fSEmmanuel Vadot		};
900c66ec88fSEmmanuel Vadot		vreg_l30a_1p8: l30 {
901c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l30a_1p8";
902c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
903c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
904c66ec88fSEmmanuel Vadot		};
905c66ec88fSEmmanuel Vadot		vreg_l32a_1p8: l32 {
906c66ec88fSEmmanuel Vadot			regulator-name = "vreg_l32a_1p8";
907c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
908c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
909c66ec88fSEmmanuel Vadot		};
910c66ec88fSEmmanuel Vadot
911c66ec88fSEmmanuel Vadot		vreg_lvs1a_1p8: lvs1 {
912c66ec88fSEmmanuel Vadot			regulator-name = "vreg_lvs1a_1p8";
913c66ec88fSEmmanuel Vadot		};
914c66ec88fSEmmanuel Vadot
915c66ec88fSEmmanuel Vadot		vreg_lvs2a_1p8: lvs2 {
916c66ec88fSEmmanuel Vadot			regulator-name = "vreg_lvs2a_1p8";
917c66ec88fSEmmanuel Vadot		};
918c66ec88fSEmmanuel Vadot	};
919c66ec88fSEmmanuel Vadot
920c66ec88fSEmmanuel Vadot	pmi8994-regulators {
921c66ec88fSEmmanuel Vadot		compatible = "qcom,rpm-pmi8994-regulators";
922c66ec88fSEmmanuel Vadot
923c66ec88fSEmmanuel Vadot		vdd_s1-supply = <&vph_pwr>;
924c66ec88fSEmmanuel Vadot		vdd_s2-supply = <&vph_pwr>;
925c66ec88fSEmmanuel Vadot		vdd_s3-supply = <&vph_pwr>;
926c66ec88fSEmmanuel Vadot		vdd_bst_byp-supply = <&vph_pwr>;
927c66ec88fSEmmanuel Vadot
928c66ec88fSEmmanuel Vadot		vph_pwr_bbyp: boost-bypass {
929c66ec88fSEmmanuel Vadot			regulator-name = "vph_pwr_bbyp";
930c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <3300000>;
931c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <3300000>;
932c66ec88fSEmmanuel Vadot		};
933c66ec88fSEmmanuel Vadot
934c66ec88fSEmmanuel Vadot		vreg_s1b_1p025: s1 {
935c66ec88fSEmmanuel Vadot			regulator-name = "vreg_s1b_1p025";
936c66ec88fSEmmanuel Vadot			regulator-min-microvolt = <1025000>;
937c66ec88fSEmmanuel Vadot			regulator-max-microvolt = <1025000>;
938c66ec88fSEmmanuel Vadot		};
939c66ec88fSEmmanuel Vadot	};
940c66ec88fSEmmanuel Vadot};
941c66ec88fSEmmanuel Vadot
942c66ec88fSEmmanuel Vadot&sdhc2 {
943c66ec88fSEmmanuel Vadot	/* External SD card */
944c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "sleep";
945*5956d97fSEmmanuel Vadot	pinctrl-0 = <&sdc2_state_on &sdc2_cd_on>;
946*5956d97fSEmmanuel Vadot	pinctrl-1 = <&sdc2_state_off &sdc2_cd_off>;
947*5956d97fSEmmanuel Vadot	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
948c66ec88fSEmmanuel Vadot	vmmc-supply = <&vreg_l21a_2p95>;
949c66ec88fSEmmanuel Vadot	vqmmc-supply = <&vreg_l13a_2p95>;
950c66ec88fSEmmanuel Vadot	status = "okay";
951c66ec88fSEmmanuel Vadot};
952c66ec88fSEmmanuel Vadot
953c66ec88fSEmmanuel Vadot&q6asmdai {
954c66ec88fSEmmanuel Vadot	dai@0 {
955c66ec88fSEmmanuel Vadot		reg = <0>;
956c66ec88fSEmmanuel Vadot	};
957c66ec88fSEmmanuel Vadot
958c66ec88fSEmmanuel Vadot	dai@1 {
959c66ec88fSEmmanuel Vadot		reg = <1>;
960c66ec88fSEmmanuel Vadot	};
961c66ec88fSEmmanuel Vadot
962c66ec88fSEmmanuel Vadot	dai@2 {
963c66ec88fSEmmanuel Vadot		reg = <2>;
964c66ec88fSEmmanuel Vadot	};
965c66ec88fSEmmanuel Vadot};
966c66ec88fSEmmanuel Vadot
967c66ec88fSEmmanuel Vadot&sound {
968c66ec88fSEmmanuel Vadot	compatible = "qcom,apq8096-sndcard";
969c66ec88fSEmmanuel Vadot	model = "DB820c";
970c66ec88fSEmmanuel Vadot	audio-routing =	"RX_BIAS", "MCLK",
971c66ec88fSEmmanuel Vadot		"MM_DL1",  "MultiMedia1 Playback",
972c66ec88fSEmmanuel Vadot		"MM_DL2",  "MultiMedia2 Playback",
973c66ec88fSEmmanuel Vadot		"MultiMedia3 Capture", "MM_UL3";
974c66ec88fSEmmanuel Vadot
975c66ec88fSEmmanuel Vadot	mm1-dai-link {
976c66ec88fSEmmanuel Vadot		link-name = "MultiMedia1";
977c66ec88fSEmmanuel Vadot		cpu {
978c66ec88fSEmmanuel Vadot			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA1>;
979c66ec88fSEmmanuel Vadot		};
980c66ec88fSEmmanuel Vadot	};
981c66ec88fSEmmanuel Vadot
982c66ec88fSEmmanuel Vadot	mm2-dai-link {
983c66ec88fSEmmanuel Vadot		link-name = "MultiMedia2";
984c66ec88fSEmmanuel Vadot		cpu {
985c66ec88fSEmmanuel Vadot			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA2>;
986c66ec88fSEmmanuel Vadot		};
987c66ec88fSEmmanuel Vadot	};
988c66ec88fSEmmanuel Vadot
989c66ec88fSEmmanuel Vadot	mm3-dai-link {
990c66ec88fSEmmanuel Vadot		link-name = "MultiMedia3";
991c66ec88fSEmmanuel Vadot		cpu {
992c66ec88fSEmmanuel Vadot			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3>;
993c66ec88fSEmmanuel Vadot		};
994c66ec88fSEmmanuel Vadot	};
995c66ec88fSEmmanuel Vadot
996c66ec88fSEmmanuel Vadot	hdmi-dai-link {
997c66ec88fSEmmanuel Vadot		link-name = "HDMI";
998c66ec88fSEmmanuel Vadot		cpu {
999c66ec88fSEmmanuel Vadot			sound-dai = <&q6afedai HDMI_RX>;
1000c66ec88fSEmmanuel Vadot		};
1001c66ec88fSEmmanuel Vadot
1002c66ec88fSEmmanuel Vadot		platform {
1003c66ec88fSEmmanuel Vadot			sound-dai = <&q6routing>;
1004c66ec88fSEmmanuel Vadot		};
1005c66ec88fSEmmanuel Vadot
1006c66ec88fSEmmanuel Vadot		codec {
1007c66ec88fSEmmanuel Vadot			sound-dai = <&hdmi 0>;
1008c66ec88fSEmmanuel Vadot		};
1009c66ec88fSEmmanuel Vadot	};
1010c66ec88fSEmmanuel Vadot
1011c66ec88fSEmmanuel Vadot	slim-dai-link {
1012c66ec88fSEmmanuel Vadot		link-name = "SLIM Playback";
1013c66ec88fSEmmanuel Vadot		cpu {
1014c66ec88fSEmmanuel Vadot			sound-dai = <&q6afedai SLIMBUS_6_RX>;
1015c66ec88fSEmmanuel Vadot		};
1016c66ec88fSEmmanuel Vadot
1017c66ec88fSEmmanuel Vadot		platform {
1018c66ec88fSEmmanuel Vadot			sound-dai = <&q6routing>;
1019c66ec88fSEmmanuel Vadot	};
1020c66ec88fSEmmanuel Vadot
1021c66ec88fSEmmanuel Vadot		codec {
1022c66ec88fSEmmanuel Vadot			sound-dai = <&wcd9335 6>;
1023c66ec88fSEmmanuel Vadot		};
1024c66ec88fSEmmanuel Vadot	};
1025c66ec88fSEmmanuel Vadot
1026c66ec88fSEmmanuel Vadot	slimcap-dai-link {
1027c66ec88fSEmmanuel Vadot		link-name = "SLIM Capture";
1028c66ec88fSEmmanuel Vadot		cpu {
1029c66ec88fSEmmanuel Vadot			sound-dai = <&q6afedai SLIMBUS_0_TX>;
1030c66ec88fSEmmanuel Vadot		};
1031c66ec88fSEmmanuel Vadot
1032c66ec88fSEmmanuel Vadot		platform {
1033c66ec88fSEmmanuel Vadot			sound-dai = <&q6routing>;
1034c66ec88fSEmmanuel Vadot		};
1035c66ec88fSEmmanuel Vadot
1036c66ec88fSEmmanuel Vadot		codec {
1037c66ec88fSEmmanuel Vadot			sound-dai = <&wcd9335 1>;
1038c66ec88fSEmmanuel Vadot		};
1039c66ec88fSEmmanuel Vadot	};
1040c66ec88fSEmmanuel Vadot};
1041c66ec88fSEmmanuel Vadot
1042c66ec88fSEmmanuel Vadot&ufsphy {
1043c66ec88fSEmmanuel Vadot	status = "okay";
1044c66ec88fSEmmanuel Vadot
1045c66ec88fSEmmanuel Vadot	vdda-phy-supply = <&vreg_l28a_0p925>;
1046c66ec88fSEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
1047c66ec88fSEmmanuel Vadot	vddp-ref-clk-supply = <&vreg_l25a_1p2>;
1048c66ec88fSEmmanuel Vadot};
1049c66ec88fSEmmanuel Vadot
1050c66ec88fSEmmanuel Vadot&ufshc {
1051c66ec88fSEmmanuel Vadot	status = "okay";
1052c66ec88fSEmmanuel Vadot
1053c66ec88fSEmmanuel Vadot	vcc-supply = <&vreg_l20a_2p95>;
1054c66ec88fSEmmanuel Vadot	vccq-supply = <&vreg_l25a_1p2>;
1055c66ec88fSEmmanuel Vadot	vccq2-supply = <&vreg_s4a_1p8>;
1056c66ec88fSEmmanuel Vadot
1057c66ec88fSEmmanuel Vadot	vcc-max-microamp = <600000>;
1058c66ec88fSEmmanuel Vadot	vccq-max-microamp = <450000>;
1059c66ec88fSEmmanuel Vadot	vccq2-max-microamp = <450000>;
1060c66ec88fSEmmanuel Vadot};
1061c66ec88fSEmmanuel Vadot
1062c66ec88fSEmmanuel Vadot&usb2 {
1063c66ec88fSEmmanuel Vadot	status = "okay";
1064c66ec88fSEmmanuel Vadot	extcon = <&usb2_id>;
1065c66ec88fSEmmanuel Vadot
1066c66ec88fSEmmanuel Vadot	dwc3@7600000 {
1067c66ec88fSEmmanuel Vadot		extcon = <&usb2_id>;
1068c66ec88fSEmmanuel Vadot		dr_mode = "otg";
1069c66ec88fSEmmanuel Vadot		maximum-speed = "high-speed";
1070c66ec88fSEmmanuel Vadot	};
1071c66ec88fSEmmanuel Vadot};
1072c66ec88fSEmmanuel Vadot
1073c66ec88fSEmmanuel Vadot&usb3 {
1074c66ec88fSEmmanuel Vadot	status = "okay";
1075c66ec88fSEmmanuel Vadot	extcon = <&usb3_id>;
1076c66ec88fSEmmanuel Vadot
1077c66ec88fSEmmanuel Vadot	dwc3@6a00000 {
1078c66ec88fSEmmanuel Vadot		extcon = <&usb3_id>;
1079c66ec88fSEmmanuel Vadot		dr_mode = "otg";
1080c66ec88fSEmmanuel Vadot	};
1081c66ec88fSEmmanuel Vadot};
1082c66ec88fSEmmanuel Vadot
1083c66ec88fSEmmanuel Vadot&usb3phy {
1084c66ec88fSEmmanuel Vadot	status = "okay";
1085c66ec88fSEmmanuel Vadot
1086c66ec88fSEmmanuel Vadot	vdda-phy-supply = <&vreg_l28a_0p925>;
1087c66ec88fSEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
1088c66ec88fSEmmanuel Vadot
1089c66ec88fSEmmanuel Vadot};
1090c66ec88fSEmmanuel Vadot
1091*5956d97fSEmmanuel Vadot&venus {
1092*5956d97fSEmmanuel Vadot	status = "okay";
1093*5956d97fSEmmanuel Vadot};
1094*5956d97fSEmmanuel Vadot
1095c66ec88fSEmmanuel Vadot&wcd9335 {
1096c66ec88fSEmmanuel Vadot	clock-names = "mclk", "slimbus";
1097c66ec88fSEmmanuel Vadot	clocks = <&div1_mclk>,
1098c66ec88fSEmmanuel Vadot		 <&rpmcc RPM_SMD_BB_CLK1>;
1099c66ec88fSEmmanuel Vadot
1100c66ec88fSEmmanuel Vadot	vdd-buck-supply = <&vreg_s4a_1p8>;
1101c66ec88fSEmmanuel Vadot	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
1102c66ec88fSEmmanuel Vadot	vdd-tx-supply = <&vreg_s4a_1p8>;
1103c66ec88fSEmmanuel Vadot	vdd-rx-supply = <&vreg_s4a_1p8>;
1104c66ec88fSEmmanuel Vadot	vdd-io-supply = <&vreg_s4a_1p8>;
1105c66ec88fSEmmanuel Vadot};
1106