Skip to content

Commit 84b5d75

Browse files
committed
arm64: dts: qcom: msm-8916-wiko-chuppito: add panel
Signed-off-by: Paul Adam <[email protected]>
1 parent 8e63ab9 commit 84b5d75

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

arch/arm64/boot/dts/qcom/msm8916-wiko-chuppito.dts

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,36 @@
140140
};
141141
};
142142

143-
// make sure gcc is probed with display disabled.
144-
&gcc {
145-
clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>;
143+
&mdss {
144+
status = "okay";
145+
};
146+
147+
&mdss_dsi0 {
148+
panel@0 {
149+
compatible = "wiko,chuppito-ili9881c";
150+
reg = <0x0>;
151+
backlight = <&backlight>;
152+
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
153+
pinctrl-0 = <&panel_default>;
154+
pinctrl-1 = <&panel_suspend>;
155+
pinctrl-names = "default", "suspend";
156+
status = "okay";
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;
146173
};
147174

148175
&pm8916_l6 {
@@ -228,6 +255,23 @@
228255
// bias-disable;
229256
// output-low;
230257
// };
258+
259+
panel_default: panel-default-state {
260+
pins = "gpio25";
261+
function = "gpio";
262+
drive-strength = <8>;
263+
bias-disable;
264+
output-high;
265+
};
266+
267+
panel_suspend: panel-suspend-state {
268+
pins = "gpio25";
269+
function = "gpio";
270+
drive-strength = <2>;
271+
bias-pull-down;
272+
output-low;
273+
};
274+
231275
gpio_keys_default: gpio-keys-default-state {
232276
pins = "gpio107";
233277
function = "gpio";

0 commit comments

Comments
 (0)