1// SPDX-License-Identifier: GPL-2.0-only
2
3/dts-v1/;
4
5#include "msm8916-pm8916.dtsi"
6#include <dt-bindings/gpio/gpio.h>
7
8/ {
9	model = "Asus Zenfone 2 Laser";
10	compatible = "asus,z00l", "qcom,msm8916";
11
12	aliases {
13		serial0 = &blsp1_uart2;
14	};
15
16	chosen {
17		stdout-path = "serial0";
18	};
19
20	gpio-keys {
21		compatible = "gpio-keys";
22
23		pinctrl-names = "default";
24		pinctrl-0 = <&gpio_keys_default>;
25
26		label = "GPIO Buttons";
27
28		volume-up {
29			label = "Volume Up";
30			gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
31			linux,code = <KEY_VOLUMEUP>;
32			debounce-interval = <15>;
33		};
34
35		volume-down {
36			label = "Volume Down";
37			gpios = <&msmgpio 117 GPIO_ACTIVE_LOW>;
38			linux,code = <KEY_VOLUMEDOWN>;
39			debounce-interval = <15>;
40		};
41	};
42
43	usb_id: usb-id {
44		compatible = "linux,extcon-usb-gpio";
45		id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
46		pinctrl-names = "default";
47		pinctrl-0 = <&usb_id_default>;
48	};
49};
50
51&blsp1_uart2 {
52	status = "okay";
53};
54
55&pronto {
56	status = "okay";
57};
58
59&sdhc_1 {
60	status = "okay";
61
62	pinctrl-names = "default", "sleep";
63	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
64	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
65};
66
67&usb {
68	status = "okay";
69	extcon = <&usb_id>, <&usb_id>;
70};
71
72&usb_hs_phy {
73	extcon = <&usb_id>;
74};
75
76&smd_rpm_regulators {
77	vdd_l1_l2_l3-supply = <&pm8916_s3>;
78	vdd_l4_l5_l6-supply = <&pm8916_s4>;
79	vdd_l7-supply = <&pm8916_s4>;
80
81	s3 {
82		regulator-min-microvolt = <1200000>;
83		regulator-max-microvolt = <1300000>;
84	};
85
86	s4 {
87		regulator-min-microvolt = <1800000>;
88		regulator-max-microvolt = <2100000>;
89	};
90
91	l1 {
92		regulator-min-microvolt = <1225000>;
93		regulator-max-microvolt = <1225000>;
94	};
95
96	l2 {
97		regulator-min-microvolt = <1200000>;
98		regulator-max-microvolt = <1200000>;
99	};
100
101	l4 {
102		regulator-min-microvolt = <2050000>;
103		regulator-max-microvolt = <2050000>;
104	};
105
106	l5 {
107		regulator-min-microvolt = <1800000>;
108		regulator-max-microvolt = <1800000>;
109	};
110
111	l6 {
112		regulator-min-microvolt = <1800000>;
113		regulator-max-microvolt = <1800000>;
114	};
115
116	l7 {
117		regulator-min-microvolt = <1800000>;
118		regulator-max-microvolt = <1800000>;
119	};
120
121	l8 {
122		regulator-min-microvolt = <2850000>;
123		regulator-max-microvolt = <2900000>;
124	};
125
126	l9 {
127		regulator-min-microvolt = <3300000>;
128		regulator-max-microvolt = <3300000>;
129	};
130
131	l10 {
132		regulator-min-microvolt = <2700000>;
133		regulator-max-microvolt = <2800000>;
134	};
135
136	l11 {
137		regulator-min-microvolt = <1800000>;
138		regulator-max-microvolt = <2950000>;
139		regulator-allow-set-load;
140		regulator-system-load = <200000>;
141	};
142
143	l12 {
144		regulator-min-microvolt = <1800000>;
145		regulator-max-microvolt = <2950000>;
146	};
147
148	l13 {
149		regulator-min-microvolt = <3075000>;
150		regulator-max-microvolt = <3075000>;
151	};
152
153	l14 {
154		regulator-min-microvolt = <1800000>;
155		regulator-max-microvolt = <3300000>;
156	};
157
158	l15 {
159		regulator-min-microvolt = <1800000>;
160		regulator-max-microvolt = <3300000>;
161	};
162
163	l16 {
164		regulator-min-microvolt = <1800000>;
165		regulator-max-microvolt = <3300000>;
166	};
167
168	l17 {
169		regulator-min-microvolt = <2850000>;
170		regulator-max-microvolt = <2850000>;
171	};
172
173	l18 {
174		regulator-min-microvolt = <2700000>;
175		regulator-max-microvolt = <2700000>;
176	};
177};
178
179&msmgpio {
180	gpio_keys_default: gpio-keys-default {
181		pins = "gpio107", "gpio117";
182		function = "gpio";
183
184		drive-strength = <2>;
185		bias-pull-up;
186	};
187
188	usb_id_default: usb-id-default {
189		pins = "gpio110";
190		function = "gpio";
191
192		drive-strength = <8>;
193		bias-pull-up;
194	};
195};
196