[PATCH 01/12] dt-bindings: memory: mediatek: Add MT8195 apu iommu bindings
Flora Fu
flora.fu at mediatek.com
Fri Dec 10 09:52:12 PST 2021
There are two apu iommu hardwares in MT8195.
Add MT8195 apu iommu bindings.
Signed-off-by: Flora Fu <flora.fu at mediatek.com>
---
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
More information about the linux-arm-kernel
mailing list