]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sdm632-fairphone-fp3: Enable display and GPU
authorLuca Weiss <luca@lucaweiss.eu>
Wed, 11 Jun 2025 16:33:18 +0000 (18:33 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 12 Aug 2025 15:37:42 +0000 (10:37 -0500)
Add the description for the display panel found on this phone.
Unfortunately the LCDB module on PMI632 isn't yet supported upstream so
we need to use a dummy regulator-fixed in the meantime.

And with this done we can also enable the GPU and set the zap shader
firmware path.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
Link: https://lore.kernel.org/r/20250611-fp3-display-v4-4-ef67701e7687@lucaweiss.eu
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8953.dtsi
arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts

index 273e79fb75695af1fd7a6f77273b95fe3b913fac..c5205d09c442e45e4a0cc3e6d8ff7d9d7bda0034 100644 (file)
 
                        status = "disabled";
 
-                       zap-shader {
+                       gpu_zap_shader: zap-shader {
                                memory-region = <&zap_shader_region>;
                        };
 
index 31ed26c31e6ea381a8942ccf569513df3300cdeb..55a45b528bd3f1bf9b6fe7882753338b43c62271 100644 (file)
                };
        };
 
+       /* Dummy regulator until PMI632 has LCDB VSP/VSN support */
+       lcdb_dummy: regulator-lcdb-dummy {
+               compatible = "regulator-fixed";
+               regulator-name = "lcdb_dummy";
+               regulator-min-microvolt = <5500000>;
+               regulator-max-microvolt = <5500000>;
+       };
+
        vph_pwr: vph-pwr-regulator {
                compatible = "regulator-fixed";
                regulator-name = "vph_pwr";
        };
 };
 
+&gpu {
+       status = "okay";
+};
+
+&gpu_zap_shader {
+       firmware-name = "qcom/msm8953/fairphone/fp3/a506_zap.mbn";
+};
+
 &hsusb_phy {
        vdd-supply = <&pm8953_l3>;
        vdda-pll-supply = <&pm8953_l7>;
        status = "okay";
 };
 
+&mdss {
+       status = "okay";
+};
+
+&mdss_dsi0 {
+       vdda-supply = <&pm8953_s3>;
+       status = "okay";
+
+       panel@0 {
+               compatible = "djn,98-03057-6598b-i";
+               reg = <0>;
+
+               reset-gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
+
+               iovcc-supply = <&pm8953_l6>;
+               vsn-supply = <&lcdb_dummy>;
+               vsp-supply = <&lcdb_dummy>;
+
+               pinctrl-0 = <&mdss_te_default>;
+               pinctrl-names = "default";
+
+               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 {
+       vcca-supply = <&pm8953_l3>;
+       status = "okay";
+};
+
 &mpss {
        firmware-name = "qcom/msm8953/fairphone/fp3/mba.mbn",
                        "qcom/msm8953/fairphone/fp3/modem.mbn";
         * 135-138: fingerprint reader (SPI)
         */
        gpio-reserved-ranges = <0 4>, <135 4>;
+
+       mdss_te_default: mdss-te-default-state {
+               pins = "gpio24";
+               function = "mdp_vsync";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
 };
 
 &uart_0 {