Skip to content

Commit 5c2ceaf

Browse files
archeYRstephan-gh
authored andcommitted
arm64: dts: qcom: msm8939-wingtech-wt82918: Add display
Signed-off-by: Adam Słaboń <asaillen@protonmail.com>
1 parent 07d9d9b commit 5c2ceaf

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

arch/arm64/boot/dts/qcom/msm8939-wingtech-wt82918.dtsi

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,26 @@
107107
&blsp_i2c2 {
108108
status = "okay";
109109

110+
regulator@3e {
111+
compatible = "ti,tps65132";
112+
reg = <0x3e>;
113+
114+
pinctrl-0 = <&reg_lcd_en_default>;
115+
pinctrl-names = "default";
116+
117+
reg_lcd_pos: outp {
118+
regulator-name = "outp";
119+
enable-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
120+
regulator-active-discharge = <1>;
121+
};
122+
123+
reg_lcd_neg: outn {
124+
regulator-name = "outn";
125+
enable-gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
126+
regulator-active-discharge = <1>;
127+
};
128+
};
129+
110130
accelerometer@68 {
111131
compatible = "invensense,icm20608";
112132
reg = <0x68>;
@@ -151,6 +171,47 @@
151171
status = "okay";
152172
};
153173

174+
&gpu {
175+
status = "okay";
176+
};
177+
178+
&mdss {
179+
status = "okay";
180+
};
181+
182+
&mdss_dsi0 {
183+
pinctrl-0 = <&mdss_default>;
184+
pinctrl-1 = <&mdss_sleep>;
185+
pinctrl-names = "default", "sleep";
186+
status = "okay";
187+
188+
panel@0 {
189+
compatible = "wingtech,wt82918-panel";
190+
reg = <0>;
191+
192+
backlight = <&backlight>;
193+
vsp-supply = <&reg_lcd_pos>;
194+
vsn-supply = <&reg_lcd_neg>;
195+
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
196+
197+
port {
198+
panel_in: endpoint {
199+
remote-endpoint = <&mdss_dsi0_out>;
200+
};
201+
};
202+
};
203+
};
204+
205+
&mdss_dsi0_out {
206+
data-lanes = <0 1 2 3>;
207+
remote-endpoint = <&panel_in>;
208+
};
209+
210+
&mdss_dsi0_phy {
211+
qcom,dsi-phy-regulator-ldo-mode;
212+
status = "okay";
213+
};
214+
154215
&mpss_mem {
155216
reg = <0x0 0x86800000 0x0 0x5500000>;
156217
};
@@ -244,6 +305,27 @@
244305
bias-disable;
245306
};
246307

308+
mdss_default: mdss-default-state {
309+
pins = "gpio25";
310+
function = "gpio";
311+
drive-strength = <8>;
312+
bias-disable;
313+
};
314+
315+
mdss_sleep: mdss-sleep-state {
316+
pins = "gpio25";
317+
function = "gpio";
318+
drive-strength = <2>;
319+
bias-pull-down;
320+
};
321+
322+
reg_lcd_en_default: reg-lcd-en-default-state {
323+
pins = "gpio0", "gpio1";
324+
function = "gpio";
325+
drive-strength = <2>;
326+
bias-disable;
327+
};
328+
247329
touchscreen_default: touchscreen-default-state {
248330
reset-pins {
249331
pins = "gpio12";

0 commit comments

Comments
 (0)