xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/msm8916-asus-z00l.dts (revision ec71f661a572a770d7c861cd52a50cbbb0e1a8d1)
1bd167507SJ.R. Divya Antony// SPDX-License-Identifier: GPL-2.0-only
2bd167507SJ.R. Divya Antony
3bd167507SJ.R. Divya Antony/dts-v1/;
4bd167507SJ.R. Divya Antony
5bd167507SJ.R. Divya Antony#include "msm8916-pm8916.dtsi"
6462cdffaSJ.R. Divya Antony#include "msm8916-modem-qdsp6.dtsi"
7462cdffaSJ.R. Divya Antony
8bd167507SJ.R. Divya Antony#include <dt-bindings/gpio/gpio.h>
921e95ec2SJ.R. Divya Antony#include <dt-bindings/input/input.h>
1021e95ec2SJ.R. Divya Antony#include <dt-bindings/interrupt-controller/irq.h>
11bd167507SJ.R. Divya Antony
12bd167507SJ.R. Divya Antony/ {
13bd167507SJ.R. Divya Antony	model = "Asus Zenfone 2 Laser";
14bd167507SJ.R. Divya Antony	compatible = "asus,z00l", "qcom,msm8916";
15eaa744b1SArnaud Ferraris	chassis-type = "handset";
16bd167507SJ.R. Divya Antony
17bd167507SJ.R. Divya Antony	aliases {
18154f23a8SStephan Gerhold		mmc0 = &sdhc_1; /* eMMC */
19154f23a8SStephan Gerhold		mmc1 = &sdhc_2; /* SD card */
20c310ca82SStephan Gerhold		serial0 = &blsp_uart2;
21bd167507SJ.R. Divya Antony	};
22bd167507SJ.R. Divya Antony
23bd167507SJ.R. Divya Antony	chosen {
24bd167507SJ.R. Divya Antony		stdout-path = "serial0";
25bd167507SJ.R. Divya Antony	};
26bd167507SJ.R. Divya Antony
27bd167507SJ.R. Divya Antony	gpio-keys {
28bd167507SJ.R. Divya Antony		compatible = "gpio-keys";
29bd167507SJ.R. Divya Antony
30bd167507SJ.R. Divya Antony		pinctrl-names = "default";
31bd167507SJ.R. Divya Antony		pinctrl-0 = <&gpio_keys_default>;
32bd167507SJ.R. Divya Antony
33bd167507SJ.R. Divya Antony		label = "GPIO Buttons";
34bd167507SJ.R. Divya Antony
35b08f5cbdSKrzysztof Kozlowski		button-volume-up {
36bd167507SJ.R. Divya Antony			label = "Volume Up";
3741e22c2fSStephan Gerhold			gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
38bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEUP>;
39bd167507SJ.R. Divya Antony			debounce-interval = <15>;
40bd167507SJ.R. Divya Antony		};
41bd167507SJ.R. Divya Antony
42b08f5cbdSKrzysztof Kozlowski		button-volume-down {
43bd167507SJ.R. Divya Antony			label = "Volume Down";
4441e22c2fSStephan Gerhold			gpios = <&tlmm 117 GPIO_ACTIVE_LOW>;
45bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEDOWN>;
46bd167507SJ.R. Divya Antony			debounce-interval = <15>;
47bd167507SJ.R. Divya Antony		};
48bd167507SJ.R. Divya Antony	};
49bd167507SJ.R. Divya Antony
5068edf2d8SJ.R. Divya Antony	reg_sd_vmmc: regulator-sdcard-vmmc {
5168edf2d8SJ.R. Divya Antony		compatible = "regulator-fixed";
5268edf2d8SJ.R. Divya Antony		regulator-name = "sdcard-vmmc";
5368edf2d8SJ.R. Divya Antony		regulator-min-microvolt = <2950000>;
5468edf2d8SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
5568edf2d8SJ.R. Divya Antony
5641e22c2fSStephan Gerhold		gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>;
5768edf2d8SJ.R. Divya Antony		enable-active-high;
5868edf2d8SJ.R. Divya Antony
5968edf2d8SJ.R. Divya Antony		startup-delay-us = <200>;
6068edf2d8SJ.R. Divya Antony
6168edf2d8SJ.R. Divya Antony		pinctrl-names = "default";
6268edf2d8SJ.R. Divya Antony		pinctrl-0 = <&sd_vmmc_en_default>;
6368edf2d8SJ.R. Divya Antony	};
6468edf2d8SJ.R. Divya Antony
65bd167507SJ.R. Divya Antony	usb_id: usb-id {
66bd167507SJ.R. Divya Antony		compatible = "linux,extcon-usb-gpio";
6741e22c2fSStephan Gerhold		id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
68bd167507SJ.R. Divya Antony		pinctrl-names = "default";
69bd167507SJ.R. Divya Antony		pinctrl-0 = <&usb_id_default>;
70bd167507SJ.R. Divya Antony	};
71bd167507SJ.R. Divya Antony};
72bd167507SJ.R. Divya Antony
7352f5fbe2SJ.R. Divya Antony&blsp_i2c2 {
7452f5fbe2SJ.R. Divya Antony	status = "okay";
7552f5fbe2SJ.R. Divya Antony
7652f5fbe2SJ.R. Divya Antony	magnetometer@c {
7752f5fbe2SJ.R. Divya Antony		compatible = "asahi-kasei,ak09911";
7852f5fbe2SJ.R. Divya Antony		reg = <0x0c>;
7952f5fbe2SJ.R. Divya Antony
8052f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l8>;
8152f5fbe2SJ.R. Divya Antony		vid-supply = <&pm8916_l6>;
8252f5fbe2SJ.R. Divya Antony
8341e22c2fSStephan Gerhold		reset-gpios = <&tlmm 112 GPIO_ACTIVE_LOW>;
8452f5fbe2SJ.R. Divya Antony
8552f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
8652f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&mag_reset_default>;
8752f5fbe2SJ.R. Divya Antony	};
8852f5fbe2SJ.R. Divya Antony
8952f5fbe2SJ.R. Divya Antony	imu@68 {
9052f5fbe2SJ.R. Divya Antony		compatible = "invensense,mpu6515";
9152f5fbe2SJ.R. Divya Antony		reg = <0x68>;
9252f5fbe2SJ.R. Divya Antony
9341e22c2fSStephan Gerhold		interrupt-parent = <&tlmm>;
9452f5fbe2SJ.R. Divya Antony		interrupts = <36 IRQ_TYPE_EDGE_RISING>;
9552f5fbe2SJ.R. Divya Antony
9652f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l17>;
9752f5fbe2SJ.R. Divya Antony		vddio-supply = <&pm8916_l6>;
9852f5fbe2SJ.R. Divya Antony
9952f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
10052f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&imu_default>;
10152f5fbe2SJ.R. Divya Antony
10252f5fbe2SJ.R. Divya Antony		mount-matrix = "1",  "0", "0",
10352f5fbe2SJ.R. Divya Antony			       "0", "-1", "0",
10452f5fbe2SJ.R. Divya Antony			       "0",  "0", "1";
10552f5fbe2SJ.R. Divya Antony	};
10652f5fbe2SJ.R. Divya Antony};
10752f5fbe2SJ.R. Divya Antony
10821e95ec2SJ.R. Divya Antony&blsp_i2c5 {
10921e95ec2SJ.R. Divya Antony	status = "okay";
11021e95ec2SJ.R. Divya Antony
11121e95ec2SJ.R. Divya Antony	touchscreen@38 {
11221e95ec2SJ.R. Divya Antony		compatible = "edt,edt-ft5306";
11321e95ec2SJ.R. Divya Antony		reg = <0x38>;
11421e95ec2SJ.R. Divya Antony
11541e22c2fSStephan Gerhold		interrupt-parent = <&tlmm>;
11621e95ec2SJ.R. Divya Antony		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
11721e95ec2SJ.R. Divya Antony
11841e22c2fSStephan Gerhold		reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
11921e95ec2SJ.R. Divya Antony
12021e95ec2SJ.R. Divya Antony		vcc-supply = <&pm8916_l11>;
12121e95ec2SJ.R. Divya Antony		iovcc-supply = <&pm8916_l6>;
12221e95ec2SJ.R. Divya Antony
12321e95ec2SJ.R. Divya Antony		touchscreen-size-x = <720>;
12421e95ec2SJ.R. Divya Antony		touchscreen-size-y = <1280>;
12521e95ec2SJ.R. Divya Antony
12621e95ec2SJ.R. Divya Antony		pinctrl-names = "default";
12721e95ec2SJ.R. Divya Antony		pinctrl-0 = <&touchscreen_default>;
12821e95ec2SJ.R. Divya Antony	};
12921e95ec2SJ.R. Divya Antony};
13021e95ec2SJ.R. Divya Antony
131c310ca82SStephan Gerhold&blsp_uart2 {
132bd167507SJ.R. Divya Antony	status = "okay";
133*2b8d22efSStephan Gerhold	pinctrl-0 = <&blsp_uart2_console_default>;
134*2b8d22efSStephan Gerhold	pinctrl-1 = <&blsp_uart2_console_sleep>;
1358d88f6c9SStephan Gerhold	pinctrl-names = "default", "sleep";
136bd167507SJ.R. Divya Antony};
137bd167507SJ.R. Divya Antony
138462cdffaSJ.R. Divya Antony&mpss_mem {
139462cdffaSJ.R. Divya Antony	reg = <0x0 0x86800000 0x0 0x5500000>;
140462cdffaSJ.R. Divya Antony};
141462cdffaSJ.R. Divya Antony
142462cdffaSJ.R. Divya Antony&pm8916_codec {
143462cdffaSJ.R. Divya Antony	qcom,micbias-lvl = <2800>;
144462cdffaSJ.R. Divya Antony	qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
145462cdffaSJ.R. Divya Antony	qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
146462cdffaSJ.R. Divya Antony	qcom,micbias1-ext-cap;
147462cdffaSJ.R. Divya Antony	qcom,hphl-jack-type-normally-open;
148462cdffaSJ.R. Divya Antony};
149462cdffaSJ.R. Divya Antony
150b0a8f16aSStephan Gerhold&pm8916_rpm_regulators {
151b0a8f16aSStephan Gerhold	pm8916_l17: l17 {
152b0a8f16aSStephan Gerhold		regulator-min-microvolt = <2850000>;
153b0a8f16aSStephan Gerhold		regulator-max-microvolt = <2850000>;
154b0a8f16aSStephan Gerhold	};
155b0a8f16aSStephan Gerhold};
156b0a8f16aSStephan Gerhold
157bd167507SJ.R. Divya Antony&sdhc_1 {
158bd167507SJ.R. Divya Antony	status = "okay";
159bd167507SJ.R. Divya Antony};
160bd167507SJ.R. Divya Antony
16168edf2d8SJ.R. Divya Antony&sdhc_2 {
16268edf2d8SJ.R. Divya Antony	status = "okay";
16368edf2d8SJ.R. Divya Antony	vmmc-supply = <&reg_sd_vmmc>;
16468edf2d8SJ.R. Divya Antony
16568edf2d8SJ.R. Divya Antony	pinctrl-names = "default", "sleep";
166c943e4c5SStephan Gerhold	pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
167c943e4c5SStephan Gerhold	pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
16841e22c2fSStephan Gerhold	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
16968edf2d8SJ.R. Divya Antony};
17068edf2d8SJ.R. Divya Antony
171462cdffaSJ.R. Divya Antony&sound {
172462cdffaSJ.R. Divya Antony	audio-routing =
173462cdffaSJ.R. Divya Antony		"AMIC1", "MIC BIAS External1",
174462cdffaSJ.R. Divya Antony		"AMIC2", "MIC BIAS Internal2",
175462cdffaSJ.R. Divya Antony		"AMIC3", "MIC BIAS External1";
176462cdffaSJ.R. Divya Antony};
177462cdffaSJ.R. Divya Antony
178bd167507SJ.R. Divya Antony&usb {
179bd167507SJ.R. Divya Antony	status = "okay";
180bd167507SJ.R. Divya Antony	extcon = <&usb_id>, <&usb_id>;
181bd167507SJ.R. Divya Antony};
182bd167507SJ.R. Divya Antony
183bd167507SJ.R. Divya Antony&usb_hs_phy {
184bd167507SJ.R. Divya Antony	extcon = <&usb_id>;
185bd167507SJ.R. Divya Antony};
186bd167507SJ.R. Divya Antony
18729589248SStephan Gerhold&venus {
18829589248SStephan Gerhold	status = "okay";
18929589248SStephan Gerhold};
19029589248SStephan Gerhold
1910ece6438SStephan Gerhold&venus_mem {
1920ece6438SStephan Gerhold	status = "okay";
1930ece6438SStephan Gerhold};
1940ece6438SStephan Gerhold
19532444424SStephan Gerhold&wcnss {
19632444424SStephan Gerhold	status = "okay";
19732444424SStephan Gerhold};
19832444424SStephan Gerhold
19932444424SStephan Gerhold&wcnss_iris {
20032444424SStephan Gerhold	compatible = "qcom,wcn3620";
20132444424SStephan Gerhold};
20232444424SStephan Gerhold
2030ece6438SStephan Gerhold&wcnss_mem {
2040ece6438SStephan Gerhold	status = "okay";
2050ece6438SStephan Gerhold};
2060ece6438SStephan Gerhold
20741e22c2fSStephan Gerhold&tlmm {
2088b276ca0SKrzysztof Kozlowski	gpio_keys_default: gpio-keys-default-state {
209bd167507SJ.R. Divya Antony		pins = "gpio107", "gpio117";
210bd167507SJ.R. Divya Antony		function = "gpio";
211bd167507SJ.R. Divya Antony
212bd167507SJ.R. Divya Antony		drive-strength = <2>;
213bd167507SJ.R. Divya Antony		bias-pull-up;
214bd167507SJ.R. Divya Antony	};
215bd167507SJ.R. Divya Antony
2168b276ca0SKrzysztof Kozlowski	imu_default: imu-default-state {
21752f5fbe2SJ.R. Divya Antony		pins = "gpio36";
21852f5fbe2SJ.R. Divya Antony		function = "gpio";
21952f5fbe2SJ.R. Divya Antony
22052f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
22152f5fbe2SJ.R. Divya Antony		bias-disable;
22252f5fbe2SJ.R. Divya Antony	};
22352f5fbe2SJ.R. Divya Antony
2248b276ca0SKrzysztof Kozlowski	mag_reset_default: mag-reset-default-state {
22552f5fbe2SJ.R. Divya Antony		pins = "gpio112";
22652f5fbe2SJ.R. Divya Antony		function = "gpio";
22752f5fbe2SJ.R. Divya Antony
22852f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
22952f5fbe2SJ.R. Divya Antony		bias-disable;
23052f5fbe2SJ.R. Divya Antony	};
23152f5fbe2SJ.R. Divya Antony
2328b276ca0SKrzysztof Kozlowski	sd_vmmc_en_default: sd-vmmc-en-default-state {
23368edf2d8SJ.R. Divya Antony		pins = "gpio87";
23468edf2d8SJ.R. Divya Antony		function = "gpio";
23568edf2d8SJ.R. Divya Antony
23668edf2d8SJ.R. Divya Antony		drive-strength = <2>;
23768edf2d8SJ.R. Divya Antony		bias-disable;
23868edf2d8SJ.R. Divya Antony	};
23968edf2d8SJ.R. Divya Antony
240dfbda20dSStephan Gerhold	sdc2_cd_default: sdc2-cd-default-state {
241dfbda20dSStephan Gerhold		pins = "gpio38";
242dfbda20dSStephan Gerhold		function = "gpio";
243dfbda20dSStephan Gerhold		drive-strength = <2>;
244dfbda20dSStephan Gerhold		bias-disable;
245dfbda20dSStephan Gerhold	};
246dfbda20dSStephan Gerhold
2478b276ca0SKrzysztof Kozlowski	touchscreen_default: touchscreen-default-state {
2488b276ca0SKrzysztof Kozlowski		touch-pins {
24921e95ec2SJ.R. Divya Antony			pins = "gpio13";
25021e95ec2SJ.R. Divya Antony			function = "gpio";
25121e95ec2SJ.R. Divya Antony
25221e95ec2SJ.R. Divya Antony			drive-strength = <2>;
25321e95ec2SJ.R. Divya Antony			bias-pull-up;
2548b276ca0SKrzysztof Kozlowski		};
25521e95ec2SJ.R. Divya Antony
2568b276ca0SKrzysztof Kozlowski		reset-pins {
25721e95ec2SJ.R. Divya Antony			pins = "gpio12";
25821e95ec2SJ.R. Divya Antony			function = "gpio";
25921e95ec2SJ.R. Divya Antony
26021e95ec2SJ.R. Divya Antony			drive-strength = <2>;
26121e95ec2SJ.R. Divya Antony			bias-disable;
26221e95ec2SJ.R. Divya Antony		};
26321e95ec2SJ.R. Divya Antony	};
26421e95ec2SJ.R. Divya Antony
2658b276ca0SKrzysztof Kozlowski	usb_id_default: usb-id-default-state {
266bd167507SJ.R. Divya Antony		pins = "gpio110";
267bd167507SJ.R. Divya Antony		function = "gpio";
268bd167507SJ.R. Divya Antony
269bd167507SJ.R. Divya Antony		drive-strength = <8>;
270bd167507SJ.R. Divya Antony		bias-pull-up;
271bd167507SJ.R. Divya Antony	};
272bd167507SJ.R. Divya Antony};
273