Skip to content

Commit 2b086e1

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 ee7d9a9 commit 2b086e1

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
@@ -149,6 +149,49 @@
149149
status = "okay";
150150
};
151151

152+
&gpu {
153+
status = "okay";
154+
};
155+
156+
&mdss {
157+
status = "okay";
158+
};
159+
160+
&mdss_dsi0 {
161+
pinctrl-names = "default", "sleep";
162+
pinctrl-0 = <&mdss_default>;
163+
pinctrl-1 = <&mdss_sleep>;
164+
status = "okay";
165+
166+
panel@0 {
167+
compatible = "asus,z00t-panel";
168+
reg = <0>;
169+
170+
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
171+
backlight-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
172+
power-supply = <&pm8916_l8>;
173+
174+
pinctrl-names = "default";
175+
pinctrl-0 = <&lcd_bl_en_default>;
176+
177+
port {
178+
panel_in: endpoint {
179+
remote-endpoint = <&mdss_dsi0_out>;
180+
};
181+
};
182+
};
183+
};
184+
185+
&mdss_dsi0_out {
186+
data-lanes = <0 1 2 3>;
187+
remote-endpoint = <&panel_in>;
188+
};
189+
190+
&mdss_dsi0_phy {
191+
qcom,dsi-phy-regulator-ldo-mode;
192+
status = "okay";
193+
};
194+
152195
&mpss_mem {
153196
reg = <0x0 0x86800000 0x0 0x5500000>;
154197
};
@@ -230,6 +273,14 @@
230273
bias-disable;
231274
};
232275

276+
lcd_bl_en_default: lcd-bl-en-default-state {
277+
pins = "gpio21";
278+
function = "gpio";
279+
280+
drive-strength = <2>;
281+
bias-disable;
282+
};
283+
233284
mag_reset_default: mag-reset-default-state {
234285
pins = "gpio112";
235286
function = "gpio";
@@ -238,6 +289,22 @@
238289
bias-disable;
239290
};
240291

292+
mdss_default: mdss-default-state {
293+
pins = "gpio25";
294+
function = "gpio";
295+
296+
drive-strength = <8>;
297+
bias-disable;
298+
};
299+
300+
mdss_sleep: mdss-sleep-state {
301+
pins = "gpio25";
302+
function = "gpio";
303+
304+
drive-strength = <2>;
305+
bias-pull-down;
306+
};
307+
241308
sd_vmmc_en_default: sd-vmmc-en-default-state {
242309
pins = "gpio87";
243310
function = "gpio";

0 commit comments

Comments
 (0)