Thread (13 messages) flat view 13 messages, 1 author, 2021-12-10
STALE1725d

[PATCH 01/12] dt-bindings: memory: mediatek: Add MT8195 apu iommu bindings

From: Flora Fu <hidden>
Date: 2021-12-10 17:52:37
Also in: linux-mediatek, lkml
Subsystem: iommu subsystem, mediatek iommu driver, memory controller drivers, open firmware and flattened device tree bindings, the rest · Maintainers: Joerg Roedel, Will Deacon, Yong Wu, Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

There are two apu iommu hardwares in MT8195.
Add MT8195 apu iommu bindings.

Signed-off-by: Flora Fu <redacted>

---
 Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 3 +++
 include/dt-bindings/memory/mt8195-memory-port.h             | 4 ++++
 2 files changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
index 14fae9642ec9..ba1b3ce6cf99 100644
--- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
+++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
@@ -81,6 +81,7 @@ properties:
           - mediatek,mt8195-iommu-vdo        # generation two
           - mediatek,mt8195-iommu-vpp        # generation two
           - mediatek,mt8195-iommu-infra      # generation two
+          - mediatek,mt8195-iommu-apu        # generation two
 
       - description: mt7623 generation one
         items:
@@ -158,6 +159,7 @@ allOf:
             - mediatek,mt8192-iommu-apu
             - mediatek,mt8195-iommu-vdo
             - mediatek,mt8195-iommu-vpp
+            - mediatek,mt8195-iommu-apu
 
     then:
       required:
@@ -170,6 +172,7 @@ allOf:
             enum:
               - mediatek,mt8192-iommu-apu
               - mediatek,mt8195-iommu-infra
+              - mediatek,mt8195-iommu-apu
 
     then:
       required:
diff --git a/include/dt-bindings/memory/mt8195-memory-port.h b/include/dt-bindings/memory/mt8195-memory-port.h
index 9882877cda9d..438e75140717 100644
--- a/include/dt-bindings/memory/mt8195-memory-port.h
+++ b/include/dt-bindings/memory/mt8195-memory-port.h
@@ -405,4 +405,8 @@
 #define IOMMU_PORT_INFRA_SSUSB_R		MTK_IFAIOMMU_PERI_ID(30)
 #define IOMMU_PORT_INFRA_SSUSB_W		MTK_IFAIOMMU_PERI_ID(31)
 
+#define IOMMU_PORT_APU_DATA			MTK_M4U_ID(0, 0)
+#define IOMMU_PORT_APU_VLM			MTK_M4U_ID(0, 1)
+#define IOMMU_PORT_APU_VPU			MTK_M4U_ID(0, 2)
+
 #endif
-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help