ARM: dts: Add description of System MMU of Exynos SoCs
Subsystems (3)
PATCH v9 6/16 ARM: dts: Add description of System MMU of Exynos SoCs
--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi | 82 ++++++ arch/arm/boot/dts/exynos5250.dtsi | 290 ++++++++++++++++++++ 5 files changed, 622 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt
(quoted diff) +0 -0
b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file mode 100644
index 0000000..92f0a33
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +103 -0
103 lines not on this page · raw message
arch/arm/boot/dts/exynos4.dtsi +122 -0
133 lines not on this page · raw message
arch/arm/boot/dts/exynos4210.dtsi +25 -0
@@ -124,6 +124,31 @@ clocks = <&clock 177>, <&clock 277>; clock-names = "sclk_fimg2d", "fimg2d"; status = "disabled"; + iommu = <&sysmmu_g2d>; + }; + + sysmmu_g2d: sysmmu at 12A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + clocks = <&clock 280>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 12220000 { + compatible = "samsung,exynos4210-sysmmu"; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + reg = <0x12220000 0x1000>; + interrupts = <5 3>; + clock-names = "sysmmu"; + clocks = <&clock 291>; + samsung,power-domain = <&pd_lcd1>; + status = "ok"; }; camera {
arch/arm/boot/dts/exynos4x12.dtsi +82 -0
86 lines not on this page · raw message
arch/arm/boot/dts/exynos5250.dtsi +290 -0
331 lines not on this page · raw message
Signature · 1 line
1.7.2.5
Hi,
On 08/08/2013 11:38 AM, Cho KyongHo wrote:
How about something along the lines of:
"This patch adds dts entries for the SYSMMU devices found on Exynos4 and Exynos5 SoC series and the SYSMMU binding documentation."
instead of this empty changelog ?
Quoted 17 lines
Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi | 82 ++++++ arch/arm/boot/dts/exynos5250.dtsi | 290 ++++++++++++++++++++ 5 files changed, 622 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtDocumentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +0
-0
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 5
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0@@ -0,0 +1,103 @@ +Samsung Exynos4210 IOMMU H/W, System MMU (System Memory Management Unit) + +Samsung's Exynos architecture contains System MMU that enables scattered +physical memory chunks visible as a contiguous region to DMA-capable peripheral +devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth.
s/so forth/and more ?
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 7
Quoted 2 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +2
-0+ +System MMU is a sort of IOMMU and support identical translation table format to
s/support/supports ?
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ARMv7 translation tables with minimum set of page properties including access +permissions, shareability and security protection. In addition, System MMU has +another capabilities like L2 TLB or block-fetch buffers to minimize translation +latency. +
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 22
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+A System MMU is dedicated to a single master peripheral device. Thus, it is +important to specify the correct System MMU in the device node of its master +device. Whereas a System MMU is dedicated to a master device, the master device +may have more than one System MMU. + +Required properties: +- compatible: Should be "samsung,exynos4210-sysmmu" +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller of System MMU +- interrupts: A tuple of numbers that indicates the interrupt source.
The interrupt specifier depends on the interrupt controller (interrupt-parent). So it might not always be a "tuple of numbers". It's probably better to say, e.g.:
- interrupts: Should contain the SYSMMU controller interrupt.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 27
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+- clock-names: Should be "sysmmu" if the System MMU is needed to gate its clock. + Please refer to the following documents: + Documentation/devicetree/bindings/clock/clock-bindings.txt + Documentation/devicetree/bindings/clock/exynos4-clock.txt + Documentation/devicetree/bindings/clock/exynos5250-clock.txt
You could replace "Documentation/devicetree/bindings/clock" with "../clock"
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 35
Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +8
-0+ Optional "master" if the clock to the System MMU is gated by + another gate clock other than "sysmmu". The System MMU driver + sets "master" the parent of "sysmmu". + Exynos4 SoCs, there needs no "master" clocks. + Exynos5 SoCs, some System MMUs must have "master" clocks. +- clocks: Required if the System MMU is needed to gate its clock. + Please refer to the documents listed above. +- samsung,power-domain: Required if the System MMU is needed to gate its power.
Isn't it required always when an SoC support Power Domains and the SYSMMU belongs to a power domain ? Perhaps something like:
- samsung,power-domain: Required if the System MMU belongs to a Power Domain.
would be more appropriate ?
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ Please refer to the following document: + Documentation/devicetree/bindings/arm/exynos/power_domain.txt + +Required properties for the master peripheral devices: +- iommu: phandles to the System MMUs of the device
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 50
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+ +Examples: +A System MMU is dedicated to a single master device. + gsc_0: gsc at 0x13e00000 { + compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl";
You could omit all the above properties, perhaps just leaving 'compatible' property, simply replacing them with:
...
since the only relevant property hers is 'iommu' ? Just a suggestion though.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 51
Quoted 1 line
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +1
-0+ iommu = <&sysmmu_gsc1>;
Shouldn't this be:
iommu = <&sysmmu_gsc0>;
?
It also probably makes sense to put the SYMMU device node above the master device node.
Quoted 17 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +17
-0+ }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0"; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + +MFC has 2 System MMUs for each port that MFC is attached. Thus it seems natural +to define 2 System MMUs for each port of the MFC: +
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 78
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+ mfc: codec at 13400000 { + compatible = "samsung,mfc-v5"; + reg = <0x13400000 0x10000>; + interrupts = <0 94 0>; + samsung,power-domain = <&pd_mfc>; + clocks = <&clock 170>, <&clock 273>; + clock-names = "sclk_mfc", "mfc"; + status = "ok"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; + };
How about putting this node as last one in this example ?
Quoted 38 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +24
-0+ sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l"; + interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r"; + interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; +arch/arm/boot/dts/exynos4.dtsi +1
-0@@ -251,6 +251,7 @@ clocks = <&clock 170>, <&clock 273>; clock-names = "sclk_mfc", "mfc"; status = "disabled"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; }; serial at 13800000 {@@ -485,5 +486,126 @@ clock-names = "sclk_fimd", "fimd";
arch/arm/boot/dts/exynos4.dtsi line 496
Quoted 10 lines
arch/arm/boot/dts/exynos4.dtsi +8
-0samsung,power-domain = <&pd_lcd0>; status = "disabled"; + iommu = <&sysmmu_fimd0>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l";
Do you really need 'interrupt-names' property, when there is only one interrupt in each node. Isn't it just a leftover from previous iterations ? I can't see it mentioned in the binding documentation.
arch/arm/boot/dts/exynos4.dtsi line 502
Quoted 6 lines
arch/arm/boot/dts/exynos4.dtsi +6
-0+ interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + };
Thanks,
Sylwester
Hi KyongHo,
Quoted 34 lines · On Thursday 08 of August 2013 18:38:35 Cho KyongHo wrote:
Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi | 82 ++++++ arch/arm/boot/dts/exynos5250.dtsi | 290 ++++++++++++++++++++ 5 files changed, 622 insertions(+), 0 deletions(-) create mode 100644
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtdiff --git
a/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtb/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtnew file mode 100644
index 0000000..92f0a33
---/dev/null
+++b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt(quoted diff) +1
-0@@ -0,0 +1,103 @@ +Samsung Exynos4210 IOMMU H/W, System MMU (System Memory ManagementUnit) +
+Samsung's Exynos architecture contains System MMU that enables scattered +physical memory chunks visible as a contiguous region to DMA-capable peripheral +devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth.(quoted diff) +2
-0+ +System MMU is a sort of IOMMU and support identical translation tableformat to +ARMv7 translation tables with minimum set of page properties including access +permissions, shareability and security protection. In addition, System MMU has +another capabilities like L2 TLB or block-fetch buffers to minimize translation +latency.
(quoted diff) +2
-0+ +A System MMU is dedicated to a single master peripheral device. Thus,
Quoted 3 lines
it is +important to specify the correct System MMU in the device node of its master +device. Whereas a System MMU is dedicated to a master device, the master device +may have more than one System MMU.
This paragraph is still not clear. What about something among these lines:
System MMUs are in many to one relation with peripheral devices, i.e. single peripheral device might have multiple System MMUs (usually one for each bus master), but one System MMU can handle only one peripheral device. The relation between a System MMU and the peripheral device it handles needs to be defined in device node of this peripheral device.
Quoted 6 lines
+Required properties:
+- compatible: Should be "samsung,exynos4210-sysmmu" +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller of SystemMMU +- interrupts: A tuple of numbers that indicates the interrupt source.
interrupts: An interrupt specifier for interrupt signal of System MMU, according to format defined for particular interrupt parent.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt
Quoted 6 lines
+- clock-names: Should be "sysmmu" if the System MMU is needed to gate its clock. + Please refer to the followingdocuments:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ Documentation/devicetree/bindings/clock/clock-bindings.txt + Documentation/devicetree/bindings/clock/exynos4-clock.txt + Documentation/devicetree/bindings/clock/exynos5250-
clock.txt
Review
Quoted 1 line
(quoted diff) +1
-0+ Optional "master" if the clock to the System MMU is gated
by
Review
Quoted 1 line
(quoted diff) +1
-0+ another gate clock other than "sysmmu". The System MMU
driver
Quoted 7 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +6
-0+ sets "master" the parent of "sysmmu". + Exynos4 SoCs, there needs no "master" clocks. + Exynos5 SoCs, some System MMUs must have "master" clocks. +- clocks: Required if the System MMU is needed to gate its clock. + Please refer to the documents listed above. +- samsung,power-domain: Required if the System MMU is needed to gateits power. + Please refer to the following document:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 44
Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +8
-0+ Documentation/devicetree/bindings/arm/exynos/power_domain.txt + +Required properties for the master peripheral devices: +- iommu: phandles to the System MMUs of the device + +Examples: +A System MMU is dedicated to a single master device. + gsc_0: gsc at 0x13e00000 {
nit: duplicated space after gsc_0: and incorrect 0x prefix in node unit- address.
Quoted 4 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +4
-0+ compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>;
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 58
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+ clocks = <&clock 256>; + clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0";
Hmm? interrupt-names property is not defined in your binding documentation and also the value here looks wrong. This should be a generic interrupt signal name that the SysMMU driver can understand, e.g. "sysmmu", without the "-gsc0" suffix.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 63
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok";
"ok" is not a valid value of status property, "okay" is. Still, I don't think this is a relevant property in this example, so maybe it could be omitted (status is "okay" by default anyway)?
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 76
Quoted 13 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ }; + +MFC has 2 System MMUs for each port that MFC is attached. Thus it seemsnatural +to define 2 System MMUs for each port of the MFC:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +9
-0+ + mfc: codec at 13400000 { + compatible = "samsung,mfc-v5"; + reg = <0x13400000 0x10000>; + interrupts = <0 94 0>; + samsung,power-domain = <&pd_mfc>; + clocks = <&clock 170>, <&clock 273>; + clock-names = "sclk_mfc", "mfc"; + status = "ok";
Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 89
Quoted 13 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +13
-0+ iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l"; + interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";
Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 96
Quoted 7 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";
Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 101
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";
Ditto.
Quoted 16 lines
(quoted diff) +2
-0+ }; +(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4.dtsiindex 597cfcf..6265984 100644arch/arm/boot/dts/exynos4.dtsi +1
-0@@ -251,6 +251,7 @@ clocks = <&clock 170>, <&clock 273>; clock-names = "sclk_mfc", "mfc"; status = "disabled"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; }; serial at 13800000 {@@ -485,5 +486,126 @@ clock-names = "sclk_fimd", "fimd";
arch/arm/boot/dts/exynos4.dtsi line 496
Quoted 10 lines
arch/arm/boot/dts/exynos4.dtsi +8
-0samsung,power-domain = <&pd_lcd0>; status = "disabled"; + iommu = <&sysmmu_fimd0>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 501
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 508
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 513
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 520
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_tv: sysmmu at 12E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 525
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + samsung,power-domain = <&pd_tv>; + status = "ok";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 532
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc0: sysmmu at 11A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc0";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 537
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 2>; + clock-names = "sysmmu"; + clocks = <&clock 263>; + samsung,power-domain = <&pd_cam>; + status = "ok";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 544
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc1: sysmmu at 11A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc1";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 549
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 3>; + clock-names = "sysmmu"; + clocks = <&clock 264>; + samsung,power-domain = <&pd_cam>; + status = "ok";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 556
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc2: sysmmu at 11A40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc2";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 561
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 4>; + clock-names = "sysmmu"; + clocks = <&clock 265>; + samsung,power-domain = <&pd_cam>; + status = "ok";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 568
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc3: sysmmu at 11A50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc3";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 573
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 5>; + clock-names = "sysmmu"; + clocks = <&clock 266>; + samsung,power-domain = <&pd_cam>; + status = "ok";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 580
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_jpeg: sysmmu at 11A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg";
Ditto.
arch/arm/boot/dts/exynos4.dtsi line 585
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 6>; + clock-names = "sysmmu"; + clocks = <&clock 267>; + samsung,power-domain = <&pd_cam>; + status = "ok";
Ditto... and so on in all further sysmmu nodes.
Best regards,
Tomasz
Quoted 495 lines
arch/arm/boot/dts/exynos4.dtsi +24
-0+ }; + + sysmmu_rotator: sysmmu at 12A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 281>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd0: sysmmu at 11E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd0"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 287>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; }; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4210.dtsiindex 057d682..6b0012b 100644arch/arm/boot/dts/exynos4210.dtsi +25
-0@@ -124,6 +124,31 @@ clocks = <&clock 177>, <&clock 277>; clock-names = "sclk_fimg2d", "fimg2d"; status = "disabled"; + iommu = <&sysmmu_g2d>; + }; + + sysmmu_g2d: sysmmu at 12A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + clocks = <&clock 280>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 12220000 { + compatible = "samsung,exynos4210-sysmmu"; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + reg = <0x12220000 0x1000>; + interrupts = <5 3>; + clock-names = "sysmmu"; + clocks = <&clock 291>; + samsung,power-domain = <&pd_lcd1>; + status = "ok"; }; camera {(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4x12.dtsiindex ad531fe..fcfe118 100644arch/arm/boot/dts/exynos4x12.dtsi +82
-0@@ -176,4 +176,86 @@ }; }; }; + + sysmmu_g2d: sysmmu at 10A40000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 12260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <16 2>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 12270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <16 3>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 122A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <16 4>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 122B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <16 5>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 376>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 123B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <16 0>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 123C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <16 1>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + status = "ok"; + }; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos5250.dtsiindex 88589b7..c91c9d3 100644arch/arm/boot/dts/exynos5250.dtsi +290
-0@@ -78,6 +78,16 @@ reg = <0x10044040 0x20>; }; + pd_isp: isp-power-domain at 0x10044020 { + compatible = "samsung,exynos4210-pd"; + reg = <0x10044020 0x20>; + }; + + pd_disp1: disp1-power-domain at 0x100440A0 { + compatible = "samsung,exynos4210-pd"; + reg = <0x100440A0 0x20>; + }; + clock: clock-controller at 10010000 { compatible = "samsung,exynos5250-clock"; reg = <0x10010000 0x30000>;@@ -577,6 +587,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 256>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; }; gsc_1: gsc at 13e10000 {@@ -586,6 +597,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 257>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; }; gsc_2: gsc at 13e20000 {@@ -595,6 +607,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 258>; clock-names = "gscl"; + iommu = <&sysmmu_gsc2>; }; gsc_3: gsc at 13e30000 {@@ -604,6 +617,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 259>; clock-names = "gscl"; + iommu = <&sysmmu_gsc3>; }; hdmi {@@ -620,6 +634,7 @@ compatible = "samsung,exynos5250-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>; + iommu = <&sysmmu_tv>; }; dp-controller {@@ -646,5 +661,280 @@ interrupts = <18 4>, <18 5>, <18 6>; clocks = <&clock 133>, <&clock 339>; clock-names = "sclk_fimd", "fimd"; + iommu = <&sysmmu_fimd1>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_l"; + interrupts = <8 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 267>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_mfc_r: sysmmu at 11200000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_r"; + interrupts = <6 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 268>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_tv: sysmmu at 14650000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14650000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv"; + interrupts = <7 4>; + clock-names = "sysmmu"; + clocks = <&clock 349>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0"; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc1: sysmmu at 13E90000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E90000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc1"; + interrupts = <2 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 263>, <&clock 257>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc2: sysmmu at 13EA0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EA0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc2"; + interrupts = <2 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 264>, <&clock 258>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc3: sysmmu at 13EB0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EB0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc3"; + interrupts = <2 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 265>, <&clock 259>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 14640000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14640000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + interrupts = <3 2>; + clock-names = "sysmmu"; + clocks = <&clock 350>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_rotator: sysmmu at 11D40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11D40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <4 0>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 13260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <10 6>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 13270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <11 6>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 132A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scc: sysmmu at 13280000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13280000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerc"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scp: sysmmu at 13290000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13290000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerp"; + interrupts = <3 6>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 132B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_odc: sysmmu at 132C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_odc"; + interrupts = <11 0>; + clock-names = "sysmmu"; + clocks = <&clock 367>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis0: sysmmu at 132D0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132D0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis0"; + interrupts = <10 4>; + clock-names = "sysmmu"; + clocks = <&clock 368>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis1: sysmmu at 132E0000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132E0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis1"; + interrupts = <9 4>; + clock-names = "sysmmu"; + clocks = <&clock 369>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_3dnr: sysmmu at 132F0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132F0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_3dnr"; + interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 370>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 13C40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <3 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 346>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 13C50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <24 1>; + clock-names = "sysmmu", "master"; + clocks = <&clock 347>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_jpeg: sysmmu at 11F20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11F20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg"; + interrupts = <4 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 273>, <&clock 270>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_2d: sysmmu at 10A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-2d"; + interrupts = <24 5>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + status = "ok"; }; };
Quoted 10 lines · Sylwester Nawrocki
Hi,
On 08/08/2013 11:38 AM, Cho KyongHo wrote:
How about something along the lines of:
"This patch adds dts entries for the SYSMMU devices found on Exynos4 and Exynos5 SoC series and the SYSMMU binding documentation."
instead of this empty changelog ?
Ok. I thought that the title of this patch is self-explanatory. But I agree with you this needs more specific description.
Quoted 11 lines
Quoted 11 lines
Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi | 82 ++++++ arch/arm/boot/dts/exynos5250.dtsi | 290 ++++++++++++++++++++ 5 files changed, 622 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt
Quoted 14 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 5
Quoted 12 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0@@ -0,0 +1,103 @@ +Samsung Exynos4210 IOMMU H/W, System MMU (System Memory Management Unit) + +Samsung's Exynos architecture contains System MMU that enables scattered +physical memory chunks visible as a contiguous region to DMA-capable peripheral +devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth.s/so forth/and more ?
Sorry but I think that it is not a matter.
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 7
Quoted 3 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +2
-0+ +System MMU is a sort of IOMMU and support identical translation table format tos/support/supports ?
Ok.
Quoted 21 lines
Quoted 6 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ARMv7 translation tables with minimum set of page properties including access +permissions, shareability and security protection. In addition, System MMU has +another capabilities like L2 TLB or block-fetch buffers to minimize translation +latency. +Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 22
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+A System MMU is dedicated to a single master peripheral device. Thus, it is +important to specify the correct System MMU in the device node of its master +device. Whereas a System MMU is dedicated to a master device, the master device +may have more than one System MMU. + +Required properties: +- compatible: Should be "samsung,exynos4210-sysmmu" +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller of System MMU +- interrupts: A tuple of numbers that indicates the interrupt source.The interrupt specifier depends on the interrupt controller (interrupt-parent). So it might not always be a "tuple of numbers". It's probably better to say, e.g.:
Quoted 2 lines
- interrupts: Should contain the SYSMMU controller interrupt.
Yes.
You are correct.
The description assumes the interrupt controler is Interrupt Combiner in Exynos SoCs. But actually, the interrupt controller can be GIC or something else. The description needs to be changed.
Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 27
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+- clock-names: Should be "sysmmu" if the System MMU is needed to gate its clock. + Please refer to the following documents: + Documentation/devicetree/bindings/clock/clock-bindings.txt + Documentation/devicetree/bindings/clock/exynos4-clock.txt + Documentation/devicetree/bindings/clock/exynos5250-clock.txtYou could replace "
Documentation/devicetree/bindings/clock" with "../clock"
Ok.
Quoted 12 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 35
Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +8
-0+ Optional "master" if the clock to the System MMU is gated by + another gate clock other than "sysmmu". The System MMU driver + sets "master" the parent of "sysmmu". + Exynos4 SoCs, there needs no "master" clocks. + Exynos5 SoCs, some System MMUs must have "master" clocks. +- clocks: Required if the System MMU is needed to gate its clock. + Please refer to the documents listed above. +- samsung,power-domain: Required if the System MMU is needed to gate its power.Isn't it required always when an SoC support Power Domains and the SYSMMU belongs to a power domain ? Perhaps something like:
Quoted 4 lines
- samsung,power-domain: Required if the System MMU belongs to a Power Domain.
would be more appropriate ?
Acutally, if System MMU and its master H/W is not registered to a generic IO powerdomain, RPM and APM is not applicable to System MMU because of the implementation of System MMU driver relies on dev_pm_ops callbacks of generic IO powerdomain.
I am still searching a better way like introducing bus_type for System MMU. Any advice about it is welcome.
Quoted 18 lines
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ Please refer to the following document: + Documentation/devicetree/bindings/arm/exynos/power_domain.txt + +Required properties for the master peripheral devices: +- iommu: phandles to the System MMUs of the deviceDocumentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 50
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+ +Examples: +A System MMU is dedicated to a single master device. + gsc_0: gsc at 0x13e00000 { + compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl";You could omit all the above properties, perhaps just leaving 'compatible' property, simply replacing them with:
Quoted 7 lines
...since the only relevant property hers is 'iommu' ? Just a suggestion though.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 51
Quoted 1 line
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +1
-0+ iommu = <&sysmmu_gsc1>;
Ok.
Quoted 4 lines
Shouldn't this be:
iommu = <&sysmmu_gsc0>;?
No, you are right. It is my fault :)
Quoted 3 lines
It also probably makes sense to put the SYMMU device node above the master device node.
Ok.
Quoted 21 lines
Quoted 21 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +21
-0+ }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0"; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + +MFC has 2 System MMUs for each port that MFC is attached. Thus it seems natural +to define 2 System MMUs for each port of the MFC: + + mfc: codec at 13400000 { + compatible = "samsung,mfc-v5"; + reg = <0x13400000 0x10000>; + interrupts = <0 94 0>;
Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 78
Quoted 6 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +6
-0+ samsung,power-domain = <&pd_mfc>; + clocks = <&clock 170>, <&clock 273>; + clock-names = "sclk_mfc", "mfc"; + status = "ok"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; + };How about putting this node as last one in this example ?
Ok.
Quoted 45 lines
Quoted 45 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +24
-0+ sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l"; + interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r"; + interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; +arch/arm/boot/dts/exynos4.dtsi +5
-0@@ -251,6 +251,7 @@ clocks = <&clock 170>, <&clock 273>; clock-names = "sclk_mfc", "mfc"; status = "disabled"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; }; serial at 13800000 {@@ -485,5 +486,126 @@ clock-names = "sclk_fimd", "fimd"; samsung,power-domain = <&pd_lcd0>; status = "disabled"; + iommu = <&sysmmu_fimd0>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 {
Quoted 8 lines
arch/arm/boot/dts/exynos4.dtsi line 496
Quoted 4 lines
arch/arm/boot/dts/exynos4.dtsi +4
-0+ compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l";Do you really need 'interrupt-names' property, when there is only one interrupt in each node. Isn't it just a leftover from previous iterations ? I can't see it mentioned in the binding documentation.
interrupt-names are optional for System MMU driver as you know. The driver does not use it currently but interrupt-name can be used for printing shorter name of a Sytsem MMU than dev_name(dev).
Quoted 11 lines
arch/arm/boot/dts/exynos4.dtsi line 502
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +6
-0+ interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + };Thanks,
Sylwester
Thank you for kind and detailed review!
KyongHo.
Quoted 34 lines · Tomasz Figa
Hi KyongHo,
Quoted 31 lines · On Thursday 08 of August 2013 18:38:35 Cho KyongHo wrote:
Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi | 82 ++++++ arch/arm/boot/dts/exynos5250.dtsi | 290 ++++++++++++++++++++ 5 files changed, 622 insertions(+), 0 deletions(-) create mode 100644
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtdiff --git
a/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtb/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtnew file mode 100644
index 0000000..92f0a33
---/dev/null
+++b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt(quoted diff) +1
-0@@ -0,0 +1,103 @@ +Samsung Exynos4210 IOMMU H/W, System MMU (System Memory ManagementUnit) +
+Samsung's Exynos architecture contains System MMU that enables scattered +physical memory chunks visible as a contiguous region to DMA-capable peripheral +devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth.(quoted diff) +2
-0+ +System MMU is a sort of IOMMU and support identical translation tableformat to +ARMv7 translation tables with minimum set of page properties including access +permissions, shareability and security protection. In addition, System MMU has +another capabilities like L2 TLB or
Quoted 9 lines
Quoted 6 lines
block-fetch buffers to minimize translation +latency.
(quoted diff) +2
-0+ +A System MMU is dedicated to a single master peripheral device. Thus,it is +important to specify the correct System MMU in the device node of its master +device. Whereas a System MMU is dedicated to a master device, the master device +may have more than one System MMU.
This paragraph is still not clear. What about something among these lines:
Yes. It is my fault.
It is still unchanged... even though Grant sugessted clear and simple sentence. It must be changed :)
Quoted 6 lines
System MMUs are in many to one relation with peripheral devices, i.e. single peripheral device might have multiple System MMUs (usually one for each bus master), but one System MMU can handle only one peripheral device. The relation between a System MMU and the peripheral device it handles needs to be defined in device node of this peripheral device.
That looks good to me.
Please let me use your sentences.
Quoted 9 lines
Quoted 6 lines
+Required properties:
+- compatible: Should be "samsung,exynos4210-sysmmu" +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller of SystemMMU +- interrupts: A tuple of numbers that indicates the interrupt source.
interrupts: An interrupt specifier for interrupt signal of System MMU, according to format defined for particular interrupt parent.
Yes.. it is not changed..
Quoted 22 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt
Quoted 7 lines
+- clock-names: Should be "sysmmu" if the System MMU is needed to gate its clock. + Please refer to the followingdocuments:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ Documentation/devicetree/bindings/clock/clock-bindings.txt + Documentation/devicetree/bindings/clock/exynos4-clock.txt + Documentation/devicetree/bindings/clock/exynos5250-clock.txt
Review
Quoted 1 line
(quoted diff) +1
-0+ Optional "master" if the clock to the System MMU is gatedby
Review
Quoted 1 line
(quoted diff) +1
-0+ another gate clock other than "sysmmu". The System MMUdriver
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +6
-0+ sets "master" the parent of "sysmmu". + Exynos4 SoCs, there needs no "master" clocks. + Exynos5 SoCs, some System MMUs must have "master" clocks. +- clocks: Required if the System MMU is needed to gate its clock. + Please refer to the documents listed above. +- samsung,power-domain: Required if the System MMU is needed to gateits power. + Please refer to the following document:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ Documentation/devicetree/bindings/arm/exynos/power_domain.txt + +Required properties for the master peripheral devices:
Quoted 9 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 44
Quoted 5 lines
+- iommu: phandles to the System MMUs of the device
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +4
-0+ +Examples: +A System MMU is dedicated to a single master device. + gsc_0: gsc at 0x13e00000 {nit: duplicated space after
gsc_0: and incorrect 0x prefix in node unit- address.
Ok.
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +11
-0+ compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu";
Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 58
Quoted 3 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0";Hmm? interrupt-names property is not defined in your binding documentation and also the value here looks wrong. This should be a generic interrupt signal name that the SysMMU driver can understand, e.g. "sysmmu", without the "-gsc0" suffix.
Oh. I didn't know that. Thank you.
As I replied in your previous mail about v8 patch, I thought it may be useful for printing debugging information.
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 63
Quoted 6 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok";"ok" is not a valid value of status property, "okay" is. Still, I don't think this is a relevant property in this example, so maybe it could be omitted (status is "okay" by default anyway)?
Actually "ok" is valid value.
Please see the description of of_device_is_available(). However, I agree with you that it can be omitted.
Since status property is not an important information in the description, I will remove it from the binding document.
How about dtsi files?
should it be removed from dtsi files as you addressed below?
Quoted 712 lines
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ }; + +MFC has 2 System MMUs for each port that MFC is attached. Thus it seemsnatural +to define 2 System MMUs for each port of the MFC:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 76
Quoted 9 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +9
-0+ + mfc: codec at 13400000 { + compatible = "samsung,mfc-v5"; + reg = <0x13400000 0x10000>; + interrupts = <0 94 0>; + samsung,power-domain = <&pd_mfc>; + clocks = <&clock 170>, <&clock 273>; + clock-names = "sclk_mfc", "mfc"; + status = "ok";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 89
Quoted 13 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +13
-0+ iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l"; + interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 96
Quoted 7 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 101
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
Quoted 16 lines
(quoted diff) +2
-0+ }; +(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4.dtsiindex 597cfcf..6265984 100644arch/arm/boot/dts/exynos4.dtsi +1
-0@@ -251,6 +251,7 @@ clocks = <&clock 170>, <&clock 273>; clock-names = "sclk_mfc", "mfc"; status = "disabled"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; }; serial at 13800000 {@@ -485,5 +486,126 @@ clock-names = "sclk_fimd", "fimd";arch/arm/boot/dts/exynos4.dtsi line 496
Quoted 10 lines
arch/arm/boot/dts/exynos4.dtsi +8
-0samsung,power-domain = <&pd_lcd0>; status = "disabled"; + iommu = <&sysmmu_fimd0>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 501
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 508
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 513
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 520
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_tv: sysmmu at 12E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 525
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + samsung,power-domain = <&pd_tv>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 532
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc0: sysmmu at 11A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc0";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 537
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 2>; + clock-names = "sysmmu"; + clocks = <&clock 263>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 544
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc1: sysmmu at 11A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc1";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 549
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 3>; + clock-names = "sysmmu"; + clocks = <&clock 264>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 556
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc2: sysmmu at 11A40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc2";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 561
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 4>; + clock-names = "sysmmu"; + clocks = <&clock 265>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 568
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc3: sysmmu at 11A50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc3";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 573
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 5>; + clock-names = "sysmmu"; + clocks = <&clock 266>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 580
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_jpeg: sysmmu at 11A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 585
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 6>; + clock-names = "sysmmu"; + clocks = <&clock 267>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto... and so on in all further sysmmu nodes.
Best regards,
TomaszQuoted 495 lines
arch/arm/boot/dts/exynos4.dtsi +24
-0+ }; + + sysmmu_rotator: sysmmu at 12A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 281>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd0: sysmmu at 11E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd0"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 287>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; }; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4210.dtsiindex 057d682..6b0012b 100644arch/arm/boot/dts/exynos4210.dtsi +25
-0@@ -124,6 +124,31 @@ clocks = <&clock 177>, <&clock 277>; clock-names = "sclk_fimg2d", "fimg2d"; status = "disabled"; + iommu = <&sysmmu_g2d>; + }; + + sysmmu_g2d: sysmmu at 12A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + clocks = <&clock 280>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 12220000 { + compatible = "samsung,exynos4210-sysmmu"; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + reg = <0x12220000 0x1000>; + interrupts = <5 3>; + clock-names = "sysmmu"; + clocks = <&clock 291>; + samsung,power-domain = <&pd_lcd1>; + status = "ok"; }; camera {(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4x12.dtsiindex ad531fe..fcfe118 100644arch/arm/boot/dts/exynos4x12.dtsi +82
-0@@ -176,4 +176,86 @@ }; }; }; + + sysmmu_g2d: sysmmu at 10A40000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 12260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <16 2>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 12270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <16 3>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 122A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <16 4>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 122B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <16 5>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 376>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 123B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <16 0>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 123C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <16 1>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + status = "ok"; + }; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos5250.dtsiindex 88589b7..c91c9d3 100644arch/arm/boot/dts/exynos5250.dtsi +290
-0@@ -78,6 +78,16 @@ reg = <0x10044040 0x20>; }; + pd_isp: isp-power-domain at 0x10044020 { + compatible = "samsung,exynos4210-pd"; + reg = <0x10044020 0x20>; + }; + + pd_disp1: disp1-power-domain at 0x100440A0 { + compatible = "samsung,exynos4210-pd"; + reg = <0x100440A0 0x20>; + }; + clock: clock-controller at 10010000 { compatible = "samsung,exynos5250-clock"; reg = <0x10010000 0x30000>;@@ -577,6 +587,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 256>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; }; gsc_1: gsc at 13e10000 {@@ -586,6 +597,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 257>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; }; gsc_2: gsc at 13e20000 {@@ -595,6 +607,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 258>; clock-names = "gscl"; + iommu = <&sysmmu_gsc2>; }; gsc_3: gsc at 13e30000 {@@ -604,6 +617,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 259>; clock-names = "gscl"; + iommu = <&sysmmu_gsc3>; }; hdmi {@@ -620,6 +634,7 @@ compatible = "samsung,exynos5250-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>; + iommu = <&sysmmu_tv>; }; dp-controller {@@ -646,5 +661,280 @@ interrupts = <18 4>, <18 5>, <18 6>; clocks = <&clock 133>, <&clock 339>; clock-names = "sclk_fimd", "fimd"; + iommu = <&sysmmu_fimd1>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_l"; + interrupts = <8 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 267>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_mfc_r: sysmmu at 11200000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_r"; + interrupts = <6 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 268>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_tv: sysmmu at 14650000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14650000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv"; + interrupts = <7 4>; + clock-names = "sysmmu"; + clocks = <&clock 349>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0"; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc1: sysmmu at 13E90000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E90000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc1"; + interrupts = <2 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 263>, <&clock 257>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc2: sysmmu at 13EA0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EA0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc2"; + interrupts = <2 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 264>, <&clock 258>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc3: sysmmu at 13EB0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EB0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc3"; + interrupts = <2 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 265>, <&clock 259>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 14640000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14640000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + interrupts = <3 2>; + clock-names = "sysmmu"; + clocks = <&clock 350>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_rotator: sysmmu at 11D40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11D40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <4 0>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 13260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <10 6>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 13270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <11 6>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 132A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scc: sysmmu at 13280000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13280000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerc"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scp: sysmmu at 13290000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13290000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerp"; + interrupts = <3 6>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 132B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_odc: sysmmu at 132C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_odc"; + interrupts = <11 0>; + clock-names = "sysmmu"; + clocks = <&clock 367>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis0: sysmmu at 132D0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132D0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis0"; + interrupts = <10 4>; + clock-names = "sysmmu"; + clocks = <&clock 368>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis1: sysmmu at 132E0000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132E0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis1"; + interrupts = <9 4>; + clock-names = "sysmmu"; + clocks = <&clock 369>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_3dnr: sysmmu at 132F0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132F0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_3dnr"; + interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 370>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 13C40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <3 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 346>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 13C50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <24 1>; + clock-names = "sysmmu", "master"; + clocks = <&clock 347>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_jpeg: sysmmu at 11F20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11F20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg"; + interrupts = <4 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 273>, <&clock 270>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_2d: sysmmu at 10A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-2d"; + interrupts = <24 5>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + status = "ok"; }; };
Quoted 50 lines · On Friday 09 of August 2013 15:15:57 Cho KyongHo wrote:
Quoted 49 lines · Tomasz Figa
Hi KyongHo,
Quoted 46 lines · On Thursday 08 of August 2013 18:38:35 Cho KyongHo wrote:
Signed-off-by Cho KyongHo <[email protected]>---
.../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi | 82 ++++++ arch/arm/boot/dts/exynos5250.dtsi | 290++++++++++++++++++++ 5 files changed, 622 insertions(+), 0 deletions(-)
create mode 100644
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtdiff --git a/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu. txt b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu. txt
new file mode 100644
index 0000000..92f0a33
---/dev/null
+++
b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu. txt(quoted diff) +1
-0@@ -0,0 +1,103 @@ +Samsung Exynos4210 IOMMU H/W, System MMU (System Memory ManagementUnit) +
+Samsung's Exynos architecture contains System MMU that enables scattered +physical memory chunks visible as a contiguous region to DMA-capable peripheral +devices like MFC, FIMC, FIMD, GScaler, FIMC-IS
and so forth.(quoted diff) +2
-0+ +System MMU is a sort of IOMMU and support identical translationtable
format to +ARMv7 translation tables with minimum set of page properties
including access +permissions, shareability and security protection. In
addition, System MMU has +another capabilities like L2 TLB or block-fetch buffers to minimize translation +latency.
+
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
+A System MMU is dedicated to a single master peripheral device. Thus,
it is +important to specify the correct System MMU in the device node
of its master +device. Whereas a System MMU is dedicated to a master device, the master device +may have more than one System MMU.This paragraph is still not clear. What about something among these
lines:
Quoted 4 lines
Yes. It is my fault.
It is still unchanged... even though Grant sugessted clear and simple sentence. It must be changed :)
Quoted 8 lines
Quoted 6 lines
System MMUs are in many to one relation with peripheral devices, i.e. single peripheral device might have multiple System MMUs (usually one for each bus master), but one System MMU can handle only one peripheral device. The relation between a System MMU and the peripheral device it handles needs to be defined in device node of this peripheral device.
That looks good to me.
Please let me use your sentences.
OK.
Quoted 88 lines
Quoted 10 lines
Quoted 7 lines
+Required properties:
+- compatible: Should be "samsung,exynos4210-sysmmu" +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller ofSystem
MMU +- interrupts: A tuple of numbers that indicates the interrupt source.interrupts: An interrupt specifier for interrupt signal of System MMU, according to format defined for particular interrupt parent.
Yes.. it is not changed..
Quoted 28 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt
Quoted 6 lines
+- clock-names: Should be "sysmmu" if the System MMU is needed to gate its clock. + Please refer to the followingdocuments:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ Documentation/devicetree/bindings/clock/clock-bindings.txt + Documentation/devicetree/bindings/clock/exynos4-clock.txt + Documentation/devicetree/bindings/clock/exynos5250-clock.txt
Review
Quoted 1 line
(quoted diff) +1
-0+ Optional "master" if the clock to the System MMU is gatedby
Review
Quoted 1 line
(quoted diff) +1
-0+ another gate clock other than "sysmmu". The System MMUdriver
Quoted 11 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +6
-0+ sets "master" the parent of "sysmmu". + Exynos4 SoCs, there needs no "master" clocks. + Exynos5 SoCs, some System MMUs must have "master" clocks. +- clocks: Required if the System MMU is needed to gate its clock. + Please refer to the documents listed above. +- samsung,power-domain: Required if the System MMU is needed togate
its power. + Please refer to the following document:Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ Documentation/devicetree/bindings/arm/exynos/power_domain.txt + +Required properties for the master peripheral devices:Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 44
Quoted 5 lines
+- iommu: phandles to the System MMUs of the device
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +4
-0+ +Examples: +A System MMU is dedicated to a single master device. + gsc_0: gsc at 0x13e00000 {nit: duplicated space after
gsc_0: and incorrect 0x prefix in node unit- address.Ok.
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +11
-0+ compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu";Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 58
Quoted 3 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0";Hmm? interrupt-names property is not defined in your binding documentation and also the value here looks wrong. This should be a generic interrupt signal name that the SysMMU driver can understand, e.g. "sysmmu", without the "-gsc0" suffix.
Oh. I didn't know that. Thank you.
As I replied in your previous mail about v8 patch, I thought it may be useful for printing debugging information.Quoted 11 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 63
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok";"ok" is not a valid value of status property, "okay" is. Still, I don't
think this is a relevant property in this example, so maybe it could be
omitted (status is "okay" by default anyway)?
Quoted 2 lines
Actually "ok" is valid value.
Please see the description ofof_device_is_available().
The handling of "ok" looks like a quirk for some broken device trees that somehow got out of the spec. The ePAPR specification[1], chapter 2.3.4 defines a set of values for the "status" property and there is no "ok" there.
By the way, the ePAPR specification[1] is a good thing to read on device tree bindings, so you might want to look at it if you want to get more information on this.
[1] - https://www.power.org/wp-content/uploads/2012/06/Power_ePAPR_APPROVED_v1.1.pdf
Quoted 7 lines
However, I agree with you that it can be omitted.
Since status property is not an important information in the description, I will remove it from the binding document.
How about dtsi files?
should it be removed from dtsi files as you addressed below?
Yes, I think so.
Best regards,
Tomasz
Quoted 759 lines
Quoted 759 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 76
Quoted 13 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ }; + +MFC has 2 System MMUs for each port that MFC is attached. Thus itseems natural +to define 2 System MMUs for each port of the MFC:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +9
-0+ + mfc: codec at 13400000 { + compatible = "samsung,mfc-v5"; + reg = <0x13400000 0x10000>; + interrupts = <0 94 0>; + samsung,power-domain = <&pd_mfc>; + clocks = <&clock 170>, <&clock 273>; + clock-names = "sclk_mfc", "mfc"; + status = "ok";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 89
Quoted 13 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +13
-0+ iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l"; + interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 96
Quoted 7 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 101
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
Quoted 22 lines
(quoted diff) +2
-0+ }; +(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4.dtsiindex 597cfcf..6265984 100644arch/arm/boot/dts/exynos4.dtsi +1
-0@@ -251,6 +251,7 @@ clocks = <&clock 170>, <&clock 273>; clock-names = "sclk_mfc", "mfc"; status = "disabled"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>;arch/arm/boot/dts/exynos4.dtsi +0
-0}; serial at 13800000 {@@ -485,5 +486,126 @@ clock-names = "sclk_fimd", "fimd"; samsung,power-domain = <&pd_lcd0>;arch/arm/boot/dts/exynos4.dtsi line 498
Quoted 10 lines
arch/arm/boot/dts/exynos4.dtsi +8
-0status = "disabled"; + iommu = <&sysmmu_fimd0>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 503
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 510
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 515
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 520
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_tv: sysmmu at 12E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 525
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + samsung,power-domain = <&pd_tv>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 532
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc0: sysmmu at 11A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc0";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 537
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 2>; + clock-names = "sysmmu"; + clocks = <&clock 263>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 544
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc1: sysmmu at 11A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc1";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 549
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 3>; + clock-names = "sysmmu"; + clocks = <&clock 264>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 556
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc2: sysmmu at 11A40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc2";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 561
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 4>; + clock-names = "sysmmu"; + clocks = <&clock 265>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 568
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc3: sysmmu at 11A50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc3";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 573
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 5>; + clock-names = "sysmmu"; + clocks = <&clock 266>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 580
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_jpeg: sysmmu at 11A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 585
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 6>; + clock-names = "sysmmu"; + clocks = <&clock 267>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto... and so on in all further sysmmu nodes.
Best regards,
TomaszQuoted 537 lines
arch/arm/boot/dts/exynos4.dtsi +24
-0+ }; + + sysmmu_rotator: sysmmu at 12A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 281>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd0: sysmmu at 11E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd0"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 287>; + samsung,power-domain = <&pd_lcd0>; + status = "ok";arch/arm/boot/dts/exynos4.dtsi +0
-0}; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4210.dtsiindex 057d682..6b0012b 100644arch/arm/boot/dts/exynos4210.dtsi +25
-0@@ -124,6 +124,31 @@ clocks = <&clock 177>, <&clock 277>; clock-names = "sclk_fimg2d", "fimg2d"; status = "disabled"; + iommu = <&sysmmu_g2d>; + }; + + sysmmu_g2d: sysmmu at 12A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + clocks = <&clock 280>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 12220000 { + compatible = "samsung,exynos4210-sysmmu"; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + reg = <0x12220000 0x1000>; + interrupts = <5 3>; + clock-names = "sysmmu"; + clocks = <&clock 291>; + samsung,power-domain = <&pd_lcd1>; + status = "ok";arch/arm/boot/dts/exynos4210.dtsi +0
-0}; camera {(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4x12.dtsiindex ad531fe..fcfe118 100644arch/arm/boot/dts/exynos4x12.dtsi +82
-0@@ -176,4 +176,86 @@ }; }; }; + + sysmmu_g2d: sysmmu at 10A40000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 12260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <16 2>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 12270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <16 3>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 122A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <16 4>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 122B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <16 5>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 376>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 123B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <16 0>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 123C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <16 1>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + status = "ok"; + }; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos5250.dtsiindex 88589b7..c91c9d3 100644arch/arm/boot/dts/exynos5250.dtsi +10
-0@@ -78,6 +78,16 @@ reg = <0x10044040 0x20>; }; + pd_isp: isp-power-domain at 0x10044020 { + compatible = "samsung,exynos4210-pd"; + reg = <0x10044020 0x20>; + }; + + pd_disp1: disp1-power-domain at 0x100440A0 { + compatible = "samsung,exynos4210-pd"; + reg = <0x100440A0 0x20>; + }; +arch/arm/boot/dts/exynos5250.dtsi +1
-0clock: clock-controller at 10010000 { compatible = "samsung,exynos5250-clock"; reg = <0x10010000 0x30000>;@@ -577,6 +587,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 256>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; gsc_1: gsc at 13e10000 {@@ -586,6 +597,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 257>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; gsc_2: gsc at 13e20000 {@@ -595,6 +607,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 258>; clock-names = "gscl"; + iommu = <&sysmmu_gsc2>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; gsc_3: gsc at 13e30000 {@@ -604,6 +617,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 259>; clock-names = "gscl"; + iommu = <&sysmmu_gsc3>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; hdmi {@@ -620,6 +634,7 @@ compatible = "samsung,exynos5250-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>; + iommu = <&sysmmu_tv>;arch/arm/boot/dts/exynos5250.dtsi +275
-0}; dp-controller {@@ -646,5 +661,280 @@ interrupts = <18 4>, <18 5>, <18 6>; clocks = <&clock 133>, <&clock 339>; clock-names = "sclk_fimd", "fimd"; + iommu = <&sysmmu_fimd1>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_l"; + interrupts = <8 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 267>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_mfc_r: sysmmu at 11200000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_r"; + interrupts = <6 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 268>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_tv: sysmmu at 14650000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14650000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv"; + interrupts = <7 4>; + clock-names = "sysmmu"; + clocks = <&clock 349>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0"; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc1: sysmmu at 13E90000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E90000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc1"; + interrupts = <2 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 263>, <&clock 257>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc2: sysmmu at 13EA0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EA0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc2"; + interrupts = <2 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 264>, <&clock 258>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc3: sysmmu at 13EB0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EB0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc3"; + interrupts = <2 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 265>, <&clock 259>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 14640000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14640000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + interrupts = <3 2>; + clock-names = "sysmmu"; + clocks = <&clock 350>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_rotator: sysmmu at 11D40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11D40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <4 0>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 13260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <10 6>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 13270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <11 6>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 132A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scc: sysmmu at 13280000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13280000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerc"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scp: sysmmu at 13290000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13290000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerp"; + interrupts = <3 6>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 132B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_odc: sysmmu at 132C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_odc"; + interrupts = <11 0>; + clock-names = "sysmmu"; + clocks = <&clock 367>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis0: sysmmu at 132D0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132D0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis0"; + interrupts = <10 4>; + clock-names = "sysmmu"; + clocks = <&clock 368>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis1: sysmmu at 132E0000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132E0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis1"; + interrupts = <9 4>; + clock-names = "sysmmu"; + clocks = <&clock 369>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_3dnr: sysmmu at 132F0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132F0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_3dnr"; + interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 370>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 13C40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <3 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 346>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 13C50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <24 1>; + clock-names = "sysmmu", "master"; + clocks = <&clock 347>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_jpeg: sysmmu at 11F20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11F20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg"; + interrupts = <4 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 273>, <&clock 270>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_2d: sysmmu at 10A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-2d"; + interrupts = <24 5>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + status = "ok";};
};
Quoted 171 lines · Tomasz Figa
Quoted 50 lines · On Friday 09 of August 2013 15:15:57 Cho KyongHo wrote:
Quoted 49 lines · Tomasz Figa
Hi KyongHo,
Quoted 46 lines · On Thursday 08 of August 2013 18:38:35 Cho KyongHo wrote:
Signed-off-by Cho KyongHo <[email protected]>---
.../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++++++ arch/arm/boot/dts/exynos4.dtsi | 122 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi | 82 ++++++ arch/arm/boot/dts/exynos5250.dtsi | 290++++++++++++++++++++ 5 files changed, 622 insertions(+), 0 deletions(-)
create mode 100644
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtdiff --git a/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu. txt b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu. txt
new file mode 100644
index 0000000..92f0a33
---/dev/null
+++
b/Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu. txt(quoted diff) +1
-0@@ -0,0 +1,103 @@ +Samsung Exynos4210 IOMMU H/W, System MMU (System Memory ManagementUnit) +
+Samsung's Exynos architecture contains System MMU that enables scattered +physical memory chunks visible as a contiguous region to DMA-capable peripheral +devices like MFC, FIMC, FIMD, GScaler, FIMC-IS
and so forth.(quoted diff) +2
-0+ +System MMU is a sort of IOMMU and support identical translationtable
format to +ARMv7 translation tables with minimum set of page properties
including access +permissions, shareability and security protection. In
addition, System MMU has +another capabilities like L2 TLB or block-fetch buffers to minimize translation +latency.
+Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
+A System MMU is dedicated to a single master peripheral device. Thus,
it is +important to specify the correct System MMU in the device node
of its master +device. Whereas a System MMU is dedicated to a master device, the master device +may have more than one System MMU.This paragraph is still not clear. What about something among these
lines:
Quoted 4 lines
Yes. It is my fault.
It is still unchanged... even though Grant sugessted clear and simple sentence. It must be changed :)Quoted 8 lines
Quoted 6 lines
System MMUs are in many to one relation with peripheral devices, i.e. single peripheral device might have multiple System MMUs (usually one for each bus master), but one System MMU can handle only one peripheral device. The relation between a System MMU and the peripheral device it handles needs to be defined in device node of this peripheral device.
That looks good to me.
Please let me use your sentences.OK.
Quoted 88 lines
Quoted 10 lines
Quoted 7 lines
+Required properties:
+- compatible: Should be "samsung,exynos4210-sysmmu" +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller ofSystem
MMU +- interrupts: A tuple of numbers that indicates the interrupt source.interrupts: An interrupt specifier for interrupt signal of System MMU, according to format defined for particular interrupt parent.
Yes.. it is not changed..
Quoted 28 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt
Quoted 6 lines
+- clock-names: Should be "sysmmu" if the System MMU is needed to gate its clock. + Please refer to the followingdocuments:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ Documentation/devicetree/bindings/clock/clock-bindings.txt + Documentation/devicetree/bindings/clock/exynos4-clock.txt + Documentation/devicetree/bindings/clock/exynos5250-clock.txt
Review
Quoted 1 line
(quoted diff) +1
-0+ Optional "master" if the clock to the System MMU is gatedby
Review
Quoted 1 line
(quoted diff) +1
-0+ another gate clock other than "sysmmu". The System MMUdriver
Quoted 11 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +6
-0+ sets "master" the parent of "sysmmu". + Exynos4 SoCs, there needs no "master" clocks. + Exynos5 SoCs, some System MMUs must have "master" clocks. +- clocks: Required if the System MMU is needed to gate its clock. + Please refer to the documents listed above. +- samsung,power-domain: Required if the System MMU is needed togate
its power. + Please refer to the following document:Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ Documentation/devicetree/bindings/arm/exynos/power_domain.txt + +Required properties for the master peripheral devices:Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 44
Quoted 5 lines
+- iommu: phandles to the System MMUs of the device
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +4
-0+ +Examples: +A System MMU is dedicated to a single master device. + gsc_0: gsc at 0x13e00000 {nit: duplicated space after
gsc_0: and incorrect 0x prefix in node unit- address.Ok.
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +11
-0+ compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl"; + iommu = <&sysmmu_gsc1>; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu";Quoted 8 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 58
Quoted 3 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0";Hmm? interrupt-names property is not defined in your binding documentation and also the value here looks wrong. This should be a generic interrupt signal name that the SysMMU driver can understand, e.g. "sysmmu", without the "-gsc0" suffix.
Oh. I didn't know that. Thank you.
As I replied in your previous mail about v8 patch, I thought it may be useful for printing debugging information.Quoted 11 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 63
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok";"ok" is not a valid value of status property, "okay" is. Still, I don't
think this is a relevant property in this example, so maybe it could be
omitted (status is "okay" by default anyway)?Quoted 2 lines
Actually "ok" is valid value.
Please see the description ofof_device_is_available().The handling of "ok" looks like a quirk for some broken device trees that somehow got out of the spec. The ePAPR specification[1], chapter 2.3.4 defines a set of values for the "status" property and there is no "ok" there.
Quoted 6 lines
By the way, the ePAPR specification[1] is a good thing to read on device tree bindings, so you might want to look at it if you want to get more information on this.
[1] - https://www.power.org/wp-content/uploads/2012/06/Power_ePAPR_APPROVED_v1.1.pdf
Ok.
Thanks.
Quoted 10 lines
Quoted 7 lines
However, I agree with you that it can be omitted.
Since status property is not an important information in the description, I will remove it from the binding document.
How about dtsi files?
should it be removed from dtsi files as you addressed below?Yes, I think so.
Ok. Removing 'status' is not a matter, actually.
Quoted 762 lines
Best regards,
TomaszQuoted 759 lines
Quoted 759 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 76
Quoted 13 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +3
-0+ }; + +MFC has 2 System MMUs for each port that MFC is attached. Thus itseems natural +to define 2 System MMUs for each port of the MFC:
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +9
-0+ + mfc: codec at 13400000 { + compatible = "samsung,mfc-v5"; + reg = <0x13400000 0x10000>; + interrupts = <0 94 0>; + samsung,power-domain = <&pd_mfc>; + clocks = <&clock 170>, <&clock 273>; + clock-names = "sclk_mfc", "mfc"; + status = "ok";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 89
Quoted 13 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +13
-0+ iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l"; + interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 96
Quoted 7 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";Ditto.
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 101
Quoted 5 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
Quoted 22 lines
(quoted diff) +2
-0+ }; +(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4.dtsiindex 597cfcf..6265984 100644arch/arm/boot/dts/exynos4.dtsi +1
-0@@ -251,6 +251,7 @@ clocks = <&clock 170>, <&clock 273>; clock-names = "sclk_mfc", "mfc"; status = "disabled"; + iommu = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>;arch/arm/boot/dts/exynos4.dtsi +0
-0}; serial at 13800000 {@@ -485,5 +486,126 @@ clock-names = "sclk_fimd", "fimd"; samsung,power-domain = <&pd_lcd0>;arch/arm/boot/dts/exynos4.dtsi line 498
Quoted 10 lines
arch/arm/boot/dts/exynos4.dtsi +8
-0status = "disabled"; + iommu = <&sysmmu_fimd0>; + }; + + sysmmu_mfc_l: sysmmu at 13620000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13620000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-l";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 503
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 5>; + clock-names = "sysmmu"; + clocks = <&clock 274>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 510
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_mfc_r: sysmmu at 13630000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13630000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc-r";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 515
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 275>; + samsung,power-domain = <&pd_mfc>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 520
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_tv: sysmmu at 12E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 525
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + samsung,power-domain = <&pd_tv>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 532
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc0: sysmmu at 11A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc0";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 537
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 2>; + clock-names = "sysmmu"; + clocks = <&clock 263>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 544
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc1: sysmmu at 11A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc1";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 549
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 3>; + clock-names = "sysmmu"; + clocks = <&clock 264>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 556
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc2: sysmmu at 11A40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc2";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 561
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 4>; + clock-names = "sysmmu"; + clocks = <&clock 265>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 568
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_fimc3: sysmmu at 11A50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc3";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 573
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 5>; + clock-names = "sysmmu"; + clocks = <&clock 266>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 580
Quoted 7 lines
arch/arm/boot/dts/exynos4.dtsi +7
-0+ }; + + sysmmu_jpeg: sysmmu at 11A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg";Ditto.
arch/arm/boot/dts/exynos4.dtsi line 585
Quoted 5 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ interrupts = <4 6>; + clock-names = "sysmmu"; + clocks = <&clock 267>; + samsung,power-domain = <&pd_cam>; + status = "ok";Ditto... and so on in all further sysmmu nodes.
Best regards,
TomaszQuoted 537 lines
arch/arm/boot/dts/exynos4.dtsi +24
-0+ }; + + sysmmu_rotator: sysmmu at 12A30000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A30000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 281>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd0: sysmmu at 11E20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11E20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd0"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 287>; + samsung,power-domain = <&pd_lcd0>; + status = "ok";arch/arm/boot/dts/exynos4.dtsi +0
-0}; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4210.dtsiindex 057d682..6b0012b 100644arch/arm/boot/dts/exynos4210.dtsi +25
-0@@ -124,6 +124,31 @@ clocks = <&clock 177>, <&clock 277>; clock-names = "sclk_fimg2d", "fimg2d"; status = "disabled"; + iommu = <&sysmmu_g2d>; + }; + + sysmmu_g2d: sysmmu at 12A20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + clocks = <&clock 280>; + samsung,power-domain = <&pd_lcd0>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 12220000 { + compatible = "samsung,exynos4210-sysmmu"; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + reg = <0x12220000 0x1000>; + interrupts = <5 3>; + clock-names = "sysmmu"; + clocks = <&clock 291>; + samsung,power-domain = <&pd_lcd1>; + status = "ok";arch/arm/boot/dts/exynos4210.dtsi +0
-0}; camera {(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos4x12.dtsiindex ad531fe..fcfe118 100644arch/arm/boot/dts/exynos4x12.dtsi +82
-0@@ -176,4 +176,86 @@ }; }; }; + + sysmmu_g2d: sysmmu at 10A40000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-g2d"; + interrupts = <4 7>; + clock-names = "sysmmu"; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 12260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <16 2>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 12270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x12270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <16 3>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 122A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <16 4>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 122B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x122B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <16 5>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 376>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 123B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <16 0>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 123C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x123C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <16 1>; + samsung,power-domain = <&pd_isp>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + status = "ok"; + }; };(quoted diff) +0
-0
b/arch/arm/boot/dts/exynos5250.dtsiindex 88589b7..c91c9d3 100644arch/arm/boot/dts/exynos5250.dtsi +10
-0@@ -78,6 +78,16 @@ reg = <0x10044040 0x20>; }; + pd_isp: isp-power-domain at 0x10044020 { + compatible = "samsung,exynos4210-pd"; + reg = <0x10044020 0x20>; + }; + + pd_disp1: disp1-power-domain at 0x100440A0 { + compatible = "samsung,exynos4210-pd"; + reg = <0x100440A0 0x20>; + }; +arch/arm/boot/dts/exynos5250.dtsi +1
-0clock: clock-controller at 10010000 { compatible = "samsung,exynos5250-clock"; reg = <0x10010000 0x30000>;@@ -577,6 +587,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 256>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; gsc_1: gsc at 13e10000 {@@ -586,6 +597,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 257>; clock-names = "gscl"; + iommu = <&sysmmu_gsc1>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; gsc_2: gsc at 13e20000 {@@ -595,6 +607,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 258>; clock-names = "gscl"; + iommu = <&sysmmu_gsc2>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; gsc_3: gsc at 13e30000 {@@ -604,6 +617,7 @@ samsung,power-domain = <&pd_gsc>; clocks = <&clock 259>; clock-names = "gscl"; + iommu = <&sysmmu_gsc3>;arch/arm/boot/dts/exynos5250.dtsi +1
-0}; hdmi {@@ -620,6 +634,7 @@ compatible = "samsung,exynos5250-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>; + iommu = <&sysmmu_tv>;arch/arm/boot/dts/exynos5250.dtsi +275
-0}; dp-controller {@@ -646,5 +661,280 @@ interrupts = <18 4>, <18 5>, <18 6>; clocks = <&clock 133>, <&clock 339>; clock-names = "sclk_fimd", "fimd"; + iommu = <&sysmmu_fimd1>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_l"; + interrupts = <8 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 267>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_mfc_r: sysmmu at 11200000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-mfc_r"; + interrupts = <6 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 268>, <&clock 266>; + samsung,power-domain = <&pd_mfc>; + status = "ok"; + }; + + sysmmu_tv: sysmmu at 14650000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14650000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-tv"; + interrupts = <7 4>; + clock-names = "sysmmu"; + clocks = <&clock 349>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc0"; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc1: sysmmu at 13E90000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E90000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc1"; + interrupts = <2 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 263>, <&clock 257>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc2: sysmmu at 13EA0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EA0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc2"; + interrupts = <2 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 264>, <&clock 258>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_gsc3: sysmmu at 13EB0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13EB0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-gsc3"; + interrupts = <2 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 265>, <&clock 259>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimd1: sysmmu at 14640000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x14640000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimd1"; + interrupts = <3 2>; + clock-names = "sysmmu"; + clocks = <&clock 350>; + samsung,power-domain = <&pd_disp1>; + status = "ok"; + }; + + sysmmu_rotator: sysmmu at 11D40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11D40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-rotator"; + interrupts = <4 0>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + status = "ok"; + }; + + sysmmu_fimc_isp: sysmmu at 13260000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13260000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_isp"; + interrupts = <10 6>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_drc: sysmmu at 13270000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13270000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_drc"; + interrupts = <11 6>; + clock-names = "sysmmu"; + clocks = <&clock 362>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_fd: sysmmu at 132A0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132A0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_fd"; + interrupts = <5 0>; + clock-names = "sysmmu"; + clocks = <&clock 363>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scc: sysmmu at 13280000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13280000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerc"; + interrupts = <5 2>; + clock-names = "sysmmu"; + clocks = <&clock 364>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_scp: sysmmu at 13290000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13290000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_scalerp"; + interrupts = <3 6>; + clock-names = "sysmmu"; + clocks = <&clock 365>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_mcuctl: sysmmu at 132B0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132B0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_mcuctl"; + interrupts = <5 4>; + clock-names = "sysmmu"; + clocks = <&clock 366>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_odc: sysmmu at 132C0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_odc"; + interrupts = <11 0>; + clock-names = "sysmmu"; + clocks = <&clock 367>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis0: sysmmu at 132D0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132D0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis0"; + interrupts = <10 4>; + clock-names = "sysmmu"; + clocks = <&clock 368>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_dis1: sysmmu at 132E0000{ + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132E0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_dis1"; + interrupts = <9 4>; + clock-names = "sysmmu"; + clocks = <&clock 369>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_3dnr: sysmmu at 132F0000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x132F0000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_3dnr"; + interrupts = <5 6>; + clock-names = "sysmmu"; + clocks = <&clock 370>; + samsung,power-domain = <&pd_isp>; + status = "ok"; + }; + + sysmmu_fimc_lite0: sysmmu at 13C40000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C40000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite0"; + interrupts = <3 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 346>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_lite1: sysmmu at 13C50000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13C50000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-fimc_lite1"; + interrupts = <24 1>; + clock-names = "sysmmu", "master"; + clocks = <&clock 347>, <&clock 345>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_jpeg: sysmmu at 11F20000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x11F20000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-jpeg"; + interrupts = <4 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 273>, <&clock 270>; + samsung,power-domain = <&pd_gsc>; + status = "ok"; + }; + + sysmmu_fimc_2d: sysmmu at 10A60000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupt-names = "sysmmu-2d"; + interrupts = <24 5>; + clock-names = "sysmmu"; + clocks = <&clock 361>; + status = "ok";};
};