arm64: dts: qcom: sdm845: enable dma for spi
authorVinod Koul <vkoul@kernel.org>
Tue, 22 Feb 2022 04:19:51 +0000 (09:49 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 24 Feb 2022 03:29:52 +0000 (21:29 -0600)
Add dmas property for spi@880000 and pinconf setting so that we can use
dma for this spi device. Also, add iommu properties for qup and spi.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220222041951.1185186-2-vkoul@kernel.org
arch/arm64/boot/dts/qcom/sdm845-db845c.dts
arch/arm64/boot/dts/qcom/sdm845.dtsi

index 2cf4b932aee2700fa835f63cfa2d57b1f3c878e6..28fe45c5d516eabfab5eecfd92771281109d172f 100644 (file)
        status = "okay";
 };
 
+&gpi_dma0 {
+       status = "okay";
+};
+
 &gpu {
        status = "okay";
        zap-shader {
index 00dd1661f7f3aee7bca4bb3e4604b0858297212e..1438711b647612f1d828a474ca490c38730c7e09 100644 (file)
@@ -12,6 +12,7 @@
 #include <dt-bindings/clock/qcom,lpass-sdm845.h>
 #include <dt-bindings/clock/qcom,rpmh.h>
 #include <dt-bindings/clock/qcom,videocc-sdm845.h>
+#include <dt-bindings/dma/qcom-gpi.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interconnect/qcom,osm-l3.h>
 #include <dt-bindings/interconnect/qcom,sdm845.h>
                                interconnects = <&aggre1_noc MASTER_QUP_1 0 &config_noc SLAVE_BLSP_1 0>,
                                                <&gladiator_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_BLSP_1 0>;
                                interconnect-names = "qup-core", "qup-config";
+                               dmas = <&gpi_dma0 0 0 QCOM_GPI_SPI>,
+                                      <&gpi_dma0 1 0 QCOM_GPI_SPI>;
+                               dma-names = "tx", "rx";
                                status = "disabled";
                        };
 
                                               "gpio2", "gpio3";
                                        function = "qup0";
                                };
+
+                               config {
+                                       pins = "gpio0", "gpio1",
+                                              "gpio2", "gpio3";
+                                       drive-strength = <6>;
+                                       bias-disable;
+                               };
                        };
 
                        qup_spi1_default: qup-spi1-default {