Also include other supporting msm drm nodes, gpio and backlight

Co-developed-by: Amir Dahan <[email protected]>
Signed-off-by: Amir Dahan <[email protected]>
Reviewed-by: Konrad Dybcio <[email protected]>
Signed-off-by: Paul Sajna <[email protected]>
---
 arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 13 +++--
 arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts  | 68 +++++++++++++++++++++++++-
 2 files changed, 75 insertions(+), 6 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi 
b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 7b0e14d3f57e..a5a04ec11eb7 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -450,10 +450,6 @@ &cdsp_pas {
        status = "okay";
 };
 
-&dispcc {
-       status = "disabled";
-};
-
 &gcc {
        protected-clocks = <GCC_QSPI_CORE_CLK>,
                           <GCC_QSPI_CORE_CLK_SRC>,
@@ -517,6 +513,15 @@ led@5 {
        };
 };
 
+&pmi8998_wled {
+       qcom,current-limit-microamp = <20000>;
+       qcom,ovp-millivolt = <29600>;
+       qcom,switching-freq = <800>;
+       qcom,num-strings = <3>;
+       qcom,cabc;
+       status = "okay";
+};
+
 &qupv3_id_0 {
        status = "okay";
 };
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts 
b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index bbfa709048f7..46119630d721 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -21,8 +21,6 @@ framebuffer@9d400000 {
                        height = <3120>;
                        stride = <(1440 * 4)>;
                        format = "a8r8g8b8";
-                       lab-supply = <&lab>;
-                       ibb-supply = <&ibb>;
                };
        };
 
@@ -67,6 +65,51 @@ &gpu_zap_shader {
        firmware-name = "qcom/sdm845/judyln/a630_zap.mbn";
 };
 
+&mdss {
+       status = "okay";
+};
+
+&mdss_dsi0 {
+       vdda-supply = <&vdda_mipi_dsi0_1p2>;
+
+       status = "okay";
+
+       display_panel: panel@0 {
+               reg = <0>;
+               compatible = "lg,sw49410-lh609qh1", "lg,sw49410";
+
+               backlight = <&pmi8998_wled>;
+               reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
+               width-mm = <65>;
+               height-mm = <140>;
+
+               vsp-supply = <&lab>;
+               vsn-supply = <&ibb>;
+
+               pinctrl-0 = <&sde_dsi_active &sde_te_active_sleep>;
+               pinctrl-1 = <&sde_dsi_sleep &sde_te_active_sleep>;
+               pinctrl-names = "default", "sleep";
+
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&mdss_dsi0_out>;
+                       };
+               };
+       };
+};
+
+&mdss_dsi0_phy {
+       vdds-supply = <&vdda_mipi_dsi0_pll>;
+
+       status = "okay";
+};
+
+&mdss_dsi0_out {
+       data-lanes = <0 1 2 3>;
+       remote-endpoint = <&panel_in>;
+       qcom,te-source = "mdp_vsync_e";
+};
+
 &ibb {
        regulator-min-microvolt = <5500000>;
        regulator-max-microvolt = <5500000>;
@@ -102,4 +145,25 @@ thinq_key_default: thinq-key-default-state {
                drive-strength = <2>;
                bias-pull-up;
        };
+
+       sde_dsi_active: sde-dsi-active-state {
+               pins = "gpio6";
+               function = "gpio";
+               drive-strength = <8>;
+               bias-disable;
+       };
+
+       sde_dsi_sleep: sde-dsi-sleep-state {
+               pins = "gpio6";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
+
+       sde_te_active_sleep: sde-te-active-sleep-state {
+               pins = "gpio10";
+               function = "mdp_vsync";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
 };

-- 
2.53.0


Reply via email to