]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: qcm2290: Add crypto engine
authorLoic Poulain <loic.poulain@oss.qualcomm.com>
Mon, 31 Mar 2025 12:36:41 +0000 (14:36 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 19 May 2025 20:33:50 +0000 (15:33 -0500)
Add Qualcomm Crypto Engine (QCE) and BAM related nodes for this SoC.

Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250331123641.1590573-1-loic.poulain@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcm2290.dtsi

index c7946731438bae2882e6710c21504915eff30dfa..f49ac1c1f8a3ee652d70fab1bb1ad03a5eec7c3c 100644 (file)
                        #interconnect-cells = <2>;
                };
 
+               cryptobam: dma-controller@1b04000 {
+                       compatible = "qcom,bam-v1.7.0";
+                       reg = <0x0 0x01b04000 0x0 0x24000>;
+                       interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rpmcc RPM_SMD_CE1_CLK>;
+                       clock-names = "bam_clk";
+                       #dma-cells = <1>;
+                       qcom,ee = <0>;
+                       qcom,controlled-remotely;
+                       iommus = <&apps_smmu 0x0084 0x11>,
+                                <&apps_smmu 0x0086 0x11>;
+               };
+
+               crypto: crypto@1b3a000 {
+                       compatible = "qcom,qcm2290-qce", "qcom,ipq4019-qce", "qcom,qce";
+                       reg = <0x0 0x01b3a000 0x0 0x6000>;
+                       clocks = <&rpmcc RPM_SMD_CE1_CLK>;
+                       clock-names = "core";
+                       dmas = <&cryptobam 6>, <&cryptobam 7>;
+                       dma-names = "rx", "tx";
+                       iommus = <&apps_smmu 0x0084 0x11>,
+                                <&apps_smmu 0x0086 0x11>;
+               };
+
                qfprom@1b44000 {
                        compatible = "qcom,qcm2290-qfprom", "qcom,qfprom";
                        reg = <0x0 0x01b44000 0x0 0x3000>;