Skip to content

Commit f03b110

Browse files
erikas9987Leave me alone
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 <[email protected]>
1 parent 4e22536 commit f03b110

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
@@ -130,6 +130,49 @@
130130
status = "okay";
131131
};
132132

133+
&gpu {
134+
status = "okay";
135+
};
136+
137+
&mdss {
138+
status = "okay";
139+
};
140+
141+
&mdss_dsi0 {
142+
pinctrl-0 = <&mdss_default>;
143+
pinctrl-1 = <&mdss_sleep>;
144+
pinctrl-names = "default", "sleep";
145+
status = "okay";
146+
147+
panel@0 {
148+
compatible = "asus,z00t-panel";
149+
reg = <0>;
150+
151+
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
152+
backlight-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
153+
power-supply = <&pm8916_l8>;
154+
155+
pinctrl-0 = <&lcd_bl_en_default>;
156+
pinctrl-names = "default";
157+
158+
port {
159+
panel_in: endpoint {
160+
remote-endpoint = <&mdss_dsi0_out>;
161+
};
162+
};
163+
};
164+
};
165+
166+
&mdss_dsi0_out {
167+
data-lanes = <0 1 2 3>;
168+
remote-endpoint = <&panel_in>;
169+
};
170+
171+
&mdss_dsi0_phy {
172+
qcom,dsi-phy-regulator-ldo-mode;
173+
status = "okay";
174+
};
175+
133176
&mpss_mem {
134177
reg = <0x0 0x86800000 0x0 0x5500000>;
135178
};
@@ -206,6 +249,14 @@
206249
bias-disable;
207250
};
208251

252+
lcd_bl_en_default: lcd-bl-en-default-state {
253+
pins = "gpio21";
254+
function = "gpio";
255+
256+
drive-strength = <2>;
257+
bias-disable;
258+
};
259+
209260
mag_reset_default: mag-reset-default-state {
210261
pins = "gpio112";
211262
function = "gpio";
@@ -214,6 +265,22 @@
214265
bias-disable;
215266
};
216267

268+
mdss_default: mdss-default-state {
269+
pins = "gpio25";
270+
function = "gpio";
271+
272+
drive-strength = <8>;
273+
bias-disable;
274+
};
275+
276+
mdss_sleep: mdss-sleep-state {
277+
pins = "gpio25";
278+
function = "gpio";
279+
280+
drive-strength = <2>;
281+
bias-pull-down;
282+
};
283+
217284
sd_vmmc_en_default: sd-vmmc-en-default-state {
218285
pins = "gpio87";
219286
function = "gpio";

0 commit comments

Comments
 (0)