arm64: dts: qcom: sm6115p-j606f: Hook up display
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 21 Jun 2023 11:21:53 +0000 (13:21 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 10 Jul 2023 04:26:42 +0000 (21:26 -0700)
Enable the required nodes, add the required pins and tweak a
regulator to enable non-simplefb display on the Tab P11.

Do note that there exists a second SKU with a different panel+touch
combo, but due to insufficient information, that will need to be
handled separately.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230620-topic-gpu_tablet_disp-v2-2-0538ea1beb0b@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts

index 81fdcaf489266af642b6d158ea946a884acd19c3..667273ae055363b4daf949c3e6f1e20081436569 100644 (file)
        };
 };
 
-&dispcc {
-       /* HACK: disable until a panel driver is ready to retain simplefb */
-       status = "disabled";
+&mdss {
+       status = "okay";
+};
+
+&mdss_dsi0 {
+       vdda-supply = <&pm6125_l18>;
+       status = "okay";
+
+       panel: panel@0 {
+               compatible = "lenovo,j606f-boe-nt36523w", "novatek,nt36523w";
+               reg = <0>;
+
+               reset-gpios = <&tlmm 82 GPIO_ACTIVE_LOW>;
+               vddio-supply = <&pm6125_l9>;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&te_active &mdss_dsi_active>;
+
+               rotation = <180>; /* Yep, it's mounted upside down! */
+
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&mdss_dsi0_out>;
+                       };
+               };
+       };
+};
+
+&mdss_dsi0_out {
+       data-lanes = <0 1 2 3>;
+       remote-endpoint = <&panel_in>;
+};
+
+&mdss_dsi0_phy {
+       status = "okay";
 };
 
 &pm6125_gpios {
                };
 
                pm6125_l18: l18 {
-                       regulator-min-microvolt = <1104000>;
-                       regulator-max-microvolt = <1312000>;
+                       /* 1.104V-1.312V fixed @ 1.232V for DSIPHY */
+                       regulator-min-microvolt = <1232000>;
+                       regulator-max-microvolt = <1232000>;
                };
 
                pm6125_l19: l19 {
                bias-pull-up;
                output-high;
        };
+
+       te_active: te-active-state {
+               pins = "gpio81";
+               function = "mdp_vsync";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
+
+       mdss_dsi_active: dsi-active-state {
+               pins = "gpio82";
+               function = "gpio";
+               drive-strength = <8>;
+               bias-disable;
+       };
 };
 
 &ufs_mem_hc {