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>
7bd167507SJ.R. Divya Antony
8bd167507SJ.R. Divya Antony/ {
9bd167507SJ.R. Divya Antony	model = "Asus Zenfone 2 Laser";
10bd167507SJ.R. Divya Antony	compatible = "asus,z00l", "qcom,msm8916";
11eaa744b1SArnaud Ferraris	chassis-type = "handset";
12bd167507SJ.R. Divya Antony
13bd167507SJ.R. Divya Antony	aliases {
14bd167507SJ.R. Divya Antony		serial0 = &blsp1_uart2;
15bd167507SJ.R. Divya Antony	};
16bd167507SJ.R. Divya Antony
17bd167507SJ.R. Divya Antony	chosen {
18bd167507SJ.R. Divya Antony		stdout-path = "serial0";
19bd167507SJ.R. Divya Antony	};
20bd167507SJ.R. Divya Antony
21bd167507SJ.R. Divya Antony	gpio-keys {
22bd167507SJ.R. Divya Antony		compatible = "gpio-keys";
23bd167507SJ.R. Divya Antony
24bd167507SJ.R. Divya Antony		pinctrl-names = "default";
25bd167507SJ.R. Divya Antony		pinctrl-0 = <&gpio_keys_default>;
26bd167507SJ.R. Divya Antony
27bd167507SJ.R. Divya Antony		label = "GPIO Buttons";
28bd167507SJ.R. Divya Antony
29bd167507SJ.R. Divya Antony		volume-up {
30bd167507SJ.R. Divya Antony			label = "Volume Up";
31bd167507SJ.R. Divya Antony			gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
32bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEUP>;
33bd167507SJ.R. Divya Antony			debounce-interval = <15>;
34bd167507SJ.R. Divya Antony		};
35bd167507SJ.R. Divya Antony
36bd167507SJ.R. Divya Antony		volume-down {
37bd167507SJ.R. Divya Antony			label = "Volume Down";
38bd167507SJ.R. Divya Antony			gpios = <&msmgpio 117 GPIO_ACTIVE_LOW>;
39bd167507SJ.R. Divya Antony			linux,code = <KEY_VOLUMEDOWN>;
40bd167507SJ.R. Divya Antony			debounce-interval = <15>;
41bd167507SJ.R. Divya Antony		};
42bd167507SJ.R. Divya Antony	};
43bd167507SJ.R. Divya Antony
44bd167507SJ.R. Divya Antony	usb_id: usb-id {
45bd167507SJ.R. Divya Antony		compatible = "linux,extcon-usb-gpio";
46bd167507SJ.R. Divya Antony		id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
47bd167507SJ.R. Divya Antony		pinctrl-names = "default";
48bd167507SJ.R. Divya Antony		pinctrl-0 = <&usb_id_default>;
49bd167507SJ.R. Divya Antony	};
50bd167507SJ.R. Divya Antony};
51bd167507SJ.R. Divya Antony
52*52f5fbe2SJ.R. Divya Antony&blsp_i2c2 {
53*52f5fbe2SJ.R. Divya Antony	status = "okay";
54*52f5fbe2SJ.R. Divya Antony
55*52f5fbe2SJ.R. Divya Antony	magnetometer@c {
56*52f5fbe2SJ.R. Divya Antony		compatible = "asahi-kasei,ak09911";
57*52f5fbe2SJ.R. Divya Antony		reg = <0x0c>;
58*52f5fbe2SJ.R. Divya Antony
59*52f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l8>;
60*52f5fbe2SJ.R. Divya Antony		vid-supply = <&pm8916_l6>;
61*52f5fbe2SJ.R. Divya Antony
62*52f5fbe2SJ.R. Divya Antony		reset-gpios = <&msmgpio 112 GPIO_ACTIVE_LOW>;
63*52f5fbe2SJ.R. Divya Antony
64*52f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
65*52f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&mag_reset_default>;
66*52f5fbe2SJ.R. Divya Antony	};
67*52f5fbe2SJ.R. Divya Antony
68*52f5fbe2SJ.R. Divya Antony	imu@68 {
69*52f5fbe2SJ.R. Divya Antony		compatible = "invensense,mpu6515";
70*52f5fbe2SJ.R. Divya Antony		reg = <0x68>;
71*52f5fbe2SJ.R. Divya Antony
72*52f5fbe2SJ.R. Divya Antony		interrupt-parent = <&msmgpio>;
73*52f5fbe2SJ.R. Divya Antony		interrupts = <36 IRQ_TYPE_EDGE_RISING>;
74*52f5fbe2SJ.R. Divya Antony
75*52f5fbe2SJ.R. Divya Antony		vdd-supply = <&pm8916_l17>;
76*52f5fbe2SJ.R. Divya Antony		vddio-supply = <&pm8916_l6>;
77*52f5fbe2SJ.R. Divya Antony
78*52f5fbe2SJ.R. Divya Antony		pinctrl-names = "default";
79*52f5fbe2SJ.R. Divya Antony		pinctrl-0 = <&imu_default>;
80*52f5fbe2SJ.R. Divya Antony
81*52f5fbe2SJ.R. Divya Antony		mount-matrix = "1",  "0", "0",
82*52f5fbe2SJ.R. Divya Antony			       "0", "-1", "0",
83*52f5fbe2SJ.R. Divya Antony			       "0",  "0", "1";
84*52f5fbe2SJ.R. Divya Antony	};
85*52f5fbe2SJ.R. Divya Antony};
86*52f5fbe2SJ.R. Divya Antony
87bd167507SJ.R. Divya Antony&blsp1_uart2 {
88bd167507SJ.R. Divya Antony	status = "okay";
89bd167507SJ.R. Divya Antony};
90bd167507SJ.R. Divya Antony
91bd167507SJ.R. Divya Antony&pronto {
92bd167507SJ.R. Divya Antony	status = "okay";
93bd167507SJ.R. Divya Antony};
94bd167507SJ.R. Divya Antony
95bd167507SJ.R. Divya Antony&sdhc_1 {
96bd167507SJ.R. Divya Antony	status = "okay";
97bd167507SJ.R. Divya Antony
98bd167507SJ.R. Divya Antony	pinctrl-names = "default", "sleep";
99bd167507SJ.R. Divya Antony	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
100bd167507SJ.R. Divya Antony	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
101bd167507SJ.R. Divya Antony};
102bd167507SJ.R. Divya Antony
103bd167507SJ.R. Divya Antony&usb {
104bd167507SJ.R. Divya Antony	status = "okay";
105bd167507SJ.R. Divya Antony	extcon = <&usb_id>, <&usb_id>;
106bd167507SJ.R. Divya Antony};
107bd167507SJ.R. Divya Antony
108bd167507SJ.R. Divya Antony&usb_hs_phy {
109bd167507SJ.R. Divya Antony	extcon = <&usb_id>;
110bd167507SJ.R. Divya Antony};
111bd167507SJ.R. Divya Antony
112bd167507SJ.R. Divya Antony&smd_rpm_regulators {
113bd167507SJ.R. Divya Antony	vdd_l1_l2_l3-supply = <&pm8916_s3>;
114bd167507SJ.R. Divya Antony	vdd_l4_l5_l6-supply = <&pm8916_s4>;
115bd167507SJ.R. Divya Antony	vdd_l7-supply = <&pm8916_s4>;
116bd167507SJ.R. Divya Antony
117bd167507SJ.R. Divya Antony	s3 {
118bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1200000>;
119bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1300000>;
120bd167507SJ.R. Divya Antony	};
121bd167507SJ.R. Divya Antony
122bd167507SJ.R. Divya Antony	s4 {
123bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
124bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2100000>;
125bd167507SJ.R. Divya Antony	};
126bd167507SJ.R. Divya Antony
127bd167507SJ.R. Divya Antony	l1 {
128bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1225000>;
129bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1225000>;
130bd167507SJ.R. Divya Antony	};
131bd167507SJ.R. Divya Antony
132bd167507SJ.R. Divya Antony	l2 {
133bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1200000>;
134bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1200000>;
135bd167507SJ.R. Divya Antony	};
136bd167507SJ.R. Divya Antony
137bd167507SJ.R. Divya Antony	l4 {
138bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2050000>;
139bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2050000>;
140bd167507SJ.R. Divya Antony	};
141bd167507SJ.R. Divya Antony
142bd167507SJ.R. Divya Antony	l5 {
143bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
144bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1800000>;
145bd167507SJ.R. Divya Antony	};
146bd167507SJ.R. Divya Antony
147bd167507SJ.R. Divya Antony	l6 {
148bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
149bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1800000>;
150bd167507SJ.R. Divya Antony	};
151bd167507SJ.R. Divya Antony
152bd167507SJ.R. Divya Antony	l7 {
153bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
154bd167507SJ.R. Divya Antony		regulator-max-microvolt = <1800000>;
155bd167507SJ.R. Divya Antony	};
156bd167507SJ.R. Divya Antony
157bd167507SJ.R. Divya Antony	l8 {
158bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2850000>;
159bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2900000>;
160bd167507SJ.R. Divya Antony	};
161bd167507SJ.R. Divya Antony
162bd167507SJ.R. Divya Antony	l9 {
163bd167507SJ.R. Divya Antony		regulator-min-microvolt = <3300000>;
164bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
165bd167507SJ.R. Divya Antony	};
166bd167507SJ.R. Divya Antony
167bd167507SJ.R. Divya Antony	l10 {
168bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2700000>;
169bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2800000>;
170bd167507SJ.R. Divya Antony	};
171bd167507SJ.R. Divya Antony
172bd167507SJ.R. Divya Antony	l11 {
173bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
174bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
175bd167507SJ.R. Divya Antony		regulator-allow-set-load;
176bd167507SJ.R. Divya Antony		regulator-system-load = <200000>;
177bd167507SJ.R. Divya Antony	};
178bd167507SJ.R. Divya Antony
179bd167507SJ.R. Divya Antony	l12 {
180bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
181bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2950000>;
182bd167507SJ.R. Divya Antony	};
183bd167507SJ.R. Divya Antony
184bd167507SJ.R. Divya Antony	l13 {
185bd167507SJ.R. Divya Antony		regulator-min-microvolt = <3075000>;
186bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3075000>;
187bd167507SJ.R. Divya Antony	};
188bd167507SJ.R. Divya Antony
189bd167507SJ.R. Divya Antony	l14 {
190bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
191bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
192bd167507SJ.R. Divya Antony	};
193bd167507SJ.R. Divya Antony
194bd167507SJ.R. Divya Antony	l15 {
195bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
196bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
197bd167507SJ.R. Divya Antony	};
198bd167507SJ.R. Divya Antony
199bd167507SJ.R. Divya Antony	l16 {
200bd167507SJ.R. Divya Antony		regulator-min-microvolt = <1800000>;
201bd167507SJ.R. Divya Antony		regulator-max-microvolt = <3300000>;
202bd167507SJ.R. Divya Antony	};
203bd167507SJ.R. Divya Antony
204bd167507SJ.R. Divya Antony	l17 {
205bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2850000>;
206bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2850000>;
207bd167507SJ.R. Divya Antony	};
208bd167507SJ.R. Divya Antony
209bd167507SJ.R. Divya Antony	l18 {
210bd167507SJ.R. Divya Antony		regulator-min-microvolt = <2700000>;
211bd167507SJ.R. Divya Antony		regulator-max-microvolt = <2700000>;
212bd167507SJ.R. Divya Antony	};
213bd167507SJ.R. Divya Antony};
214bd167507SJ.R. Divya Antony
215bd167507SJ.R. Divya Antony&msmgpio {
216bd167507SJ.R. Divya Antony	gpio_keys_default: gpio-keys-default {
217bd167507SJ.R. Divya Antony		pins = "gpio107", "gpio117";
218bd167507SJ.R. Divya Antony		function = "gpio";
219bd167507SJ.R. Divya Antony
220bd167507SJ.R. Divya Antony		drive-strength = <2>;
221bd167507SJ.R. Divya Antony		bias-pull-up;
222bd167507SJ.R. Divya Antony	};
223bd167507SJ.R. Divya Antony
224*52f5fbe2SJ.R. Divya Antony	imu_default: imu-default {
225*52f5fbe2SJ.R. Divya Antony		pins = "gpio36";
226*52f5fbe2SJ.R. Divya Antony		function = "gpio";
227*52f5fbe2SJ.R. Divya Antony
228*52f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
229*52f5fbe2SJ.R. Divya Antony		bias-disable;
230*52f5fbe2SJ.R. Divya Antony	};
231*52f5fbe2SJ.R. Divya Antony
232*52f5fbe2SJ.R. Divya Antony	mag_reset_default: mag-reset-default {
233*52f5fbe2SJ.R. Divya Antony		pins = "gpio112";
234*52f5fbe2SJ.R. Divya Antony		function = "gpio";
235*52f5fbe2SJ.R. Divya Antony
236*52f5fbe2SJ.R. Divya Antony		drive-strength = <2>;
237*52f5fbe2SJ.R. Divya Antony		bias-disable;
238*52f5fbe2SJ.R. Divya Antony	};
239*52f5fbe2SJ.R. Divya Antony
240bd167507SJ.R. Divya Antony	usb_id_default: usb-id-default {
241bd167507SJ.R. Divya Antony		pins = "gpio110";
242bd167507SJ.R. Divya Antony		function = "gpio";
243bd167507SJ.R. Divya Antony
244bd167507SJ.R. Divya Antony		drive-strength = <8>;
245bd167507SJ.R. Divya Antony		bias-pull-up;
246bd167507SJ.R. Divya Antony	};
247bd167507SJ.R. Divya Antony};
248