Skip to content

Commit 5ebf650

Browse files
erikas9987TravMurav
authored andcommitted
UPSTREAM: 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 Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20251008182106.217340-3-xerikasxx@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 0326a3f commit 5ebf650

File tree

2 files changed

+257
-0
lines changed

2 files changed

+257
-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: 256 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,256 @@
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+
button-volume-up {
34+
label = "Volume Up";
35+
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
36+
linux,code = <KEY_VOLUMEUP>;
37+
debounce-interval = <15>;
38+
};
39+
40+
button-volume-down {
41+
label = "Volume Down";
42+
gpios = <&tlmm 117 GPIO_ACTIVE_LOW>;
43+
linux,code = <KEY_VOLUMEDOWN>;
44+
debounce-interval = <15>;
45+
};
46+
};
47+
48+
reg_sd_vmmc: regulator-sdcard-vmmc {
49+
compatible = "regulator-fixed";
50+
regulator-name = "sdcard-vmmc";
51+
regulator-min-microvolt = <2950000>;
52+
regulator-max-microvolt = <2950000>;
53+
54+
gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>;
55+
enable-active-high;
56+
57+
startup-delay-us = <200>;
58+
59+
pinctrl-0 = <&sd_vmmc_en_default>;
60+
pinctrl-names = "default";
61+
};
62+
63+
usb_id: usb-id {
64+
compatible = "linux,extcon-usb-gpio";
65+
id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
66+
pinctrl-0 = <&usb_id_default>;
67+
pinctrl-names = "default";
68+
};
69+
};
70+
71+
&blsp_i2c2 {
72+
status = "okay";
73+
74+
magnetometer@c {
75+
compatible = "asahi-kasei,ak09911";
76+
reg = <0x0c>;
77+
78+
vdd-supply = <&pm8916_l8>;
79+
vid-supply = <&pm8916_l6>;
80+
81+
reset-gpios = <&tlmm 112 GPIO_ACTIVE_LOW>;
82+
pinctrl-0 = <&mag_reset_default>;
83+
pinctrl-names = "default";
84+
};
85+
86+
imu@68 {
87+
compatible = "invensense,mpu6515";
88+
reg = <0x68>;
89+
90+
interrupts-extended = <&tlmm 36 IRQ_TYPE_EDGE_RISING>;
91+
92+
vdd-supply = <&pm8916_l8>;
93+
vddio-supply = <&pm8916_l6>;
94+
95+
pinctrl-0 = <&imu_default>;
96+
pinctrl-names = "default";
97+
98+
mount-matrix = "0", "1", "0",
99+
"-1", "0", "0",
100+
"0", "0", "1";
101+
};
102+
};
103+
104+
&blsp_i2c5 {
105+
status = "okay";
106+
107+
touchscreen@38 {
108+
compatible = "edt,edt-ft5306";
109+
reg = <0x38>;
110+
111+
interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
112+
113+
reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
114+
115+
vcc-supply = <&pm8916_l8>;
116+
iovcc-supply = <&pm8916_l6>;
117+
118+
touchscreen-size-x = <1080>;
119+
touchscreen-size-y = <1920>;
120+
121+
pinctrl-0 = <&touchscreen_default>;
122+
pinctrl-names = "default";
123+
};
124+
};
125+
126+
&blsp_uart2 {
127+
pinctrl-0 = <&blsp_uart2_console_default>;
128+
pinctrl-1 = <&blsp_uart2_console_sleep>;
129+
pinctrl-names = "default", "sleep";
130+
131+
status = "okay";
132+
};
133+
134+
&mpss_mem {
135+
reg = <0x0 0x86800000 0x0 0x5500000>;
136+
};
137+
138+
&pm8916_codec {
139+
qcom,micbias-lvl = <2800>;
140+
qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
141+
qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
142+
qcom,micbias1-ext-cap;
143+
qcom,hphl-jack-type-normally-open;
144+
145+
status = "okay";
146+
};
147+
148+
&pm8916_vib {
149+
status = "okay";
150+
};
151+
152+
&sdhc_1 {
153+
status = "okay";
154+
};
155+
156+
&sdhc_2 {
157+
vmmc-supply = <&reg_sd_vmmc>;
158+
159+
pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
160+
pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
161+
pinctrl-names = "default", "sleep";
162+
cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
163+
164+
status = "okay";
165+
};
166+
167+
&sound {
168+
audio-routing =
169+
"AMIC1", "MIC BIAS External1",
170+
"AMIC2", "MIC BIAS Internal2",
171+
"AMIC3", "MIC BIAS External1";
172+
173+
status = "okay";
174+
};
175+
176+
&usb {
177+
extcon = <&usb_id>, <&usb_id>;
178+
179+
status = "okay";
180+
};
181+
182+
&usb_hs_phy {
183+
extcon = <&usb_id>;
184+
};
185+
186+
&wcnss {
187+
status = "okay";
188+
};
189+
190+
&wcnss_iris {
191+
compatible = "qcom,wcn3660b";
192+
};
193+
194+
&wcnss_mem {
195+
status = "okay";
196+
};
197+
198+
&tlmm {
199+
touchscreen_default: touchscreen-default-state {
200+
reset-pins {
201+
pins = "gpio12";
202+
function = "gpio";
203+
drive-strength = <2>;
204+
bias-disable;
205+
};
206+
207+
touch-pins {
208+
pins = "gpio13";
209+
function = "gpio";
210+
drive-strength = <2>;
211+
bias-pull-up;
212+
};
213+
};
214+
215+
imu_default: imu-default-state {
216+
pins = "gpio36";
217+
function = "gpio";
218+
drive-strength = <2>;
219+
bias-disable;
220+
};
221+
222+
sdc2_cd_default: sdc2-cd-default-state {
223+
pins = "gpio38";
224+
function = "gpio";
225+
drive-strength = <2>;
226+
bias-disable;
227+
};
228+
229+
sd_vmmc_en_default: sd-vmmc-en-default-state {
230+
pins = "gpio87";
231+
function = "gpio";
232+
drive-strength = <2>;
233+
bias-disable;
234+
};
235+
236+
gpio_keys_default: gpio-keys-default-state {
237+
pins = "gpio107", "gpio117";
238+
function = "gpio";
239+
drive-strength = <2>;
240+
bias-pull-up;
241+
};
242+
243+
usb_id_default: usb-id-default-state {
244+
pins = "gpio110";
245+
function = "gpio";
246+
drive-strength = <8>;
247+
bias-pull-up;
248+
};
249+
250+
mag_reset_default: mag-reset-default-state {
251+
pins = "gpio112";
252+
function = "gpio";
253+
drive-strength = <2>;
254+
bias-disable;
255+
};
256+
};

0 commit comments

Comments
 (0)