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