dt: amd-seattle: add description of the SATA/CCP SMMUs
authorArd Biesheuvel <ardb@kernel.org>
Tue, 3 Dec 2019 15:23:04 +0000 (15:23 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 24 Mar 2022 18:49:54 +0000 (19:49 +0100)
Add descriptions of the SMMUs that cover the SATA controller(s)
on the AMD Seattle SOC. The CCP crypto accelerator shares its
SMMU with the second SATA controller, which is only enabled on
B1 silicon.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi

index 124e58a..547a6bf 100644 (file)
@@ -70,6 +70,7 @@
                        reg = <0 0xe0300000 0 0xf0000>;
                        interrupts = <0 355 4>;
                        clocks = <&sataclk_333mhz>;
+                       iommus = <&sata0_smmu 0x0 0x1f>;
                        dma-coherent;
                };
 
                        reg = <0 0xe0d00000 0 0xf0000>;
                        interrupts = <0 354 4>;
                        clocks = <&sataclk_333mhz>;
+                       iommus = <&sata1_smmu 0x0e>,
+                                <&sata1_smmu 0x0f>,
+                                <&sata1_smmu 0x1e>;
+                       dma-coherent;
+               };
+
+               sata0_smmu: iommu@e0200000 {
+                       compatible = "arm,mmu-401";
+                       reg = <0 0xe0200000 0 0x10000>;
+                       #global-interrupts = <1>;
+                       interrupts = <0 332 4>, <0 332 4>;
+                       #iommu-cells = <2>;
+                       dma-coherent;
+               };
+
+               sata1_smmu: iommu@e0c00000 {
+                       compatible = "arm,mmu-401";
+                       reg = <0 0xe0c00000 0 0x10000>;
+                       #global-interrupts = <1>;
+                       interrupts = <0 331 4>, <0 331 4>;
+                       #iommu-cells = <1>;
                        dma-coherent;
                };
 
                        reg = <0 0xe0100000 0 0x10000>;
                        interrupts = <0 3 4>;
                        dma-coherent;
+                       iommus = <&sata1_smmu 0x00>,
+                                <&sata1_smmu 0x02>,
+                                <&sata1_smmu 0x40>,
+                                <&sata1_smmu 0x42>;
                };
 
                pcie0: pcie@f0000000 {