xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/apq8096-db820c.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
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/dts-v1/;
7c66ec88fSEmmanuel Vadot
88cc087a1SEmmanuel Vadot#include "msm8996.dtsi"
98cc087a1SEmmanuel Vadot#include "pm8994.dtsi"
108cc087a1SEmmanuel Vadot#include "pmi8994.dtsi"
118cc087a1SEmmanuel Vadot#include <dt-bindings/input/input.h>
128cc087a1SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
13b97ee269SEmmanuel Vadot#include <dt-bindings/leds/common.h>
148cc087a1SEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
158cc087a1SEmmanuel Vadot#include <dt-bindings/sound/qcom,q6afe.h>
168cc087a1SEmmanuel Vadot#include <dt-bindings/sound/qcom,q6asm.h>
177ef62cebSEmmanuel Vadot#include <dt-bindings/sound/qcom,wcd9335.h>
188cc087a1SEmmanuel Vadot
198cc087a1SEmmanuel Vadot/*
208cc087a1SEmmanuel Vadot * GPIO name legend: proper name = the GPIO line is used as GPIO
218cc087a1SEmmanuel Vadot *         NC      = not connected (pin out but not routed from the chip to
228cc087a1SEmmanuel Vadot *                   anything the board)
238cc087a1SEmmanuel Vadot *         "[PER]" = pin is muxed for [peripheral] (not GPIO)
248cc087a1SEmmanuel Vadot *         LSEC    = Low Speed External Connector
258cc087a1SEmmanuel Vadot *         P HSEC  = Primary High Speed External Connector
268cc087a1SEmmanuel Vadot *         S HSEC  = Secondary High Speed External Connector
278cc087a1SEmmanuel Vadot *         J14     = Camera Connector
288cc087a1SEmmanuel Vadot *         TP      = Test Points
298cc087a1SEmmanuel Vadot *
308cc087a1SEmmanuel Vadot * Line names are taken from the schematic "DragonBoard 820c",
318cc087a1SEmmanuel Vadot * drawing no: LM25-P2751-1
328cc087a1SEmmanuel Vadot *
338cc087a1SEmmanuel Vadot * For the lines routed to the external connectors the
348cc087a1SEmmanuel Vadot * lines are named after the 96Boards CE Specification 1.0,
358cc087a1SEmmanuel Vadot * Appendix "Expansion Connector Signal Description".
368cc087a1SEmmanuel Vadot *
378cc087a1SEmmanuel Vadot * When the 96Board naming of a line and the schematic name of
388cc087a1SEmmanuel Vadot * the same line are in conflict, the 96Board specification
398cc087a1SEmmanuel Vadot * takes precedence, which means that the external UART on the
408cc087a1SEmmanuel Vadot * LSEC is named UART0 while the schematic and SoC names this
418cc087a1SEmmanuel Vadot * UART3. This is only for the informational lines i.e. "[FOO]",
428cc087a1SEmmanuel Vadot * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
438cc087a1SEmmanuel Vadot * ones actually used for GPIO.
448cc087a1SEmmanuel Vadot */
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel Vadot/ {
47c66ec88fSEmmanuel Vadot	model = "Qualcomm Technologies, Inc. DB820c";
48c66ec88fSEmmanuel Vadot	compatible = "arrow,apq8096-db820c", "qcom,apq8096-sbc", "qcom,apq8096";
498cc087a1SEmmanuel Vadot
508cc087a1SEmmanuel Vadot	aliases {
518cc087a1SEmmanuel Vadot		serial0 = &blsp2_uart2;
528cc087a1SEmmanuel Vadot		serial1 = &blsp2_uart3;
538cc087a1SEmmanuel Vadot		serial2 = &blsp1_uart2;
548cc087a1SEmmanuel Vadot		i2c0 = &blsp1_i2c3;
558cc087a1SEmmanuel Vadot		i2c1 = &blsp2_i2c1;
568cc087a1SEmmanuel Vadot		i2c2 = &blsp2_i2c1;
578cc087a1SEmmanuel Vadot		spi0 = &blsp1_spi1;
588cc087a1SEmmanuel Vadot		spi1 = &blsp2_spi6;
598cc087a1SEmmanuel Vadot	};
608cc087a1SEmmanuel Vadot
618cc087a1SEmmanuel Vadot	chosen {
628cc087a1SEmmanuel Vadot		stdout-path = "serial0:115200n8";
638cc087a1SEmmanuel Vadot	};
648cc087a1SEmmanuel Vadot
658cc087a1SEmmanuel Vadot	div1_mclk: divclk1 {
668cc087a1SEmmanuel Vadot		compatible = "gpio-gate-clock";
678cc087a1SEmmanuel Vadot		pinctrl-0 = <&audio_mclk>;
688cc087a1SEmmanuel Vadot		pinctrl-names = "default";
698cc087a1SEmmanuel Vadot		clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
708cc087a1SEmmanuel Vadot		#clock-cells = <0>;
718cc087a1SEmmanuel Vadot		enable-gpios = <&pm8994_gpios 15 0>;
728cc087a1SEmmanuel Vadot	};
73aa1a8ff2SEmmanuel Vadot
74aa1a8ff2SEmmanuel Vadot	divclk4: divclk4 {
75aa1a8ff2SEmmanuel Vadot		compatible = "fixed-clock";
76aa1a8ff2SEmmanuel Vadot		#clock-cells = <0>;
77aa1a8ff2SEmmanuel Vadot		clock-frequency = <32768>;
78aa1a8ff2SEmmanuel Vadot		clock-output-names = "divclk4";
79aa1a8ff2SEmmanuel Vadot
80aa1a8ff2SEmmanuel Vadot		pinctrl-names = "default";
81aa1a8ff2SEmmanuel Vadot		pinctrl-0 = <&divclk4_pin_a>;
828cc087a1SEmmanuel Vadot	};
838cc087a1SEmmanuel Vadot
84b97ee269SEmmanuel Vadot	gpio-keys {
858cc087a1SEmmanuel Vadot		compatible = "gpio-keys";
868cc087a1SEmmanuel Vadot		autorepeat;
878cc087a1SEmmanuel Vadot
888cc087a1SEmmanuel Vadot		pinctrl-names = "default";
898cc087a1SEmmanuel Vadot		pinctrl-0 = <&volume_up_gpio>;
908cc087a1SEmmanuel Vadot
91b97ee269SEmmanuel Vadot		button {
928cc087a1SEmmanuel Vadot			label = "Volume Up";
938cc087a1SEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
948cc087a1SEmmanuel Vadot			gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>;
958cc087a1SEmmanuel Vadot		};
968cc087a1SEmmanuel Vadot	};
978cc087a1SEmmanuel Vadot
988cc087a1SEmmanuel Vadot	usb2_id: usb2-id {
998cc087a1SEmmanuel Vadot		compatible = "linux,extcon-usb-gpio";
100aa1a8ff2SEmmanuel Vadot		id-gpios = <&pmi8994_gpios 6 GPIO_ACTIVE_HIGH>;
1018cc087a1SEmmanuel Vadot		pinctrl-names = "default";
1028cc087a1SEmmanuel Vadot		pinctrl-0 = <&usb2_vbus_det_gpio>;
1038cc087a1SEmmanuel Vadot	};
1048cc087a1SEmmanuel Vadot
1058cc087a1SEmmanuel Vadot	usb3_id: usb3-id {
1068cc087a1SEmmanuel Vadot		compatible = "linux,extcon-usb-gpio";
107aa1a8ff2SEmmanuel Vadot		id-gpios = <&pm8994_gpios 22 GPIO_ACTIVE_HIGH>;
1088cc087a1SEmmanuel Vadot		pinctrl-names = "default";
1098cc087a1SEmmanuel Vadot		pinctrl-0 = <&usb3_vbus_det_gpio>;
1108cc087a1SEmmanuel Vadot	};
1118cc087a1SEmmanuel Vadot
1128cc087a1SEmmanuel Vadot	vph_pwr: vph-pwr-regulator {
1138cc087a1SEmmanuel Vadot		compatible = "regulator-fixed";
1148cc087a1SEmmanuel Vadot		regulator-name = "vph_pwr";
1158cc087a1SEmmanuel Vadot		regulator-always-on;
1168cc087a1SEmmanuel Vadot		regulator-boot-on;
1178cc087a1SEmmanuel Vadot
1188cc087a1SEmmanuel Vadot		regulator-min-microvolt = <3700000>;
1198cc087a1SEmmanuel Vadot		regulator-max-microvolt = <3700000>;
1208cc087a1SEmmanuel Vadot	};
1218cc087a1SEmmanuel Vadot
1228cc087a1SEmmanuel Vadot	wlan_en: wlan-en-1-8v {
1238cc087a1SEmmanuel Vadot		pinctrl-names = "default";
1248cc087a1SEmmanuel Vadot		pinctrl-0 = <&wlan_en_gpios>;
1258cc087a1SEmmanuel Vadot		compatible = "regulator-fixed";
1268cc087a1SEmmanuel Vadot		regulator-name = "wlan-en-regulator";
1278cc087a1SEmmanuel Vadot		regulator-min-microvolt = <1800000>;
1288cc087a1SEmmanuel Vadot		regulator-max-microvolt = <1800000>;
1298cc087a1SEmmanuel Vadot
1308cc087a1SEmmanuel Vadot		gpio = <&pm8994_gpios 8 0>;
1318cc087a1SEmmanuel Vadot
1328cc087a1SEmmanuel Vadot		/* WLAN card specific delay */
1338cc087a1SEmmanuel Vadot		startup-delay-us = <70000>;
1348cc087a1SEmmanuel Vadot		enable-active-high;
1358cc087a1SEmmanuel Vadot	};
1368cc087a1SEmmanuel Vadot};
1378cc087a1SEmmanuel Vadot
1388cc087a1SEmmanuel Vadot&blsp1_i2c3 {
139aa1a8ff2SEmmanuel Vadot	/* On Low speed expansion: LS-I2C0 */
1408cc087a1SEmmanuel Vadot	status = "okay";
1418cc087a1SEmmanuel Vadot};
1428cc087a1SEmmanuel Vadot
1438cc087a1SEmmanuel Vadot&blsp1_spi1 {
1448cc087a1SEmmanuel Vadot	/* On Low speed expansion */
1458cc087a1SEmmanuel Vadot	status = "okay";
1468cc087a1SEmmanuel Vadot};
1478cc087a1SEmmanuel Vadot
1488cc087a1SEmmanuel Vadot&blsp1_uart2 {
1498cc087a1SEmmanuel Vadot	label = "BT-UART";
1508cc087a1SEmmanuel Vadot	status = "okay";
1518cc087a1SEmmanuel Vadot
1528cc087a1SEmmanuel Vadot	bluetooth {
1538cc087a1SEmmanuel Vadot		compatible = "qcom,qca6174-bt";
1548cc087a1SEmmanuel Vadot
1558cc087a1SEmmanuel Vadot		/* bt_disable_n gpio */
1568cc087a1SEmmanuel Vadot		enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>;
1578cc087a1SEmmanuel Vadot
1588cc087a1SEmmanuel Vadot		clocks = <&divclk4>;
1598cc087a1SEmmanuel Vadot	};
1608cc087a1SEmmanuel Vadot};
1618cc087a1SEmmanuel Vadot
1628cc087a1SEmmanuel Vadot&adsp_pil {
1638cc087a1SEmmanuel Vadot	status = "okay";
164e67e8565SEmmanuel Vadot	firmware-name = "qcom/apq8096/adsp.mbn";
1658cc087a1SEmmanuel Vadot};
1668cc087a1SEmmanuel Vadot
1678cc087a1SEmmanuel Vadot&blsp2_i2c1 {
168aa1a8ff2SEmmanuel Vadot	/* On High speed expansion: HS-I2C2 */
1698cc087a1SEmmanuel Vadot	status = "okay";
1708cc087a1SEmmanuel Vadot};
1718cc087a1SEmmanuel Vadot
1728cc087a1SEmmanuel Vadot&blsp2_i2c1 {
173aa1a8ff2SEmmanuel Vadot	/* On Low speed expansion: LS-I2C1 */
1748cc087a1SEmmanuel Vadot	status = "okay";
1758cc087a1SEmmanuel Vadot};
1768cc087a1SEmmanuel Vadot
1778cc087a1SEmmanuel Vadot&blsp2_spi6 {
1788cc087a1SEmmanuel Vadot	/* On High speed expansion */
1798cc087a1SEmmanuel Vadot	status = "okay";
1808cc087a1SEmmanuel Vadot};
1818cc087a1SEmmanuel Vadot
1828cc087a1SEmmanuel Vadot&blsp2_uart2 {
1838cc087a1SEmmanuel Vadot	label = "LS-UART1";
1848cc087a1SEmmanuel Vadot	status = "okay";
1858cc087a1SEmmanuel Vadot	pinctrl-names = "default", "sleep";
1868cc087a1SEmmanuel Vadot	pinctrl-0 = <&blsp2_uart2_2pins_default>;
1878cc087a1SEmmanuel Vadot	pinctrl-1 = <&blsp2_uart2_2pins_sleep>;
1888cc087a1SEmmanuel Vadot};
1898cc087a1SEmmanuel Vadot
1908cc087a1SEmmanuel Vadot&blsp2_uart3 {
1918cc087a1SEmmanuel Vadot	label = "LS-UART0";
1928cc087a1SEmmanuel Vadot	status = "disabled";
1938cc087a1SEmmanuel Vadot	pinctrl-names = "default", "sleep";
1948cc087a1SEmmanuel Vadot	pinctrl-0 = <&blsp2_uart3_4pins_default>;
1958cc087a1SEmmanuel Vadot	pinctrl-1 = <&blsp2_uart3_4pins_sleep>;
1968cc087a1SEmmanuel Vadot};
1978cc087a1SEmmanuel Vadot
1988cc087a1SEmmanuel Vadot&camss {
1998cc087a1SEmmanuel Vadot	vdda-supply = <&vreg_l2a_1p25>;
2008cc087a1SEmmanuel Vadot};
2018cc087a1SEmmanuel Vadot
2028cc087a1SEmmanuel Vadot&gpu {
2038cc087a1SEmmanuel Vadot	status = "okay";
2048cc087a1SEmmanuel Vadot};
2058cc087a1SEmmanuel Vadot
2068cc087a1SEmmanuel Vadot&hsusb_phy1 {
2078cc087a1SEmmanuel Vadot	status = "okay";
2088cc087a1SEmmanuel Vadot
209e67e8565SEmmanuel Vadot	vdd-supply = <&vreg_l28a_0p925>;
2108cc087a1SEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
2118cc087a1SEmmanuel Vadot	vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
2128cc087a1SEmmanuel Vadot};
2138cc087a1SEmmanuel Vadot
2148cc087a1SEmmanuel Vadot&hsusb_phy2 {
2158cc087a1SEmmanuel Vadot	status = "okay";
2168cc087a1SEmmanuel Vadot
217e67e8565SEmmanuel Vadot	vdd-supply = <&vreg_l28a_0p925>;
2188cc087a1SEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
2198cc087a1SEmmanuel Vadot	vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
2208cc087a1SEmmanuel Vadot};
2218cc087a1SEmmanuel Vadot
2228cc087a1SEmmanuel Vadot&mdp {
2238cc087a1SEmmanuel Vadot	status = "okay";
2248cc087a1SEmmanuel Vadot};
2258cc087a1SEmmanuel Vadot
2268cc087a1SEmmanuel Vadot&mdss {
2278cc087a1SEmmanuel Vadot	status = "okay";
2288cc087a1SEmmanuel Vadot};
2298cc087a1SEmmanuel Vadot
230f126890aSEmmanuel Vadot&mdss_hdmi {
231f126890aSEmmanuel Vadot	status = "okay";
232f126890aSEmmanuel Vadot
233f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
234aa1a8ff2SEmmanuel Vadot	pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>;
235aa1a8ff2SEmmanuel Vadot	pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>;
236f126890aSEmmanuel Vadot
237f126890aSEmmanuel Vadot	core-vdda-supply = <&vreg_l12a_1p8>;
238f126890aSEmmanuel Vadot	core-vcc-supply = <&vreg_s4a_1p8>;
239f126890aSEmmanuel Vadot};
240f126890aSEmmanuel Vadot
241f126890aSEmmanuel Vadot&mdss_hdmi_phy {
242f126890aSEmmanuel Vadot	status = "okay";
243f126890aSEmmanuel Vadot
244f126890aSEmmanuel Vadot	vddio-supply = <&vreg_l12a_1p8>;
245f126890aSEmmanuel Vadot	vcca-supply = <&vreg_l28a_0p925>;
246f126890aSEmmanuel Vadot	#phy-cells = <0>;
247f126890aSEmmanuel Vadot};
248f126890aSEmmanuel Vadot
2498cc087a1SEmmanuel Vadot&mmcc {
2508cc087a1SEmmanuel Vadot	vdd-gfx-supply = <&vdd_gfx>;
2518cc087a1SEmmanuel Vadot};
2528cc087a1SEmmanuel Vadot
253d5b0e70fSEmmanuel Vadot&mss_pil {
254d5b0e70fSEmmanuel Vadot	status = "okay";
255d5b0e70fSEmmanuel Vadot	pll-supply = <&vreg_l12a_1p8>;
256d5b0e70fSEmmanuel Vadot	firmware-name = "qcom/apq8096/mba.mbn", "qcom/apq8096/modem.mbn";
257d5b0e70fSEmmanuel Vadot};
258d5b0e70fSEmmanuel Vadot
2598cc087a1SEmmanuel Vadot&pm8994_resin {
2608cc087a1SEmmanuel Vadot	status = "okay";
2618cc087a1SEmmanuel Vadot	linux,code = <KEY_VOLUMEDOWN>;
2628cc087a1SEmmanuel Vadot};
2638cc087a1SEmmanuel Vadot
2648cc087a1SEmmanuel Vadot&tlmm {
2658cc087a1SEmmanuel Vadot	gpio-line-names =
2668cc087a1SEmmanuel Vadot		"[SPI0_DOUT]", /* GPIO_0, BLSP1_SPI_MOSI, LSEC pin 14 */
2678cc087a1SEmmanuel Vadot		"[SPI0_DIN]", /* GPIO_1, BLSP1_SPI_MISO, LSEC pin 10 */
2688cc087a1SEmmanuel Vadot		"[SPI0_CS]", /* GPIO_2, BLSP1_SPI_CS_N, LSEC pin 12 */
2698cc087a1SEmmanuel Vadot		"[SPI0_SCLK]", /* GPIO_3, BLSP1_SPI_CLK, LSEC pin 8 */
2708cc087a1SEmmanuel Vadot		"[UART1_TxD]", /* GPIO_4, BLSP8_UART_TX, LSEC pin 11 */
2718cc087a1SEmmanuel Vadot		"[UART1_RxD]", /* GPIO_5, BLSP8_UART_RX, LSEC pin 13 */
2728cc087a1SEmmanuel Vadot		"[I2C1_SDA]", /* GPIO_6, BLSP8_I2C_SDA, LSEC pin 21 */
2738cc087a1SEmmanuel Vadot		"[I2C1_SCL]", /* GPIO_7, BLSP8_I2C_SCL, LSEC pin 19 */
2748cc087a1SEmmanuel Vadot		"GPIO-H", /* GPIO_8, LCD0_RESET_N, LSEC pin 30 */
2758cc087a1SEmmanuel Vadot		"TP93", /* GPIO_9 */
2768cc087a1SEmmanuel Vadot		"GPIO-G", /* GPIO_10, MDP_VSYNC_P, LSEC pin 29 */
2778cc087a1SEmmanuel Vadot		"[MDP_VSYNC_S]", /* GPIO_11, S HSEC pin 55 */
2788cc087a1SEmmanuel Vadot		"NC", /* GPIO_12 */
2798cc087a1SEmmanuel Vadot		"[CSI0_MCLK]", /* GPIO_13, CAM_MCLK0, P HSEC pin 15 */
2808cc087a1SEmmanuel Vadot		"[CAM_MCLK1]", /* GPIO_14, J14 pin 11 */
2818cc087a1SEmmanuel Vadot		"[CSI1_MCLK]", /* GPIO_15, CAM_MCLK2, P HSEC pin 17 */
2828cc087a1SEmmanuel Vadot		"TP99", /* GPIO_16 */
2838cc087a1SEmmanuel Vadot		"[I2C2_SDA]", /* GPIO_17, CCI_I2C_SDA0, P HSEC pin 34 */
2848cc087a1SEmmanuel Vadot		"[I2C2_SCL]", /* GPIO_18, CCI_I2C_SCL0, P HSEC pin 32 */
2858cc087a1SEmmanuel Vadot		"[CCI_I2C_SDA1]", /* GPIO_19, S HSEC pin 38 */
2868cc087a1SEmmanuel Vadot		"[CCI_I2C_SCL1]", /* GPIO_20, S HSEC pin 36 */
2878cc087a1SEmmanuel Vadot		"FLASH_STROBE_EN", /* GPIO_21, S HSEC pin 5 */
2888cc087a1SEmmanuel Vadot		"FLASH_STROBE_TRIG", /* GPIO_22, S HSEC pin 1 */
2898cc087a1SEmmanuel Vadot		"GPIO-K", /* GPIO_23, CAM2_RST_N, LSEC pin 33 */
2908cc087a1SEmmanuel Vadot		"GPIO-D", /* GPIO_24, LSEC pin 26 */
2918cc087a1SEmmanuel Vadot		"GPIO-I", /* GPIO_25, CAM0_RST_N, LSEC pin 31 */
2928cc087a1SEmmanuel Vadot		"GPIO-J", /* GPIO_26, CAM0_STANDBY_N, LSEC pin 32 */
2938cc087a1SEmmanuel Vadot		"BLSP6_I2C_SDA", /* GPIO_27 */
2948cc087a1SEmmanuel Vadot		"BLSP6_I2C_SCL", /* GPIO_28 */
2958cc087a1SEmmanuel Vadot		"GPIO-B", /* GPIO_29, TS0_RESET_N, LSEC pin 24 */
2968cc087a1SEmmanuel Vadot		"GPIO30", /* GPIO_30, S HSEC pin 4 */
2978cc087a1SEmmanuel Vadot		"HDMI_CEC", /* GPIO_31 */
2988cc087a1SEmmanuel Vadot		"HDMI_DDC_CLOCK", /* GPIO_32 */
2998cc087a1SEmmanuel Vadot		"HDMI_DDC_DATA", /* GPIO_33 */
3008cc087a1SEmmanuel Vadot		"HDMI_HOT_PLUG_DETECT", /* GPIO_34 */
3018cc087a1SEmmanuel Vadot		"PCIE0_RST_N", /* GPIO_35 */
3028cc087a1SEmmanuel Vadot		"PCIE0_CLKREQ_N", /* GPIO_36 */
3038cc087a1SEmmanuel Vadot		"PCIE0_WAKE", /* GPIO_37 */
3048cc087a1SEmmanuel Vadot		"SD_CARD_DET_N", /* GPIO_38 */
3058cc087a1SEmmanuel Vadot		"TSIF1_SYNC", /* GPIO_39, S HSEC pin 48 */
3068cc087a1SEmmanuel Vadot		"W_DISABLE_N", /* GPIO_40 */
3078cc087a1SEmmanuel Vadot		"[BLSP9_UART_TX]", /* GPIO_41 */
3088cc087a1SEmmanuel Vadot		"[BLSP9_UART_RX]", /* GPIO_42 */
3098cc087a1SEmmanuel Vadot		"[BLSP2_UART_CTS_N]", /* GPIO_43 */
3108cc087a1SEmmanuel Vadot		"[BLSP2_UART_RFR_N]", /* GPIO_44 */
3118cc087a1SEmmanuel Vadot		"[BLSP3_UART_TX]", /* GPIO_45 */
3128cc087a1SEmmanuel Vadot		"[BLSP3_UART_RX]", /* GPIO_46 */
3138cc087a1SEmmanuel Vadot		"[I2C0_SDA]", /* GPIO_47, LS_I2C0_SDA, LSEC pin 17 */
3148cc087a1SEmmanuel Vadot		"[I2C0_SCL]", /* GPIO_48, LS_I2C0_SCL, LSEC pin 15 */
3158cc087a1SEmmanuel Vadot		"[UART0_TxD]", /* GPIO_49, BLSP9_UART_TX, LSEC pin 5 */
3168cc087a1SEmmanuel Vadot		"[UART0_RxD]", /* GPIO_50, BLSP9_UART_RX, LSEC pin 7 */
3178cc087a1SEmmanuel Vadot		"[UART0_CTS]", /* GPIO_51, BLSP9_UART_CTS_N, LSEC pin 3 */
3188cc087a1SEmmanuel Vadot		"[UART0_RTS]", /* GPIO_52, BLSP9_UART_RFR_N, LSEC pin 9 */
3198cc087a1SEmmanuel Vadot		"[CODEC_INT1_N]", /* GPIO_53 */
3208cc087a1SEmmanuel Vadot		"[CODEC_INT2_N]", /* GPIO_54 */
3218cc087a1SEmmanuel Vadot		"[BLSP7_I2C_SDA]", /* GPIO_55 */
3228cc087a1SEmmanuel Vadot		"[BLSP7_I2C_SCL]", /* GPIO_56 */
3238cc087a1SEmmanuel Vadot		"MI2S_MCLK", /* GPIO_57, S HSEC pin 3 */
3248cc087a1SEmmanuel Vadot		"[PCM_CLK]", /* GPIO_58, QUA_MI2S_SCK, LSEC pin 18 */
3258cc087a1SEmmanuel Vadot		"[PCM_FS]", /* GPIO_59, QUA_MI2S_WS, LSEC pin 16 */
3268cc087a1SEmmanuel Vadot		"[PCM_DO]", /* GPIO_60, QUA_MI2S_DATA0, LSEC pin 20 */
3278cc087a1SEmmanuel Vadot		"[PCM_DI]", /* GPIO_61, QUA_MI2S_DATA1, LSEC pin 22 */
3288cc087a1SEmmanuel Vadot		"GPIO-E", /* GPIO_62, LSEC pin 27 */
3298cc087a1SEmmanuel Vadot		"TP87", /* GPIO_63 */
3308cc087a1SEmmanuel Vadot		"[CODEC_RST_N]", /* GPIO_64 */
3318cc087a1SEmmanuel Vadot		"[PCM1_CLK]", /* GPIO_65 */
3328cc087a1SEmmanuel Vadot		"[PCM1_SYNC]", /* GPIO_66 */
3338cc087a1SEmmanuel Vadot		"[PCM1_DIN]", /* GPIO_67 */
3348cc087a1SEmmanuel Vadot		"[PCM1_DOUT]", /* GPIO_68 */
3358cc087a1SEmmanuel Vadot		"AUDIO_REF_CLK", /* GPIO_69 */
3368cc087a1SEmmanuel Vadot		"SLIMBUS_CLK", /* GPIO_70 */
3378cc087a1SEmmanuel Vadot		"SLIMBUS_DATA0", /* GPIO_71 */
3388cc087a1SEmmanuel Vadot		"SLIMBUS_DATA1", /* GPIO_72 */
3398cc087a1SEmmanuel Vadot		"NC", /* GPIO_73 */
3408cc087a1SEmmanuel Vadot		"NC", /* GPIO_74 */
3418cc087a1SEmmanuel Vadot		"NC", /* GPIO_75 */
3428cc087a1SEmmanuel Vadot		"NC", /* GPIO_76 */
3438cc087a1SEmmanuel Vadot		"TP94", /* GPIO_77 */
3448cc087a1SEmmanuel Vadot		"NC", /* GPIO_78 */
3458cc087a1SEmmanuel Vadot		"TP95", /* GPIO_79 */
3468cc087a1SEmmanuel Vadot		"GPIO-A", /* GPIO_80, MEMS_RESET_N, LSEC pin 23 */
3478cc087a1SEmmanuel Vadot		"TP88", /* GPIO_81 */
3488cc087a1SEmmanuel Vadot		"TP89", /* GPIO_82 */
3498cc087a1SEmmanuel Vadot		"TP90", /* GPIO_83 */
3508cc087a1SEmmanuel Vadot		"TP91", /* GPIO_84 */
3518cc087a1SEmmanuel Vadot		"[SD_DAT0]", /* GPIO_85, BLSP12_SPI_MOSI, P HSEC pin 1 */
3528cc087a1SEmmanuel Vadot		"[SD_CMD]", /* GPIO_86, BLSP12_SPI_MISO, P HSEC pin 11 */
3538cc087a1SEmmanuel Vadot		"[SD_DAT3]", /* GPIO_87, BLSP12_SPI_CS_N, P HSEC pin 7 */
3548cc087a1SEmmanuel Vadot		"[SD_SCLK]", /* GPIO_88, BLSP12_SPI_CLK, P HSEC pin 9 */
3558cc087a1SEmmanuel Vadot		"TSIF1_CLK", /* GPIO_89, S HSEC pin 42 */
3568cc087a1SEmmanuel Vadot		"TSIF1_EN", /* GPIO_90, S HSEC pin 46 */
3578cc087a1SEmmanuel Vadot		"TSIF1_DATA", /* GPIO_91, S HSEC pin 44 */
3588cc087a1SEmmanuel Vadot		"NC", /* GPIO_92 */
3598cc087a1SEmmanuel Vadot		"TSIF2_CLK", /* GPIO_93, S HSEC pin 52 */
3608cc087a1SEmmanuel Vadot		"TSIF2_EN", /* GPIO_94, S HSEC pin 56 */
3618cc087a1SEmmanuel Vadot		"TSIF2_DATA", /* GPIO_95, S HSEC pin 54 */
3628cc087a1SEmmanuel Vadot		"TSIF2_SYNC", /* GPIO_96, S HSEC pin 58 */
3638cc087a1SEmmanuel Vadot		"NC", /* GPIO_97 */
3648cc087a1SEmmanuel Vadot		"CAM1_STANDBY_N", /* GPIO_98 */
3658cc087a1SEmmanuel Vadot		"NC", /* GPIO_99 */
3668cc087a1SEmmanuel Vadot		"NC", /* GPIO_100 */
3678cc087a1SEmmanuel Vadot		"[LCD1_RESET_N]", /* GPIO_101, S HSEC pin 51 */
3688cc087a1SEmmanuel Vadot		"BOOT_CONFIG1", /* GPIO_102 */
3698cc087a1SEmmanuel Vadot		"USB_HUB_RESET", /* GPIO_103 */
3708cc087a1SEmmanuel Vadot		"CAM1_RST_N", /* GPIO_104 */
3718cc087a1SEmmanuel Vadot		"NC", /* GPIO_105 */
3728cc087a1SEmmanuel Vadot		"NC", /* GPIO_106 */
3738cc087a1SEmmanuel Vadot		"NC", /* GPIO_107 */
3748cc087a1SEmmanuel Vadot		"NC", /* GPIO_108 */
3758cc087a1SEmmanuel Vadot		"NC", /* GPIO_109 */
3768cc087a1SEmmanuel Vadot		"NC", /* GPIO_110 */
3778cc087a1SEmmanuel Vadot		"NC", /* GPIO_111 */
3788cc087a1SEmmanuel Vadot		"NC", /* GPIO_112 */
3798cc087a1SEmmanuel Vadot		"PMI8994_BUA", /* GPIO_113 */
3808cc087a1SEmmanuel Vadot		"PCIE2_RST_N", /* GPIO_114 */
3818cc087a1SEmmanuel Vadot		"PCIE2_CLKREQ_N", /* GPIO_115 */
3828cc087a1SEmmanuel Vadot		"PCIE2_WAKE", /* GPIO_116 */
3838cc087a1SEmmanuel Vadot		"SSC_IRQ_0", /* GPIO_117 */
3848cc087a1SEmmanuel Vadot		"SSC_IRQ_1", /* GPIO_118 */
3858cc087a1SEmmanuel Vadot		"SSC_IRQ_2", /* GPIO_119 */
3868cc087a1SEmmanuel Vadot		"NC", /* GPIO_120 */
3878cc087a1SEmmanuel Vadot		"GPIO121", /* GPIO_121, S HSEC pin 2 */
3888cc087a1SEmmanuel Vadot		"NC", /* GPIO_122 */
3898cc087a1SEmmanuel Vadot		"SSC_IRQ_6", /* GPIO_123 */
3908cc087a1SEmmanuel Vadot		"SSC_IRQ_7", /* GPIO_124 */
3918cc087a1SEmmanuel Vadot		"GPIO-C", /* GPIO_125, TS_INT0, LSEC pin 25 */
3928cc087a1SEmmanuel Vadot		"BOOT_CONFIG5", /* GPIO_126 */
3938cc087a1SEmmanuel Vadot		"NC", /* GPIO_127 */
3948cc087a1SEmmanuel Vadot		"NC", /* GPIO_128 */
3958cc087a1SEmmanuel Vadot		"BOOT_CONFIG7", /* GPIO_129 */
3968cc087a1SEmmanuel Vadot		"PCIE1_RST_N", /* GPIO_130 */
3978cc087a1SEmmanuel Vadot		"PCIE1_CLKREQ_N", /* GPIO_131 */
3988cc087a1SEmmanuel Vadot		"PCIE1_WAKE", /* GPIO_132 */
3998cc087a1SEmmanuel Vadot		"GPIO-L", /* GPIO_133, CAM2_STANDBY_N, LSEC pin 34 */
4008cc087a1SEmmanuel Vadot		"NC", /* GPIO_134 */
4018cc087a1SEmmanuel Vadot		"NC", /* GPIO_135 */
4028cc087a1SEmmanuel Vadot		"BOOT_CONFIG8", /* GPIO_136 */
4038cc087a1SEmmanuel Vadot		"NC", /* GPIO_137 */
4048cc087a1SEmmanuel Vadot		"NC", /* GPIO_138 */
4058cc087a1SEmmanuel Vadot		"GPS_SSBI2", /* GPIO_139 */
4068cc087a1SEmmanuel Vadot		"GPS_SSBI1", /* GPIO_140 */
4078cc087a1SEmmanuel Vadot		"NC", /* GPIO_141 */
4088cc087a1SEmmanuel Vadot		"NC", /* GPIO_142 */
4098cc087a1SEmmanuel Vadot		"NC", /* GPIO_143 */
4108cc087a1SEmmanuel Vadot		"BOOT_CONFIG6", /* GPIO_144 */
4118cc087a1SEmmanuel Vadot		"NC", /* GPIO_145 */
4128cc087a1SEmmanuel Vadot		"NC", /* GPIO_146 */
4138cc087a1SEmmanuel Vadot		"NC", /* GPIO_147 */
4148cc087a1SEmmanuel Vadot		"NC", /* GPIO_148 */
4158cc087a1SEmmanuel Vadot		"NC"; /* GPIO_149 */
4168cc087a1SEmmanuel Vadot
4178bab661aSEmmanuel Vadot	sdc2_cd_on: sdc2-cd-on-state {
4188cc087a1SEmmanuel Vadot		pins = "gpio38";
4198cc087a1SEmmanuel Vadot		function = "gpio";
4208bab661aSEmmanuel Vadot		bias-pull-up;
4218bab661aSEmmanuel Vadot		drive-strength = <16>;
4228cc087a1SEmmanuel Vadot	};
4238cc087a1SEmmanuel Vadot
4248bab661aSEmmanuel Vadot	sdc2_cd_off: sdc2-cd-off-state {
4258cc087a1SEmmanuel Vadot		pins = "gpio38";
4268cc087a1SEmmanuel Vadot		function = "gpio";
4278bab661aSEmmanuel Vadot		bias-pull-up;
4288bab661aSEmmanuel Vadot		drive-strength = <2>;
4298cc087a1SEmmanuel Vadot	};
4308cc087a1SEmmanuel Vadot
431aa1a8ff2SEmmanuel Vadot	hdmi_hpd_active: hdmi-hpd-active-state {
4328cc087a1SEmmanuel Vadot		pins = "gpio34";
4338cc087a1SEmmanuel Vadot		function = "hdmi_hot";
4348cc087a1SEmmanuel Vadot		bias-pull-down;
4358cc087a1SEmmanuel Vadot		drive-strength = <16>;
4368cc087a1SEmmanuel Vadot	};
4378cc087a1SEmmanuel Vadot
438aa1a8ff2SEmmanuel Vadot	hdmi_hpd_suspend: hdmi-hpd-suspend-state {
4398cc087a1SEmmanuel Vadot		pins = "gpio34";
4408cc087a1SEmmanuel Vadot		function = "hdmi_hot";
4418cc087a1SEmmanuel Vadot		bias-pull-down;
4428cc087a1SEmmanuel Vadot		drive-strength = <2>;
4438cc087a1SEmmanuel Vadot	};
4448cc087a1SEmmanuel Vadot
445aa1a8ff2SEmmanuel Vadot	hdmi_ddc_active: hdmi-ddc-active-state {
4468cc087a1SEmmanuel Vadot		pins = "gpio32", "gpio33";
4478cc087a1SEmmanuel Vadot		function = "hdmi_ddc";
4488cc087a1SEmmanuel Vadot		drive-strength = <2>;
4498cc087a1SEmmanuel Vadot		bias-pull-up;
4508cc087a1SEmmanuel Vadot	};
4518cc087a1SEmmanuel Vadot
452aa1a8ff2SEmmanuel Vadot	hdmi_ddc_suspend: hdmi-ddc-suspend-state {
4538cc087a1SEmmanuel Vadot		pins = "gpio32", "gpio33";
4548cc087a1SEmmanuel Vadot		function = "hdmi_ddc";
4558cc087a1SEmmanuel Vadot		drive-strength = <2>;
4568cc087a1SEmmanuel Vadot		bias-pull-down;
4578cc087a1SEmmanuel Vadot	};
4588cc087a1SEmmanuel Vadot};
4598cc087a1SEmmanuel Vadot
4608cc087a1SEmmanuel Vadot&pcie0 {
4618cc087a1SEmmanuel Vadot	status = "okay";
4627ef62cebSEmmanuel Vadot	perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
4638cc087a1SEmmanuel Vadot	vddpe-3v3-supply = <&wlan_en>;
4648cc087a1SEmmanuel Vadot	vdda-supply = <&vreg_l28a_0p925>;
4658cc087a1SEmmanuel Vadot};
4668cc087a1SEmmanuel Vadot
4678cc087a1SEmmanuel Vadot&pcie1 {
4688cc087a1SEmmanuel Vadot	status = "okay";
4697ef62cebSEmmanuel Vadot	perst-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>;
4708cc087a1SEmmanuel Vadot	vdda-supply = <&vreg_l28a_0p925>;
4718cc087a1SEmmanuel Vadot};
4728cc087a1SEmmanuel Vadot
4738cc087a1SEmmanuel Vadot&pcie2 {
4748cc087a1SEmmanuel Vadot	status = "okay";
4757ef62cebSEmmanuel Vadot	perst-gpios = <&tlmm 114 GPIO_ACTIVE_LOW>;
4768cc087a1SEmmanuel Vadot	vdda-supply = <&vreg_l28a_0p925>;
4778cc087a1SEmmanuel Vadot};
4788cc087a1SEmmanuel Vadot
4798cc087a1SEmmanuel Vadot&pcie_phy {
4808cc087a1SEmmanuel Vadot	status = "okay";
4818cc087a1SEmmanuel Vadot
4828cc087a1SEmmanuel Vadot	vdda-phy-supply = <&vreg_l28a_0p925>;
4838cc087a1SEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
4848cc087a1SEmmanuel Vadot};
4858cc087a1SEmmanuel Vadot
4868cc087a1SEmmanuel Vadot&pm8994_gpios {
4878cc087a1SEmmanuel Vadot	gpio-line-names =
4888cc087a1SEmmanuel Vadot		"NC",
4898cc087a1SEmmanuel Vadot		"KEY_VOLP_N",
4908cc087a1SEmmanuel Vadot		"NC",
4918cc087a1SEmmanuel Vadot		"BL1_PWM",
4928cc087a1SEmmanuel Vadot		"GPIO-F", /* BL0_PWM, LSEC pin 28 */
4938cc087a1SEmmanuel Vadot		"BL1_EN",
4948cc087a1SEmmanuel Vadot		"NC",
4958cc087a1SEmmanuel Vadot		"WLAN_EN",
4968cc087a1SEmmanuel Vadot		"NC",
4978cc087a1SEmmanuel Vadot		"NC",
4988cc087a1SEmmanuel Vadot		"NC",
4998cc087a1SEmmanuel Vadot		"NC",
5008cc087a1SEmmanuel Vadot		"NC",
5018cc087a1SEmmanuel Vadot		"NC",
5028cc087a1SEmmanuel Vadot		"DIVCLK1",
5038cc087a1SEmmanuel Vadot		"DIVCLK2",
5048cc087a1SEmmanuel Vadot		"DIVCLK3",
5058cc087a1SEmmanuel Vadot		"DIVCLK4",
5068cc087a1SEmmanuel Vadot		"BT_EN",
5078cc087a1SEmmanuel Vadot		"PMIC_SLB",
5088cc087a1SEmmanuel Vadot		"PMIC_BUA",
5098cc087a1SEmmanuel Vadot		"USB_VBUS_DET";
5108cc087a1SEmmanuel Vadot
5118cc087a1SEmmanuel Vadot	pinctrl-names = "default";
5128cc087a1SEmmanuel Vadot	pinctrl-0 = <&ls_exp_gpio_f &bt_en_gpios>;
5138cc087a1SEmmanuel Vadot
514b97ee269SEmmanuel Vadot	ls_exp_gpio_f: pm8994-gpio5-state {
5158cc087a1SEmmanuel Vadot		pinconf {
5168cc087a1SEmmanuel Vadot			pins = "gpio5";
517b97ee269SEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
5188cc087a1SEmmanuel Vadot			output-low;
5198bab661aSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; /* 1.8V */
5208cc087a1SEmmanuel Vadot		};
5218cc087a1SEmmanuel Vadot	};
5228cc087a1SEmmanuel Vadot
523b97ee269SEmmanuel Vadot	bt_en_gpios: bt-en-pios-state {
5248cc087a1SEmmanuel Vadot		pinconf {
5258cc087a1SEmmanuel Vadot			pins = "gpio19";
5268cc087a1SEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
5278cc087a1SEmmanuel Vadot			output-low;
5288bab661aSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; /* 1.8V */
5298cc087a1SEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
5308cc087a1SEmmanuel Vadot			bias-pull-down;
5318cc087a1SEmmanuel Vadot		};
5328cc087a1SEmmanuel Vadot	};
5338cc087a1SEmmanuel Vadot
534b97ee269SEmmanuel Vadot	wlan_en_gpios: wlan-en-gpios-state {
5358cc087a1SEmmanuel Vadot		pinconf {
5368cc087a1SEmmanuel Vadot			pins = "gpio8";
5378cc087a1SEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
5388cc087a1SEmmanuel Vadot			output-low;
5398bab661aSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; /* 1.8V */
5408cc087a1SEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
5418cc087a1SEmmanuel Vadot			bias-pull-down;
5428cc087a1SEmmanuel Vadot		};
5438cc087a1SEmmanuel Vadot	};
5448cc087a1SEmmanuel Vadot
545b97ee269SEmmanuel Vadot	audio_mclk: clk-div1-state {
5468cc087a1SEmmanuel Vadot		pinconf {
5478cc087a1SEmmanuel Vadot			pins = "gpio15";
5488cc087a1SEmmanuel Vadot			function = "func1";
5498bab661aSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; /* 1.8V */
5508cc087a1SEmmanuel Vadot		};
5518cc087a1SEmmanuel Vadot	};
5528cc087a1SEmmanuel Vadot
553b97ee269SEmmanuel Vadot	volume_up_gpio: pm8996-gpio2-state {
5548cc087a1SEmmanuel Vadot		pinconf {
5558cc087a1SEmmanuel Vadot			pins = "gpio2";
5568cc087a1SEmmanuel Vadot			function = "normal";
5578cc087a1SEmmanuel Vadot			input-enable;
5588cc087a1SEmmanuel Vadot			drive-push-pull;
5598cc087a1SEmmanuel Vadot			bias-pull-up;
5608cc087a1SEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
5618bab661aSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; /* 1.8V */
5628cc087a1SEmmanuel Vadot		};
5638cc087a1SEmmanuel Vadot	};
5648cc087a1SEmmanuel Vadot
565b97ee269SEmmanuel Vadot	divclk4_pin_a: divclk4-state {
5668cc087a1SEmmanuel Vadot		pinconf {
5678cc087a1SEmmanuel Vadot			pins = "gpio18";
5688cc087a1SEmmanuel Vadot			function = PMIC_GPIO_FUNC_FUNC2;
5698cc087a1SEmmanuel Vadot
5708cc087a1SEmmanuel Vadot			bias-disable;
5718cc087a1SEmmanuel Vadot			power-source = <PM8994_GPIO_S4>;
5728cc087a1SEmmanuel Vadot		};
5738cc087a1SEmmanuel Vadot	};
5748cc087a1SEmmanuel Vadot
575b97ee269SEmmanuel Vadot	usb3_vbus_det_gpio: pm8996-gpio22-state {
5768cc087a1SEmmanuel Vadot		pinconf {
5778cc087a1SEmmanuel Vadot			pins = "gpio22";
5788cc087a1SEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
5798cc087a1SEmmanuel Vadot			input-enable;
5808cc087a1SEmmanuel Vadot			bias-pull-down;
5818cc087a1SEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
5828bab661aSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; /* 1.8V */
5838cc087a1SEmmanuel Vadot		};
5848cc087a1SEmmanuel Vadot	};
5858cc087a1SEmmanuel Vadot};
5868cc087a1SEmmanuel Vadot
5878cc087a1SEmmanuel Vadot&pm8994_mpps {
5888cc087a1SEmmanuel Vadot	gpio-line-names =
5898cc087a1SEmmanuel Vadot		"VDDPX_BIAS",
5908cc087a1SEmmanuel Vadot		"WIFI_LED",
5918cc087a1SEmmanuel Vadot		"NC",
5928cc087a1SEmmanuel Vadot		"BT_LED",
5938cc087a1SEmmanuel Vadot		"PM_MPP05",
5948cc087a1SEmmanuel Vadot		"PM_MPP06",
5958cc087a1SEmmanuel Vadot		"PM_MPP07",
5968cc087a1SEmmanuel Vadot		"NC";
5978cc087a1SEmmanuel Vadot};
5988cc087a1SEmmanuel Vadot
5998cc087a1SEmmanuel Vadot&pm8994_spmi_regulators {
6008cc087a1SEmmanuel Vadot	qcom,saw-reg = <&saw3>;
601e67e8565SEmmanuel Vadot	vdd_s11-supply = <&vph_pwr>;
602e67e8565SEmmanuel Vadot
6038cc087a1SEmmanuel Vadot	s9 {
6048cc087a1SEmmanuel Vadot		qcom,saw-slave;
6058cc087a1SEmmanuel Vadot	};
6068cc087a1SEmmanuel Vadot	s10 {
6078cc087a1SEmmanuel Vadot		qcom,saw-slave;
6088cc087a1SEmmanuel Vadot	};
6098cc087a1SEmmanuel Vadot	s11 {
6108cc087a1SEmmanuel Vadot		qcom,saw-leader;
611e67e8565SEmmanuel Vadot		regulator-name = "VDD_APCC";
6128cc087a1SEmmanuel Vadot		regulator-always-on;
6138cc087a1SEmmanuel Vadot		regulator-min-microvolt = <980000>;
6148cc087a1SEmmanuel Vadot		regulator-max-microvolt = <980000>;
6158cc087a1SEmmanuel Vadot	};
6168cc087a1SEmmanuel Vadot};
6178cc087a1SEmmanuel Vadot
6188cc087a1SEmmanuel Vadot&pmi8994_gpios {
6198cc087a1SEmmanuel Vadot	gpio-line-names =
6208cc087a1SEmmanuel Vadot		"NC",
6218cc087a1SEmmanuel Vadot		"SPKR_AMP_EN1",
6228cc087a1SEmmanuel Vadot		"SPKR_AMP_EN2",
6238cc087a1SEmmanuel Vadot		"TP61",
6248cc087a1SEmmanuel Vadot		"NC",
6258cc087a1SEmmanuel Vadot		"USB2_VBUS_DET",
6268cc087a1SEmmanuel Vadot		"NC",
6278cc087a1SEmmanuel Vadot		"NC",
6288cc087a1SEmmanuel Vadot		"NC",
6298cc087a1SEmmanuel Vadot		"NC";
6308cc087a1SEmmanuel Vadot
631b97ee269SEmmanuel Vadot	usb2_vbus_det_gpio: pmi8996-gpio6-state {
6328cc087a1SEmmanuel Vadot		pinconf {
6338cc087a1SEmmanuel Vadot			pins = "gpio6";
6348cc087a1SEmmanuel Vadot			function = PMIC_GPIO_FUNC_NORMAL;
6358cc087a1SEmmanuel Vadot			input-enable;
6368cc087a1SEmmanuel Vadot			bias-pull-down;
6378cc087a1SEmmanuel Vadot			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
6388bab661aSEmmanuel Vadot			power-source = <PM8994_GPIO_S4>; /* 1.8V */
6398cc087a1SEmmanuel Vadot		};
6408cc087a1SEmmanuel Vadot	};
6418cc087a1SEmmanuel Vadot};
6428cc087a1SEmmanuel Vadot
643b97ee269SEmmanuel Vadot&pmi8994_lpg {
644b97ee269SEmmanuel Vadot	qcom,power-source = <1>;
645b97ee269SEmmanuel Vadot
646b97ee269SEmmanuel Vadot	pinctrl-names = "default";
647b97ee269SEmmanuel Vadot	pinctrl-0 = <&pmi8994_mpp2_userled4>;
648b97ee269SEmmanuel Vadot
649b97ee269SEmmanuel Vadot	qcom,dtest = <0 0>,
650b97ee269SEmmanuel Vadot		     <0 0>,
651b97ee269SEmmanuel Vadot		     <0 0>,
652b97ee269SEmmanuel Vadot		     <4 1>;
653b97ee269SEmmanuel Vadot
654b97ee269SEmmanuel Vadot	status = "okay";
655b97ee269SEmmanuel Vadot
656b97ee269SEmmanuel Vadot	led@1 {
657b97ee269SEmmanuel Vadot		reg = <1>;
658b97ee269SEmmanuel Vadot		color = <LED_COLOR_ID_GREEN>;
659b97ee269SEmmanuel Vadot		function = LED_FUNCTION_HEARTBEAT;
660b97ee269SEmmanuel Vadot		function-enumerator = <1>;
661b97ee269SEmmanuel Vadot
662b97ee269SEmmanuel Vadot		linux,default-trigger = "heartbeat";
663b97ee269SEmmanuel Vadot		default-state = "on";
664b97ee269SEmmanuel Vadot	};
665b97ee269SEmmanuel Vadot
666b97ee269SEmmanuel Vadot	led@2 {
667b97ee269SEmmanuel Vadot		reg = <2>;
668b97ee269SEmmanuel Vadot		color = <LED_COLOR_ID_GREEN>;
669b97ee269SEmmanuel Vadot		function = LED_FUNCTION_HEARTBEAT;
670b97ee269SEmmanuel Vadot		function-enumerator = <0>;
671b97ee269SEmmanuel Vadot	};
672b97ee269SEmmanuel Vadot
673b97ee269SEmmanuel Vadot	led@3 {
674b97ee269SEmmanuel Vadot		reg = <3>;
675b97ee269SEmmanuel Vadot		color = <LED_COLOR_ID_GREEN>;
676b97ee269SEmmanuel Vadot		function = LED_FUNCTION_HEARTBEAT;
677b97ee269SEmmanuel Vadot		function-enumerator = <2>;
678b97ee269SEmmanuel Vadot	};
679b97ee269SEmmanuel Vadot
680b97ee269SEmmanuel Vadot	led@4 {
681b97ee269SEmmanuel Vadot		reg = <4>;
682b97ee269SEmmanuel Vadot		color = <LED_COLOR_ID_GREEN>;
683b97ee269SEmmanuel Vadot		function = LED_FUNCTION_HEARTBEAT;
684b97ee269SEmmanuel Vadot		function-enumerator = <3>;
685b97ee269SEmmanuel Vadot	};
686b97ee269SEmmanuel Vadot};
687b97ee269SEmmanuel Vadot
688b97ee269SEmmanuel Vadot&pmi8994_mpps {
689b97ee269SEmmanuel Vadot	pmi8994_mpp2_userled4: mpp2-userled4-state {
690b97ee269SEmmanuel Vadot		pins = "mpp2";
691b97ee269SEmmanuel Vadot		function = "sink";
692b97ee269SEmmanuel Vadot
693b97ee269SEmmanuel Vadot		output-low;
694b97ee269SEmmanuel Vadot		qcom,dtest = <4>;
695b97ee269SEmmanuel Vadot	};
696b97ee269SEmmanuel Vadot};
697b97ee269SEmmanuel Vadot
6988cc087a1SEmmanuel Vadot&pmi8994_spmi_regulators {
699e67e8565SEmmanuel Vadot	vdd_s2-supply = <&vph_pwr>;
700e67e8565SEmmanuel Vadot
701fac71e4eSEmmanuel Vadot	vdd_gfx: s2 {
7028cc087a1SEmmanuel Vadot		regulator-name = "VDD_GFX";
7038cc087a1SEmmanuel Vadot		regulator-min-microvolt = <980000>;
7048cc087a1SEmmanuel Vadot		regulator-max-microvolt = <980000>;
7058cc087a1SEmmanuel Vadot	};
7068cc087a1SEmmanuel Vadot};
7078cc087a1SEmmanuel Vadot
7088cc087a1SEmmanuel Vadot&rpm_requests {
7098bab661aSEmmanuel Vadot	regulators-0 {
7108cc087a1SEmmanuel Vadot		compatible = "qcom,rpm-pm8994-regulators";
7118cc087a1SEmmanuel Vadot
7128cc087a1SEmmanuel Vadot		vdd_s1-supply = <&vph_pwr>;
7138cc087a1SEmmanuel Vadot		vdd_s2-supply = <&vph_pwr>;
7148cc087a1SEmmanuel Vadot		vdd_s3-supply = <&vph_pwr>;
7158cc087a1SEmmanuel Vadot		vdd_s4-supply = <&vph_pwr>;
7168cc087a1SEmmanuel Vadot		vdd_s5-supply = <&vph_pwr>;
7178cc087a1SEmmanuel Vadot		vdd_s6-supply = <&vph_pwr>;
7188cc087a1SEmmanuel Vadot		vdd_s7-supply = <&vph_pwr>;
7198cc087a1SEmmanuel Vadot		vdd_s8-supply = <&vph_pwr>;
7208cc087a1SEmmanuel Vadot		vdd_s9-supply = <&vph_pwr>;
7218cc087a1SEmmanuel Vadot		vdd_s10-supply = <&vph_pwr>;
7228cc087a1SEmmanuel Vadot		vdd_s11-supply = <&vph_pwr>;
7238cc087a1SEmmanuel Vadot		vdd_s12-supply = <&vph_pwr>;
7248cc087a1SEmmanuel Vadot		vdd_l1-supply = <&vreg_s1b_1p025>;
7258cc087a1SEmmanuel Vadot		vdd_l2_l26_l28-supply = <&vreg_s3a_1p3>;
7268cc087a1SEmmanuel Vadot		vdd_l3_l11-supply = <&vreg_s3a_1p3>;
7278cc087a1SEmmanuel Vadot		vdd_l4_l27_l31-supply = <&vreg_s3a_1p3>;
7288cc087a1SEmmanuel Vadot		vdd_l5_l7-supply = <&vreg_s5a_2p15>;
7298cc087a1SEmmanuel Vadot		vdd_l6_l12_l32-supply = <&vreg_s5a_2p15>;
7308cc087a1SEmmanuel Vadot		vdd_l8_l16_l30-supply = <&vph_pwr>;
7318cc087a1SEmmanuel Vadot		vdd_l9_l10_l18_l22-supply = <&vph_pwr_bbyp>;
7328cc087a1SEmmanuel Vadot		vdd_l13_l19_l23_l24-supply = <&vph_pwr_bbyp>;
7338cc087a1SEmmanuel Vadot		vdd_l14_l15-supply = <&vreg_s5a_2p15>;
7348cc087a1SEmmanuel Vadot		vdd_l17_l29-supply = <&vph_pwr_bbyp>;
7358cc087a1SEmmanuel Vadot		vdd_l20_l21-supply = <&vph_pwr_bbyp>;
7368cc087a1SEmmanuel Vadot		vdd_l25-supply = <&vreg_s3a_1p3>;
737e67e8565SEmmanuel Vadot		vdd_lvs1_2-supply = <&vreg_s4a_1p8>;
7388cc087a1SEmmanuel Vadot
7398cc087a1SEmmanuel Vadot		vreg_s3a_1p3: s3 {
7408cc087a1SEmmanuel Vadot			regulator-name = "vreg_s3a_1p3";
7418cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1300000>;
7428cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1300000>;
7438cc087a1SEmmanuel Vadot		};
7448cc087a1SEmmanuel Vadot
7458cc087a1SEmmanuel Vadot		/**
7468cc087a1SEmmanuel Vadot		 * 1.8v required on LS expansion
7478cc087a1SEmmanuel Vadot		 * for mezzanine boards
7488cc087a1SEmmanuel Vadot		 */
7498cc087a1SEmmanuel Vadot		vreg_s4a_1p8: s4 {
7508cc087a1SEmmanuel Vadot			regulator-name = "vreg_s4a_1p8";
7518cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
7528cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
7538cc087a1SEmmanuel Vadot			regulator-always-on;
7548cc087a1SEmmanuel Vadot		};
7558cc087a1SEmmanuel Vadot		vreg_s5a_2p15: s5 {
7568cc087a1SEmmanuel Vadot			regulator-name = "vreg_s5a_2p15";
7578cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2150000>;
7588cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2150000>;
7598cc087a1SEmmanuel Vadot		};
7608cc087a1SEmmanuel Vadot		vreg_s7a_1p0: s7 {
7618cc087a1SEmmanuel Vadot			regulator-name = "vreg_s7a_1p0";
7628cc087a1SEmmanuel Vadot			regulator-min-microvolt = <800000>;
7638cc087a1SEmmanuel Vadot			regulator-max-microvolt = <800000>;
7648cc087a1SEmmanuel Vadot		};
7658cc087a1SEmmanuel Vadot
7668cc087a1SEmmanuel Vadot		vreg_l1a_1p0: l1 {
7678cc087a1SEmmanuel Vadot			regulator-name = "vreg_l1a_1p0";
7688cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1000000>;
7698cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1000000>;
7708cc087a1SEmmanuel Vadot		};
7718cc087a1SEmmanuel Vadot		vreg_l2a_1p25: l2 {
7728cc087a1SEmmanuel Vadot			regulator-name = "vreg_l2a_1p25";
7738cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1250000>;
7748cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1250000>;
7758cc087a1SEmmanuel Vadot		};
7768cc087a1SEmmanuel Vadot		vreg_l3a_0p875: l3 {
7778cc087a1SEmmanuel Vadot			regulator-name = "vreg_l3a_0p875";
7788cc087a1SEmmanuel Vadot			regulator-min-microvolt = <850000>;
7798cc087a1SEmmanuel Vadot			regulator-max-microvolt = <850000>;
7808cc087a1SEmmanuel Vadot		};
7818cc087a1SEmmanuel Vadot		vreg_l4a_1p225: l4 {
7828cc087a1SEmmanuel Vadot			regulator-name = "vreg_l4a_1p225";
7838cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1225000>;
7848cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1225000>;
7858cc087a1SEmmanuel Vadot		};
7868cc087a1SEmmanuel Vadot		vreg_l6a_1p2: l6 {
7878cc087a1SEmmanuel Vadot			regulator-name = "vreg_l6a_1p2";
7888cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1200000>;
7898cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1200000>;
7908cc087a1SEmmanuel Vadot		};
7918cc087a1SEmmanuel Vadot		vreg_l8a_1p8: l8 {
7928cc087a1SEmmanuel Vadot			regulator-name = "vreg_l8a_1p8";
7938cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
7948cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
7958cc087a1SEmmanuel Vadot		};
7968cc087a1SEmmanuel Vadot		vreg_l9a_1p8: l9 {
7978cc087a1SEmmanuel Vadot			regulator-name = "vreg_l9a_1p8";
7988cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
7998cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
8008cc087a1SEmmanuel Vadot		};
8018cc087a1SEmmanuel Vadot		vreg_l10a_1p8: l10 {
8028cc087a1SEmmanuel Vadot			regulator-name = "vreg_l10a_1p8";
8038cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
8048cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
8058cc087a1SEmmanuel Vadot		};
8068cc087a1SEmmanuel Vadot		vreg_l11a_1p15: l11 {
8078cc087a1SEmmanuel Vadot			regulator-name = "vreg_l11a_1p15";
8088cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1150000>;
8098cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1150000>;
8108cc087a1SEmmanuel Vadot		};
8118cc087a1SEmmanuel Vadot		vreg_l12a_1p8: l12 {
8128cc087a1SEmmanuel Vadot			regulator-name = "vreg_l12a_1p8";
8138cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
8148cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
8158cc087a1SEmmanuel Vadot		};
8168cc087a1SEmmanuel Vadot		vreg_l13a_2p95: l13 {
8178cc087a1SEmmanuel Vadot			regulator-name = "vreg_l13a_2p95";
8188cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
8198cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2950000>;
8208cc087a1SEmmanuel Vadot		};
8218cc087a1SEmmanuel Vadot		vreg_l14a_1p8: l14 {
8228cc087a1SEmmanuel Vadot			regulator-name = "vreg_l14a_1p8";
8238cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
8248cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
8258cc087a1SEmmanuel Vadot		};
8268cc087a1SEmmanuel Vadot		vreg_l15a_1p8: l15 {
8278cc087a1SEmmanuel Vadot			regulator-name = "vreg_l15a_1p8";
8288cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
8298cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
8308cc087a1SEmmanuel Vadot		};
8318cc087a1SEmmanuel Vadot		vreg_l16a_2p7: l16 {
8328cc087a1SEmmanuel Vadot			regulator-name = "vreg_l16a_2p7";
8338cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2700000>;
8348cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2700000>;
8358cc087a1SEmmanuel Vadot		};
8368cc087a1SEmmanuel Vadot		vreg_l17a_2p8: l17 {
8378cc087a1SEmmanuel Vadot			regulator-name = "vreg_l17a_2p8";
8388cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2500000>;
8398cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2500000>;
8408cc087a1SEmmanuel Vadot		};
8418cc087a1SEmmanuel Vadot		vreg_l18a_2p85: l18 {
8428cc087a1SEmmanuel Vadot			regulator-name = "vreg_l18a_2p85";
8438cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2700000>;
8448cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2900000>;
8458cc087a1SEmmanuel Vadot		};
8468cc087a1SEmmanuel Vadot		vreg_l19a_2p8: l19 {
8478cc087a1SEmmanuel Vadot			regulator-name = "vreg_l19a_2p8";
8488cc087a1SEmmanuel Vadot			regulator-min-microvolt = <3000000>;
8498cc087a1SEmmanuel Vadot			regulator-max-microvolt = <3000000>;
8508cc087a1SEmmanuel Vadot		};
8518cc087a1SEmmanuel Vadot		vreg_l20a_2p95: l20 {
8528cc087a1SEmmanuel Vadot			regulator-name = "vreg_l20a_2p95";
8538cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2950000>;
8548cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2950000>;
8558cc087a1SEmmanuel Vadot			regulator-allow-set-load;
8568cc087a1SEmmanuel Vadot		};
8578cc087a1SEmmanuel Vadot		vreg_l21a_2p95: l21 {
8588cc087a1SEmmanuel Vadot			regulator-name = "vreg_l21a_2p95";
8598cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2950000>;
8608cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2950000>;
8618cc087a1SEmmanuel Vadot			regulator-allow-set-load;
8628cc087a1SEmmanuel Vadot			regulator-system-load = <200000>;
8638cc087a1SEmmanuel Vadot		};
8648cc087a1SEmmanuel Vadot		vreg_l22a_3p0: l22 {
8658cc087a1SEmmanuel Vadot			regulator-name = "vreg_l22a_3p0";
8668cc087a1SEmmanuel Vadot			regulator-min-microvolt = <3300000>;
8678cc087a1SEmmanuel Vadot			regulator-max-microvolt = <3300000>;
8688cc087a1SEmmanuel Vadot		};
8698cc087a1SEmmanuel Vadot		vreg_l23a_2p8: l23 {
8708cc087a1SEmmanuel Vadot			regulator-name = "vreg_l23a_2p8";
8718cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2800000>;
8728cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2800000>;
8738cc087a1SEmmanuel Vadot		};
8748cc087a1SEmmanuel Vadot		vreg_l24a_3p075: l24 {
8758cc087a1SEmmanuel Vadot			regulator-name = "vreg_l24a_3p075";
8768cc087a1SEmmanuel Vadot			regulator-min-microvolt = <3075000>;
8778cc087a1SEmmanuel Vadot			regulator-max-microvolt = <3075000>;
8788cc087a1SEmmanuel Vadot		};
8798cc087a1SEmmanuel Vadot		vreg_l25a_1p2: l25 {
8808cc087a1SEmmanuel Vadot			regulator-name = "vreg_l25a_1p2";
8818cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1200000>;
8828cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1200000>;
8838cc087a1SEmmanuel Vadot			regulator-allow-set-load;
8848cc087a1SEmmanuel Vadot		};
8858cc087a1SEmmanuel Vadot		vreg_l26a_0p8: l27 {
8868cc087a1SEmmanuel Vadot			regulator-name = "vreg_l26a_0p8";
8878cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1000000>;
8888cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1000000>;
8898cc087a1SEmmanuel Vadot		};
8908cc087a1SEmmanuel Vadot		vreg_l28a_0p925: l28 {
8918cc087a1SEmmanuel Vadot			regulator-name = "vreg_l28a_0p925";
8928cc087a1SEmmanuel Vadot			regulator-min-microvolt = <925000>;
8938cc087a1SEmmanuel Vadot			regulator-max-microvolt = <925000>;
8948cc087a1SEmmanuel Vadot			regulator-allow-set-load;
8958cc087a1SEmmanuel Vadot		};
8968cc087a1SEmmanuel Vadot		vreg_l29a_2p8: l29 {
8978cc087a1SEmmanuel Vadot			regulator-name = "vreg_l29a_2p8";
8988cc087a1SEmmanuel Vadot			regulator-min-microvolt = <2800000>;
8998cc087a1SEmmanuel Vadot			regulator-max-microvolt = <2800000>;
9008cc087a1SEmmanuel Vadot		};
9018cc087a1SEmmanuel Vadot		vreg_l30a_1p8: l30 {
9028cc087a1SEmmanuel Vadot			regulator-name = "vreg_l30a_1p8";
9038cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
9048cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
9058cc087a1SEmmanuel Vadot		};
9068cc087a1SEmmanuel Vadot		vreg_l32a_1p8: l32 {
9078cc087a1SEmmanuel Vadot			regulator-name = "vreg_l32a_1p8";
9088cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
9098cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
9108cc087a1SEmmanuel Vadot		};
9118cc087a1SEmmanuel Vadot
9128cc087a1SEmmanuel Vadot		vreg_lvs1a_1p8: lvs1 {
9138cc087a1SEmmanuel Vadot			regulator-name = "vreg_lvs1a_1p8";
9148cc087a1SEmmanuel Vadot		};
9158cc087a1SEmmanuel Vadot
9168cc087a1SEmmanuel Vadot		vreg_lvs2a_1p8: lvs2 {
9178cc087a1SEmmanuel Vadot			regulator-name = "vreg_lvs2a_1p8";
9188cc087a1SEmmanuel Vadot		};
9198cc087a1SEmmanuel Vadot	};
9208cc087a1SEmmanuel Vadot
9218bab661aSEmmanuel Vadot	regulators-1 {
9228cc087a1SEmmanuel Vadot		compatible = "qcom,rpm-pmi8994-regulators";
9238cc087a1SEmmanuel Vadot
9248cc087a1SEmmanuel Vadot		vdd_s1-supply = <&vph_pwr>;
9258cc087a1SEmmanuel Vadot		vdd_s2-supply = <&vph_pwr>;
9268cc087a1SEmmanuel Vadot		vdd_s3-supply = <&vph_pwr>;
9278cc087a1SEmmanuel Vadot		vdd_bst_byp-supply = <&vph_pwr>;
9288cc087a1SEmmanuel Vadot
9298cc087a1SEmmanuel Vadot		vph_pwr_bbyp: boost-bypass {
9308cc087a1SEmmanuel Vadot			regulator-name = "vph_pwr_bbyp";
9318cc087a1SEmmanuel Vadot			regulator-min-microvolt = <3300000>;
9328cc087a1SEmmanuel Vadot			regulator-max-microvolt = <3300000>;
9338cc087a1SEmmanuel Vadot		};
9348cc087a1SEmmanuel Vadot
9358cc087a1SEmmanuel Vadot		vreg_s1b_1p025: s1 {
9368cc087a1SEmmanuel Vadot			regulator-name = "vreg_s1b_1p025";
9378cc087a1SEmmanuel Vadot			regulator-min-microvolt = <1025000>;
9388cc087a1SEmmanuel Vadot			regulator-max-microvolt = <1025000>;
9398cc087a1SEmmanuel Vadot		};
9408cc087a1SEmmanuel Vadot	};
9418cc087a1SEmmanuel Vadot};
9428cc087a1SEmmanuel Vadot
9438cc087a1SEmmanuel Vadot&sdhc2 {
9448cc087a1SEmmanuel Vadot	/* External SD card */
9458cc087a1SEmmanuel Vadot	pinctrl-names = "default", "sleep";
9468cc087a1SEmmanuel Vadot	pinctrl-0 = <&sdc2_state_on &sdc2_cd_on>;
9478cc087a1SEmmanuel Vadot	pinctrl-1 = <&sdc2_state_off &sdc2_cd_off>;
9488cc087a1SEmmanuel Vadot	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
9498cc087a1SEmmanuel Vadot	vmmc-supply = <&vreg_l21a_2p95>;
9508cc087a1SEmmanuel Vadot	vqmmc-supply = <&vreg_l13a_2p95>;
9518cc087a1SEmmanuel Vadot	status = "okay";
9528cc087a1SEmmanuel Vadot};
9538cc087a1SEmmanuel Vadot
9548cc087a1SEmmanuel Vadot&q6asmdai {
9558cc087a1SEmmanuel Vadot	dai@0 {
9568cc087a1SEmmanuel Vadot		reg = <0>;
9578cc087a1SEmmanuel Vadot	};
9588cc087a1SEmmanuel Vadot
9598cc087a1SEmmanuel Vadot	dai@1 {
9608cc087a1SEmmanuel Vadot		reg = <1>;
9618cc087a1SEmmanuel Vadot	};
9628cc087a1SEmmanuel Vadot
9638cc087a1SEmmanuel Vadot	dai@2 {
9648cc087a1SEmmanuel Vadot		reg = <2>;
9658cc087a1SEmmanuel Vadot	};
9668cc087a1SEmmanuel Vadot};
9678cc087a1SEmmanuel Vadot
968fac71e4eSEmmanuel Vadot&slim_msm {
969fac71e4eSEmmanuel Vadot	status = "okay";
970fac71e4eSEmmanuel Vadot
971fac71e4eSEmmanuel Vadot	slim@1 {
972fac71e4eSEmmanuel Vadot		reg = <1>;
973fac71e4eSEmmanuel Vadot		#address-cells = <2>;
974fac71e4eSEmmanuel Vadot		#size-cells = <0>;
975fac71e4eSEmmanuel Vadot
976fac71e4eSEmmanuel Vadot		tasha_ifd: tas-ifd@0,0 {
977fac71e4eSEmmanuel Vadot			compatible = "slim217,1a0";
978fac71e4eSEmmanuel Vadot			reg = <0 0>;
979fac71e4eSEmmanuel Vadot		};
980fac71e4eSEmmanuel Vadot
981fac71e4eSEmmanuel Vadot		wcd9335: codec@1,0 {
982fac71e4eSEmmanuel Vadot			compatible = "slim217,1a0";
983fac71e4eSEmmanuel Vadot			reg = <1 0>;
984fac71e4eSEmmanuel Vadot
985fac71e4eSEmmanuel Vadot			clock-names = "mclk", "slimbus";
986fac71e4eSEmmanuel Vadot			clocks = <&div1_mclk>,
987fac71e4eSEmmanuel Vadot				 <&rpmcc RPM_SMD_BB_CLK1>;
988fac71e4eSEmmanuel Vadot			interrupt-parent = <&tlmm>;
989fac71e4eSEmmanuel Vadot			interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
990fac71e4eSEmmanuel Vadot				     <53 IRQ_TYPE_LEVEL_HIGH>;
991fac71e4eSEmmanuel Vadot			interrupt-names = "intr1", "intr2";
992fac71e4eSEmmanuel Vadot			interrupt-controller;
993fac71e4eSEmmanuel Vadot			#interrupt-cells = <1>;
994fac71e4eSEmmanuel Vadot
995fac71e4eSEmmanuel Vadot			pinctrl-0 = <&cdc_reset_active &wcd_intr_default>;
996fac71e4eSEmmanuel Vadot			pinctrl-names = "default";
997fac71e4eSEmmanuel Vadot
998fac71e4eSEmmanuel Vadot			reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
999fac71e4eSEmmanuel Vadot			slim-ifc-dev = <&tasha_ifd>;
1000fac71e4eSEmmanuel Vadot
1001fac71e4eSEmmanuel Vadot			#sound-dai-cells = <1>;
1002fac71e4eSEmmanuel Vadot
1003fac71e4eSEmmanuel Vadot			vdd-buck-supply = <&vreg_s4a_1p8>;
1004fac71e4eSEmmanuel Vadot			vdd-buck-sido-supply = <&vreg_s4a_1p8>;
1005fac71e4eSEmmanuel Vadot			vdd-tx-supply = <&vreg_s4a_1p8>;
1006fac71e4eSEmmanuel Vadot			vdd-rx-supply = <&vreg_s4a_1p8>;
1007fac71e4eSEmmanuel Vadot			vdd-io-supply = <&vreg_s4a_1p8>;
1008fac71e4eSEmmanuel Vadot		};
1009fac71e4eSEmmanuel Vadot	};
1010fac71e4eSEmmanuel Vadot};
1011fac71e4eSEmmanuel Vadot
10128cc087a1SEmmanuel Vadot&sound {
10138cc087a1SEmmanuel Vadot	compatible = "qcom,apq8096-sndcard";
10148cc087a1SEmmanuel Vadot	model = "DB820c";
10158cc087a1SEmmanuel Vadot	audio-routing = "RX_BIAS", "MCLK",
10168cc087a1SEmmanuel Vadot		"MM_DL1",  "MultiMedia1 Playback",
10178cc087a1SEmmanuel Vadot		"MM_DL2",  "MultiMedia2 Playback",
10188cc087a1SEmmanuel Vadot		"MultiMedia3 Capture", "MM_UL3";
10198cc087a1SEmmanuel Vadot
10208cc087a1SEmmanuel Vadot	mm1-dai-link {
10218cc087a1SEmmanuel Vadot		link-name = "MultiMedia1";
10228cc087a1SEmmanuel Vadot		cpu {
10238cc087a1SEmmanuel Vadot			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA1>;
10248cc087a1SEmmanuel Vadot		};
10258cc087a1SEmmanuel Vadot	};
10268cc087a1SEmmanuel Vadot
10278cc087a1SEmmanuel Vadot	mm2-dai-link {
10288cc087a1SEmmanuel Vadot		link-name = "MultiMedia2";
10298cc087a1SEmmanuel Vadot		cpu {
10308cc087a1SEmmanuel Vadot			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA2>;
10318cc087a1SEmmanuel Vadot		};
10328cc087a1SEmmanuel Vadot	};
10338cc087a1SEmmanuel Vadot
10348cc087a1SEmmanuel Vadot	mm3-dai-link {
10358cc087a1SEmmanuel Vadot		link-name = "MultiMedia3";
10368cc087a1SEmmanuel Vadot		cpu {
10378cc087a1SEmmanuel Vadot			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3>;
10388cc087a1SEmmanuel Vadot		};
10398cc087a1SEmmanuel Vadot	};
10408cc087a1SEmmanuel Vadot
1041aa1a8ff2SEmmanuel Vadot	hdmi-dai-link {
10428cc087a1SEmmanuel Vadot		link-name = "HDMI";
10438cc087a1SEmmanuel Vadot		cpu {
10448cc087a1SEmmanuel Vadot			sound-dai = <&q6afedai HDMI_RX>;
10458cc087a1SEmmanuel Vadot		};
10468cc087a1SEmmanuel Vadot
10478cc087a1SEmmanuel Vadot		platform {
10488cc087a1SEmmanuel Vadot			sound-dai = <&q6routing>;
10498cc087a1SEmmanuel Vadot		};
10508cc087a1SEmmanuel Vadot
10518cc087a1SEmmanuel Vadot		codec {
1052f126890aSEmmanuel Vadot			sound-dai = <&mdss_hdmi 0>;
10538cc087a1SEmmanuel Vadot		};
10548cc087a1SEmmanuel Vadot	};
10558cc087a1SEmmanuel Vadot
10568cc087a1SEmmanuel Vadot	slim-dai-link {
10578cc087a1SEmmanuel Vadot		link-name = "SLIM Playback";
10588cc087a1SEmmanuel Vadot		cpu {
10598cc087a1SEmmanuel Vadot			sound-dai = <&q6afedai SLIMBUS_6_RX>;
10608cc087a1SEmmanuel Vadot		};
10618cc087a1SEmmanuel Vadot
10628cc087a1SEmmanuel Vadot		platform {
10638cc087a1SEmmanuel Vadot			sound-dai = <&q6routing>;
10648cc087a1SEmmanuel Vadot		};
10658cc087a1SEmmanuel Vadot
10668cc087a1SEmmanuel Vadot		codec {
10677ef62cebSEmmanuel Vadot			sound-dai = <&wcd9335 AIF4_PB>;
10688cc087a1SEmmanuel Vadot		};
10698cc087a1SEmmanuel Vadot	};
10708cc087a1SEmmanuel Vadot
10718cc087a1SEmmanuel Vadot	slimcap-dai-link {
10728cc087a1SEmmanuel Vadot		link-name = "SLIM Capture";
10738cc087a1SEmmanuel Vadot		cpu {
10748cc087a1SEmmanuel Vadot			sound-dai = <&q6afedai SLIMBUS_0_TX>;
10758cc087a1SEmmanuel Vadot		};
10768cc087a1SEmmanuel Vadot
10778cc087a1SEmmanuel Vadot		platform {
10788cc087a1SEmmanuel Vadot			sound-dai = <&q6routing>;
10798cc087a1SEmmanuel Vadot		};
10808cc087a1SEmmanuel Vadot
10818cc087a1SEmmanuel Vadot		codec {
10827ef62cebSEmmanuel Vadot			sound-dai = <&wcd9335 AIF1_CAP>;
10838cc087a1SEmmanuel Vadot		};
10848cc087a1SEmmanuel Vadot	};
10858cc087a1SEmmanuel Vadot};
10868cc087a1SEmmanuel Vadot
10878cc087a1SEmmanuel Vadot&ufsphy {
10888cc087a1SEmmanuel Vadot	status = "okay";
10898cc087a1SEmmanuel Vadot
10908cc087a1SEmmanuel Vadot	vdda-phy-supply = <&vreg_l28a_0p925>;
10918cc087a1SEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
10928cc087a1SEmmanuel Vadot};
10938cc087a1SEmmanuel Vadot
10948cc087a1SEmmanuel Vadot&ufshc {
10958cc087a1SEmmanuel Vadot	status = "okay";
10968cc087a1SEmmanuel Vadot
10978cc087a1SEmmanuel Vadot	vcc-supply = <&vreg_l20a_2p95>;
10988cc087a1SEmmanuel Vadot	vccq-supply = <&vreg_l25a_1p2>;
10998cc087a1SEmmanuel Vadot	vccq2-supply = <&vreg_s4a_1p8>;
1100*84943d6fSEmmanuel Vadot	vdd-hba-supply = <&vreg_l25a_1p2>;
11018cc087a1SEmmanuel Vadot
11028cc087a1SEmmanuel Vadot	vcc-max-microamp = <600000>;
11038cc087a1SEmmanuel Vadot	vccq-max-microamp = <450000>;
11048cc087a1SEmmanuel Vadot	vccq2-max-microamp = <450000>;
11058cc087a1SEmmanuel Vadot};
11068cc087a1SEmmanuel Vadot
11078cc087a1SEmmanuel Vadot&usb2 {
11088cc087a1SEmmanuel Vadot	status = "okay";
11098cc087a1SEmmanuel Vadot	extcon = <&usb2_id>;
1110d5b0e70fSEmmanuel Vadot};
11118cc087a1SEmmanuel Vadot
1112d5b0e70fSEmmanuel Vadot&usb2_dwc3 {
11138cc087a1SEmmanuel Vadot	extcon = <&usb2_id>;
11148cc087a1SEmmanuel Vadot	dr_mode = "otg";
11158cc087a1SEmmanuel Vadot	maximum-speed = "high-speed";
11168cc087a1SEmmanuel Vadot};
11178cc087a1SEmmanuel Vadot
11188cc087a1SEmmanuel Vadot&usb3 {
11198cc087a1SEmmanuel Vadot	status = "okay";
11208cc087a1SEmmanuel Vadot	extcon = <&usb3_id>;
1121d5b0e70fSEmmanuel Vadot};
11228cc087a1SEmmanuel Vadot
1123d5b0e70fSEmmanuel Vadot&usb3_dwc3 {
11248cc087a1SEmmanuel Vadot	extcon = <&usb3_id>;
11258cc087a1SEmmanuel Vadot	dr_mode = "otg";
11268cc087a1SEmmanuel Vadot};
11278cc087a1SEmmanuel Vadot
11288cc087a1SEmmanuel Vadot&usb3phy {
11298cc087a1SEmmanuel Vadot	status = "okay";
11308cc087a1SEmmanuel Vadot
11318cc087a1SEmmanuel Vadot	vdda-phy-supply = <&vreg_l28a_0p925>;
11328cc087a1SEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a_1p8>;
11338cc087a1SEmmanuel Vadot};
11348cc087a1SEmmanuel Vadot
11358cc087a1SEmmanuel Vadot&venus {
11368cc087a1SEmmanuel Vadot	status = "okay";
11378cc087a1SEmmanuel Vadot};
1138