Skip to content

Commit 96afcf9

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 ce3cdfe commit 96afcf9

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
@@ -194,6 +194,49 @@
194194
status = "okay";
195195
};
196196

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

321+
lcd_bl_en_default: lcd-bl-en-default-state {
322+
pins = "gpio21";
323+
function = "gpio";
324+
325+
drive-strength = <2>;
326+
bias-disable;
327+
};
328+
278329
mag_reset_default: mag-reset-default-state {
279330
pins = "gpio112";
280331
function = "gpio";
@@ -283,6 +334,22 @@
283334
bias-disable;
284335
};
285336

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

0 commit comments

Comments
 (0)