From 77359bcc96d026b8b714f6e76350900a9a9ccaff Mon Sep 17 00:00:00 2001 From: "Lin, Meng-Bo" Date: Tue, 30 Aug 2022 22:14:05 +0000 Subject: [PATCH] arm64: dts: qcom: msm8916-samsung-e7: Add display panel (v2) v2: Add suffix "-state" to pinctrl. Signed-off-by: "Lin, Meng-Bo" --- .../qcom/msm8916-samsung-e2015-common.dtsi | 19 +++++++++ .../boot/dts/qcom/msm8916-samsung-e7.dts | 39 +++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi index c50f81a688973a..cad5bda45408f0 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi @@ -71,6 +71,25 @@ }; }; +&mdss_dsi0 { + panel: panel@0 { + reg = <0>; + + reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; +}; + &mpss_mem { reg = <0x0 0x86800000 0x0 0x5a00000>; }; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e7.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-e7.dts index 3ee7587a5267ec..9937dcc19f8ae5 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e7.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e7.dts @@ -34,6 +34,30 @@ pinctrl-0 = <&tsp_en_1p8_default>; pinctrl-names = "default"; }; + + reg_vlcd_vdd3: regulator-vlcd-vdd3 { + compatible = "regulator-fixed"; + regulator-name = "vlcd_vdd3"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&pm8916_s4>; + + gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&lcd_en_default>; + }; + + reg_vlcd_vci: regulator-vlcd-vci { + compatible = "regulator-fixed"; + regulator-name = "vlcd_vci"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + + gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &battery { @@ -63,12 +87,27 @@ }; }; +&panel { + compatible = "samsung,e7-panel"; + + vdd3-supply = <®_vlcd_vdd3>; + vci-supply = <®_vlcd_vci>; +}; + &pm8916_l17 { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; }; &tlmm { + lcd_en_default: lcd-en-default-state { + pins = "gpio87"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + tsp_en_1p8_default: tsp-en-1p8-default-state { pins = "gpio60"; function = "gpio";