Skip to content

Commit c39ea42

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 926fd74 commit c39ea42

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

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

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,49 @@
196196
status = "okay";
197197
};
198198

199+
&gpu {
200+
status = "okay";
201+
};
202+
203+
&mdss {
204+
status = "okay";
205+
};
206+
207+
&mdss_dsi0 {
208+
pinctrl-names = "default", "sleep";
209+
pinctrl-0 = <&mdss_default>;
210+
pinctrl-1 = <&mdss_sleep>;
211+
status = "okay";
212+
213+
panel@0 {
214+
compatible = "asus,z00t-panel";
215+
reg = <0>;
216+
217+
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
218+
backlight-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
219+
power-supply = <&pm8916_l8>;
220+
221+
pinctrl-names = "default";
222+
pinctrl-0 = <&lcd_bl_en_default>;
223+
224+
port {
225+
panel_in: endpoint {
226+
remote-endpoint = <&mdss_dsi0_out>;
227+
};
228+
};
229+
};
230+
};
231+
232+
&mdss_dsi0_out {
233+
data-lanes = <0 1 2 3>;
234+
remote-endpoint = <&panel_in>;
235+
};
236+
237+
&mdss_dsi0_phy {
238+
qcom,dsi-phy-regulator-ldo-mode;
239+
status = "okay";
240+
};
241+
199242
&mpss_mem {
200243
reg = <0x0 0x86800000 0x0 0x5500000>;
201244
};
@@ -277,6 +320,14 @@
277320
bias-disable;
278321
};
279322

323+
lcd_bl_en_default: lcd-bl-en-default-state {
324+
pins = "gpio21";
325+
function = "gpio";
326+
327+
drive-strength = <2>;
328+
bias-disable;
329+
};
330+
280331
mag_reset_default: mag-reset-default-state {
281332
pins = "gpio112";
282333
function = "gpio";
@@ -285,6 +336,22 @@
285336
bias-disable;
286337
};
287338

339+
mdss_default: mdss-default-state {
340+
pins = "gpio25";
341+
function = "gpio";
342+
343+
drive-strength = <8>;
344+
bias-disable;
345+
};
346+
347+
mdss_sleep: mdss-sleep-state {
348+
pins = "gpio25";
349+
function = "gpio";
350+
351+
drive-strength = <2>;
352+
bias-pull-down;
353+
};
354+
288355
sd_vmmc_en_default: sd-vmmc-en-default-state {
289356
pins = "gpio87";
290357
function = "gpio";

0 commit comments

Comments
 (0)