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 {
16bd167507SJ.R. Divya Antony		serial0 = &blsp1_uart2;
17bd167507SJ.R. Divya Antony	};
18bd167507SJ.R. Divya Antony
19bd167507SJ.R. Divya Antony	chosen {
20bd167507SJ.R. Divya Antony		stdout-path = "serial0";
21bd167507SJ.R. Divya Antony	};
22bd167507SJ.R. Divya Antony
23bd167507SJ.R. Divya Antony	gpio-keys {
24bd167507SJ.R. Divya Antony		compatible = "gpio-keys";
25bd167507SJ.R. Divya Antony
26bd167507SJ.R. Divya Antony		pinctrl-names = "default";
27bd167507SJ.R. Divya Antony		pinctrl-0 = <&gpio_keys_default>;
28bd167507SJ.R. Divya Antony
29bd167507SJ.R. Divya Antony		label = "GPIO Buttons";
30bd167507SJ.R. Divya Antony
31b08f5cbdSKrzysztof Kozlowski		button-volume-up {
32bd167507SJ.R. Divya Antony			label = "Volume Up";
33bd167507SJ.R. Divya Antony			gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
34bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEUP>;
35bd167507SJ.R. Divya Antony			debounce-interval = <15>;
36bd167507SJ.R. Divya Antony		};
37bd167507SJ.R. Divya Antony
38b08f5cbdSKrzysztof Kozlowski		button-volume-down {
39bd167507SJ.R. Divya Antony			label = "Volume Down";
40bd167507SJ.R. Divya Antony			gpios = <&msmgpio 117 GPIO_ACTIVE_LOW>;
41bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEDOWN>;
42bd167507SJ.R. Divya Antony			debounce-interval = <15>;
43bd167507SJ.R. Divya Antony		};
44bd167507SJ.R. Divya Antony	};
45bd167507SJ.R. Divya Antony
4668edf2d8SJ.R. Divya Antony	reg_sd_vmmc: regulator-sdcard-vmmc {
4768edf2d8SJ.R. Divya Antony		compatible = "regulator-fixed";
4868edf2d8SJ.R. Divya Antony		regulator-name = "sdcard-vmmc";
4968edf2d8SJ.R. Divya Antony		regulator-min-microvolt = <2950000>;
5068edf2d8SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
5168edf2d8SJ.R. Divya Antony
5268edf2d8SJ.R. Divya Antony		gpio = <&msmgpio 87 GPIO_ACTIVE_HIGH>;
5368edf2d8SJ.R. Divya Antony		enable-active-high;
5468edf2d8SJ.R. Divya Antony
5568edf2d8SJ.R. Divya Antony		startup-delay-us = <200>;
5668edf2d8SJ.R. Divya Antony
5768edf2d8SJ.R. Divya Antony		pinctrl-names = "default";
5868edf2d8SJ.R. Divya Antony		pinctrl-0 = <&sd_vmmc_en_default>;
5968edf2d8SJ.R. Divya Antony	};
6068edf2d8SJ.R. Divya Antony
61bd167507SJ.R. Divya Antony	usb_id: usb-id {
62bd167507SJ.R. Divya Antony		compatible = "linux,extcon-usb-gpio";
63bd167507SJ.R. Divya Antony		id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
64bd167507SJ.R. Divya Antony		pinctrl-names = "default";
65bd167507SJ.R. Divya Antony		pinctrl-0 = <&usb_id_default>;
66bd167507SJ.R. Divya Antony	};
67bd167507SJ.R. Divya Antony};
68bd167507SJ.R. Divya Antony
6952f5fbe2SJ.R. Divya Antony&blsp_i2c2 {
7052f5fbe2SJ.R. Divya Antony	status = "okay";
7152f5fbe2SJ.R. Divya Antony
7252f5fbe2SJ.R. Divya Antony	magnetometer@c {
7352f5fbe2SJ.R. Divya Antony		compatible = "asahi-kasei,ak09911";
7452f5fbe2SJ.R. Divya Antony		reg = <0x0c>;
7552f5fbe2SJ.R. Divya Antony
7652f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l8>;
7752f5fbe2SJ.R. Divya Antony		vid-supply = <&pm8916_l6>;
7852f5fbe2SJ.R. Divya Antony
7952f5fbe2SJ.R. Divya Antony		reset-gpios = <&msmgpio 112 GPIO_ACTIVE_LOW>;
8052f5fbe2SJ.R. Divya Antony
8152f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
8252f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&mag_reset_default>;
8352f5fbe2SJ.R. Divya Antony	};
8452f5fbe2SJ.R. Divya Antony
8552f5fbe2SJ.R. Divya Antony	imu@68 {
8652f5fbe2SJ.R. Divya Antony		compatible = "invensense,mpu6515";
8752f5fbe2SJ.R. Divya Antony		reg = <0x68>;
8852f5fbe2SJ.R. Divya Antony
8952f5fbe2SJ.R. Divya Antony		interrupt-parent = <&msmgpio>;
9052f5fbe2SJ.R. Divya Antony		interrupts = <36 IRQ_TYPE_EDGE_RISING>;
9152f5fbe2SJ.R. Divya Antony
9252f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l17>;
9352f5fbe2SJ.R. Divya Antony		vddio-supply = <&pm8916_l6>;
9452f5fbe2SJ.R. Divya Antony
9552f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
9652f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&imu_default>;
9752f5fbe2SJ.R. Divya Antony
9852f5fbe2SJ.R. Divya Antony		mount-matrix = "1",  "0", "0",
9952f5fbe2SJ.R. Divya Antony			       "0", "-1", "0",
10052f5fbe2SJ.R. Divya Antony			       "0",  "0", "1";
10152f5fbe2SJ.R. Divya Antony	};
10252f5fbe2SJ.R. Divya Antony};
10352f5fbe2SJ.R. Divya Antony
10421e95ec2SJ.R. Divya Antony&blsp_i2c5 {
10521e95ec2SJ.R. Divya Antony	status = "okay";
10621e95ec2SJ.R. Divya Antony
10721e95ec2SJ.R. Divya Antony	touchscreen@38 {
10821e95ec2SJ.R. Divya Antony		compatible = "edt,edt-ft5306";
10921e95ec2SJ.R. Divya Antony		reg = <0x38>;
11021e95ec2SJ.R. Divya Antony
11121e95ec2SJ.R. Divya Antony		interrupt-parent = <&msmgpio>;
11221e95ec2SJ.R. Divya Antony		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
11321e95ec2SJ.R. Divya Antony
11421e95ec2SJ.R. Divya Antony		reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>;
11521e95ec2SJ.R. Divya Antony
11621e95ec2SJ.R. Divya Antony		vcc-supply = <&pm8916_l11>;
11721e95ec2SJ.R. Divya Antony		iovcc-supply = <&pm8916_l6>;
11821e95ec2SJ.R. Divya Antony
11921e95ec2SJ.R. Divya Antony		touchscreen-size-x = <720>;
12021e95ec2SJ.R. Divya Antony		touchscreen-size-y = <1280>;
12121e95ec2SJ.R. Divya Antony
12221e95ec2SJ.R. Divya Antony		pinctrl-names = "default";
12321e95ec2SJ.R. Divya Antony		pinctrl-0 = <&touchscreen_default>;
12421e95ec2SJ.R. Divya Antony	};
12521e95ec2SJ.R. Divya Antony};
12621e95ec2SJ.R. Divya Antony
127bd167507SJ.R. Divya Antony&blsp1_uart2 {
128bd167507SJ.R. Divya Antony	status = "okay";
129bd167507SJ.R. Divya Antony};
130bd167507SJ.R. Divya Antony
131*b0a8f16aSStephan Gerhold&pm8916_rpm_regulators {
132*b0a8f16aSStephan Gerhold	pm8916_l17: l17 {
133*b0a8f16aSStephan Gerhold		regulator-min-microvolt = <2850000>;
134*b0a8f16aSStephan Gerhold		regulator-max-microvolt = <2850000>;
135*b0a8f16aSStephan Gerhold	};
136*b0a8f16aSStephan Gerhold};
137*b0a8f16aSStephan Gerhold
138bd167507SJ.R. Divya Antony&sdhc_1 {
139bd167507SJ.R. Divya Antony	status = "okay";
140bd167507SJ.R. Divya Antony
141bd167507SJ.R. Divya Antony	pinctrl-names = "default", "sleep";
142bd167507SJ.R. Divya Antony	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
143bd167507SJ.R. Divya Antony	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
144bd167507SJ.R. Divya Antony};
145bd167507SJ.R. Divya Antony
14668edf2d8SJ.R. Divya Antony&sdhc_2 {
14768edf2d8SJ.R. Divya Antony	status = "okay";
14868edf2d8SJ.R. Divya Antony	vmmc-supply = <&reg_sd_vmmc>;
14968edf2d8SJ.R. Divya Antony
15068edf2d8SJ.R. Divya Antony	pinctrl-names = "default", "sleep";
15168edf2d8SJ.R. Divya Antony	pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
15268edf2d8SJ.R. Divya Antony	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
15368edf2d8SJ.R. Divya Antony	cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
15468edf2d8SJ.R. Divya Antony};
15568edf2d8SJ.R. Divya Antony
156bd167507SJ.R. Divya Antony&usb {
157bd167507SJ.R. Divya Antony	status = "okay";
158bd167507SJ.R. Divya Antony	extcon = <&usb_id>, <&usb_id>;
159bd167507SJ.R. Divya Antony};
160bd167507SJ.R. Divya Antony
161bd167507SJ.R. Divya Antony&usb_hs_phy {
162bd167507SJ.R. Divya Antony	extcon = <&usb_id>;
163bd167507SJ.R. Divya Antony};
164bd167507SJ.R. Divya Antony
16532444424SStephan Gerhold&wcnss {
16632444424SStephan Gerhold	status = "okay";
16732444424SStephan Gerhold};
16832444424SStephan Gerhold
16932444424SStephan Gerhold&wcnss_iris {
17032444424SStephan Gerhold	compatible = "qcom,wcn3620";
17132444424SStephan Gerhold};
17232444424SStephan Gerhold
173bd167507SJ.R. Divya Antony&msmgpio {
1748b276ca0SKrzysztof Kozlowski	gpio_keys_default: gpio-keys-default-state {
175bd167507SJ.R. Divya Antony		pins = "gpio107", "gpio117";
176bd167507SJ.R. Divya Antony		function = "gpio";
177bd167507SJ.R. Divya Antony
178bd167507SJ.R. Divya Antony		drive-strength = <2>;
179bd167507SJ.R. Divya Antony		bias-pull-up;
180bd167507SJ.R. Divya Antony	};
181bd167507SJ.R. Divya Antony
1828b276ca0SKrzysztof Kozlowski	imu_default: imu-default-state {
18352f5fbe2SJ.R. Divya Antony		pins = "gpio36";
18452f5fbe2SJ.R. Divya Antony		function = "gpio";
18552f5fbe2SJ.R. Divya Antony
18652f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
18752f5fbe2SJ.R. Divya Antony		bias-disable;
18852f5fbe2SJ.R. Divya Antony	};
18952f5fbe2SJ.R. Divya Antony
1908b276ca0SKrzysztof Kozlowski	mag_reset_default: mag-reset-default-state {
19152f5fbe2SJ.R. Divya Antony		pins = "gpio112";
19252f5fbe2SJ.R. Divya Antony		function = "gpio";
19352f5fbe2SJ.R. Divya Antony
19452f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
19552f5fbe2SJ.R. Divya Antony		bias-disable;
19652f5fbe2SJ.R. Divya Antony	};
19752f5fbe2SJ.R. Divya Antony
1988b276ca0SKrzysztof Kozlowski	sd_vmmc_en_default: sd-vmmc-en-default-state {
19968edf2d8SJ.R. Divya Antony		pins = "gpio87";
20068edf2d8SJ.R. Divya Antony		function = "gpio";
20168edf2d8SJ.R. Divya Antony
20268edf2d8SJ.R. Divya Antony		drive-strength = <2>;
20368edf2d8SJ.R. Divya Antony		bias-disable;
20468edf2d8SJ.R. Divya Antony	};
20568edf2d8SJ.R. Divya Antony
2068b276ca0SKrzysztof Kozlowski	touchscreen_default: touchscreen-default-state {
2078b276ca0SKrzysztof Kozlowski		touch-pins {
20821e95ec2SJ.R. Divya Antony			pins = "gpio13";
20921e95ec2SJ.R. Divya Antony			function = "gpio";
21021e95ec2SJ.R. Divya Antony
21121e95ec2SJ.R. Divya Antony			drive-strength = <2>;
21221e95ec2SJ.R. Divya Antony			bias-pull-up;
2138b276ca0SKrzysztof Kozlowski		};
21421e95ec2SJ.R. Divya Antony
2158b276ca0SKrzysztof Kozlowski		reset-pins {
21621e95ec2SJ.R. Divya Antony			pins = "gpio12";
21721e95ec2SJ.R. Divya Antony			function = "gpio";
21821e95ec2SJ.R. Divya Antony
21921e95ec2SJ.R. Divya Antony			drive-strength = <2>;
22021e95ec2SJ.R. Divya Antony			bias-disable;
22121e95ec2SJ.R. Divya Antony		};
22221e95ec2SJ.R. Divya Antony	};
22321e95ec2SJ.R. Divya Antony
2248b276ca0SKrzysztof Kozlowski	usb_id_default: usb-id-default-state {
225bd167507SJ.R. Divya Antony		pins = "gpio110";
226bd167507SJ.R. Divya Antony		function = "gpio";
227bd167507SJ.R. Divya Antony
228bd167507SJ.R. Divya Antony		drive-strength = <8>;
229bd167507SJ.R. Divya Antony		bias-pull-up;
230bd167507SJ.R. Divya Antony	};
231bd167507SJ.R. Divya Antony};
232