xref: /linux/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts (revision fdcc36cda04114878f6c752083669719a3995fce)
144acee20SBjorn Andersson// SPDX-License-Identifier: BSD-3-Clause
244acee20SBjorn Andersson/*
344acee20SBjorn Andersson * Lenovo Yoga C630
444acee20SBjorn Andersson *
544acee20SBjorn Andersson * Copyright (c) 2019, Linaro Ltd.
644acee20SBjorn Andersson */
744acee20SBjorn Andersson
844acee20SBjorn Andersson/dts-v1/;
944acee20SBjorn Andersson
1071b83b74SBjorn Andersson#include <dt-bindings/input/gpio-keys.h>
1171b83b74SBjorn Andersson#include <dt-bindings/input/input.h>
1244acee20SBjorn Andersson#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
1345021d35SSrinivas Kandagatla#include <dt-bindings/sound/qcom,q6afe.h>
1445021d35SSrinivas Kandagatla#include <dt-bindings/sound/qcom,q6asm.h>
156be4ba54SSteev Klimaszewski#include "sdm850.dtsi"
1634c86173SKrzysztof Kozlowski#include "sdm845-wcd9340.dtsi"
1744acee20SBjorn Andersson#include "pm8998.dtsi"
1844acee20SBjorn Andersson
194420a0deSAmit Pundir/*
204420a0deSAmit Pundir * Update following upstream (sdm845.dtsi) reserved
214420a0deSAmit Pundir * memory mappings for firmware loading to succeed
224420a0deSAmit Pundir * and enable the IPA device.
234420a0deSAmit Pundir */
244420a0deSAmit Pundir/delete-node/ &ipa_fw_mem;
254420a0deSAmit Pundir/delete-node/ &ipa_gsi_mem;
264420a0deSAmit Pundir/delete-node/ &gpu_mem;
274420a0deSAmit Pundir/delete-node/ &adsp_mem;
284420a0deSAmit Pundir/delete-node/ &wlan_msa_mem;
294420a0deSAmit Pundir
3044acee20SBjorn Andersson/ {
3144acee20SBjorn Andersson	model = "Lenovo Yoga C630";
3244acee20SBjorn Andersson	compatible = "lenovo,yoga-c630", "qcom,sdm845";
33eaa744b1SArnaud Ferraris	chassis-type = "convertible";
3444acee20SBjorn Andersson
3544acee20SBjorn Andersson	aliases {
36443042beSCaleb Connolly		serial0 = &uart9;
372c2f83d9SCaleb Connolly		serial1 = &uart6;
3844acee20SBjorn Andersson	};
3971b83b74SBjorn Andersson
4071b83b74SBjorn Andersson	gpio-keys {
4171b83b74SBjorn Andersson		compatible = "gpio-keys";
4271b83b74SBjorn Andersson
4371b83b74SBjorn Andersson		pinctrl-names = "default";
4471b83b74SBjorn Andersson		pinctrl-0 = <&lid_pin_active>, <&mode_pin_active>;
4571b83b74SBjorn Andersson
46b08f5cbdSKrzysztof Kozlowski		switch-lid {
4771b83b74SBjorn Andersson			gpios = <&tlmm 124 GPIO_ACTIVE_HIGH>;
4871b83b74SBjorn Andersson			linux,input-type = <EV_SW>;
4971b83b74SBjorn Andersson			linux,code = <SW_LID>;
5071b83b74SBjorn Andersson			wakeup-source;
5171b83b74SBjorn Andersson			wakeup-event-action = <EV_ACT_DEASSERTED>;
5271b83b74SBjorn Andersson		};
5371b83b74SBjorn Andersson
54b08f5cbdSKrzysztof Kozlowski		switch-mode {
5571b83b74SBjorn Andersson			gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
5671b83b74SBjorn Andersson			linux,input-type = <EV_SW>;
5771b83b74SBjorn Andersson			linux,code = <SW_TABLET_MODE>;
5871b83b74SBjorn Andersson		};
5971b83b74SBjorn Andersson	};
60956e9c85SBjorn Andersson
614420a0deSAmit Pundir	/* Reserved memory changes for IPA */
624420a0deSAmit Pundir	reserved-memory {
634420a0deSAmit Pundir		wlan_msa_mem: memory@8c400000 {
644420a0deSAmit Pundir			reg = <0 0x8c400000 0 0x100000>;
654420a0deSAmit Pundir			no-map;
664420a0deSAmit Pundir		};
674420a0deSAmit Pundir
684420a0deSAmit Pundir		gpu_mem: memory@8c515000 {
694420a0deSAmit Pundir			reg = <0 0x8c515000 0 0x2000>;
704420a0deSAmit Pundir			no-map;
714420a0deSAmit Pundir		};
724420a0deSAmit Pundir
734420a0deSAmit Pundir		ipa_fw_mem: memory@8c517000 {
744420a0deSAmit Pundir			reg = <0 0x8c517000 0 0x5a000>;
754420a0deSAmit Pundir			no-map;
764420a0deSAmit Pundir		};
774420a0deSAmit Pundir
784420a0deSAmit Pundir		adsp_mem: memory@8c600000 {
794420a0deSAmit Pundir			reg = <0 0x8c600000 0 0x1a00000>;
804420a0deSAmit Pundir			no-map;
814420a0deSAmit Pundir		};
824420a0deSAmit Pundir	};
834420a0deSAmit Pundir
842bc06b76SCaleb Connolly	sw_edp_1p2: edp-1p2-regulator {
852bc06b76SCaleb Connolly		compatible = "regulator-fixed";
862bc06b76SCaleb Connolly		regulator-name = "sw_edp_1p2";
872bc06b76SCaleb Connolly
882bc06b76SCaleb Connolly		regulator-min-microvolt = <1200000>;
892bc06b76SCaleb Connolly		regulator-max-microvolt = <1200000>;
902bc06b76SCaleb Connolly
912bc06b76SCaleb Connolly		pinctrl-0 = <&sw_edp_1p2_en>;
922bc06b76SCaleb Connolly		pinctrl-names = "default";
932bc06b76SCaleb Connolly
942bc06b76SCaleb Connolly		gpio = <&pm8998_gpios 9 GPIO_ACTIVE_HIGH>;
952bc06b76SCaleb Connolly		enable-active-high;
962bc06b76SCaleb Connolly
972bc06b76SCaleb Connolly		vin-supply = <&vreg_l2a_1p2>;
982bc06b76SCaleb Connolly	};
992bc06b76SCaleb Connolly
100956e9c85SBjorn Andersson	sn65dsi86_refclk: sn65dsi86-refclk {
101956e9c85SBjorn Andersson		compatible = "fixed-clock";
102956e9c85SBjorn Andersson		#clock-cells = <0>;
103956e9c85SBjorn Andersson
104956e9c85SBjorn Andersson		clock-frequency = <19200000>;
105956e9c85SBjorn Andersson	};
106a28106a2SBjorn Andersson
1076b0fd355SKrzysztof Kozlowski	vph_pwr: regulator-vph-pwr {
1086b0fd355SKrzysztof Kozlowski		compatible = "regulator-fixed";
1096b0fd355SKrzysztof Kozlowski		regulator-name = "vph_pwr";
1106b0fd355SKrzysztof Kozlowski		regulator-min-microvolt = <3700000>;
1116b0fd355SKrzysztof Kozlowski		regulator-max-microvolt = <3700000>;
1126b0fd355SKrzysztof Kozlowski	};
1136b0fd355SKrzysztof Kozlowski
1146b0fd355SKrzysztof Kozlowski	vlcm_3v3: regulator-vlcm-3v3 {
1156b0fd355SKrzysztof Kozlowski		compatible = "regulator-fixed";
1166b0fd355SKrzysztof Kozlowski		regulator-name = "vlcm_3v3";
1176b0fd355SKrzysztof Kozlowski
1186b0fd355SKrzysztof Kozlowski		vin-supply = <&vph_pwr>;
1196b0fd355SKrzysztof Kozlowski		regulator-min-microvolt = <3300000>;
1206b0fd355SKrzysztof Kozlowski		regulator-max-microvolt = <3300000>;
1216b0fd355SKrzysztof Kozlowski
1226b0fd355SKrzysztof Kozlowski		gpio = <&tlmm 88 GPIO_ACTIVE_HIGH>;
1236b0fd355SKrzysztof Kozlowski		enable-active-high;
1246b0fd355SKrzysztof Kozlowski	};
1256b0fd355SKrzysztof Kozlowski
126a28106a2SBjorn Andersson	backlight: backlight {
127a28106a2SBjorn Andersson		compatible = "pwm-backlight";
128a28106a2SBjorn Andersson		pwms = <&sn65dsi86 1000000>;
129a28106a2SBjorn Andersson		enable-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
130a28106a2SBjorn Andersson	};
13144acee20SBjorn Andersson};
13244acee20SBjorn Andersson
1333cd82e95SBjorn Andersson&adsp_pas {
13440103eabSSteev Klimaszewski	firmware-name = "qcom/sdm850/LENOVO/81JL/qcadsp850.mbn";
1353cd82e95SBjorn Andersson	status = "okay";
1363cd82e95SBjorn Andersson};
1373cd82e95SBjorn Andersson
13844acee20SBjorn Andersson&apps_rsc {
13986dd19bbSKrzysztof Kozlowski	regulators-0 {
14044acee20SBjorn Andersson		compatible = "qcom,pm8998-rpmh-regulators";
14144acee20SBjorn Andersson		qcom,pmic-id = "a";
14244acee20SBjorn Andersson
14344acee20SBjorn Andersson		vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
14444acee20SBjorn Andersson		vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
14544acee20SBjorn Andersson
14644acee20SBjorn Andersson		vreg_s2a_1p125: smps2 {
14744acee20SBjorn Andersson		};
14844acee20SBjorn Andersson
14944acee20SBjorn Andersson		vreg_s3a_1p35: smps3 {
15044acee20SBjorn Andersson			regulator-min-microvolt = <1352000>;
15144acee20SBjorn Andersson			regulator-max-microvolt = <1352000>;
15244acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
15344acee20SBjorn Andersson		};
15444acee20SBjorn Andersson
15544acee20SBjorn Andersson		vreg_s4a_1p8: smps4 {
15644acee20SBjorn Andersson			regulator-min-microvolt = <1800000>;
15744acee20SBjorn Andersson			regulator-max-microvolt = <1800000>;
15844acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
15944acee20SBjorn Andersson		};
16044acee20SBjorn Andersson
16144acee20SBjorn Andersson		vreg_s5a_2p04: smps5 {
16244acee20SBjorn Andersson			regulator-min-microvolt = <2040000>;
16344acee20SBjorn Andersson			regulator-max-microvolt = <2040000>;
16444acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
16544acee20SBjorn Andersson		};
16644acee20SBjorn Andersson
16744acee20SBjorn Andersson		vreg_s7a_1p025: smps7 {
16844acee20SBjorn Andersson		};
16944acee20SBjorn Andersson
17044acee20SBjorn Andersson		vdd_qusb_hs0:
17144acee20SBjorn Andersson		vdda_hp_pcie_core:
17244acee20SBjorn Andersson		vdda_mipi_csi0_0p9:
17344acee20SBjorn Andersson		vdda_mipi_csi1_0p9:
17444acee20SBjorn Andersson		vdda_mipi_csi2_0p9:
17544acee20SBjorn Andersson		vdda_mipi_dsi0_pll:
17644acee20SBjorn Andersson		vdda_mipi_dsi1_pll:
17744acee20SBjorn Andersson		vdda_qlink_lv:
17844acee20SBjorn Andersson		vdda_qlink_lv_ck:
17944acee20SBjorn Andersson		vdda_qrefs_0p875:
18044acee20SBjorn Andersson		vdda_pcie_core:
18144acee20SBjorn Andersson		vdda_pll_cc_ebi01:
18244acee20SBjorn Andersson		vdda_pll_cc_ebi23:
18344acee20SBjorn Andersson		vdda_sp_sensor:
18444acee20SBjorn Andersson		vdda_ufs1_core:
18544acee20SBjorn Andersson		vdda_ufs2_core:
18644acee20SBjorn Andersson		vdda_usb1_ss_core:
18744acee20SBjorn Andersson		vdda_usb2_ss_core:
18844acee20SBjorn Andersson		vreg_l1a_0p875: ldo1 {
18944acee20SBjorn Andersson			regulator-min-microvolt = <880000>;
19044acee20SBjorn Andersson			regulator-max-microvolt = <880000>;
19144acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
19244acee20SBjorn Andersson		};
19344acee20SBjorn Andersson
19444acee20SBjorn Andersson		vddpx_10:
19544acee20SBjorn Andersson		vreg_l2a_1p2: ldo2 {
19644acee20SBjorn Andersson			regulator-min-microvolt = <1200000>;
19744acee20SBjorn Andersson			regulator-max-microvolt = <1200000>;
19844acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
19944acee20SBjorn Andersson			regulator-always-on;
20044acee20SBjorn Andersson		};
20144acee20SBjorn Andersson
20244acee20SBjorn Andersson		vreg_l3a_1p0: ldo3 {
20344acee20SBjorn Andersson		};
20444acee20SBjorn Andersson
20544acee20SBjorn Andersson		vdd_wcss_cx:
20644acee20SBjorn Andersson		vdd_wcss_mx:
20744acee20SBjorn Andersson		vdda_wcss_pll:
20844acee20SBjorn Andersson		vreg_l5a_0p8: ldo5 {
20944acee20SBjorn Andersson			regulator-min-microvolt = <800000>;
21044acee20SBjorn Andersson			regulator-max-microvolt = <800000>;
21144acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
21244acee20SBjorn Andersson		};
21344acee20SBjorn Andersson
21444acee20SBjorn Andersson		vddpx_13:
21544acee20SBjorn Andersson		vreg_l6a_1p8: ldo6 {
21644acee20SBjorn Andersson			regulator-min-microvolt = <1800000>;
21744acee20SBjorn Andersson			regulator-max-microvolt = <1800000>;
21844acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
21944acee20SBjorn Andersson		};
22044acee20SBjorn Andersson
22144acee20SBjorn Andersson		vreg_l7a_1p8: ldo7 {
22244acee20SBjorn Andersson			regulator-min-microvolt = <1800000>;
22344acee20SBjorn Andersson			regulator-max-microvolt = <1800000>;
22444acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
22544acee20SBjorn Andersson		};
22644acee20SBjorn Andersson
22744acee20SBjorn Andersson		vreg_l8a_1p2: ldo8 {
22844acee20SBjorn Andersson		};
22944acee20SBjorn Andersson
23044acee20SBjorn Andersson		vreg_l9a_1p8: ldo9 {
23144acee20SBjorn Andersson		};
23244acee20SBjorn Andersson
23344acee20SBjorn Andersson		vreg_l10a_1p8: ldo10 {
23444acee20SBjorn Andersson		};
23544acee20SBjorn Andersson
23644acee20SBjorn Andersson		vreg_l11a_1p0: ldo11 {
23744acee20SBjorn Andersson		};
23844acee20SBjorn Andersson
23944acee20SBjorn Andersson		vdd_qfprom:
24044acee20SBjorn Andersson		vdd_qfprom_sp:
24144acee20SBjorn Andersson		vdda_apc1_cs_1p8:
24244acee20SBjorn Andersson		vdda_gfx_cs_1p8:
24344acee20SBjorn Andersson		vdda_qrefs_1p8:
24444acee20SBjorn Andersson		vdda_qusb_hs0_1p8:
24544acee20SBjorn Andersson		vddpx_11:
24644acee20SBjorn Andersson		vreg_l12a_1p8: ldo12 {
24744acee20SBjorn Andersson			regulator-min-microvolt = <1800000>;
24844acee20SBjorn Andersson			regulator-max-microvolt = <1800000>;
24944acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
25044acee20SBjorn Andersson		};
25144acee20SBjorn Andersson
25244acee20SBjorn Andersson		vddpx_2:
25344acee20SBjorn Andersson		vreg_l13a_2p95: ldo13 {
25444acee20SBjorn Andersson		};
25544acee20SBjorn Andersson
25644acee20SBjorn Andersson		vreg_l14a_1p88: ldo14 {
25744acee20SBjorn Andersson			regulator-min-microvolt = <1880000>;
25844acee20SBjorn Andersson			regulator-max-microvolt = <1880000>;
25944acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
26044acee20SBjorn Andersson			regulator-always-on;
26144acee20SBjorn Andersson		};
26244acee20SBjorn Andersson
26344acee20SBjorn Andersson		vreg_l15a_1p8: ldo15 {
26444acee20SBjorn Andersson		};
26544acee20SBjorn Andersson
26644acee20SBjorn Andersson		vreg_l16a_2p7: ldo16 {
26744acee20SBjorn Andersson		};
26844acee20SBjorn Andersson
26944acee20SBjorn Andersson		vreg_l17a_1p3: ldo17 {
27044acee20SBjorn Andersson			regulator-min-microvolt = <1304000>;
27144acee20SBjorn Andersson			regulator-max-microvolt = <1304000>;
27244acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
27344acee20SBjorn Andersson		};
27444acee20SBjorn Andersson
27544acee20SBjorn Andersson		vreg_l18a_2p7: ldo18 {
27644acee20SBjorn Andersson		};
27744acee20SBjorn Andersson
27844acee20SBjorn Andersson		vreg_l19a_3p0: ldo19 {
27944acee20SBjorn Andersson			regulator-min-microvolt = <3100000>;
28044acee20SBjorn Andersson			regulator-max-microvolt = <3108000>;
28144acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
28244acee20SBjorn Andersson		};
28344acee20SBjorn Andersson
28444acee20SBjorn Andersson		vreg_l20a_2p95: ldo20 {
28544acee20SBjorn Andersson			regulator-min-microvolt = <2960000>;
28644acee20SBjorn Andersson			regulator-max-microvolt = <2960000>;
28744acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
28844acee20SBjorn Andersson		};
28944acee20SBjorn Andersson
29044acee20SBjorn Andersson		vreg_l21a_2p95: ldo21 {
29144acee20SBjorn Andersson		};
29244acee20SBjorn Andersson
29344acee20SBjorn Andersson		vreg_l22a_2p85: ldo22 {
29444acee20SBjorn Andersson		};
29544acee20SBjorn Andersson
29644acee20SBjorn Andersson		vreg_l23a_3p3: ldo23 {
297b464f08cSSteev Klimaszewski			regulator-min-microvolt = <3300000>;
298b464f08cSSteev Klimaszewski			regulator-max-microvolt = <3312000>;
299b464f08cSSteev Klimaszewski			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
30044acee20SBjorn Andersson		};
30144acee20SBjorn Andersson
30244acee20SBjorn Andersson		vdda_qusb_hs0_3p1:
30344acee20SBjorn Andersson		vreg_l24a_3p075: ldo24 {
30444acee20SBjorn Andersson			regulator-min-microvolt = <3075000>;
30544acee20SBjorn Andersson			regulator-max-microvolt = <3083000>;
30644acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
30744acee20SBjorn Andersson		};
30844acee20SBjorn Andersson
30944acee20SBjorn Andersson		vreg_l25a_3p3: ldo25 {
31044acee20SBjorn Andersson			regulator-min-microvolt = <3104000>;
31144acee20SBjorn Andersson			regulator-max-microvolt = <3112000>;
31244acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
31344acee20SBjorn Andersson		};
31444acee20SBjorn Andersson
31544acee20SBjorn Andersson		vdda_hp_pcie_1p2:
31644acee20SBjorn Andersson		vdda_hv_ebi0:
31744acee20SBjorn Andersson		vdda_hv_ebi1:
31844acee20SBjorn Andersson		vdda_hv_ebi2:
31944acee20SBjorn Andersson		vdda_hv_ebi3:
32044acee20SBjorn Andersson		vdda_mipi_csi_1p25:
32144acee20SBjorn Andersson		vdda_mipi_dsi0_1p2:
32244acee20SBjorn Andersson		vdda_mipi_dsi1_1p2:
32344acee20SBjorn Andersson		vdda_pcie_1p2:
32444acee20SBjorn Andersson		vdda_ufs1_1p2:
32544acee20SBjorn Andersson		vdda_ufs2_1p2:
32644acee20SBjorn Andersson		vdda_usb1_ss_1p2:
32744acee20SBjorn Andersson		vdda_usb2_ss_1p2:
32844acee20SBjorn Andersson		vreg_l26a_1p2: ldo26 {
32944acee20SBjorn Andersson			regulator-min-microvolt = <1200000>;
33044acee20SBjorn Andersson			regulator-max-microvolt = <1208000>;
33144acee20SBjorn Andersson			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
33244acee20SBjorn Andersson		};
33344acee20SBjorn Andersson
33444acee20SBjorn Andersson		vreg_l28a_3p0: ldo28 {
33544acee20SBjorn Andersson		};
33644acee20SBjorn Andersson
33744acee20SBjorn Andersson		vreg_lvs1a_1p8: lvs1 {
33844acee20SBjorn Andersson		};
33944acee20SBjorn Andersson
34044acee20SBjorn Andersson		vreg_lvs2a_1p8: lvs2 {
34144acee20SBjorn Andersson		};
34244acee20SBjorn Andersson	};
34344acee20SBjorn Andersson};
34444acee20SBjorn Andersson
3453cd82e95SBjorn Andersson&cdsp_pas {
34640103eabSSteev Klimaszewski	firmware-name = "qcom/sdm850/LENOVO/81JL/qccdsp850.mbn";
3473cd82e95SBjorn Andersson	status = "okay";
3483cd82e95SBjorn Andersson};
3493cd82e95SBjorn Andersson
35044acee20SBjorn Andersson&gcc {
35144acee20SBjorn Andersson	protected-clocks = <GCC_QSPI_CORE_CLK>,
35244acee20SBjorn Andersson			   <GCC_QSPI_CORE_CLK_SRC>,
35393f2a115SBjorn Andersson			   <GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
35493f2a115SBjorn Andersson			   <GCC_LPASS_Q6_AXI_CLK>,
35593f2a115SBjorn Andersson			   <GCC_LPASS_SWAY_CLK>;
35644acee20SBjorn Andersson};
35744acee20SBjorn Andersson
3587f761609SKonrad Dybcio&gmu {
3597f761609SKonrad Dybcio	status = "okay";
3607f761609SKonrad Dybcio};
3617f761609SKonrad Dybcio
362f489b13dSRob Clark&gpu {
3637f761609SKonrad Dybcio	status = "okay";
364f489b13dSRob Clark	zap-shader {
365f489b13dSRob Clark		memory-region = <&gpu_mem>;
36640103eabSSteev Klimaszewski		firmware-name = "qcom/sdm850/LENOVO/81JL/qcdxkmsuc850.mbn";
367f489b13dSRob Clark	};
368f489b13dSRob Clark};
369f489b13dSRob Clark
37044acee20SBjorn Andersson&i2c1 {
37144acee20SBjorn Andersson	status = "okay";
37244acee20SBjorn Andersson	clock-frequency = <400000>;
37344acee20SBjorn Andersson};
37444acee20SBjorn Andersson
37544acee20SBjorn Andersson&i2c3 {
37644acee20SBjorn Andersson	status = "okay";
37744acee20SBjorn Andersson	clock-frequency = <400000>;
378a9164910SShawn Guo	/* Overwrite pinctrl-0 from sdm845.dtsi */
379a9164910SShawn Guo	pinctrl-0 = <&qup_i2c3_default &i2c3_hid_active>;
38044acee20SBjorn Andersson
38111d0e4f2SBjorn Andersson	tsel: hid@15 {
38244acee20SBjorn Andersson		compatible = "hid-over-i2c";
38344acee20SBjorn Andersson		reg = <0x15>;
38444acee20SBjorn Andersson		hid-descr-addr = <0x1>;
38544acee20SBjorn Andersson
38611d0e4f2SBjorn Andersson		interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_HIGH>;
38744acee20SBjorn Andersson	};
38844acee20SBjorn Andersson
38911d0e4f2SBjorn Andersson	tsc2: hid@2c {
39044acee20SBjorn Andersson		compatible = "hid-over-i2c";
39144acee20SBjorn Andersson		reg = <0x2c>;
39244acee20SBjorn Andersson		hid-descr-addr = <0x20>;
39344acee20SBjorn Andersson
39411d0e4f2SBjorn Andersson		interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_HIGH>;
395*fdcc36cdSSteev Klimaszewski
396*fdcc36cdSSteev Klimaszewski		wakeup-source;
39744acee20SBjorn Andersson	};
39844acee20SBjorn Andersson};
39944acee20SBjorn Andersson
40044acee20SBjorn Andersson&i2c5 {
40144acee20SBjorn Andersson	status = "okay";
40244acee20SBjorn Andersson	clock-frequency = <400000>;
40344acee20SBjorn Andersson
40411d0e4f2SBjorn Andersson	tsc1: hid@10 {
40544acee20SBjorn Andersson		compatible = "hid-over-i2c";
40644acee20SBjorn Andersson		reg = <0x10>;
40744acee20SBjorn Andersson		hid-descr-addr = <0x1>;
40844acee20SBjorn Andersson
40911d0e4f2SBjorn Andersson		interrupts-extended = <&tlmm 125 IRQ_TYPE_LEVEL_LOW>;
41044acee20SBjorn Andersson
41144acee20SBjorn Andersson		pinctrl-names = "default";
41211d0e4f2SBjorn Andersson		pinctrl-0 = <&i2c5_hid_active>;
413*fdcc36cdSSteev Klimaszewski
414*fdcc36cdSSteev Klimaszewski		wakeup-source;
41544acee20SBjorn Andersson	};
41644acee20SBjorn Andersson};
41744acee20SBjorn Andersson
418956e9c85SBjorn Andersson&i2c10 {
419956e9c85SBjorn Andersson	status = "okay";
420956e9c85SBjorn Andersson	clock-frequency = <400000>;
421956e9c85SBjorn Andersson
422956e9c85SBjorn Andersson	sn65dsi86: bridge@2c {
423956e9c85SBjorn Andersson		compatible = "ti,sn65dsi86";
424956e9c85SBjorn Andersson		reg = <0x2c>;
425956e9c85SBjorn Andersson		pinctrl-names = "default";
426956e9c85SBjorn Andersson		pinctrl-0 = <&sn65dsi86_pin_active>;
427956e9c85SBjorn Andersson
428956e9c85SBjorn Andersson		enable-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
429956e9c85SBjorn Andersson
4302bc06b76SCaleb Connolly		vcca-supply = <&sw_edp_1p2>;
4312bc06b76SCaleb Connolly		vcc-supply = <&sw_edp_1p2>;
432956e9c85SBjorn Andersson		vpll-supply = <&vreg_l14a_1p88>;
433956e9c85SBjorn Andersson		vccio-supply = <&vreg_l14a_1p88>;
434956e9c85SBjorn Andersson
435956e9c85SBjorn Andersson		clocks = <&sn65dsi86_refclk>;
436956e9c85SBjorn Andersson		clock-names = "refclk";
437956e9c85SBjorn Andersson
438c0dcfe6aSStephen Boyd		no-hpd;
439a28106a2SBjorn Andersson		#pwm-cells = <1>;
440c0dcfe6aSStephen Boyd
441956e9c85SBjorn Andersson		ports {
442956e9c85SBjorn Andersson			#address-cells = <1>;
443956e9c85SBjorn Andersson			#size-cells = <0>;
444956e9c85SBjorn Andersson
445956e9c85SBjorn Andersson			port@0 {
446956e9c85SBjorn Andersson				reg = <0>;
447956e9c85SBjorn Andersson				sn65dsi86_in_a: endpoint {
448e47a7f57SDmitry Baryshkov					remote-endpoint = <&mdss_dsi0_out>;
449956e9c85SBjorn Andersson				};
450956e9c85SBjorn Andersson			};
451956e9c85SBjorn Andersson
452956e9c85SBjorn Andersson			port@1 {
453956e9c85SBjorn Andersson				reg = <1>;
454956e9c85SBjorn Andersson				sn65dsi86_out: endpoint {
455956e9c85SBjorn Andersson					remote-endpoint = <&panel_in_edp>;
456956e9c85SBjorn Andersson				};
457956e9c85SBjorn Andersson			};
458956e9c85SBjorn Andersson		};
459ff899133SBjorn Andersson
460ff899133SBjorn Andersson		aux-bus {
461ff899133SBjorn Andersson			panel: panel {
462ff899133SBjorn Andersson				compatible = "boe,nv133fhm-n61";
463ff899133SBjorn Andersson				backlight = <&backlight>;
4646b0fd355SKrzysztof Kozlowski				power-supply = <&vlcm_3v3>;
465ff899133SBjorn Andersson
466ff899133SBjorn Andersson				port {
467ff899133SBjorn Andersson					panel_in_edp: endpoint {
468ff899133SBjorn Andersson						remote-endpoint = <&sn65dsi86_out>;
469ff899133SBjorn Andersson					};
470ff899133SBjorn Andersson				};
471ff899133SBjorn Andersson			};
472ff899133SBjorn Andersson		};
473956e9c85SBjorn Andersson	};
474956e9c85SBjorn Andersson};
475956e9c85SBjorn Andersson
47644acee20SBjorn Andersson&i2c11 {
47744acee20SBjorn Andersson	status = "okay";
47844acee20SBjorn Andersson	clock-frequency = <400000>;
47944acee20SBjorn Andersson
48011d0e4f2SBjorn Andersson	ecsh: hid@5c {
48144acee20SBjorn Andersson		compatible = "hid-over-i2c";
48244acee20SBjorn Andersson		reg = <0x5c>;
48344acee20SBjorn Andersson		hid-descr-addr = <0x1>;
48444acee20SBjorn Andersson
48544acee20SBjorn Andersson		interrupts-extended = <&tlmm 92 IRQ_TYPE_LEVEL_LOW>;
48644acee20SBjorn Andersson
48744acee20SBjorn Andersson		pinctrl-names = "default";
48811d0e4f2SBjorn Andersson		pinctrl-0 = <&i2c11_hid_active>;
489*fdcc36cdSSteev Klimaszewski
490*fdcc36cdSSteev Klimaszewski		wakeup-source;
49144acee20SBjorn Andersson	};
49244acee20SBjorn Andersson};
49344acee20SBjorn Andersson
4942e01e0c2SBjorn Andersson&ipa {
495a9a9e857SAlex Elder	qcom,gsi-loader = "self";
4962e01e0c2SBjorn Andersson	memory-region = <&ipa_fw_mem>;
497a9a9e857SAlex Elder	status = "okay";
4982e01e0c2SBjorn Andersson};
4992e01e0c2SBjorn Andersson
500956e9c85SBjorn Andersson&mdss {
501956e9c85SBjorn Andersson	status = "okay";
502956e9c85SBjorn Andersson};
503956e9c85SBjorn Andersson
504e47a7f57SDmitry Baryshkov&mdss_dsi0 {
505e47a7f57SDmitry Baryshkov	status = "okay";
506e47a7f57SDmitry Baryshkov	vdda-supply = <&vreg_l26a_1p2>;
507e47a7f57SDmitry Baryshkov
508e47a7f57SDmitry Baryshkov	ports {
509e47a7f57SDmitry Baryshkov		port@1 {
510e47a7f57SDmitry Baryshkov			endpoint {
511e47a7f57SDmitry Baryshkov				remote-endpoint = <&sn65dsi86_in_a>;
512e47a7f57SDmitry Baryshkov				data-lanes = <0 1 2 3>;
513e47a7f57SDmitry Baryshkov			};
514e47a7f57SDmitry Baryshkov		};
515e47a7f57SDmitry Baryshkov	};
516e47a7f57SDmitry Baryshkov};
517e47a7f57SDmitry Baryshkov
518e47a7f57SDmitry Baryshkov&mdss_dsi0_phy {
519e47a7f57SDmitry Baryshkov	status = "okay";
520e47a7f57SDmitry Baryshkov	vdds-supply = <&vreg_l1a_0p875>;
521e47a7f57SDmitry Baryshkov};
522e47a7f57SDmitry Baryshkov
5233cd82e95SBjorn Andersson&mss_pil {
5247f761609SKonrad Dybcio	status = "okay";
52540103eabSSteev Klimaszewski	firmware-name = "qcom/sdm850/LENOVO/81JL/qcdsp1v2850.mbn", "qcom/sdm850/LENOVO/81JL/qcdsp2850.mbn";
5263cd82e95SBjorn Andersson};
5273cd82e95SBjorn Andersson
5282bc06b76SCaleb Connolly&pm8998_gpios {
5292bc06b76SCaleb Connolly	/* This pin is pulled down by a fixed resistor */
5302bc06b76SCaleb Connolly	sw_edp_1p2_en: pm8998-gpio9-state {
5312bc06b76SCaleb Connolly		pins = "gpio9";
5322bc06b76SCaleb Connolly		function = "normal";
5332bc06b76SCaleb Connolly		bias-disable;
5342bc06b76SCaleb Connolly		qcom,drive-strength = <0>;
5352bc06b76SCaleb Connolly	};
5362bc06b76SCaleb Connolly};
5372bc06b76SCaleb Connolly
538956e9c85SBjorn Andersson&qup_i2c10_default {
539956e9c85SBjorn Andersson	drive-strength = <2>;
540956e9c85SBjorn Andersson	bias-disable;
541956e9c85SBjorn Andersson};
542956e9c85SBjorn Andersson
54344acee20SBjorn Andersson&qup_i2c12_default {
54444acee20SBjorn Andersson	drive-strength = <2>;
54544acee20SBjorn Andersson	bias-disable;
54644acee20SBjorn Andersson};
54744acee20SBjorn Andersson
54844acee20SBjorn Andersson&qupv3_id_0 {
54944acee20SBjorn Andersson	status = "okay";
55044acee20SBjorn Andersson};
55144acee20SBjorn Andersson
55244acee20SBjorn Andersson&qupv3_id_1 {
55344acee20SBjorn Andersson	status = "okay";
55444acee20SBjorn Andersson};
55544acee20SBjorn Andersson
55645021d35SSrinivas Kandagatla&q6asmdai {
55745021d35SSrinivas Kandagatla	dai@0 {
55845021d35SSrinivas Kandagatla		reg = <0>;
55945021d35SSrinivas Kandagatla	};
56045021d35SSrinivas Kandagatla
56145021d35SSrinivas Kandagatla	dai@1 {
56245021d35SSrinivas Kandagatla		reg = <1>;
56345021d35SSrinivas Kandagatla	};
564c02b360cSSrinivas Kandagatla
565c02b360cSSrinivas Kandagatla	dai@2 {
566c02b360cSSrinivas Kandagatla		reg = <2>;
567c02b360cSSrinivas Kandagatla	};
56845021d35SSrinivas Kandagatla};
56945021d35SSrinivas Kandagatla
57045021d35SSrinivas Kandagatla&sound {
571099f035dSKrzysztof Kozlowski	compatible = "lenovo,yoga-c630-sndcard", "qcom,sdm845-sndcard";
57245021d35SSrinivas Kandagatla	model = "Lenovo-YOGA-C630-13Q50";
57345021d35SSrinivas Kandagatla
57445021d35SSrinivas Kandagatla	audio-routing =
57545021d35SSrinivas Kandagatla		"RX_BIAS", "MCLK",
57645021d35SSrinivas Kandagatla		"AMIC2", "MIC BIAS2",
57745021d35SSrinivas Kandagatla		"SpkrLeft IN", "SPK1 OUT",
57845021d35SSrinivas Kandagatla		"SpkrRight IN", "SPK2 OUT",
57945021d35SSrinivas Kandagatla		"MM_DL1",  "MultiMedia1 Playback",
580c02b360cSSrinivas Kandagatla		"MM_DL3",  "MultiMedia3 Playback",
58145021d35SSrinivas Kandagatla		"MultiMedia2 Capture", "MM_UL2";
58245021d35SSrinivas Kandagatla
58345021d35SSrinivas Kandagatla	mm1-dai-link {
58445021d35SSrinivas Kandagatla		link-name = "MultiMedia1";
58545021d35SSrinivas Kandagatla		cpu {
58645021d35SSrinivas Kandagatla			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA1>;
58745021d35SSrinivas Kandagatla		};
58845021d35SSrinivas Kandagatla	};
58945021d35SSrinivas Kandagatla
59045021d35SSrinivas Kandagatla	mm2-dai-link {
59145021d35SSrinivas Kandagatla		link-name = "MultiMedia2";
59245021d35SSrinivas Kandagatla		cpu {
59345021d35SSrinivas Kandagatla			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA2>;
59445021d35SSrinivas Kandagatla		};
59545021d35SSrinivas Kandagatla	};
59645021d35SSrinivas Kandagatla
597c02b360cSSrinivas Kandagatla	mm3-dai-link {
598c02b360cSSrinivas Kandagatla		link-name = "MultiMedia3";
599c02b360cSSrinivas Kandagatla		cpu {
600c02b360cSSrinivas Kandagatla			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3>;
601c02b360cSSrinivas Kandagatla		};
602c02b360cSSrinivas Kandagatla	};
603c02b360cSSrinivas Kandagatla
60445021d35SSrinivas Kandagatla	slim-dai-link {
60545021d35SSrinivas Kandagatla		link-name = "SLIM Playback";
60645021d35SSrinivas Kandagatla		cpu {
60745021d35SSrinivas Kandagatla			sound-dai = <&q6afedai SLIMBUS_0_RX>;
60845021d35SSrinivas Kandagatla		};
60945021d35SSrinivas Kandagatla
61045021d35SSrinivas Kandagatla		platform {
61145021d35SSrinivas Kandagatla			sound-dai = <&q6routing>;
61245021d35SSrinivas Kandagatla		};
61345021d35SSrinivas Kandagatla
61445021d35SSrinivas Kandagatla		codec {
61545021d35SSrinivas Kandagatla			sound-dai = <&left_spkr>, <&right_spkr>, <&swm 0>, <&wcd9340 0>;
61645021d35SSrinivas Kandagatla		};
61745021d35SSrinivas Kandagatla	};
61845021d35SSrinivas Kandagatla
61945021d35SSrinivas Kandagatla	slimcap-dai-link {
62045021d35SSrinivas Kandagatla		link-name = "SLIM Capture";
62145021d35SSrinivas Kandagatla		cpu {
62245021d35SSrinivas Kandagatla			sound-dai = <&q6afedai SLIMBUS_0_TX>;
62345021d35SSrinivas Kandagatla		};
62445021d35SSrinivas Kandagatla
62545021d35SSrinivas Kandagatla		platform {
62645021d35SSrinivas Kandagatla			sound-dai = <&q6routing>;
62745021d35SSrinivas Kandagatla		};
62845021d35SSrinivas Kandagatla
62945021d35SSrinivas Kandagatla		codec {
63045021d35SSrinivas Kandagatla			sound-dai = <&wcd9340 1>;
63145021d35SSrinivas Kandagatla		};
63245021d35SSrinivas Kandagatla	};
633c02b360cSSrinivas Kandagatla
634c02b360cSSrinivas Kandagatla	slim-wcd-dai-link {
635c02b360cSSrinivas Kandagatla		link-name = "SLIM WCD Playback";
636c02b360cSSrinivas Kandagatla		cpu {
637c02b360cSSrinivas Kandagatla			sound-dai = <&q6afedai SLIMBUS_1_RX>;
638c02b360cSSrinivas Kandagatla		};
639c02b360cSSrinivas Kandagatla
640c02b360cSSrinivas Kandagatla		platform {
641c02b360cSSrinivas Kandagatla			sound-dai = <&q6routing>;
642c02b360cSSrinivas Kandagatla		};
643c02b360cSSrinivas Kandagatla
644c02b360cSSrinivas Kandagatla		codec {
645c02b360cSSrinivas Kandagatla			sound-dai = <&wcd9340 2>;
646c02b360cSSrinivas Kandagatla		};
647c02b360cSSrinivas Kandagatla	};
64845021d35SSrinivas Kandagatla};
64945021d35SSrinivas Kandagatla
65044acee20SBjorn Andersson&tlmm {
65144acee20SBjorn Andersson	gpio-reserved-ranges = <0 4>, <81 4>;
65244acee20SBjorn Andersson
653d05e3428SKrzysztof Kozlowski	sn65dsi86_pin_active: sn65dsi86-enable-state {
654956e9c85SBjorn Andersson		pins = "gpio96";
655d05e3428SKrzysztof Kozlowski		function = "gpio";
656956e9c85SBjorn Andersson		drive-strength = <2>;
657956e9c85SBjorn Andersson		bias-disable;
658956e9c85SBjorn Andersson	};
659956e9c85SBjorn Andersson
660d05e3428SKrzysztof Kozlowski	i2c3_hid_active: i2c2-hid-active-state {
661f55d373fSBjorn Andersson		pins = "gpio37";
66244acee20SBjorn Andersson		function = "gpio";
66344acee20SBjorn Andersson
66444acee20SBjorn Andersson		bias-pull-up;
66544acee20SBjorn Andersson		drive-strength = <2>;
66644acee20SBjorn Andersson	};
66744acee20SBjorn Andersson
668d05e3428SKrzysztof Kozlowski	i2c5_hid_active: i2c5-hid-active-state {
669f55d373fSBjorn Andersson		pins = "gpio125";
67044acee20SBjorn Andersson		function = "gpio";
67144acee20SBjorn Andersson
67244acee20SBjorn Andersson		bias-pull-up;
67344acee20SBjorn Andersson		drive-strength = <2>;
67444acee20SBjorn Andersson	};
67544acee20SBjorn Andersson
676d05e3428SKrzysztof Kozlowski	i2c11_hid_active: i2c11-hid-active-state {
677f55d373fSBjorn Andersson		pins = "gpio92";
67844acee20SBjorn Andersson		function = "gpio";
67944acee20SBjorn Andersson
68044acee20SBjorn Andersson		bias-pull-up;
68144acee20SBjorn Andersson		drive-strength = <2>;
68244acee20SBjorn Andersson	};
68345021d35SSrinivas Kandagatla
684d05e3428SKrzysztof Kozlowski	lid_pin_active: lid-pin-state {
68571b83b74SBjorn Andersson		pins = "gpio124";
68671b83b74SBjorn Andersson		function = "gpio";
68771b83b74SBjorn Andersson
68871b83b74SBjorn Andersson		bias-disable;
68971b83b74SBjorn Andersson	};
69071b83b74SBjorn Andersson
691d05e3428SKrzysztof Kozlowski	mode_pin_active: mode-pin-state {
69271b83b74SBjorn Andersson		pins = "gpio95";
69371b83b74SBjorn Andersson		function = "gpio";
69471b83b74SBjorn Andersson
69571b83b74SBjorn Andersson		bias-disable;
69671b83b74SBjorn Andersson	};
69744acee20SBjorn Andersson};
69844acee20SBjorn Andersson
69944acee20SBjorn Andersson&uart6 {
700d05e3428SKrzysztof Kozlowski	pinctrl-names = "default";
701d05e3428SKrzysztof Kozlowski	pinctrl-0 = <&qup_uart6_4pin>;
70244acee20SBjorn Andersson	status = "okay";
70344acee20SBjorn Andersson
70444acee20SBjorn Andersson	bluetooth {
70544acee20SBjorn Andersson		compatible = "qcom,wcn3990-bt";
70644acee20SBjorn Andersson
70744acee20SBjorn Andersson		vddio-supply = <&vreg_s4a_1p8>;
70844acee20SBjorn Andersson		vddxo-supply = <&vreg_l7a_1p8>;
70944acee20SBjorn Andersson		vddrf-supply = <&vreg_l17a_1p3>;
71044acee20SBjorn Andersson		vddch0-supply = <&vreg_l25a_3p3>;
711b464f08cSSteev Klimaszewski		vddch1-supply = <&vreg_l23a_3p3>;
71244acee20SBjorn Andersson		max-speed = <3200000>;
71344acee20SBjorn Andersson	};
71444acee20SBjorn Andersson};
71544acee20SBjorn Andersson
716443042beSCaleb Connolly&uart9 {
717443042beSCaleb Connolly	status = "okay";
718443042beSCaleb Connolly};
719443042beSCaleb Connolly
72044acee20SBjorn Andersson&ufs_mem_hc {
72144acee20SBjorn Andersson	status = "okay";
72244acee20SBjorn Andersson
7232536bedeSBjorn Andersson	reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
7242536bedeSBjorn Andersson
72544acee20SBjorn Andersson	vcc-supply = <&vreg_l20a_2p95>;
72644acee20SBjorn Andersson	vcc-max-microamp = <600000>;
72744acee20SBjorn Andersson};
72844acee20SBjorn Andersson
72944acee20SBjorn Andersson&ufs_mem_phy {
73044acee20SBjorn Andersson	status = "okay";
73144acee20SBjorn Andersson
73244acee20SBjorn Andersson	vdda-phy-supply = <&vdda_ufs1_core>;
73344acee20SBjorn Andersson	vdda-pll-supply = <&vdda_ufs1_1p2>;
73444acee20SBjorn Andersson};
73544acee20SBjorn Andersson
73644acee20SBjorn Andersson&usb_1 {
73744acee20SBjorn Andersson	status = "okay";
73844acee20SBjorn Andersson};
73944acee20SBjorn Andersson
74044acee20SBjorn Andersson&usb_1_dwc3 {
74144acee20SBjorn Andersson	dr_mode = "host";
74244acee20SBjorn Andersson};
74344acee20SBjorn Andersson
74444acee20SBjorn Andersson&usb_1_hsphy {
74544acee20SBjorn Andersson	status = "okay";
74644acee20SBjorn Andersson
74744acee20SBjorn Andersson	vdd-supply = <&vdda_usb1_ss_core>;
74844acee20SBjorn Andersson	vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
74944acee20SBjorn Andersson	vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
75044acee20SBjorn Andersson
75144acee20SBjorn Andersson	qcom,imp-res-offset-value = <8>;
75244acee20SBjorn Andersson	qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
75344acee20SBjorn Andersson	qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
75444acee20SBjorn Andersson	qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
75544acee20SBjorn Andersson};
75644acee20SBjorn Andersson
75744acee20SBjorn Andersson&usb_1_qmpphy {
75844acee20SBjorn Andersson	status = "okay";
75944acee20SBjorn Andersson
76044acee20SBjorn Andersson	vdda-phy-supply = <&vdda_usb1_ss_1p2>;
76144acee20SBjorn Andersson	vdda-pll-supply = <&vdda_usb1_ss_core>;
76244acee20SBjorn Andersson};
76344acee20SBjorn Andersson
76444acee20SBjorn Andersson&usb_2 {
76544acee20SBjorn Andersson	status = "okay";
76644acee20SBjorn Andersson};
76744acee20SBjorn Andersson
76844acee20SBjorn Andersson&usb_2_dwc3 {
76944acee20SBjorn Andersson	dr_mode = "host";
77044acee20SBjorn Andersson};
77144acee20SBjorn Andersson
77244acee20SBjorn Andersson&usb_2_hsphy {
77344acee20SBjorn Andersson	status = "okay";
77444acee20SBjorn Andersson
77544acee20SBjorn Andersson	vdd-supply = <&vdda_usb2_ss_core>;
77644acee20SBjorn Andersson	vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
77744acee20SBjorn Andersson	vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
77844acee20SBjorn Andersson
77944acee20SBjorn Andersson	qcom,imp-res-offset-value = <8>;
78044acee20SBjorn Andersson	qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
78144acee20SBjorn Andersson};
78244acee20SBjorn Andersson
78344acee20SBjorn Andersson&usb_2_qmpphy {
78444acee20SBjorn Andersson	status = "okay";
78544acee20SBjorn Andersson
78644acee20SBjorn Andersson	vdda-phy-supply = <&vdda_usb2_ss_1p2>;
78744acee20SBjorn Andersson	vdda-pll-supply = <&vdda_usb2_ss_core>;
78844acee20SBjorn Andersson};
78945021d35SSrinivas Kandagatla
7907f761609SKonrad Dybcio&venus {
79140103eabSSteev Klimaszewski	firmware-name = "qcom/sdm850/LENOVO/81JL/qcvss850.mbn";
7927f761609SKonrad Dybcio	status = "okay";
7937f761609SKonrad Dybcio};
7947f761609SKonrad Dybcio
79545021d35SSrinivas Kandagatla&wcd9340 {
79636c9d012SKrzysztof Kozlowski	reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
79745021d35SSrinivas Kandagatla	vdd-buck-supply = <&vreg_s4a_1p8>;
79845021d35SSrinivas Kandagatla	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
79945021d35SSrinivas Kandagatla	vdd-tx-supply = <&vreg_s4a_1p8>;
80045021d35SSrinivas Kandagatla	vdd-rx-supply = <&vreg_s4a_1p8>;
80145021d35SSrinivas Kandagatla	vdd-io-supply = <&vreg_s4a_1p8>;
802ef10e1b8SSrinivas Kandagatla	qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
803ef10e1b8SSrinivas Kandagatla	qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
804ef10e1b8SSrinivas Kandagatla	qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
80545021d35SSrinivas Kandagatla
80645021d35SSrinivas Kandagatla	swm: swm@c85 {
807bd35f4b0SSrinivasa Rao Mandadapu		left_spkr: speaker@0,3 {
80845021d35SSrinivas Kandagatla			compatible = "sdw10217211000";
80945021d35SSrinivas Kandagatla			reg = <0 3>;
810a246c20cSKrzysztof Kozlowski			powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_LOW>;
81145021d35SSrinivas Kandagatla			#thermal-sensor-cells = <0>;
81245021d35SSrinivas Kandagatla			sound-name-prefix = "SpkrLeft";
81345021d35SSrinivas Kandagatla			#sound-dai-cells = <0>;
81445021d35SSrinivas Kandagatla		};
81545021d35SSrinivas Kandagatla
816bd35f4b0SSrinivasa Rao Mandadapu		right_spkr: speaker@0,4 {
81745021d35SSrinivas Kandagatla			compatible = "sdw10217211000";
818a246c20cSKrzysztof Kozlowski			powerdown-gpios = <&wcdgpio 2 GPIO_ACTIVE_LOW>;
81945021d35SSrinivas Kandagatla			reg = <0 4>;
82045021d35SSrinivas Kandagatla			#thermal-sensor-cells = <0>;
82145021d35SSrinivas Kandagatla			sound-name-prefix = "SpkrRight";
82245021d35SSrinivas Kandagatla			#sound-dai-cells = <0>;
82345021d35SSrinivas Kandagatla		};
82445021d35SSrinivas Kandagatla	};
82545021d35SSrinivas Kandagatla};
8263fb298d0SBjorn Andersson
8273fb298d0SBjorn Andersson&wifi {
8283fb298d0SBjorn Andersson	status = "okay";
8293fb298d0SBjorn Andersson
8303fb298d0SBjorn Andersson	vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
8313fb298d0SBjorn Andersson	vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
8323fb298d0SBjorn Andersson	vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
8333fb298d0SBjorn Andersson	vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
834b464f08cSSteev Klimaszewski	vdd-3.3-ch1-supply = <&vreg_l23a_3p3>;
8353fb298d0SBjorn Andersson
8363fb298d0SBjorn Andersson	qcom,snoc-host-cap-8bit-quirk;
8373fb298d0SBjorn Andersson};
838382e3e0eSSteev Klimaszewski
839382e3e0eSSteev Klimaszewski&crypto {
840382e3e0eSSteev Klimaszewski	/* FIXME: qce_start triggers an SError */
84155179c92SRob Herring	status = "disabled";
842382e3e0eSSteev Klimaszewski};
843