From 690256f45ab28751527cb60bed3b3fb7a32a2ca0 Mon Sep 17 00:00:00 2001 From: "Lin, Meng-Bo" Date: Mon, 28 Nov 2022 13:15:12 +0000 Subject: [PATCH] arm64: dts: qcom: msm8916-acer-a1-724: Add display panel Signed-off-by: Lin, Meng-Bo --- .../boot/dts/qcom/msm8916-acer-a1-724.dts | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts index 13cd9ad167df74..421b63fff14065 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts @@ -109,6 +109,35 @@ status = "okay"; }; +&dsi0 { + pinctrl-0 = <&mdss_default>; + pinctrl-1 = <&mdss_sleep>; + pinctrl-names = "default", "sleep"; + + panel@0 { + compatible = "acer,a1-724-hx8394d"; + reg = <0>; + + power-supply = <&pm8916_l17>; + reset-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; +}; + +&dsi0_out { + data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; +}; + +&mdss { + status = "okay"; +}; + &pm8916_resin { linux,code = ; status = "okay"; @@ -273,6 +302,22 @@ bias-pull-up; }; + mdss_default: mdss-default-state { + pins = "gpio25"; + function = "gpio"; + + drive-strength = <8>; + bias-disable; + }; + + mdss_sleep: mdss-sleep-state { + pins = "gpio25"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-down; + }; + touchscreen_default: touchscreen-default-state { reset-pins { pins = "gpio12";