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
31bd167507SJ.R. Divya Antony		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
38bd167507SJ.R. Divya Antony		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
46*68edf2d8SJ.R. Divya Antony	reg_sd_vmmc: regulator-sdcard-vmmc {
47*68edf2d8SJ.R. Divya Antony		compatible = "regulator-fixed";
48*68edf2d8SJ.R. Divya Antony		regulator-name = "sdcard-vmmc";
49*68edf2d8SJ.R. Divya Antony		regulator-min-microvolt = <2950000>;
50*68edf2d8SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
51*68edf2d8SJ.R. Divya Antony
52*68edf2d8SJ.R. Divya Antony		gpio = <&msmgpio 87 GPIO_ACTIVE_HIGH>;
53*68edf2d8SJ.R. Divya Antony		enable-active-high;
54*68edf2d8SJ.R. Divya Antony
55*68edf2d8SJ.R. Divya Antony		startup-delay-us = <200>;
56*68edf2d8SJ.R. Divya Antony
57*68edf2d8SJ.R. Divya Antony		pinctrl-names = "default";
58*68edf2d8SJ.R. Divya Antony		pinctrl-0 = <&sd_vmmc_en_default>;
59*68edf2d8SJ.R. Divya Antony	};
60*68edf2d8SJ.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
131bd167507SJ.R. Divya Antony&pronto {
132bd167507SJ.R. Divya Antony	status = "okay";
133bd167507SJ.R. Divya Antony};
134bd167507SJ.R. Divya Antony
135bd167507SJ.R. Divya Antony&sdhc_1 {
136bd167507SJ.R. Divya Antony	status = "okay";
137bd167507SJ.R. Divya Antony
138bd167507SJ.R. Divya Antony	pinctrl-names = "default", "sleep";
139bd167507SJ.R. Divya Antony	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
140bd167507SJ.R. Divya Antony	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
141bd167507SJ.R. Divya Antony};
142bd167507SJ.R. Divya Antony
143*68edf2d8SJ.R. Divya Antony&sdhc_2 {
144*68edf2d8SJ.R. Divya Antony	status = "okay";
145*68edf2d8SJ.R. Divya Antony	vmmc-supply = <&reg_sd_vmmc>;
146*68edf2d8SJ.R. Divya Antony
147*68edf2d8SJ.R. Divya Antony	pinctrl-names = "default", "sleep";
148*68edf2d8SJ.R. Divya Antony	pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
149*68edf2d8SJ.R. Divya Antony	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
150*68edf2d8SJ.R. Divya Antony	cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
151*68edf2d8SJ.R. Divya Antony};
152*68edf2d8SJ.R. Divya Antony
153bd167507SJ.R. Divya Antony&usb {
154bd167507SJ.R. Divya Antony	status = "okay";
155bd167507SJ.R. Divya Antony	extcon = <&usb_id>, <&usb_id>;
156bd167507SJ.R. Divya Antony};
157bd167507SJ.R. Divya Antony
158bd167507SJ.R. Divya Antony&usb_hs_phy {
159bd167507SJ.R. Divya Antony	extcon = <&usb_id>;
160bd167507SJ.R. Divya Antony};
161bd167507SJ.R. Divya Antony
162bd167507SJ.R. Divya Antony&smd_rpm_regulators {
163bd167507SJ.R. Divya Antony	vdd_l1_l2_l3-supply = <&pm8916_s3>;
164bd167507SJ.R. Divya Antony	vdd_l4_l5_l6-supply = <&pm8916_s4>;
165bd167507SJ.R. Divya Antony	vdd_l7-supply = <&pm8916_s4>;
166bd167507SJ.R. Divya Antony
167bd167507SJ.R. Divya Antony	s3 {
168bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1200000>;
169bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1300000>;
170bd167507SJ.R. Divya Antony	};
171bd167507SJ.R. Divya Antony
172bd167507SJ.R. Divya Antony	s4 {
173bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
174bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2100000>;
175bd167507SJ.R. Divya Antony	};
176bd167507SJ.R. Divya Antony
177bd167507SJ.R. Divya Antony	l1 {
178bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1225000>;
179bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1225000>;
180bd167507SJ.R. Divya Antony	};
181bd167507SJ.R. Divya Antony
182bd167507SJ.R. Divya Antony	l2 {
183bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1200000>;
184bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1200000>;
185bd167507SJ.R. Divya Antony	};
186bd167507SJ.R. Divya Antony
187bd167507SJ.R. Divya Antony	l4 {
188bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2050000>;
189bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2050000>;
190bd167507SJ.R. Divya Antony	};
191bd167507SJ.R. Divya Antony
192bd167507SJ.R. Divya Antony	l5 {
193bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
194bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1800000>;
195bd167507SJ.R. Divya Antony	};
196bd167507SJ.R. Divya Antony
197bd167507SJ.R. Divya Antony	l6 {
198bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
199bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1800000>;
200bd167507SJ.R. Divya Antony	};
201bd167507SJ.R. Divya Antony
202bd167507SJ.R. Divya Antony	l7 {
203bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
204bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1800000>;
205bd167507SJ.R. Divya Antony	};
206bd167507SJ.R. Divya Antony
207bd167507SJ.R. Divya Antony	l8 {
208bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2850000>;
209bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2900000>;
210bd167507SJ.R. Divya Antony	};
211bd167507SJ.R. Divya Antony
212bd167507SJ.R. Divya Antony	l9 {
213bd167507SJ.R. Divya Antony		regulator-min-microvolt = <3300000>;
214bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
215bd167507SJ.R. Divya Antony	};
216bd167507SJ.R. Divya Antony
217bd167507SJ.R. Divya Antony	l10 {
218bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2700000>;
219bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2800000>;
220bd167507SJ.R. Divya Antony	};
221bd167507SJ.R. Divya Antony
222bd167507SJ.R. Divya Antony	l11 {
223bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
224bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
225bd167507SJ.R. Divya Antony		regulator-allow-set-load;
226bd167507SJ.R. Divya Antony		regulator-system-load = <200000>;
227bd167507SJ.R. Divya Antony	};
228bd167507SJ.R. Divya Antony
229bd167507SJ.R. Divya Antony	l12 {
230bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
231bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
232bd167507SJ.R. Divya Antony	};
233bd167507SJ.R. Divya Antony
234bd167507SJ.R. Divya Antony	l13 {
235bd167507SJ.R. Divya Antony		regulator-min-microvolt = <3075000>;
236bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3075000>;
237bd167507SJ.R. Divya Antony	};
238bd167507SJ.R. Divya Antony
239bd167507SJ.R. Divya Antony	l14 {
240bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
241bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
242bd167507SJ.R. Divya Antony	};
243bd167507SJ.R. Divya Antony
244bd167507SJ.R. Divya Antony	l15 {
245bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
246bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
247bd167507SJ.R. Divya Antony	};
248bd167507SJ.R. Divya Antony
249bd167507SJ.R. Divya Antony	l16 {
250bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
251bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
252bd167507SJ.R. Divya Antony	};
253bd167507SJ.R. Divya Antony
254bd167507SJ.R. Divya Antony	l17 {
255bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2850000>;
256bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2850000>;
257bd167507SJ.R. Divya Antony	};
258bd167507SJ.R. Divya Antony
259bd167507SJ.R. Divya Antony	l18 {
260bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2700000>;
261bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2700000>;
262bd167507SJ.R. Divya Antony	};
263bd167507SJ.R. Divya Antony};
264bd167507SJ.R. Divya Antony
265bd167507SJ.R. Divya Antony&msmgpio {
266bd167507SJ.R. Divya Antony	gpio_keys_default: gpio-keys-default {
267bd167507SJ.R. Divya Antony		pins = "gpio107", "gpio117";
268bd167507SJ.R. Divya Antony		function = "gpio";
269bd167507SJ.R. Divya Antony
270bd167507SJ.R. Divya Antony		drive-strength = <2>;
271bd167507SJ.R. Divya Antony		bias-pull-up;
272bd167507SJ.R. Divya Antony	};
273bd167507SJ.R. Divya Antony
27452f5fbe2SJ.R. Divya Antony	imu_default: imu-default {
27552f5fbe2SJ.R. Divya Antony		pins = "gpio36";
27652f5fbe2SJ.R. Divya Antony		function = "gpio";
27752f5fbe2SJ.R. Divya Antony
27852f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
27952f5fbe2SJ.R. Divya Antony		bias-disable;
28052f5fbe2SJ.R. Divya Antony	};
28152f5fbe2SJ.R. Divya Antony
28252f5fbe2SJ.R. Divya Antony	mag_reset_default: mag-reset-default {
28352f5fbe2SJ.R. Divya Antony		pins = "gpio112";
28452f5fbe2SJ.R. Divya Antony		function = "gpio";
28552f5fbe2SJ.R. Divya Antony
28652f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
28752f5fbe2SJ.R. Divya Antony		bias-disable;
28852f5fbe2SJ.R. Divya Antony	};
28952f5fbe2SJ.R. Divya Antony
290*68edf2d8SJ.R. Divya Antony	sd_vmmc_en_default: sd-vmmc-en-default {
291*68edf2d8SJ.R. Divya Antony		pins = "gpio87";
292*68edf2d8SJ.R. Divya Antony		function = "gpio";
293*68edf2d8SJ.R. Divya Antony
294*68edf2d8SJ.R. Divya Antony		drive-strength = <2>;
295*68edf2d8SJ.R. Divya Antony		bias-disable;
296*68edf2d8SJ.R. Divya Antony	};
297*68edf2d8SJ.R. Divya Antony
29821e95ec2SJ.R. Divya Antony	touchscreen_default: touchscreen-default {
29921e95ec2SJ.R. Divya Antony		pins = "gpio13";
30021e95ec2SJ.R. Divya Antony		function = "gpio";
30121e95ec2SJ.R. Divya Antony
30221e95ec2SJ.R. Divya Antony		drive-strength = <2>;
30321e95ec2SJ.R. Divya Antony		bias-pull-up;
30421e95ec2SJ.R. Divya Antony
30521e95ec2SJ.R. Divya Antony		reset {
30621e95ec2SJ.R. Divya Antony			pins = "gpio12";
30721e95ec2SJ.R. Divya Antony			function = "gpio";
30821e95ec2SJ.R. Divya Antony
30921e95ec2SJ.R. Divya Antony			drive-strength = <2>;
31021e95ec2SJ.R. Divya Antony			bias-disable;
31121e95ec2SJ.R. Divya Antony		};
31221e95ec2SJ.R. Divya Antony	};
31321e95ec2SJ.R. Divya Antony
314bd167507SJ.R. Divya Antony	usb_id_default: usb-id-default {
315bd167507SJ.R. Divya Antony		pins = "gpio110";
316bd167507SJ.R. Divya Antony		function = "gpio";
317bd167507SJ.R. Divya Antony
318bd167507SJ.R. Divya Antony		drive-strength = <8>;
319bd167507SJ.R. Divya Antony		bias-pull-up;
320bd167507SJ.R. Divya Antony	};
321bd167507SJ.R. Divya Antony};
322