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"
6bd167507SJ.R. Divya Antony#include <dt-bindings/gpio/gpio.h>
721e95ec2SJ.R. Divya Antony#include <dt-bindings/input/input.h>
821e95ec2SJ.R. Divya Antony#include <dt-bindings/interrupt-controller/irq.h>
9bd167507SJ.R. Divya Antony
10bd167507SJ.R. Divya Antony/ {
11bd167507SJ.R. Divya Antony	model = "Asus Zenfone 2 Laser";
12bd167507SJ.R. Divya Antony	compatible = "asus,z00l", "qcom,msm8916";
13eaa744b1SArnaud Ferraris	chassis-type = "handset";
14bd167507SJ.R. Divya Antony
15bd167507SJ.R. Divya Antony	aliases {
16154f23a8SStephan Gerhold		mmc0 = &sdhc_1; /* eMMC */
17154f23a8SStephan Gerhold		mmc1 = &sdhc_2; /* SD card */
18c310ca82SStephan Gerhold		serial0 = &blsp_uart2;
19bd167507SJ.R. Divya Antony	};
20bd167507SJ.R. Divya Antony
21bd167507SJ.R. Divya Antony	chosen {
22bd167507SJ.R. Divya Antony		stdout-path = "serial0";
23bd167507SJ.R. Divya Antony	};
24bd167507SJ.R. Divya Antony
25bd167507SJ.R. Divya Antony	gpio-keys {
26bd167507SJ.R. Divya Antony		compatible = "gpio-keys";
27bd167507SJ.R. Divya Antony
28bd167507SJ.R. Divya Antony		pinctrl-names = "default";
29bd167507SJ.R. Divya Antony		pinctrl-0 = <&gpio_keys_default>;
30bd167507SJ.R. Divya Antony
31bd167507SJ.R. Divya Antony		label = "GPIO Buttons";
32bd167507SJ.R. Divya Antony
33b08f5cbdSKrzysztof Kozlowski		button-volume-up {
34bd167507SJ.R. Divya Antony			label = "Volume Up";
3541e22c2fSStephan Gerhold			gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
36bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEUP>;
37bd167507SJ.R. Divya Antony			debounce-interval = <15>;
38bd167507SJ.R. Divya Antony		};
39bd167507SJ.R. Divya Antony
40b08f5cbdSKrzysztof Kozlowski		button-volume-down {
41bd167507SJ.R. Divya Antony			label = "Volume Down";
4241e22c2fSStephan Gerhold			gpios = <&tlmm 117 GPIO_ACTIVE_LOW>;
43bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEDOWN>;
44bd167507SJ.R. Divya Antony			debounce-interval = <15>;
45bd167507SJ.R. Divya Antony		};
46bd167507SJ.R. Divya Antony	};
47bd167507SJ.R. Divya Antony
4868edf2d8SJ.R. Divya Antony	reg_sd_vmmc: regulator-sdcard-vmmc {
4968edf2d8SJ.R. Divya Antony		compatible = "regulator-fixed";
5068edf2d8SJ.R. Divya Antony		regulator-name = "sdcard-vmmc";
5168edf2d8SJ.R. Divya Antony		regulator-min-microvolt = <2950000>;
5268edf2d8SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
5368edf2d8SJ.R. Divya Antony
5441e22c2fSStephan Gerhold		gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>;
5568edf2d8SJ.R. Divya Antony		enable-active-high;
5668edf2d8SJ.R. Divya Antony
5768edf2d8SJ.R. Divya Antony		startup-delay-us = <200>;
5868edf2d8SJ.R. Divya Antony
5968edf2d8SJ.R. Divya Antony		pinctrl-names = "default";
6068edf2d8SJ.R. Divya Antony		pinctrl-0 = <&sd_vmmc_en_default>;
6168edf2d8SJ.R. Divya Antony	};
6268edf2d8SJ.R. Divya Antony
63bd167507SJ.R. Divya Antony	usb_id: usb-id {
64bd167507SJ.R. Divya Antony		compatible = "linux,extcon-usb-gpio";
6541e22c2fSStephan Gerhold		id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
66bd167507SJ.R. Divya Antony		pinctrl-names = "default";
67bd167507SJ.R. Divya Antony		pinctrl-0 = <&usb_id_default>;
68bd167507SJ.R. Divya Antony	};
69bd167507SJ.R. Divya Antony};
70bd167507SJ.R. Divya Antony
7152f5fbe2SJ.R. Divya Antony&blsp_i2c2 {
7252f5fbe2SJ.R. Divya Antony	status = "okay";
7352f5fbe2SJ.R. Divya Antony
7452f5fbe2SJ.R. Divya Antony	magnetometer@c {
7552f5fbe2SJ.R. Divya Antony		compatible = "asahi-kasei,ak09911";
7652f5fbe2SJ.R. Divya Antony		reg = <0x0c>;
7752f5fbe2SJ.R. Divya Antony
7852f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l8>;
7952f5fbe2SJ.R. Divya Antony		vid-supply = <&pm8916_l6>;
8052f5fbe2SJ.R. Divya Antony
8141e22c2fSStephan Gerhold		reset-gpios = <&tlmm 112 GPIO_ACTIVE_LOW>;
8252f5fbe2SJ.R. Divya Antony
8352f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
8452f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&mag_reset_default>;
8552f5fbe2SJ.R. Divya Antony	};
8652f5fbe2SJ.R. Divya Antony
8752f5fbe2SJ.R. Divya Antony	imu@68 {
8852f5fbe2SJ.R. Divya Antony		compatible = "invensense,mpu6515";
8952f5fbe2SJ.R. Divya Antony		reg = <0x68>;
9052f5fbe2SJ.R. Divya Antony
9141e22c2fSStephan Gerhold		interrupt-parent = <&tlmm>;
9252f5fbe2SJ.R. Divya Antony		interrupts = <36 IRQ_TYPE_EDGE_RISING>;
9352f5fbe2SJ.R. Divya Antony
9452f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l17>;
9552f5fbe2SJ.R. Divya Antony		vddio-supply = <&pm8916_l6>;
9652f5fbe2SJ.R. Divya Antony
9752f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
9852f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&imu_default>;
9952f5fbe2SJ.R. Divya Antony
10052f5fbe2SJ.R. Divya Antony		mount-matrix = "1",  "0", "0",
10152f5fbe2SJ.R. Divya Antony			       "0", "-1", "0",
10252f5fbe2SJ.R. Divya Antony			       "0",  "0", "1";
10352f5fbe2SJ.R. Divya Antony	};
10452f5fbe2SJ.R. Divya Antony};
10552f5fbe2SJ.R. Divya Antony
10621e95ec2SJ.R. Divya Antony&blsp_i2c5 {
10721e95ec2SJ.R. Divya Antony	status = "okay";
10821e95ec2SJ.R. Divya Antony
10921e95ec2SJ.R. Divya Antony	touchscreen@38 {
11021e95ec2SJ.R. Divya Antony		compatible = "edt,edt-ft5306";
11121e95ec2SJ.R. Divya Antony		reg = <0x38>;
11221e95ec2SJ.R. Divya Antony
11341e22c2fSStephan Gerhold		interrupt-parent = <&tlmm>;
11421e95ec2SJ.R. Divya Antony		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
11521e95ec2SJ.R. Divya Antony
11641e22c2fSStephan Gerhold		reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
11721e95ec2SJ.R. Divya Antony
11821e95ec2SJ.R. Divya Antony		vcc-supply = <&pm8916_l11>;
11921e95ec2SJ.R. Divya Antony		iovcc-supply = <&pm8916_l6>;
12021e95ec2SJ.R. Divya Antony
12121e95ec2SJ.R. Divya Antony		touchscreen-size-x = <720>;
12221e95ec2SJ.R. Divya Antony		touchscreen-size-y = <1280>;
12321e95ec2SJ.R. Divya Antony
12421e95ec2SJ.R. Divya Antony		pinctrl-names = "default";
12521e95ec2SJ.R. Divya Antony		pinctrl-0 = <&touchscreen_default>;
12621e95ec2SJ.R. Divya Antony	};
12721e95ec2SJ.R. Divya Antony};
12821e95ec2SJ.R. Divya Antony
129c310ca82SStephan Gerhold&blsp_uart2 {
130bd167507SJ.R. Divya Antony	status = "okay";
131bd167507SJ.R. Divya Antony};
132bd167507SJ.R. Divya Antony
133b0a8f16aSStephan Gerhold&pm8916_rpm_regulators {
134b0a8f16aSStephan Gerhold	pm8916_l17: l17 {
135b0a8f16aSStephan Gerhold		regulator-min-microvolt = <2850000>;
136b0a8f16aSStephan Gerhold		regulator-max-microvolt = <2850000>;
137b0a8f16aSStephan Gerhold	};
138b0a8f16aSStephan Gerhold};
139b0a8f16aSStephan Gerhold
140bd167507SJ.R. Divya Antony&sdhc_1 {
141bd167507SJ.R. Divya Antony	status = "okay";
142bd167507SJ.R. Divya Antony};
143bd167507SJ.R. Divya Antony
14468edf2d8SJ.R. Divya Antony&sdhc_2 {
14568edf2d8SJ.R. Divya Antony	status = "okay";
14668edf2d8SJ.R. Divya Antony	vmmc-supply = <&reg_sd_vmmc>;
14768edf2d8SJ.R. Divya Antony
14868edf2d8SJ.R. Divya Antony	pinctrl-names = "default", "sleep";
149*c943e4c5SStephan Gerhold	pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
150*c943e4c5SStephan Gerhold	pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
15141e22c2fSStephan Gerhold	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
15268edf2d8SJ.R. Divya Antony};
15368edf2d8SJ.R. Divya Antony
154bd167507SJ.R. Divya Antony&usb {
155bd167507SJ.R. Divya Antony	status = "okay";
156bd167507SJ.R. Divya Antony	extcon = <&usb_id>, <&usb_id>;
157bd167507SJ.R. Divya Antony};
158bd167507SJ.R. Divya Antony
159bd167507SJ.R. Divya Antony&usb_hs_phy {
160bd167507SJ.R. Divya Antony	extcon = <&usb_id>;
161bd167507SJ.R. Divya Antony};
162bd167507SJ.R. Divya Antony
16332444424SStephan Gerhold&wcnss {
16432444424SStephan Gerhold	status = "okay";
16532444424SStephan Gerhold};
16632444424SStephan Gerhold
16732444424SStephan Gerhold&wcnss_iris {
16832444424SStephan Gerhold	compatible = "qcom,wcn3620";
16932444424SStephan Gerhold};
17032444424SStephan Gerhold
17141e22c2fSStephan Gerhold&tlmm {
1728b276ca0SKrzysztof Kozlowski	gpio_keys_default: gpio-keys-default-state {
173bd167507SJ.R. Divya Antony		pins = "gpio107", "gpio117";
174bd167507SJ.R. Divya Antony		function = "gpio";
175bd167507SJ.R. Divya Antony
176bd167507SJ.R. Divya Antony		drive-strength = <2>;
177bd167507SJ.R. Divya Antony		bias-pull-up;
178bd167507SJ.R. Divya Antony	};
179bd167507SJ.R. Divya Antony
1808b276ca0SKrzysztof Kozlowski	imu_default: imu-default-state {
18152f5fbe2SJ.R. Divya Antony		pins = "gpio36";
18252f5fbe2SJ.R. Divya Antony		function = "gpio";
18352f5fbe2SJ.R. Divya Antony
18452f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
18552f5fbe2SJ.R. Divya Antony		bias-disable;
18652f5fbe2SJ.R. Divya Antony	};
18752f5fbe2SJ.R. Divya Antony
1888b276ca0SKrzysztof Kozlowski	mag_reset_default: mag-reset-default-state {
18952f5fbe2SJ.R. Divya Antony		pins = "gpio112";
19052f5fbe2SJ.R. Divya Antony		function = "gpio";
19152f5fbe2SJ.R. Divya Antony
19252f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
19352f5fbe2SJ.R. Divya Antony		bias-disable;
19452f5fbe2SJ.R. Divya Antony	};
19552f5fbe2SJ.R. Divya Antony
1968b276ca0SKrzysztof Kozlowski	sd_vmmc_en_default: sd-vmmc-en-default-state {
19768edf2d8SJ.R. Divya Antony		pins = "gpio87";
19868edf2d8SJ.R. Divya Antony		function = "gpio";
19968edf2d8SJ.R. Divya Antony
20068edf2d8SJ.R. Divya Antony		drive-strength = <2>;
20168edf2d8SJ.R. Divya Antony		bias-disable;
20268edf2d8SJ.R. Divya Antony	};
20368edf2d8SJ.R. Divya Antony
204dfbda20dSStephan Gerhold	sdc2_cd_default: sdc2-cd-default-state {
205dfbda20dSStephan Gerhold		pins = "gpio38";
206dfbda20dSStephan Gerhold		function = "gpio";
207dfbda20dSStephan Gerhold		drive-strength = <2>;
208dfbda20dSStephan Gerhold		bias-disable;
209dfbda20dSStephan Gerhold	};
210dfbda20dSStephan Gerhold
2118b276ca0SKrzysztof Kozlowski	touchscreen_default: touchscreen-default-state {
2128b276ca0SKrzysztof Kozlowski		touch-pins {
21321e95ec2SJ.R. Divya Antony			pins = "gpio13";
21421e95ec2SJ.R. Divya Antony			function = "gpio";
21521e95ec2SJ.R. Divya Antony
21621e95ec2SJ.R. Divya Antony			drive-strength = <2>;
21721e95ec2SJ.R. Divya Antony			bias-pull-up;
2188b276ca0SKrzysztof Kozlowski		};
21921e95ec2SJ.R. Divya Antony
2208b276ca0SKrzysztof Kozlowski		reset-pins {
22121e95ec2SJ.R. Divya Antony			pins = "gpio12";
22221e95ec2SJ.R. Divya Antony			function = "gpio";
22321e95ec2SJ.R. Divya Antony
22421e95ec2SJ.R. Divya Antony			drive-strength = <2>;
22521e95ec2SJ.R. Divya Antony			bias-disable;
22621e95ec2SJ.R. Divya Antony		};
22721e95ec2SJ.R. Divya Antony	};
22821e95ec2SJ.R. Divya Antony
2298b276ca0SKrzysztof Kozlowski	usb_id_default: usb-id-default-state {
230bd167507SJ.R. Divya Antony		pins = "gpio110";
231bd167507SJ.R. Divya Antony		function = "gpio";
232bd167507SJ.R. Divya Antony
233bd167507SJ.R. Divya Antony		drive-strength = <8>;
234bd167507SJ.R. Divya Antony		bias-pull-up;
235bd167507SJ.R. Divya Antony	};
236bd167507SJ.R. Divya Antony};
237