summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Semwal <sumit.semwal@linaro.org>2019-06-24 16:10:23 +0530
committerSumit Semwal <sumit.semwal@linaro.org>2021-01-27 23:55:02 +0530
commit7967c87b91884fe6d175db9b5776661fb1f50231 (patch)
treec0ca4f5a3ae6b925ddc15eb2b0a071c4765b2407
parentd5964bddca4b4bc5d5780c7c0e3b6da461630076 (diff)
blueline: arm64: dts: qcom: Add display-related nodes
Adding the display related nodes that are needed to enable LG sw43408 panel for blueline. These including dsi and related msm display nodes. -- updated for lab new name, kept lab as always-on Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Change-Id: I1cbea874a7a487153008222499b81b907a91223d
-rw-r--r--arch/arm64/boot/dts/qcom/sdm845-blueline.dts117
1 files changed, 117 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sdm845-blueline.dts b/arch/arm64/boot/dts/qcom/sdm845-blueline.dts
index 7e6200f29b8a..d652db7f8718 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-blueline.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-blueline.dts
@@ -195,6 +195,42 @@
};
};
+&pm8998_gpio {
+ /* Don't drive these, for display */
+ sde_pmgpio_active: sde_pmgpio_active {
+ pins = "gpio2", "gpio5";
+ function = "normal";
+ input-enable;
+ bias-disable;
+ power-source = <0>;
+ };
+ sde_pmgpio_suspend: sde_pmgpio_suspend {
+ pins = "gpio2", "gpio5";
+ function = "normal";
+ input-enable;
+ bias-disable;
+ power-source = <0>;
+ };
+};
+
+&sde_te_active {
+ mux {
+ pins = "gpio12";
+ };
+ config {
+ pins = "gpio12";
+ };
+};
+
+&sde_te_suspend {
+ mux {
+ pins = "gpio12";
+ };
+ config {
+ pins = "gpio12";
+ };
+};
+
&adsp_pas {
status = "okay";
@@ -248,10 +284,12 @@
regulator-max-microvolt = <1028000>;
};
+ vdda_mipi_dsi0_pll:
vreg_l1a_0p875: ldo1 {
regulator-min-microvolt = <880000>;
regulator-max-microvolt = <880000>;
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-boot-on;
};
vreg_l5a_0p8: ldo5 {
@@ -278,6 +316,14 @@
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
+ vreg_l14a_1p88: ldo14 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
vreg_l17a_1p3: ldo17 {
regulator-min-microvolt = <1304000>;
regulator-max-microvolt = <1304000>;
@@ -308,10 +354,20 @@
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
+ vdda_mipi_dsi0_1p2:
vreg_l26a_1p2: ldo26 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-boot-on;
+ };
+
+ vreg_l28a_3p0: ldo28 {
+ regulator-min-microvolt = <2856000>;
+ regulator-max-microvolt = <3008000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-boot-on;
+ regulator-always-on;
};
};
@@ -574,3 +630,64 @@
status = "okay";
firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn";
};
+
+&dsi0 {
+ status = "okay";
+ vdda-supply = <&vdda_mipi_dsi0_1p2>;
+
+ ports {
+ port@1 {
+ endpoint {
+ remote-endpoint = <&lg_sw43408_in_0>;
+ data-lanes = <0 1 2 3>;
+ };
+ };
+ };
+
+ panel@0 {
+ compatible = "lg,sw43408";
+ reg = <0>;
+ vddi-supply = <&vreg_l14a_1p88>;
+ vpnl-supply = <&vreg_l28a_3p0>;
+ lab-supply = <&lab>;
+
+ reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-names = "panel_active", "panel_suspend";
+ pinctrl-0 = <&sde_dsi_active &sde_te_active &sde_pmgpio_active>;
+ pinctrl-1 = <&sde_dsi_suspend &sde_te_suspend &sde_pmgpio_suspend>;
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ lg_sw43408_in_0: endpoint {
+ remote-endpoint = <&dsi0_out>;
+ };
+ };
+ };
+ };
+};
+
+&dsi0_phy {
+ status = "okay";
+ vdds-supply = <&vdda_mipi_dsi0_pll>;
+};
+
+&vreg_l28a_3p0{
+ qcom,init-voltage = <3000000>;
+};
+
+&mdss {
+ status = "okay";
+};
+
+&mdss_mdp {
+ status = "okay";
+};
+
+&lab {
+ regulator-always-on;
+};