[COMMON] iommu/exynos: add dma-window property parsing
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Wed, 11 May 2016 02:25:18 +0000 (11:25 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:19 +0000 (19:45 +0900)
commit14e8ccf940e799702236287b4fd956924feb4aad
tree0189a1350003993d6ba73ef84a790542e359408e
parent33a322a3ff9c6a6dec85362d01e0503e489ac838
[COMMON] iommu/exynos: add dma-window property parsing

Each domain may need different dma ranges for client device's
requirement. 'dma-window' property specifies dma ranges
for each domain.

This property is optional, so if it doesn't exist,
default dma ranges from 0x10000000 to 0xD0000000 are used.

If this property is used, address and size cells should be described.
Below is an example.

iommu-domain_something {
compatible = "samsung,exynos-iommu-bus";

#dma-address-cells = <1>;
#dma-size-cells = <1>;
/* start address, size */
dma-window = <0x10000000 0xC0000000>;

domain-clients = <&something>;
};

Change-Id: I2765f8a4a6b142475c5de80aa73234bef0bd3248
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/iommu/exynos-iommu.c
drivers/iommu/exynos-iommu.h
drivers/iommu/exynos-iovmm.c