This patch series fixes silently broken IOMMU v1 driver and adds mt6572
SoC support.
It appears that currently the driver is not working at all... IOMMU core
will silently reject the component bind unless there's of_xlate callback.
The fix is pretty straightforward - provide of_xlate callback (based on
mtk_iommu gen 2 driver) to let IOMMU attach devices.
This makes DRM subsystem use IOMMU like all gen 2 SoCs do.
It can be verified by reading overlay engine input address.
Before:
~ # devmem 0x14007040 32
0xBB900000
After:
~ # devmem 0x14007040 32
0x00000000
Note the changes weren't tested on mt2701, because I don't have such
hardware.
It's worth mentioning that some bits may apply to mt6582 and 6589,
however, they seem to have L2 cache for IOMMU, therefore patch 3 has
MT6572 IOMMU type, and not MT65XX.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
Roman Vivchar (3):
dt-bindings: iommu: mediatek: add mt6572
iommu/mediatek-v1: fix IOMMU device binding
iommu/mediatek-v1: add mt6572 support
.../devicetree/bindings/iommu/mediatek,iommu.yaml | 3 +
drivers/iommu/mtk_iommu_v1.c | 158 ++++++++++++---------
.../memory/mediatek,mt6572-memory-port.h | 26 ++++
3 files changed, 123 insertions(+), 64 deletions(-)
---
base-commit: 8cd9520d35a6c38db6567e97dd93b1f11f185dc6
change-id: 20260724-6572-iommu-dae78adaa65c
Best regards,
--
Roman Vivchar [off-list ref]