Skip to content

Commit d5cda14

Browse files
xuchengci24968joergroedel
authored andcommitted
dt-bindings: mediatek: mt8188: Add binding for MM & INFRA IOMMU
Add descriptions for mt8188 IOMMU which also use ARM Short-Descriptor translation table format. In mt8188, there are two smi-common HW and IOMMU, one is for vdo(video output), the other is for vpp(video processing pipe). They connects with different smi-larbs, then some setting(larbid_remap) is different. Differentiate them with the compatible string. Something like this: IOMMU(VDO) IOMMU(VPP) | | SMI_COMMON_VDO SMI_COMMON_VPP --------------- ---------------- | | ... | | ... larb0 larb2 ... larb1 larb3 ... We also have an IOMMU that is for infra master like PCIe. And infra master don't have the larb and ports. Signed-off-by: Chengci.Xu <[email protected]> Signed-off-by: Yong Wu <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 06c2afb commit d5cda14

File tree

2 files changed

+500
-1
lines changed

2 files changed

+500
-1
lines changed

Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ properties:
7878
- mediatek,mt8173-m4u # generation two
7979
- mediatek,mt8183-m4u # generation two
8080
- mediatek,mt8186-iommu-mm # generation two
81+
- mediatek,mt8188-iommu-vdo # generation two
82+
- mediatek,mt8188-iommu-vpp # generation two
83+
- mediatek,mt8188-iommu-infra # generation two
8184
- mediatek,mt8192-m4u # generation two
8285
- mediatek,mt8195-iommu-vdo # generation two
8386
- mediatek,mt8195-iommu-vpp # generation two
@@ -123,6 +126,7 @@ properties:
123126
description: |
124127
This is the mtk_m4u_id according to the HW. Specifies the mtk_m4u_id as
125128
defined in
129+
dt-binding/memory/mediatek,mt8188-memory-port.h for mt8188,
126130
dt-binding/memory/mt2701-larb-port.h for mt2701 and mt7623,
127131
dt-binding/memory/mt2712-larb-port.h for mt2712,
128132
dt-binding/memory/mt6779-larb-port.h for mt6779,
@@ -155,6 +159,8 @@ allOf:
155159
- mediatek,mt6795-m4u
156160
- mediatek,mt8173-m4u
157161
- mediatek,mt8186-iommu-mm
162+
- mediatek,mt8188-iommu-vdo
163+
- mediatek,mt8188-iommu-vpp
158164
- mediatek,mt8192-m4u
159165
- mediatek,mt8195-iommu-vdo
160166
- mediatek,mt8195-iommu-vpp
@@ -168,6 +174,8 @@ allOf:
168174
compatible:
169175
enum:
170176
- mediatek,mt8186-iommu-mm
177+
- mediatek,mt8188-iommu-vdo
178+
- mediatek,mt8188-iommu-vpp
171179
- mediatek,mt8192-m4u
172180
- mediatek,mt8195-iommu-vdo
173181
- mediatek,mt8195-iommu-vpp
@@ -194,7 +202,9 @@ allOf:
194202
properties:
195203
compatible:
196204
contains:
197-
const: mediatek,mt8195-iommu-infra
205+
enum:
206+
- mediatek,mt8188-iommu-infra
207+
- mediatek,mt8195-iommu-infra
198208

199209
then:
200210
required:

0 commit comments

Comments
 (0)