[RFC PATCH 0/5] MT8173 IOMMU support

2015-03-06 Thread yong.wu
This is based on Robin Murphy's arm64: IOMMU-backed DMA mapping[1]. This patch adds support for m4u(Multimedia Memory Management Unit), Currently it only support the m4u with 2 levels of page table on mt8173. Please check the hardware block diagram of Mediatek IOMMU. EMI (Exter

[PATCH 1/5] soc: mediatek: Add SMI driver

2015-03-06 Thread yong.wu
From: Yong Wu This patch add SMI(Smart Multimedia Interface) driver. This driver is responsible to enable/disable iommu and control the clocks of each local arbiter. Signed-off-by: Yong Wu --- drivers/soc/mediatek/Kconfig | 7 ++ drivers/soc/mediatek/Makefile | 1 + drivers/

[PATCH 4/5] dt-bindings: iommu: Add binding for mediatek IOMMU

2015-03-06 Thread yong.wu
From: Yong Wu This patch add mediatek iommu dts binding document. Signed-off-by: Yong Wu --- .../devicetree/bindings/iommu/mediatek,iommu.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/mediatek,iommu.txt diff --g

[PATCH 2/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-03-06 Thread yong.wu
From: Yong Wu This patch adds support for mediatek m4u (MultiMedia Memory Management Unit). Currently this only supports m4u gen 2 with 2 levels of page table on mt8173. Signed-off-by: Yong Wu --- drivers/iommu/Kconfig | 11 + drivers/iommu/Makefile | 1 + drivers

[RFC PATCH 0/5] MT8173 IOMMU support

2015-03-06 Thread yong.wu
This is based on Robin Murphy's arm64: IOMMU-backed DMA mapping[1]. This patch adds support for m4u(Multimedia Memory Management Unit), Currently it only support the m4u with 2 levels of page table on mt8173. Please check the hardware block diagram of Mediatek IOMMU. EMI (Exter

[PATCH 3/5] dt-bindings: mediatek: Add smi dts binding

2015-03-06 Thread yong.wu
From: Yong Wu This patch add smi binding document. Signed-off-by: Yong Wu --- .../devicetree/bindings/soc/mediatek/mediatek,smi.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,smi.txt diff --git a/Docu

[PATCH 1/5] soc: mediatek: Add SMI driver

2015-03-06 Thread yong.wu
From: Yong Wu This patch add SMI(Smart Multimedia Interface) driver. This driver is responsible to enable/disable iommu and control the clocks of each local arbiter. Signed-off-by: Yong Wu --- drivers/soc/mediatek/Kconfig | 7 ++ drivers/soc/mediatek/Makefile | 1 + drivers/so

[PATCH 5/5] dts: mt8173: Add iommu/smi nodes for mt8173

2015-03-06 Thread yong.wu
From: Yong Wu This patch add the iommu/larbs nodes for mt8173 Signed-off-by: Yong Wu --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 60 include/dt-bindings/iommu/mt8173-iommu-port.h | 127 ++ 2 files changed, 187 insertions(+) create mode 100644 incl