Skip to content

Commit 45bb302

Browse files
committed
arm64: dts: qcom: msm8939-asus-z00t: add panel
This commit adds support for the panel used in Asus ZenFone 2 Laser/Selfie. The panel used in this device is tm5p5-nt35596. Signed-off-by: Erikas Bitovtas <[email protected]>
1 parent f446aaa commit 45bb302

File tree

1 file changed

+95
-28
lines changed

1 file changed

+95
-28
lines changed

arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts

Lines changed: 95 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,52 @@
127127
pinctrl-0 = <&blsp_uart2_console_default>;
128128
pinctrl-1 = <&blsp_uart2_console_sleep>;
129129
pinctrl-names = "default", "sleep";
130+
131+
status = "okay";
132+
};
133+
134+
&gpu {
135+
status = "okay";
136+
};
137+
138+
&mdss {
139+
status = "okay";
140+
};
141+
142+
&mdss_dsi0 {
143+
pinctrl-0 = <&mdss_default>;
144+
pinctrl-1 = <&mdss_sleep>;
145+
pinctrl-names = "default", "sleep";
146+
147+
status = "okay";
148+
149+
panel@0 {
150+
compatible = "asus,z00t-panel";
151+
reg = <0>;
152+
153+
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
154+
backlight-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
155+
power-supply = <&pm8916_l8>;
156+
157+
pinctrl-0 = <&lcd_bl_en_default>;
158+
pinctrl-names = "default";
159+
160+
port {
161+
panel_in: endpoint {
162+
remote-endpoint = <&mdss_dsi0_out>;
163+
};
164+
};
165+
};
166+
};
167+
168+
&mdss_dsi0_out {
169+
data-lanes = <0 1 2 3>;
170+
remote-endpoint = <&panel_in>;
171+
};
172+
173+
&mdss_dsi0_phy {
174+
qcom,dsi-phy-regulator-ldo-mode;
175+
130176
status = "okay";
131177
};
132178

@@ -140,6 +186,7 @@
140186
qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
141187
qcom,micbias1-ext-cap;
142188
qcom,hphl-jack-type-normally-open;
189+
143190
status = "okay";
144191
};
145192

@@ -158,6 +205,7 @@
158205
pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
159206
pinctrl-names = "default", "sleep";
160207
cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
208+
161209
status = "okay";
162210
};
163211

@@ -166,11 +214,13 @@
166214
"AMIC1", "MIC BIAS External1",
167215
"AMIC2", "MIC BIAS Internal2",
168216
"AMIC3", "MIC BIAS External1";
217+
169218
status = "okay";
170219
};
171220

172221
&usb {
173222
extcon = <&usb_id>, <&usb_id>;
223+
174224
status = "okay";
175225
};
176226

@@ -191,31 +241,45 @@
191241
};
192242

193243
&tlmm {
194-
gpio_keys_default: gpio-keys-default-state {
195-
pins = "gpio107", "gpio117";
196-
function = "gpio";
197-
drive-strength = <2>;
198-
bias-pull-up;
244+
touchscreen_default: touchscreen-default-state {
245+
reset-pins {
246+
pins = "gpio12";
247+
function = "gpio";
248+
drive-strength = <2>;
249+
bias-disable;
250+
};
251+
252+
touch-pins {
253+
pins = "gpio13";
254+
function = "gpio";
255+
drive-strength = <2>;
256+
bias-pull-up;
257+
};
199258
};
200259

201-
imu_default: imu-default-state {
202-
pins = "gpio36";
260+
lcd_bl_en_default: lcd-bl-en-default-state {
261+
pins = "gpio21";
203262
function = "gpio";
204-
205263
drive-strength = <2>;
206264
bias-disable;
207265
};
208266

209-
mag_reset_default: mag-reset-default-state {
210-
pins = "gpio112";
267+
mdss_default: mdss-default-state {
268+
pins = "gpio25";
211269
function = "gpio";
270+
drive-strength = <8>;
271+
bias-disable;
272+
};
212273

274+
mdss_sleep: mdss-sleep-state {
275+
pins = "gpio25";
276+
function = "gpio";
213277
drive-strength = <2>;
214-
bias-disable;
278+
bias-pull-down;
215279
};
216280

217-
sd_vmmc_en_default: sd-vmmc-en-default-state {
218-
pins = "gpio87";
281+
imu_default: imu-default-state {
282+
pins = "gpio36";
219283
function = "gpio";
220284
drive-strength = <2>;
221285
bias-disable;
@@ -228,22 +292,18 @@
228292
bias-disable;
229293
};
230294

231-
touchscreen_default: touchscreen-default-state {
232-
touch-pins {
233-
pins = "gpio13";
234-
function = "gpio";
235-
236-
drive-strength = <2>;
237-
bias-pull-up;
238-
};
239-
240-
reset-pins {
241-
pins = "gpio12";
242-
function = "gpio";
295+
sd_vmmc_en_default: sd-vmmc-en-default-state {
296+
pins = "gpio87";
297+
function = "gpio";
298+
drive-strength = <2>;
299+
bias-disable;
300+
};
243301

244-
drive-strength = <2>;
245-
bias-disable;
246-
};
302+
gpio_keys_default: gpio-keys-default-state {
303+
pins = "gpio107", "gpio117";
304+
function = "gpio";
305+
drive-strength = <2>;
306+
bias-pull-up;
247307
};
248308

249309
usb_id_default: usb-id-default-state {
@@ -252,4 +312,11 @@
252312
drive-strength = <8>;
253313
bias-pull-up;
254314
};
315+
316+
mag_reset_default: mag-reset-default-state {
317+
pins = "gpio112";
318+
function = "gpio";
319+
drive-strength = <2>;
320+
bias-disable;
321+
};
255322
};

0 commit comments

Comments
 (0)