arm64: dts: qcom: sm7225-fairphone-fp4: Enable display and GPU
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 16 Feb 2024 10:10:51 +0000 (11:10 +0100)
committerBjorn Andersson <andersson@kernel.org>
Fri, 16 Feb 2024 17:18:49 +0000 (11:18 -0600)
Add the description for the display panel found on this phone.
Unfortunately the LCDB module on PM6150L 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@linaro.org>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20240216-fp4-panel-v3-4-a556e4b79640@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6350.dtsi
arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts

index 8a59062d7320c8a05e70fa13443618988c45b27c..24bcec3366efd58671cbcd6fa27cd0d807ab2d4f 100644 (file)
 
                        status = "disabled";
 
-                       zap-shader {
+                       gpu_zap_shader: zap-shader {
                                memory-region = <&pil_gpu_mem>;
                        };
 
index 9ed349ec076a1f58c77838b8eabe2c4f41a536a3..bc67e8c1fe4d15f58de781404d0432e3bd69d311 100644 (file)
                };
        };
 
+       /* Dummy regulator until PM6150L 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>;
+       };
+
        reserved-memory {
                /*
                 * The rmtfs memory region in downstream is 'dynamically allocated'
        status = "okay";
 };
 
+&gpu {
+       status = "okay";
+};
+
+&gpu_zap_shader {
+       firmware-name = "qcom/sm7225/fairphone4/a615_zap.mbn";
+};
+
 &i2c0 {
        clock-frequency = <400000>;
        status = "okay";
        status = "okay";
 };
 
+&mdss {
+       status = "okay";
+};
+
+&mdss_dsi0 {
+       vdda-supply = <&vreg_l22a>;
+       status = "okay";
+
+       panel@0 {
+               compatible = "djn,9a-3r063-1102b";
+               reg = <0>;
+
+               backlight = <&pm6150l_wled>;
+               reset-gpios = <&pm6150l_gpios 9 GPIO_ACTIVE_LOW>;
+
+               vdd1-supply = <&vreg_l1e>;
+               vsn-supply = <&lcdb_dummy>;
+               vsp-supply = <&lcdb_dummy>;
+
+               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 {
+       vdds-supply = <&vreg_l18a>;
+       status = "okay";
+};
+
 &mpss {
        firmware-name = "qcom/sm7225/fairphone4/modem.mbn";
        status = "okay";