Skip to content

Commit 6b410f6

Browse files
erikas9987TravMurav
authored andcommitted
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 <xerikasxx@gmail.com>
1 parent f673f09 commit 6b410f6

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,51 @@
131131
status = "okay";
132132
};
133133

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+
176+
status = "okay";
177+
};
178+
134179
&mpss_mem {
135180
reg = <0x0 0x86800000 0x0 0x5500000>;
136181
};
@@ -212,6 +257,27 @@
212257
};
213258
};
214259

260+
lcd_bl_en_default: lcd-bl-en-default-state {
261+
pins = "gpio21";
262+
function = "gpio";
263+
drive-strength = <2>;
264+
bias-disable;
265+
};
266+
267+
mdss_default: mdss-default-state {
268+
pins = "gpio25";
269+
function = "gpio";
270+
drive-strength = <8>;
271+
bias-disable;
272+
};
273+
274+
mdss_sleep: mdss-sleep-state {
275+
pins = "gpio25";
276+
function = "gpio";
277+
drive-strength = <2>;
278+
bias-pull-down;
279+
};
280+
215281
imu_default: imu-default-state {
216282
pins = "gpio36";
217283
function = "gpio";

0 commit comments

Comments
 (0)