From a17835790d82807f7ee5fc9c3f4d3e776aa9d0f6 Mon Sep 17 00:00:00 2001 From: "Lin, Meng-Bo" Date: Wed, 20 Jul 2022 00:36:52 +0000 Subject: [PATCH] arm64: dts: qcom: msm8916-samsung-e5: Add display panel Signed-off-by: Lin, Meng-Bo --- .../boot/dts/qcom/msm8916-samsung-e5.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts index 800cb1038da0e8..2f1bde455b8914 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts @@ -21,6 +21,30 @@ model = "Samsung Galaxy E5"; compatible = "samsung,e5", "qcom,msm8916"; chassis-type = "handset"; + + 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-0 = <&lcd_on_default>; + pinctrl-names = "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 { @@ -48,3 +72,20 @@ pinctrl-names = "default"; }; }; + +&panel { + /* Actually samsung,ea8061v-ams497ee10 */ + compatible = "samsung,ea8061v-ams497ee01"; + + vdd3-supply = <®_vlcd_vdd3>; + vci-supply = <®_vlcd_vci>; +}; + +&tlmm { + lcd_on_default: lcd-on-default-state { + pins = "gpio87"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +};