xref: /openbmc/linux/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
147498916SJami Kettunen// SPDX-License-Identifier: BSD-3-Clause
247498916SJami Kettunen/*
347498916SJami Kettunen * OnePlus 5(T) (cheeseburger / dumpling) common device tree source based on msm8998-mtp.dtsi
447498916SJami Kettunen *
547498916SJami Kettunen * Copyright (c) 2021, Jami Kettunen <jamipkettunen@gmail.com>
647498916SJami Kettunen * Copyright (c) 2016, The Linux Foundation. All rights reserved.
747498916SJami Kettunen */
847498916SJami Kettunen
947498916SJami Kettunen/dts-v1/;
1047498916SJami Kettunen
1147498916SJami Kettunen#include <dt-bindings/gpio/gpio.h>
1247498916SJami Kettunen#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
1347498916SJami Kettunen#include "msm8998.dtsi"
14bc0e82fbSKonrad Dybcio#include "pm8005.dtsi"
1547498916SJami Kettunen#include "pm8998.dtsi"
1647498916SJami Kettunen#include "pmi8998.dtsi"
1747498916SJami Kettunen
1847498916SJami Kettunen/ {
1947498916SJami Kettunen	/* Required for bootloader to select correct board */
2047498916SJami Kettunen	qcom,msm-id = <292 0x20001>; /* 8998 v2.1 */
2147498916SJami Kettunen
2247498916SJami Kettunen	chosen {
2347498916SJami Kettunen		#address-cells = <2>;
2447498916SJami Kettunen		#size-cells = <2>;
2547498916SJami Kettunen		ranges;
2647498916SJami Kettunen
2747498916SJami Kettunen		/* Use display framebuffer setup by the UEFI XBL bootloader for simplefb */
2847498916SJami Kettunen		framebuffer0: framebuffer@9d400000 {
2947498916SJami Kettunen			compatible = "simple-framebuffer";
3047498916SJami Kettunen			reg = <0x0 0x9d400000 0x0 0x2400000>;
3147498916SJami Kettunen			width = <1080>;
3247498916SJami Kettunen			height = <1920>;
3347498916SJami Kettunen			stride = <(1080 * 4)>;
3447498916SJami Kettunen			format = "a8r8g8b8";
35d582c020SKonrad Dybcio			/*
36d582c020SKonrad Dybcio			* That's a lot of clocks, but it's necessary due
37d582c020SKonrad Dybcio			* to unused clk cleanup & no panel driver yet..
38d582c020SKonrad Dybcio			*/
39d582c020SKonrad Dybcio			clocks = <&mmcc MDSS_AHB_CLK>,
40d582c020SKonrad Dybcio				 <&mmcc MDSS_AXI_CLK>,
41d582c020SKonrad Dybcio				 <&mmcc MDSS_VSYNC_CLK>,
42d582c020SKonrad Dybcio				 <&mmcc MDSS_MDP_CLK>,
43d582c020SKonrad Dybcio				 <&mmcc MDSS_BYTE0_CLK>,
44d582c020SKonrad Dybcio				 <&mmcc MDSS_BYTE0_INTF_CLK>,
45d582c020SKonrad Dybcio				 <&mmcc MDSS_PCLK0_CLK>,
46d582c020SKonrad Dybcio				 <&mmcc MDSS_ESC0_CLK>;
47d582c020SKonrad Dybcio			power-domains = <&mmcc MDSS_GDSC>;
4847498916SJami Kettunen		};
4947498916SJami Kettunen	};
5047498916SJami Kettunen
5147498916SJami Kettunen	reserved-memory {
5247498916SJami Kettunen		/* Bootloader display framebuffer region */
5347498916SJami Kettunen		cont_splash_mem: memory@9d400000 {
5447498916SJami Kettunen			reg = <0x0 0x9d400000 0x0 0x2400000>;
5547498916SJami Kettunen			no-map;
5647498916SJami Kettunen		};
5747498916SJami Kettunen
5847498916SJami Kettunen		/* For getting crash logs using Android downstream kernels */
5947498916SJami Kettunen		ramoops@ac000000 {
6047498916SJami Kettunen			compatible = "ramoops";
6147498916SJami Kettunen			reg = <0x0 0xac000000 0x0 0x200000>;
6247498916SJami Kettunen			console-size = <0x80000>;
6347498916SJami Kettunen			pmsg-size = <0x40000>;
6447498916SJami Kettunen			record-size = <0x8000>;
6547498916SJami Kettunen			ftrace-size = <0x20000>;
6647498916SJami Kettunen		};
6747498916SJami Kettunen
6847498916SJami Kettunen		/*
6947498916SJami Kettunen		 * The following memory regions on downstream are "dynamically allocated"
7047498916SJami Kettunen		 * but given the same addresses every time. Hard code them as these addresses
7147498916SJami Kettunen		 * are where the OnePlus signed firmware expects them to be.
7247498916SJami Kettunen		 */
7347498916SJami Kettunen		ipa_fws_region: ipa@f6800000 {
7447498916SJami Kettunen			compatible = "shared-dma-pool";
7547498916SJami Kettunen			reg = <0x0 0xf6800000 0x0 0x5000>;
7647498916SJami Kettunen			no-map;
7747498916SJami Kettunen		};
7847498916SJami Kettunen		zap_shader_region: gpu@f6900000 {
7947498916SJami Kettunen			compatible = "shared-dma-pool";
8047498916SJami Kettunen			reg = <0x0 0xf6900000 0x0 0x2000>;
8147498916SJami Kettunen			no-map;
8247498916SJami Kettunen		};
8347498916SJami Kettunen	};
8447498916SJami Kettunen
8547498916SJami Kettunen	gpio-keys {
8647498916SJami Kettunen		compatible = "gpio-keys";
8747498916SJami Kettunen		label = "Volume buttons";
8847498916SJami Kettunen		autorepeat;
8947498916SJami Kettunen
9047498916SJami Kettunen		pinctrl-names = "default";
9147498916SJami Kettunen		pinctrl-0 = <&vol_keys_default>;
9247498916SJami Kettunen
93b08f5cbdSKrzysztof Kozlowski		button-vol-down {
9447498916SJami Kettunen			label = "Volume down";
95*ea25d61bSMarijn Suijten			gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>;
9647498916SJami Kettunen			linux,code = <KEY_VOLUMEDOWN>;
9747498916SJami Kettunen			debounce-interval = <15>;
9847498916SJami Kettunen			wakeup-source;
9947498916SJami Kettunen		};
10047498916SJami Kettunen
101b08f5cbdSKrzysztof Kozlowski		button-vol-up {
10247498916SJami Kettunen			label = "Volume up";
103*ea25d61bSMarijn Suijten			gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
10447498916SJami Kettunen			linux,code = <KEY_VOLUMEUP>;
10547498916SJami Kettunen			debounce-interval = <15>;
10647498916SJami Kettunen			wakeup-source;
10747498916SJami Kettunen		};
10847498916SJami Kettunen	};
10947498916SJami Kettunen
11047498916SJami Kettunen	gpio-hall-sensor {
11147498916SJami Kettunen		compatible = "gpio-keys";
11247498916SJami Kettunen		label = "Hall effect sensor";
11347498916SJami Kettunen
11447498916SJami Kettunen		pinctrl-names = "default";
11547498916SJami Kettunen		pinctrl-0 = <&hall_sensor_default>;
11647498916SJami Kettunen
117b08f5cbdSKrzysztof Kozlowski		event-hall-sensor {
11847498916SJami Kettunen			label = "Hall Effect Sensor";
11947498916SJami Kettunen			gpios = <&tlmm 124 GPIO_ACTIVE_LOW>;
12047498916SJami Kettunen			linux,input-type = <EV_SW>;
12147498916SJami Kettunen			linux,code = <SW_LID>;
12247498916SJami Kettunen			linux,can-disable;
12347498916SJami Kettunen			wakeup-source;
12447498916SJami Kettunen		};
12547498916SJami Kettunen	};
12647498916SJami Kettunen
12747498916SJami Kettunen	vph_pwr: vph-pwr-regulator {
12847498916SJami Kettunen		compatible = "regulator-fixed";
12947498916SJami Kettunen		regulator-name = "vph_pwr";
13047498916SJami Kettunen		regulator-always-on;
13147498916SJami Kettunen		regulator-boot-on;
13247498916SJami Kettunen	};
13347498916SJami Kettunen};
13447498916SJami Kettunen
13547498916SJami Kettunen/*
13647498916SJami Kettunen * OnePlus' ADSP firmware requires 30 MiB in total, so increase the adsp_mem
13747498916SJami Kettunen * region by 4 MiB to account for this while relocating the other now
13847498916SJami Kettunen * conflicting memory nodes accordingly.
13947498916SJami Kettunen */
14047498916SJami Kettunen&adsp_mem {
14147498916SJami Kettunen	reg = <0x0 0x8b200000 0x0 0x1e00000>;
14247498916SJami Kettunen};
14347498916SJami Kettunen&mpss_mem {
14447498916SJami Kettunen	reg = <0x0 0x8d000000 0x0 0x7000000>;
14547498916SJami Kettunen};
14647498916SJami Kettunen&venus_mem {
14747498916SJami Kettunen	reg = <0x0 0x94000000 0x0 0x500000>;
14847498916SJami Kettunen};
14947498916SJami Kettunen&mba_mem {
15047498916SJami Kettunen	reg = <0x0 0x94500000 0x0 0x200000>;
15147498916SJami Kettunen};
15247498916SJami Kettunen&slpi_mem {
15347498916SJami Kettunen	reg = <0x0 0x94700000 0x0 0xf00000>;
15447498916SJami Kettunen};
15547498916SJami Kettunen&ipa_fw_mem {
15647498916SJami Kettunen	reg = <0x0 0x95600000 0x0 0x10000>;
15747498916SJami Kettunen};
15847498916SJami Kettunen&ipa_gsi_mem {
15947498916SJami Kettunen	reg = <0x0 0x95610000 0x0 0x5000>;
16047498916SJami Kettunen};
16147498916SJami Kettunen&gpu_mem {
16247498916SJami Kettunen	reg = <0x0 0x95615000 0x0 0x100000>;
16347498916SJami Kettunen};
16447498916SJami Kettunen&wlan_msa_mem {
16547498916SJami Kettunen	reg = <0x0 0x95715000 0x0 0x100000>;
16647498916SJami Kettunen};
16747498916SJami Kettunen
16847498916SJami Kettunen&blsp1_i2c5 {
16947498916SJami Kettunen	status = "okay";
17047498916SJami Kettunen
17147498916SJami Kettunen	touchscreen@20 {
17247498916SJami Kettunen		compatible = "syna,rmi4-i2c";
17347498916SJami Kettunen		reg = <0x20>;
17447498916SJami Kettunen		#address-cells = <1>;
17547498916SJami Kettunen		#size-cells = <0>;
17647498916SJami Kettunen
17747498916SJami Kettunen		interrupt-parent = <&tlmm>;
17847498916SJami Kettunen		interrupts = <125 IRQ_TYPE_EDGE_FALLING>;
17947498916SJami Kettunen
18047498916SJami Kettunen		pinctrl-names = "default";
18147498916SJami Kettunen		pinctrl-0 = <&ts_int_active &ts_reset_active>;
18247498916SJami Kettunen
18347498916SJami Kettunen		vdd-supply = <&vreg_l28_3p0>;
18447498916SJami Kettunen		vio-supply = <&vreg_l6a_1p8>;
18547498916SJami Kettunen
18647498916SJami Kettunen		syna,reset-delay-ms = <20>;
18747498916SJami Kettunen		syna,startup-delay-ms = <20>;
18847498916SJami Kettunen
18947498916SJami Kettunen		rmi4-f01@1 {
19047498916SJami Kettunen			reg = <0x01>;
19147498916SJami Kettunen			syna,nosleep-mode = <1>;
19247498916SJami Kettunen		};
19347498916SJami Kettunen
19447498916SJami Kettunen		rmi4_f12: rmi4-f12@12 {
19547498916SJami Kettunen			reg = <0x12>;
19647498916SJami Kettunen			syna,rezero-wait-ms = <20>;
19747498916SJami Kettunen			syna,sensor-type = <1>;
19847498916SJami Kettunen			touchscreen-x-mm = <68>;
19947498916SJami Kettunen			touchscreen-y-mm = <122>;
20047498916SJami Kettunen		};
20147498916SJami Kettunen	};
20247498916SJami Kettunen};
20347498916SJami Kettunen
204726111e6SJami Kettunen&blsp1_i2c6 {
205726111e6SJami Kettunen	status = "okay";
206726111e6SJami Kettunen
207726111e6SJami Kettunen	nfc@28 {
208726111e6SJami Kettunen		compatible = "nxp,nxp-nci-i2c";
209726111e6SJami Kettunen		reg = <0x28>;
210726111e6SJami Kettunen
211726111e6SJami Kettunen		interrupt-parent = <&tlmm>;
212726111e6SJami Kettunen		interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
213726111e6SJami Kettunen
214726111e6SJami Kettunen		enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>;
215726111e6SJami Kettunen
216726111e6SJami Kettunen		pinctrl-names = "default";
217726111e6SJami Kettunen		pinctrl-0 = <&nfc_int_active &nfc_enable_active>;
218726111e6SJami Kettunen	};
219726111e6SJami Kettunen};
220726111e6SJami Kettunen
22147498916SJami Kettunen&blsp1_uart3 {
22247498916SJami Kettunen	status = "okay";
22347498916SJami Kettunen
22447498916SJami Kettunen	bluetooth {
22547498916SJami Kettunen		compatible = "qcom,wcn3990-bt";
22647498916SJami Kettunen
22747498916SJami Kettunen		vddio-supply = <&vreg_s4a_1p8>;
22847498916SJami Kettunen		vddxo-supply = <&vreg_l7a_1p8>;
22947498916SJami Kettunen		vddrf-supply = <&vreg_l17a_1p3>;
23047498916SJami Kettunen		vddch0-supply = <&vreg_l25a_3p3>;
23147498916SJami Kettunen		max-speed = <3200000>;
23247498916SJami Kettunen	};
23347498916SJami Kettunen};
23447498916SJami Kettunen
23547498916SJami Kettunen&blsp1_uart3_on {
236ed9ba9e9SKrzysztof Kozlowski	rx-pins {
23747498916SJami Kettunen		/delete-property/ bias-disable;
23847498916SJami Kettunen		/*
23947498916SJami Kettunen		 * Configure a pull-up on 46 (RX). This is needed to
24047498916SJami Kettunen		 * avoid garbage data when the TX pin of the Bluetooth
24147498916SJami Kettunen		 * module is in tri-state (module powered off or not
24247498916SJami Kettunen		 * driving the signal yet).
24347498916SJami Kettunen		 */
24447498916SJami Kettunen		bias-pull-up;
24547498916SJami Kettunen	};
24647498916SJami Kettunen
247ed9ba9e9SKrzysztof Kozlowski	cts-pins {
24847498916SJami Kettunen		/delete-property/ bias-disable;
24947498916SJami Kettunen		/*
25047498916SJami Kettunen		 * Configure a pull-down on 47 (CTS) to match the pull
25147498916SJami Kettunen		 * of the Bluetooth module.
25247498916SJami Kettunen		 */
25347498916SJami Kettunen		bias-pull-down;
25447498916SJami Kettunen	};
25547498916SJami Kettunen};
25647498916SJami Kettunen
25747498916SJami Kettunen&blsp2_uart1 {
25847498916SJami Kettunen	status = "okay";
25947498916SJami Kettunen};
26047498916SJami Kettunen
261b448501cSKonrad Dybcio&pm8005_regulators {
262b448501cSKonrad Dybcio	/* VDD_GFX supply */
263b448501cSKonrad Dybcio	pm8005_s1: s1 {
26447498916SJami Kettunen		regulator-min-microvolt = <524000>;
26547498916SJami Kettunen		regulator-max-microvolt = <1100000>;
26647498916SJami Kettunen		regulator-enable-ramp-delay = <500>;
267b448501cSKonrad Dybcio		/* Hack until we rig up the gpu consumer */
26847498916SJami Kettunen		regulator-always-on;
26947498916SJami Kettunen	};
27047498916SJami Kettunen};
27147498916SJami Kettunen
272*ea25d61bSMarijn Suijten&pm8998_gpios {
273ff36bed5SKrzysztof Kozlowski	vol_keys_default: vol-keys-state {
27447498916SJami Kettunen		pins = "gpio5", "gpio6";
27547498916SJami Kettunen		function = "normal";
27647498916SJami Kettunen		bias-pull-up;
27747498916SJami Kettunen		input-enable;
27847498916SJami Kettunen		qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
27947498916SJami Kettunen	};
28047498916SJami Kettunen};
28147498916SJami Kettunen
282aac16a9dSJami Kettunen&qusb2phy {
283aac16a9dSJami Kettunen	status = "okay";
284aac16a9dSJami Kettunen
285aac16a9dSJami Kettunen	vdd-supply = <&vreg_l1a_0p875>;
28647498916SJami Kettunen	vdda-pll-supply = <&vreg_l12a_1p8>;
28747498916SJami Kettunen	vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
28847498916SJami Kettunen};
2895663ca59SShawn Guo
29047498916SJami Kettunen&rpm_requests {
29147498916SJami Kettunen	regulators-0 {
29247498916SJami Kettunen		compatible = "qcom,rpm-pm8998-regulators";
29347498916SJami Kettunen
29447498916SJami Kettunen		vdd_s1-supply = <&vph_pwr>;
295372698e8SKrzysztof Kozlowski		vdd_s2-supply = <&vph_pwr>;
29647498916SJami Kettunen		vdd_s3-supply = <&vph_pwr>;
29747498916SJami Kettunen		vdd_s4-supply = <&vph_pwr>;
29847498916SJami Kettunen		vdd_s5-supply = <&vph_pwr>;
29947498916SJami Kettunen		vdd_s6-supply = <&vph_pwr>;
30047498916SJami Kettunen		vdd_s7-supply = <&vph_pwr>;
30147498916SJami Kettunen		vdd_s8-supply = <&vph_pwr>;
30247498916SJami Kettunen		vdd_s9-supply = <&vph_pwr>;
30347498916SJami Kettunen		vdd_s10-supply = <&vph_pwr>;
30447498916SJami Kettunen		vdd_s11-supply = <&vph_pwr>;
30547498916SJami Kettunen		vdd_s12-supply = <&vph_pwr>;
30647498916SJami Kettunen		vdd_s13-supply = <&vph_pwr>;
30747498916SJami Kettunen		vdd_l1_l27-supply = <&vreg_s7a_1p025>;
30847498916SJami Kettunen		vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
30947498916SJami Kettunen		vdd_l3_l11-supply = <&vreg_s7a_1p025>;
31047498916SJami Kettunen		vdd_l4_l5-supply = <&vreg_s7a_1p025>;
31147498916SJami Kettunen		vdd_l6-supply = <&vreg_s5a_2p04>;
31247498916SJami Kettunen		vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
31347498916SJami Kettunen		vdd_l9-supply = <&vreg_bob>;
31447498916SJami Kettunen		vdd_l10_l23_l25-supply = <&vreg_bob>;
31547498916SJami Kettunen		vdd_l13_l19_l21-supply = <&vreg_bob>;
31647498916SJami Kettunen		vdd_l16_l28-supply = <&vreg_bob>;
31747498916SJami Kettunen		vdd_l18_l22-supply = <&vreg_bob>;
31847498916SJami Kettunen		vdd_l20_l24-supply = <&vreg_bob>;
31947498916SJami Kettunen		vdd_l26-supply = <&vreg_s3a_1p35>;
32047498916SJami Kettunen		vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
32147498916SJami Kettunen
32247498916SJami Kettunen		vreg_s3a_1p35: s3 {
32347498916SJami Kettunen			regulator-min-microvolt = <1352000>;
32447498916SJami Kettunen			regulator-max-microvolt = <1352000>;
32547498916SJami Kettunen		};
32647498916SJami Kettunen
32747498916SJami Kettunen		vreg_s4a_1p8: s4 {
32847498916SJami Kettunen			regulator-min-microvolt = <1800000>;
32947498916SJami Kettunen			regulator-max-microvolt = <1800000>;
330bc0e82fbSKonrad Dybcio			regulator-allow-set-load;
33147498916SJami Kettunen		};
33247498916SJami Kettunen
33347498916SJami Kettunen		vreg_s5a_2p04: s5 {
33447498916SJami Kettunen			regulator-min-microvolt = <1904000>;
33547498916SJami Kettunen			regulator-max-microvolt = <2040000>;
336bc0e82fbSKonrad Dybcio		};
33747498916SJami Kettunen
33847498916SJami Kettunen		vreg_s7a_1p025: s7 {
33947498916SJami Kettunen			regulator-min-microvolt = <900000>;
34047498916SJami Kettunen			regulator-max-microvolt = <1028000>;
341bc0e82fbSKonrad Dybcio		};
34247498916SJami Kettunen
34347498916SJami Kettunen		vreg_l1a_0p875: l1 {
34447498916SJami Kettunen			regulator-min-microvolt = <880000>;
34547498916SJami Kettunen			regulator-max-microvolt = <880000>;
346bc0e82fbSKonrad Dybcio		};
34747498916SJami Kettunen
34847498916SJami Kettunen		vreg_l2a_1p2: l2 {
34947498916SJami Kettunen			regulator-min-microvolt = <1200000>;
35047498916SJami Kettunen			regulator-max-microvolt = <1200000>;
351bc0e82fbSKonrad Dybcio		};
35247498916SJami Kettunen
35347498916SJami Kettunen		vreg_l3a_1p0: l3 {
35447498916SJami Kettunen			regulator-min-microvolt = <1000000>;
35547498916SJami Kettunen			regulator-max-microvolt = <1000000>;
356bc0e82fbSKonrad Dybcio		};
35747498916SJami Kettunen
35847498916SJami Kettunen		vreg_l5a_0p8: l5 {
35947498916SJami Kettunen			regulator-min-microvolt = <800000>;
36047498916SJami Kettunen			regulator-max-microvolt = <800000>;
361bc0e82fbSKonrad Dybcio		};
36247498916SJami Kettunen
36347498916SJami Kettunen		vreg_l6a_1p8: l6 {
36447498916SJami Kettunen			regulator-min-microvolt = <1808000>;
36547498916SJami Kettunen			regulator-max-microvolt = <1808000>;
366bc0e82fbSKonrad Dybcio		};
36747498916SJami Kettunen
36847498916SJami Kettunen		vreg_l7a_1p8: l7 {
36947498916SJami Kettunen			regulator-min-microvolt = <1800000>;
37047498916SJami Kettunen			regulator-max-microvolt = <1800000>;
371bc0e82fbSKonrad Dybcio		};
37247498916SJami Kettunen
37347498916SJami Kettunen		vreg_l8a_1p2: l8 {
37447498916SJami Kettunen			regulator-min-microvolt = <1200000>;
37547498916SJami Kettunen			regulator-max-microvolt = <1200000>;
376bc0e82fbSKonrad Dybcio		};
37747498916SJami Kettunen
37847498916SJami Kettunen		vreg_l9a_1p8: l9 {
37947498916SJami Kettunen			regulator-min-microvolt = <1808000>;
38047498916SJami Kettunen			regulator-max-microvolt = <2960000>;
381bc0e82fbSKonrad Dybcio		};
38247498916SJami Kettunen
38347498916SJami Kettunen		vreg_l10a_1p8: l10 {
38447498916SJami Kettunen			regulator-min-microvolt = <1808000>;
38547498916SJami Kettunen			regulator-max-microvolt = <2960000>;
386bc0e82fbSKonrad Dybcio		};
38747498916SJami Kettunen
38847498916SJami Kettunen		vreg_l11a_1p0: l11 {
38947498916SJami Kettunen			regulator-min-microvolt = <1000000>;
39047498916SJami Kettunen			regulator-max-microvolt = <1000000>;
391bc0e82fbSKonrad Dybcio		};
39247498916SJami Kettunen
39347498916SJami Kettunen		vreg_l12a_1p8: l12 {
39447498916SJami Kettunen			regulator-min-microvolt = <1800000>;
39547498916SJami Kettunen			regulator-max-microvolt = <1800000>;
396bc0e82fbSKonrad Dybcio		};
39747498916SJami Kettunen
39847498916SJami Kettunen		vreg_l13a_2p95: l13 {
39947498916SJami Kettunen			regulator-min-microvolt = <1808000>;
40047498916SJami Kettunen			regulator-max-microvolt = <2960000>;
401bc0e82fbSKonrad Dybcio		};
40247498916SJami Kettunen
40347498916SJami Kettunen		vreg_l14a_1p88: l14 {
40447498916SJami Kettunen			regulator-min-microvolt = <1880000>;
40547498916SJami Kettunen			regulator-max-microvolt = <1880000>;
406bc0e82fbSKonrad Dybcio		};
40747498916SJami Kettunen
40847498916SJami Kettunen		vreg_l15a_1p8: l15 {
40947498916SJami Kettunen			regulator-min-microvolt = <1800000>;
41047498916SJami Kettunen			regulator-max-microvolt = <1800000>;
411bc0e82fbSKonrad Dybcio		};
41247498916SJami Kettunen
41347498916SJami Kettunen		vreg_l16a_2p7: l16 {
41447498916SJami Kettunen			regulator-min-microvolt = <2704000>;
41547498916SJami Kettunen			regulator-max-microvolt = <2704000>;
416bc0e82fbSKonrad Dybcio		};
41747498916SJami Kettunen
41847498916SJami Kettunen		vreg_l17a_1p3: l17 {
41947498916SJami Kettunen			regulator-min-microvolt = <1304000>;
42047498916SJami Kettunen			regulator-max-microvolt = <1304000>;
421bc0e82fbSKonrad Dybcio		};
42247498916SJami Kettunen
42347498916SJami Kettunen		vreg_l18a_2p7: l18 {
42447498916SJami Kettunen			regulator-min-microvolt = <2704000>;
42547498916SJami Kettunen			regulator-max-microvolt = <2704000>;
426bc0e82fbSKonrad Dybcio		};
42747498916SJami Kettunen
42847498916SJami Kettunen		vreg_l19a_3p0: l19 {
42947498916SJami Kettunen			regulator-min-microvolt = <3008000>;
43047498916SJami Kettunen			regulator-max-microvolt = <3008000>;
431bc0e82fbSKonrad Dybcio		};
43247498916SJami Kettunen
43347498916SJami Kettunen		vreg_l20a_2p95: l20 {
43447498916SJami Kettunen			regulator-min-microvolt = <2960000>;
43547498916SJami Kettunen			regulator-max-microvolt = <2960000>;
436bc0e82fbSKonrad Dybcio			regulator-allow-set-load;
43747498916SJami Kettunen		};
43847498916SJami Kettunen		vreg_l21a_2p95: l21 {
43947498916SJami Kettunen			regulator-min-microvolt = <2960000>;
44047498916SJami Kettunen			regulator-max-microvolt = <2960000>;
44147498916SJami Kettunen			regulator-system-load = <800000>;
44247498916SJami Kettunen			regulator-allow-set-load;
44347498916SJami Kettunen		};
44447498916SJami Kettunen
44547498916SJami Kettunen		vreg_l22a_2p85: l22 {
446bc0e82fbSKonrad Dybcio			regulator-min-microvolt = <2864000>;
44747498916SJami Kettunen			regulator-max-microvolt = <2864000>;
448bc0e82fbSKonrad Dybcio		};
44947498916SJami Kettunen
45047498916SJami Kettunen		vreg_l23a_3p3: l23 {
45147498916SJami Kettunen			regulator-min-microvolt = <3312000>;
45247498916SJami Kettunen			regulator-max-microvolt = <3312000>;
453bc0e82fbSKonrad Dybcio		};
45447498916SJami Kettunen
45547498916SJami Kettunen		vreg_l24a_3p075: l24 {
45647498916SJami Kettunen			regulator-min-microvolt = <3088000>;
45747498916SJami Kettunen			regulator-max-microvolt = <3088000>;
458bc0e82fbSKonrad Dybcio		};
45947498916SJami Kettunen
46047498916SJami Kettunen		vreg_l25a_3p3: l25 {
46147498916SJami Kettunen			regulator-min-microvolt = <3104000>;
46247498916SJami Kettunen			regulator-max-microvolt = <3312000>;
463bc0e82fbSKonrad Dybcio		};
46447498916SJami Kettunen
46547498916SJami Kettunen		vreg_l26a_1p2: l26 {
46647498916SJami Kettunen			regulator-min-microvolt = <1200000>;
46747498916SJami Kettunen			regulator-max-microvolt = <1200000>;
468bc0e82fbSKonrad Dybcio			regulator-allow-set-load;
46947498916SJami Kettunen		};
47047498916SJami Kettunen
47147498916SJami Kettunen		vreg_l28_3p0: l28 {
47247498916SJami Kettunen			regulator-min-microvolt = <3008000>;
47347498916SJami Kettunen			regulator-max-microvolt = <3008000>;
474bc0e82fbSKonrad Dybcio		};
47547498916SJami Kettunen
47647498916SJami Kettunen		vreg_lvs1a_1p8: lvs1 { };
47747498916SJami Kettunen		vreg_lvs2a_1p8: lvs2 { };
47847498916SJami Kettunen	};
479bc0e82fbSKonrad Dybcio
48047498916SJami Kettunen	regulators-1 {
48147498916SJami Kettunen		compatible = "qcom,rpm-pmi8998-regulators";
48247498916SJami Kettunen
48347498916SJami Kettunen		vdd_bob-supply = <&vph_pwr>;
484372698e8SKrzysztof Kozlowski
48547498916SJami Kettunen		vreg_bob: bob {
48647498916SJami Kettunen			regulator-min-microvolt = <3312000>;
48747498916SJami Kettunen			regulator-max-microvolt = <3600000>;
48847498916SJami Kettunen		};
48947498916SJami Kettunen	};
49047498916SJami Kettunen};
49147498916SJami Kettunen
49247498916SJami Kettunen&tlmm {
49347498916SJami Kettunen	gpio-reserved-ranges = <0 4>, <81 4>;
49447498916SJami Kettunen
49547498916SJami Kettunen	hall_sensor_default: hall-sensor-default-state {
49647498916SJami Kettunen		pins = "gpio124";
49747498916SJami Kettunen		function = "gpio";
49847498916SJami Kettunen		drive-strength = <2>;
499ed9ba9e9SKrzysztof Kozlowski		bias-disable;
50047498916SJami Kettunen	};
50147498916SJami Kettunen
50247498916SJami Kettunen	ts_int_active: ts-int-active-state {
50347498916SJami Kettunen		pins = "gpio125";
50447498916SJami Kettunen		function = "gpio";
50547498916SJami Kettunen		drive-strength = <8>;
506ed9ba9e9SKrzysztof Kozlowski		bias-pull-up;
50747498916SJami Kettunen	};
50847498916SJami Kettunen
50947498916SJami Kettunen	ts_reset_active: ts-reset-active-state {
51047498916SJami Kettunen		pins = "gpio89";
51147498916SJami Kettunen		function = "gpio";
51247498916SJami Kettunen		drive-strength = <8>;
513ed9ba9e9SKrzysztof Kozlowski		bias-pull-up;
51447498916SJami Kettunen	};
51547498916SJami Kettunen
51647498916SJami Kettunen	nfc_int_active: nfc-int-active-state {
51747498916SJami Kettunen		pins = "gpio92";
51847498916SJami Kettunen		function = "gpio";
519726111e6SJami Kettunen		drive-strength = <6>;
520ed9ba9e9SKrzysztof Kozlowski		bias-pull-up;
521726111e6SJami Kettunen	};
522726111e6SJami Kettunen
523726111e6SJami Kettunen	nfc_enable_active: nfc-enable-active-state {
524726111e6SJami Kettunen		pins = "gpio12", "gpio116";
525726111e6SJami Kettunen		function = "gpio";
526726111e6SJami Kettunen		drive-strength = <6>;
527ed9ba9e9SKrzysztof Kozlowski		bias-pull-up;
528726111e6SJami Kettunen	};
529726111e6SJami Kettunen};
530726111e6SJami Kettunen
531726111e6SJami Kettunen&ufshc {
532726111e6SJami Kettunen	status = "okay";
53347498916SJami Kettunen
53447498916SJami Kettunen	vcc-supply = <&vreg_l20a_2p95>;
53547498916SJami Kettunen	vccq-supply = <&vreg_l26a_1p2>;
53647498916SJami Kettunen	vccq2-supply = <&vreg_s4a_1p8>;
53747498916SJami Kettunen	vcc-max-microamp = <750000>;
53847498916SJami Kettunen	vccq-max-microamp = <560000>;
53947498916SJami Kettunen	vccq2-max-microamp = <750000>;
54047498916SJami Kettunen};
54147498916SJami Kettunen
54247498916SJami Kettunen&ufsphy {
54347498916SJami Kettunen	status = "okay";
54447498916SJami Kettunen
54547498916SJami Kettunen	vdda-phy-supply = <&vreg_l1a_0p875>;
54647498916SJami Kettunen	vdda-pll-supply = <&vreg_l2a_1p2>;
54747498916SJami Kettunen	vddp-ref-clk-supply = <&vreg_l26a_1p2>;
54847498916SJami Kettunen};
54947498916SJami Kettunen
55047498916SJami Kettunen&usb3 {
55147498916SJami Kettunen	status = "okay";
55247498916SJami Kettunen
55347498916SJami Kettunen	/* Disable USB3 clock requirement as the device only supports USB2 */
55447498916SJami Kettunen	qcom,select-utmi-as-pipe-clk;
55547498916SJami Kettunen};
55647498916SJami Kettunen
55747498916SJami Kettunen&usb3_dwc3 {
55847498916SJami Kettunen	/* Drop the unused USB 3 PHY */
55947498916SJami Kettunen	phys = <&qusb2phy>;
56047498916SJami Kettunen	phy-names = "usb2-phy";
56147498916SJami Kettunen
56247498916SJami Kettunen	/* Fastest mode for USB 2 */
56347498916SJami Kettunen	maximum-speed = "high-speed";
56447498916SJami Kettunen
56547498916SJami Kettunen	/* Force to peripheral until we can switch modes */
56647498916SJami Kettunen	dr_mode = "peripheral";
56747498916SJami Kettunen};
56847498916SJami Kettunen
56947498916SJami Kettunen&wifi {
57047498916SJami Kettunen	/* Leave disabled until MSS is functional */
57147498916SJami Kettunen	vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
57247498916SJami Kettunen	vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
57347498916SJami Kettunen	vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
57447498916SJami Kettunen	vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
57547498916SJami Kettunen};
57647498916SJami Kettunen