This change enables DP controllers, DPTX0 and DPTX1 alongside
their corresponding PHYs of mdss1 which corresponds to edp2
and edp3.

Signed-off-by: Mani Chandana Ballary Kuntumalla <[email protected]>
---
 .../boot/dts/qcom/lemans-ride-common.dtsi     | 80 +++++++++++++++++++
 1 file changed, 80 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi 
b/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi
index c69aa2f41ce2..a6d7c3bb3a92 100644
--- a/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi
@@ -180,6 +180,30 @@ dp1_connector_in: endpoint {
                };
        };
 
+       dp2-connector {
+               compatible = "dp-connector";
+               label = "eDP2";
+               type = "full-size";
+
+               port {
+                       dp2_connector_in: endpoint {
+                               remote-endpoint = <&mdss1_dp0_out>;
+                       };
+               };
+       };
+
+       dp3-connector {
+               compatible = "dp-connector";
+               label = "eDP3";
+               type = "full-size";
+
+               port {
+                       dp3_connector_in: endpoint {
+                               remote-endpoint = <&mdss1_dp1_out>;
+                       };
+               };
+       };
+
        dp-dsi0-connector {
                compatible = "dp-connector";
                label = "DSI0";
@@ -631,6 +655,50 @@ &mdss0_dsi1_phy {
        status = "okay";
 };
 
+&mdss1 {
+       status = "okay";
+};
+
+&mdss1_dp0 {
+       pinctrl-0 = <&dp2_hot_plug_det>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
+&mdss1_dp0_out {
+       data-lanes = <0 1 2 3>;
+       link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 
8100000000>;
+       remote-endpoint = <&dp2_connector_in>;
+};
+
+&mdss1_dp0_phy {
+       vdda-phy-supply = <&vreg_l1c>;
+       vdda-pll-supply = <&vreg_l4a>;
+
+       status = "okay";
+};
+
+&mdss1_dp1 {
+       pinctrl-0 = <&dp3_hot_plug_det>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
+&mdss1_dp1_out {
+       data-lanes = <0 1 2 3>;
+       link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 
8100000000>;
+       remote-endpoint = <&dp3_connector_in>;
+};
+
+&mdss1_dp1_phy {
+       vdda-phy-supply = <&vreg_l1c>;
+       vdda-pll-supply = <&vreg_l4a>;
+
+       status = "okay";
+};
+
 &pmm8654au_0_gpios {
        gpio-line-names = "DS_EN",
                          "POFF_COMPLETE",
@@ -808,6 +876,18 @@ dp1_hot_plug_det: dp1-hot-plug-det-state {
                bias-disable;
        };
 
+       dp2_hot_plug_det: dp2-hot-plug-det-state {
+               pins = "gpio104";
+               function = "edp2_hot";
+               bias-disable;
+       };
+
+       dp3_hot_plug_det: dp3-hot-plug-det-state {
+               pins = "gpio103";
+               function = "edp3_hot";
+               bias-disable;
+       };
+
        io_expander_intr_active: io-expander-intr-active-state {
                pins = "gpio98";
                function = "gpio";
-- 
2.34.1

Reply via email to