Skip to content

Commit d88f5ce

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 aa28619 commit d88f5ce

File tree

2 files changed

+285
-0
lines changed

2 files changed

+285
-0
lines changed

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-yiming-uz801v3.dtb
7979
dtb-$(CONFIG_ARCH_QCOM) += msm8917-xiaomi-riva.dtb
8080
dtb-$(CONFIG_ARCH_QCOM) += msm8929-wingtech-wt82918hd.dtb
8181
dtb-$(CONFIG_ARCH_QCOM) += msm8939-alcatel-idol3.dtb
82+
dtb-$(CONFIG_ARCH_QCOM) += msm8939-asus-z00t.dtb
8283
dtb-$(CONFIG_ARCH_QCOM) += msm8939-huawei-kiwi.dtb
8384
dtb-$(CONFIG_ARCH_QCOM) += msm8939-longcheer-l9100.dtb
8485
dtb-$(CONFIG_ARCH_QCOM) += msm8939-samsung-a7.dtb
Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
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-names = "default";
31+
pinctrl-0 = <&gpio_keys_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-names = "default";
81+
pinctrl-0 = <&sd_vmmc_en_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-names = "default";
104+
pinctrl-0 = <&mag_reset_default>;
105+
};
106+
107+
imu@68 {
108+
compatible = "invensense,mpu6515";
109+
reg = <0x68>;
110+
111+
interrupt-parent = <&tlmm>;
112+
interrupts = <36 IRQ_TYPE_EDGE_RISING>;
113+
114+
vdd-supply = <&pm8916_l8>;
115+
vddio-supply = <&pm8916_l6>;
116+
117+
pinctrl-names = "default";
118+
pinctrl-0 = <&imu_default>;
119+
120+
mount-matrix = "0", "1", "0",
121+
"-1", "0", "0",
122+
"0", "0", "1";
123+
};
124+
};
125+
126+
&blsp_i2c5 {
127+
status = "okay";
128+
129+
touchscreen@38 {
130+
compatible = "edt,edt-ft5306";
131+
reg = <0x38>;
132+
133+
interrupt-parent = <&tlmm>;
134+
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
135+
136+
reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
137+
138+
vcc-supply = <&pm8916_l8>;
139+
iovcc-supply = <&pm8916_l6>;
140+
141+
touchscreen-size-x = <1080>;
142+
touchscreen-size-y = <1920>;
143+
144+
pinctrl-names = "default";
145+
pinctrl-0 = <&touchscreen_default>;
146+
};
147+
};
148+
149+
&blsp_uart2 {
150+
status = "okay";
151+
pinctrl-0 = <&blsp_uart2_console_default>;
152+
pinctrl-1 = <&blsp_uart2_console_sleep>;
153+
pinctrl-names = "default", "sleep";
154+
};
155+
156+
&mpss_mem {
157+
reg = <0x0 0x86800000 0x0 0x5500000>;
158+
};
159+
160+
&pm8916_bms {
161+
status = "okay";
162+
monitored-battery = <&battery>;
163+
};
164+
165+
&pm8916_codec {
166+
qcom,micbias-lvl = <2800>;
167+
qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
168+
qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
169+
qcom,micbias1-ext-cap;
170+
qcom,hphl-jack-type-normally-open;
171+
status = "okay";
172+
};
173+
174+
&pm8916_vib {
175+
status = "okay";
176+
};
177+
178+
&sdhc_1 {
179+
status = "okay";
180+
};
181+
182+
&sdhc_2 {
183+
status = "okay";
184+
vmmc-supply = <&reg_sd_vmmc>;
185+
186+
pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
187+
pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
188+
pinctrl-names = "default", "sleep";
189+
cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
190+
};
191+
192+
&sound {
193+
status = "okay";
194+
audio-routing =
195+
"AMIC1", "MIC BIAS External1",
196+
"AMIC2", "MIC BIAS Internal2",
197+
"AMIC3", "MIC BIAS External1";
198+
};
199+
200+
&usb {
201+
extcon = <&usb_id>, <&usb_id>;
202+
status = "okay";
203+
};
204+
205+
&usb_hs_phy {
206+
extcon = <&usb_id>;
207+
};
208+
209+
&wcnss {
210+
status = "okay";
211+
};
212+
213+
&wcnss_iris {
214+
compatible = "qcom,wcn3660b";
215+
};
216+
217+
&wcnss_mem {
218+
status = "okay";
219+
};
220+
221+
&tlmm {
222+
gpio_keys_default: gpio-keys-default-state {
223+
pins = "gpio107", "gpio117";
224+
function = "gpio";
225+
drive-strength = <2>;
226+
bias-pull-up;
227+
};
228+
229+
imu_default: imu-default-state {
230+
pins = "gpio36";
231+
function = "gpio";
232+
233+
drive-strength = <2>;
234+
bias-disable;
235+
};
236+
237+
mag_reset_default: mag-reset-default-state {
238+
pins = "gpio112";
239+
function = "gpio";
240+
241+
drive-strength = <2>;
242+
bias-disable;
243+
};
244+
245+
sd_vmmc_en_default: sd-vmmc-en-default-state {
246+
pins = "gpio87";
247+
function = "gpio";
248+
drive-strength = <2>;
249+
bias-disable;
250+
};
251+
252+
sdc2_cd_default: sdc2-cd-default-state {
253+
pins = "gpio38";
254+
function = "gpio";
255+
drive-strength = <2>;
256+
bias-disable;
257+
};
258+
259+
touchscreen_default: touchscreen-default-state {
260+
touch-pins {
261+
pins = "gpio13";
262+
function = "gpio";
263+
264+
drive-strength = <2>;
265+
bias-pull-up;
266+
};
267+
268+
reset-pins {
269+
pins = "gpio12";
270+
function = "gpio";
271+
272+
drive-strength = <2>;
273+
bias-disable;
274+
};
275+
};
276+
277+
usb_id_default: usb-id-default-state {
278+
pins = "gpio110";
279+
function = "gpio";
280+
drive-strength = <8>;
281+
bias-pull-up;
282+
};
283+
};
284+

0 commit comments

Comments
 (0)