Skip to content

Commit 7fe8be6

Browse files
committed
arm64: dts: qcom: msm8939-asus-z00t: add initial device tree
Add an initial device tree for Asus ZenFone 2 Laser/Selfie. This includes support for: - UART - USB - Internal storage - MicroSD - Volume keys - Touchscreen: Focaltech FT5306 - Accelerometer: Invensense MPU6515 - Magnetometer: Asahi Kasei AK09911 - Vibrator - Audio input and output - Modem - Battery and fuel gauge Signed-off-by: Erikas Bitovtas <[email protected]>
1 parent a295ecd commit 7fe8be6

File tree

1 file changed

+324
-0
lines changed

1 file changed

+324
-0
lines changed
Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,324 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
3+
/dts-v1/;
4+
5+
#include "msm8939-pm8916.dtsi"
6+
#include "msm8916-modem-qdsp6.dtsi"
7+
8+
#include <dt-bindings/gpio/gpio.h>
9+
#include <dt-bindings/input/input.h>
10+
#include <dt-bindings/interrupt-controller/irq.h>
11+
12+
/ {
13+
model = "Asus ZenFone 2 Laser/Selfie (1080p)";
14+
compatible = "asus,z00t", "qcom,msm8939";
15+
chassis-type = "handset";
16+
17+
aliases {
18+
mmc0 = &sdhc_1;
19+
mmc1 = &sdhc_2;
20+
serial0 = &blsp_uart2;
21+
};
22+
23+
chosen {
24+
stdout-path = "serial0";
25+
};
26+
27+
gpio-keys {
28+
compatible = "gpio-keys";
29+
30+
pinctrl-0 = <&gpio_keys_default>;
31+
pinctrl-names = "default";
32+
33+
label = "GPIO Buttons";
34+
35+
button-volume-up {
36+
label = "Volume Up";
37+
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
38+
linux,code = <KEY_VOLUMEUP>;
39+
debounce-interval = <15>;
40+
};
41+
42+
button-volume-down {
43+
label = "Volume Down";
44+
gpios = <&tlmm 117 GPIO_ACTIVE_LOW>;
45+
linux,code = <KEY_VOLUMEDOWN>;
46+
debounce-interval = <15>;
47+
};
48+
};
49+
50+
battery: battery {
51+
compatible = "simple-battery";
52+
device-chemistry = "lithium-ion-polymer";
53+
voltage-min-design-microvolt = <3400000>;
54+
voltage-max-design-microvolt = <4400000>;
55+
energy-full-design-microwatt-hours = <11500000>;
56+
charge-full-design-microamp-hours = <3000000>;
57+
58+
ocv-capacity-celsius = <25>;
59+
ocv-capacity-table-0 = <4372000 100>, <4306000 95>, <4247000 90>,
60+
<4190000 85>, <4134000 80>, <4081000 75>, <4030000 70>,
61+
<3984000 65>, <3930000 60>, <3884000 55>, <3850000 50>,
62+
<3826000 45>, <3804000 40>, <3786000 35>, <3770000 30>,
63+
<3753000 25>, <3734000 20>, <3712000 16>, <3693000 13>,
64+
<3686000 11>, <3684000 10>, <3682000 9>, <3680000 8>,
65+
<3676000 7>, <3668000 6>, <3643000 5>, <3600000 4>,
66+
<3542000 3>, <3462000 2>, <3340000 1>, <3000000 0>;
67+
};
68+
69+
reg_sd_vmmc: regulator-sdcard-vmmc {
70+
compatible = "regulator-fixed";
71+
regulator-name = "sdcard-vmmc";
72+
regulator-min-microvolt = <2950000>;
73+
regulator-max-microvolt = <2950000>;
74+
75+
gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>;
76+
enable-active-high;
77+
78+
startup-delay-us = <200>;
79+
80+
pinctrl-0 = <&sd_vmmc_en_default>;
81+
pinctrl-names = "default";
82+
};
83+
84+
usb_id: usb-id {
85+
compatible = "linux,extcon-usb-gpio";
86+
id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
87+
pinctrl-0 = <&usb_id_default>;
88+
pinctrl-names = "default";
89+
};
90+
};
91+
92+
&blsp_i2c2 {
93+
status = "okay";
94+
95+
magnetometer@c {
96+
compatible = "asahi-kasei,ak09911";
97+
reg = <0x0c>;
98+
99+
vdd-supply = <&pm8916_l8>;
100+
vid-supply = <&pm8916_l6>;
101+
102+
reset-gpios = <&tlmm 112 GPIO_ACTIVE_LOW>;
103+
pinctrl-0 = <&mag_reset_default>;
104+
pinctrl-names = "default";
105+
};
106+
107+
imu@68 {
108+
compatible = "invensense,mpu6515";
109+
reg = <0x68>;
110+
111+
interrupts-extended = <&tlmm 36 IRQ_TYPE_EDGE_RISING>;
112+
113+
vdd-supply = <&pm8916_l8>;
114+
vddio-supply = <&pm8916_l6>;
115+
116+
pinctrl-0 = <&imu_default>;
117+
pinctrl-names = "default";
118+
119+
mount-matrix = "0", "1", "0",
120+
"-1", "0", "0",
121+
"0", "0", "1";
122+
};
123+
};
124+
125+
&blsp_i2c5 {
126+
status = "okay";
127+
128+
touchscreen@38 {
129+
compatible = "edt,edt-ft5306";
130+
reg = <0x38>;
131+
132+
interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
133+
134+
reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
135+
136+
vcc-supply = <&pm8916_l8>;
137+
iovcc-supply = <&pm8916_l6>;
138+
139+
touchscreen-size-x = <1080>;
140+
touchscreen-size-y = <1920>;
141+
142+
pinctrl-0 = <&touchscreen_default>;
143+
pinctrl-names = "default";
144+
};
145+
};
146+
147+
&blsp_uart2 {
148+
pinctrl-0 = <&blsp_uart2_console_default>;
149+
pinctrl-1 = <&blsp_uart2_console_sleep>;
150+
pinctrl-names = "default", "sleep";
151+
status = "okay";
152+
};
153+
154+
&gpu {
155+
status = "okay";
156+
};
157+
158+
&mdss {
159+
status = "okay";
160+
};
161+
162+
&mdss_dsi0 {
163+
pinctrl-0 = <&mdss_default>;
164+
pinctrl-1 = <&mdss_sleep>;
165+
pinctrl-names = "default", "sleep";
166+
status = "okay";
167+
168+
panel@0 {
169+
compatible = "asus,z00t-panel";
170+
reg = <0>;
171+
172+
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
173+
backlight-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
174+
power-supply = <&pm8916_l8>;
175+
176+
pinctrl-0 = <&lcd_bl_en_default>;
177+
pinctrl-names = "default";
178+
179+
port {
180+
panel_in: endpoint {
181+
remote-endpoint = <&mdss_dsi0_out>;
182+
};
183+
};
184+
};
185+
};
186+
187+
&mdss_dsi0_out {
188+
data-lanes = <0 1 2 3>;
189+
remote-endpoint = <&panel_in>;
190+
};
191+
192+
&mdss_dsi0_phy {
193+
qcom,dsi-phy-regulator-ldo-mode;
194+
status = "okay";
195+
};
196+
197+
&mpss_mem {
198+
reg = <0x0 0x86800000 0x0 0x5500000>;
199+
};
200+
201+
&pm8916_bms {
202+
monitored-battery = <&battery>;
203+
status = "okay";
204+
};
205+
206+
&pm8916_codec {
207+
qcom,micbias-lvl = <2800>;
208+
qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
209+
qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
210+
qcom,micbias1-ext-cap;
211+
qcom,hphl-jack-type-normally-open;
212+
status = "okay";
213+
};
214+
215+
&pm8916_vib {
216+
status = "okay";
217+
};
218+
219+
&sdhc_1 {
220+
status = "okay";
221+
};
222+
223+
&sdhc_2 {
224+
vmmc-supply = <&reg_sd_vmmc>;
225+
226+
pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
227+
pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
228+
pinctrl-names = "default", "sleep";
229+
cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
230+
status = "okay";
231+
};
232+
233+
&sound {
234+
audio-routing =
235+
"AMIC1", "MIC BIAS External1",
236+
"AMIC2", "MIC BIAS Internal2",
237+
"AMIC3", "MIC BIAS External1";
238+
status = "okay";
239+
};
240+
241+
&usb {
242+
extcon = <&usb_id>, <&usb_id>;
243+
status = "okay";
244+
};
245+
246+
&usb_hs_phy {
247+
extcon = <&usb_id>;
248+
};
249+
250+
&wcnss {
251+
status = "okay";
252+
};
253+
254+
&wcnss_iris {
255+
compatible = "qcom,wcn3660b";
256+
};
257+
258+
&wcnss_mem {
259+
status = "okay";
260+
};
261+
262+
&tlmm {
263+
gpio_keys_default: gpio-keys-default-state {
264+
pins = "gpio107", "gpio117";
265+
function = "gpio";
266+
drive-strength = <2>;
267+
bias-pull-up;
268+
};
269+
270+
imu_default: imu-default-state {
271+
pins = "gpio36";
272+
function = "gpio";
273+
274+
drive-strength = <2>;
275+
bias-disable;
276+
};
277+
278+
mag_reset_default: mag-reset-default-state {
279+
pins = "gpio112";
280+
function = "gpio";
281+
282+
drive-strength = <2>;
283+
bias-disable;
284+
};
285+
286+
sd_vmmc_en_default: sd-vmmc-en-default-state {
287+
pins = "gpio87";
288+
function = "gpio";
289+
drive-strength = <2>;
290+
bias-disable;
291+
};
292+
293+
sdc2_cd_default: sdc2-cd-default-state {
294+
pins = "gpio38";
295+
function = "gpio";
296+
drive-strength = <2>;
297+
bias-disable;
298+
};
299+
300+
touchscreen_default: touchscreen-default-state {
301+
touch-pins {
302+
pins = "gpio13";
303+
function = "gpio";
304+
305+
drive-strength = <2>;
306+
bias-pull-up;
307+
};
308+
309+
reset-pins {
310+
pins = "gpio12";
311+
function = "gpio";
312+
313+
drive-strength = <2>;
314+
bias-disable;
315+
};
316+
};
317+
318+
usb_id_default: usb-id-default-state {
319+
pins = "gpio110";
320+
function = "gpio";
321+
drive-strength = <8>;
322+
bias-pull-up;
323+
};
324+
};

0 commit comments

Comments
 (0)