dt-bindings: mediatek: mt8188: Add binding for MM & INFRA IOMMU
authorChengci.Xu <chengci.xu@mediatek.com>
Fri, 2 Jun 2023 09:02:21 +0000 (17:02 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 7 Aug 2023 12:15:45 +0000 (14:15 +0200)
commitd5cda142d649c690fb0fcf1e29f3df63fbafc442
tree4e54ec0ed698f2145dedacf313cdb9a23f0b1ace
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
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 <chengci.xu@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230602090227.7264-2-yong.wu@mediatek.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
include/dt-bindings/memory/mediatek,mt8188-memory-port.h [new file with mode: 0644]