]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sdm845-starqltechn: add graphics support
authorDzmitry Sankouski <dsankouski@gmail.com>
Tue, 25 Feb 2025 16:39:02 +0000 (19:39 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 19 May 2025 20:33:48 +0000 (15:33 -0500)
Add support for gpu and panel.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Link: https://lore.kernel.org/r/20250225-starqltechn_integration_upstream-v9-11-a5d80375cb66@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts

index 762182331dc52c98493925d9538fe6f615c38e90..1202d8fc6b9dcca8411a0022719e570c6d5f4a4d 100644 (file)
        };
 };
 
+&gpu {
+       status = "okay";
+
+       zap-shader {
+               memory-region = <&gpu_mem>;
+               firmware-name = "qcom/sdm845/starqltechn/a630_zap.mbn";
+       };
+};
+
+&mdss {
+       status = "okay";
+};
+
+&mdss_dsi0 {
+       vdda-supply = <&vreg_l26a_1p2>;
+       status = "okay";
+
+       panel@0 {
+               compatible = "samsung,s6e3ha8";
+               reg = <0>;
+               vci-supply = <&s2dos05_ldo4>;
+               vddr-supply = <&s2dos05_buck>;
+               vdd3-supply = <&s2dos05_ldo1>;
+               te-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
+               reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>;
+               pinctrl-0 = <&dsi_default &dsi_te>;
+               pinctrl-1 = <&dsi_suspend &dsi_te>;
+               pinctrl-names = "default", "suspend";
+
+               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 = <&vdda_mipi_dsi0_pll>;
+       status = "okay";
+};
 
 &apps_rsc {
        regulators-0 {
        gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */
                               <85 4>; /* SPI (fingerprint reader) */
 
+       dsi_default: dsi-default-state {
+               pins = "gpio6";
+               function = "gpio";
+               drive-strength = <8>;
+               bias-disable;
+       };
+
+       dsi_suspend: dsi-suspend-state {
+               pins = "gpio6";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
+
+       dsi_te: dsi-te-state {
+               pins = "gpio10";
+               function = "mdp_vsync";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
+
        i2c21_sda_state: i2c21-sda-state {
                pins = "gpio127";
                function = "gpio";