ARM: dts: Add description of System MMU of Exynos SoCs
Subsystems (3)
PATCH v11 12/27 ARM: dts: Add description of System MMU of Exynos SoCs
This patch adds dts entries for the System MMU devices found on Exynos4 and Exynos5 SoC series and the System MMU binding documentation.
--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 86 +++++++ arch/arm/boot/dts/exynos4.dtsi | 107 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 23 +- arch/arm/boot/dts/exynos4x12.dtsi | 77 +++++- arch/arm/boot/dts/exynos5250.dtsi | 266 +++++++++++++++++++- arch/arm/boot/dts/exynos5420.dtsi | 205 ++++++++++++++- 6 files changed, 758 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +86 -0
@@ -0,0 +1,86 @@ +Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit) + +Samsung's Exynos architecture contains System MMUs 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. + +System MMU is an IOMMU and supports identical translation table 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. + +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 transactions from only one peripheral +device. The relation between a System MMU and the peripheral device needs to be +defined in device node of the peripheral device. + +MFC in all Exynos SoCs and FIMD, M2M Scalers and G2D in Exynos5420 has 2 System +MMUs. +* MFC has one System MMU on its left and right bus. +* FIMD in Exynos5420 has one System MMU for window 0 and 4, the other system MMU + for window 1, 2 and 3. +* M2M Scalers and G2D in Exynos5420 has one System MMU on the read channel and + the other System MMU on the write channel. +The drivers must consider how to handle those System MMUs. One of the idea is +to implement child devices or sub-devices which are the client devices of the +System MMU. + +Required properties: +- compatible: Should be one of: + "samsung,sysmmu-v1" + "samsung,sysmmu-v2" + "samsung,sysmmu-v3.1" + "samsung,sysmmu-v3.2" + "samsung,sysmmu-v3.3" + +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller of System MMU +- interrupts: An interrupt specifier for interrupt signal of System MMU, + according to the format defined by a particular interrupt + controller. +- 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 + Documentation/devicetree/bindings/clock/exynos5420-clock.txt + 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" clockj. + 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. + Please refer to the following document: + Documentation/devicetree/bindings/arm/exynos/power_domain.txt +- mmu-masters: A phandle to device nodes representing the master for which + the System MMU can provide a translation. Any additional values + after the phandle will be ignored because a System MMU never + have two or more masters. "#stream-id-cells" specified in the + master's node will be also ignored. + If more than one phandle is specified, only the first phandle + will be treated. + +Examples: + gsc_0: gsc at 13e00000 { + compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl"; + }; + + sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + mmu-masters = <&gsc_0>; + };
arch/arm/boot/dts/exynos4.dtsi +107 -0
111 lines not on this page · raw message
arch/arm/boot/dts/exynos4210.dtsi +22 -1
@@ -114,7 +114,7 @@ status = "disabled"; }; - g2d at 12800000 { + g2d: g2d at 12800000 { compatible = "samsung,s5pv210-g2d"; reg = <0x12800000 0x1000>; interrupts = <0 89 0>;
@@ -152,4 +152,25 @@ samsung,lcd-wb; }; }; + + sysmmu_g2d: sysmmu at 12A20000 { + compatible = "samsung,sysmmu-v1"; + reg = <0x12A20000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <4 7>; + clock-names = "sysmmu"; + clocks = <&clock 280>; + samsung,power-domain = <&pd_lcd0>; + mmu-masters = <&g2d>; + }; + + sysmmu_fimd1: sysmmu at 12220000 { + compatible = "samsung,sysmmu-v1"; + interrupt-parent = <&combiner>; + reg = <0x12220000 0x1000>; + interrupts = <5 3>; + clock-names = "sysmmu"; + clocks = <&clock 291>; + samsung,power-domain = <&pd_lcd1>; + }; };
arch/arm/boot/dts/exynos4x12.dtsi +76 -1
87 lines not on this page · raw message
arch/arm/boot/dts/exynos5250.dtsi +264 -2
288 lines not on this page · raw message
arch/arm/boot/dts/exynos5420.dtsi +203 -2
221 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Hi KyongHo,
Quoted 99 lines · Cho KyongHo
This patch adds dts entries for the System MMU devices found on Exynos4 and Exynos5 SoC series and the System MMU binding documentation.
CC Rob Herring <[email protected]>CC Sylwester Nawrocki <[email protected]>Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 86 +++++++ arch/arm/boot/dts/exynos4.dtsi | 107 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 23 +- arch/arm/boot/dts/exynos4x12.dtsi | 77 +++++- arch/arm/boot/dts/exynos5250.dtsi | 266 +++++++++++++++++++- arch/arm/boot/dts/exynos5420.dtsi | 205 ++++++++++++++- 6 files changed, 758 insertions(+), 6 deletions(-)create mode 100644
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtDocumentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +76
-0@@ -0,0 +1,86 @@ +Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit) + +Samsung's Exynos architecture contains System MMUs 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. + +System MMU is an IOMMU and supports identical translation table 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. + +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 transactions from only one peripheral +device. The relation between a System MMU and the peripheral device needs to be +defined in device node of the peripheral device. + +MFC in all Exynos SoCs and FIMD, M2M Scalers and G2D in Exynos5420 has 2 System +MMUs. +* MFC has one System MMU on its left and right bus. +* FIMD in Exynos5420 has one System MMU for window 0 and 4, the other system MMU + for window 1, 2 and 3. +* M2M Scalers and G2D in Exynos5420 has one System MMU on the read channel and + the other System MMU on the write channel. +The drivers must consider how to handle those System MMUs. One of the idea is +to implement child devices or sub-devices which are the client devices of the +System MMU. + +Required properties: +- compatible: Should be one of: + "samsung,sysmmu-v1" + "samsung,sysmmu-v2" + "samsung,sysmmu-v3.1" + "samsung,sysmmu-v3.2" + "samsung,sysmmu-v3.3" + +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller of System MMU +- interrupts: An interrupt specifier for interrupt signal of System MMU, + according to the format defined by a particular interrupt + controller. +- 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 + Documentation/devicetree/bindings/clock/exynos5420-clock.txt + 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" clockj. + 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. + Please refer to the following document: + Documentation/devicetree/bindings/arm/exynos/power_domain.txt +- mmu-masters: A phandle to device nodes representing the master for which + the System MMU can provide a translation. Any additional values + after the phandle will be ignored because a System MMU never + have two or more masters. "#stream-id-cells" specified in the + master's node will be also ignored. + If more than one phandle is specified, only the first phandle + will be treated. + +Examples: + gsc_0: gsc at 13e00000 { + compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl"; + }; +
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 86
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+ sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + mmu-masters = <&gsc_0>; + };
Binding documentation should be added in separate patch in front of the series relying on such binding or with the patch adding binding implementation to the driver, so DT maintainers can review the binding and related code easily.
Changes to dts(i) files should be posted in a separate patch, preferably at the end of the series, when any prerequisites are already available.
Best regards,
Tomasz
Quoted 118 lines · Tomasz Figa
Hi KyongHo,
Quoted 99 lines · Cho KyongHo
This patch adds dts entries for the System MMU devices found on Exynos4 and Exynos5 SoC series and the System MMU binding documentation.
CC Rob Herring <[email protected]>CC Sylwester Nawrocki <[email protected]>Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 86 +++++++ arch/arm/boot/dts/exynos4.dtsi | 107 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 23 +- arch/arm/boot/dts/exynos4x12.dtsi | 77 +++++- arch/arm/boot/dts/exynos5250.dtsi | 266 +++++++++++++++++++- arch/arm/boot/dts/exynos5420.dtsi | 205 ++++++++++++++- 6 files changed, 758 insertions(+), 6 deletions(-)create mode 100644
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtDocumentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +76
-0@@ -0,0 +1,86 @@ +Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit) + +Samsung's Exynos architecture contains System MMUs 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. + +System MMU is an IOMMU and supports identical translation table 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. + +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 transactions from only one peripheral +device. The relation between a System MMU and the peripheral device needs to be +defined in device node of the peripheral device. + +MFC in all Exynos SoCs and FIMD, M2M Scalers and G2D in Exynos5420 has 2 System +MMUs. +* MFC has one System MMU on its left and right bus. +* FIMD in Exynos5420 has one System MMU for window 0 and 4, the other system MMU + for window 1, 2 and 3. +* M2M Scalers and G2D in Exynos5420 has one System MMU on the read channel and + the other System MMU on the write channel. +The drivers must consider how to handle those System MMUs. One of the idea is +to implement child devices or sub-devices which are the client devices of the +System MMU. + +Required properties: +- compatible: Should be one of: + "samsung,sysmmu-v1" + "samsung,sysmmu-v2" + "samsung,sysmmu-v3.1" + "samsung,sysmmu-v3.2" + "samsung,sysmmu-v3.3" + +- reg: A tuple of base address and size of System MMU registers. +- interrupt-parent: The phandle of the interrupt controller of System MMU +- interrupts: An interrupt specifier for interrupt signal of System MMU, + according to the format defined by a particular interrupt + controller. +- 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 + Documentation/devicetree/bindings/clock/exynos5420-clock.txt + 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" clockj. + 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. + Please refer to the following document: + Documentation/devicetree/bindings/arm/exynos/power_domain.txt +- mmu-masters: A phandle to device nodes representing the master for which + the System MMU can provide a translation. Any additional values + after the phandle will be ignored because a System MMU never + have two or more masters. "#stream-id-cells" specified in the + master's node will be also ignored. + If more than one phandle is specified, only the first phandle + will be treated. + +Examples: + gsc_0: gsc at 13e00000 { + compatible = "samsung,exynos5-gsc"; + reg = <0x13e00000 0x1000>; + interrupts = <0 85 0>; + samsung,power-domain = <&pd_gsc>; + clocks = <&clock 256>; + clock-names = "gscl"; + }; +Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt line 86
Quoted 10 lines
Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +10
-0+ sysmmu_gsc0: sysmmu at 13E80000 { + compatible = "samsung,exynos4210-sysmmu"; + reg = <0x13E80000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <2 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 262>, <&clock 256>; + samsung,power-domain = <&pd_gsc>; + mmu-masters = <&gsc_0>; + };Binding documentation should be added in separate patch in front of the series relying on such binding or with the patch adding binding implementation to the driver, so DT maintainers can review the binding and related code easily.
Quoted 3 lines
Changes to dts(i) files should be posted in a separate patch, preferably at the end of the series, when any prerequisites are already available.
Thank you for the advice.
Should the patches related to the change in DT be shown in the following order? "documentation -> source code change -> DT description"
KyongHo
Hi KyongHo Cho,
Please find the comments inline.
Quoted 29 lines · Cho KyongHo
This patch adds dts entries for the System MMU devices found on Exynos4 and Exynos5 SoC series and the System MMU binding documentation.
CC Rob Herring <[email protected]>CC Sylwester Nawrocki <[email protected]>Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 86 +++++++ arch/arm/boot/dts/exynos4.dtsi | 107 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 23 +- arch/arm/boot/dts/exynos4x12.dtsi | 77 +++++- arch/arm/boot/dts/exynos5250.dtsi | 266 +++++++++++++++++++- arch/arm/boot/dts/exynos5420.dtsi | 205 ++++++++++++++- 6 files changed, 758 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtDocumentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +6
-0@@ -0,0 +1,86 @@ +Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit) + +Samsung's Exynos architecture contains System MMUs 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. +
[snip]
Quoted 50 lines
arch/arm/boot/dts/exynos5250.dtsi +19
-2@@ -80,6 +80,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>;@@ -679,7 +689,7 @@ "sclk_hdmiphy", "mout_hdmi"; }; - mixer { + mixer: mixer { compatible = "samsung,exynos5250-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>;@@ -700,7 +710,7 @@ phy-names = "dp"; }; - fimd at 14400000 { + fimd: fimd at 14400000 { clocks = <&clock 133>, <&clock 339>; clock-names = "sclk_fimd", "fimd"; };@@ -715,4 +725,256 @@ io-channel-ranges; status = "disabled"; }; + + sysmmu_g2d: sysmmu at 10A60000 { + compatible = "samsung,sysmmu-v1"; + reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <24 5>; + clock-names = "sysmmu";
arch/arm/boot/dts/exynos5250.dtsi line 744
Quoted 10 lines
arch/arm/boot/dts/exynos5250.dtsi +10
-0+ clocks = <&clock 361>; + }; + + sysmmu_mfc_r: sysmmu at 11200000 { + compatible = "samsung,sysmmu-v2"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <6 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 268>, <&clock 266>;
Add mmu-masters...
mmu-masters = <&mfc>;
arch/arm/boot/dts/exynos5250.dtsi line 754
Quoted 10 lines
arch/arm/boot/dts/exynos5250.dtsi +10
-0+ samsung,power-domain = <&pd_mfc>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 { + compatible = "samsung,sysmmu-v2"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <8 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 267>, <&clock 266>;
Add mmu-masters...
mmu-masters = <&mfc>;
Quoted 12 lines
arch/arm/boot/dts/exynos5250.dtsi +12
-0+ samsung,power-domain = <&pd_mfc>; + }; + + sysmmu_rotator: sysmmu at 11D40000 { + compatible = "samsung,sysmmu-v1"; + reg = <0x11D40000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <4 0>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + }; +
[snip]
Quoted 30 lines
};
arch/arm/boot/dts/exynos5420.dtsi +5
-2@@ -470,7 +470,7 @@ phy-names = "dp"; }; - fimd at 14400000 { + fimd: fimd at 14400000 { samsung,power-domain = <&disp_pd>; clocks = <&clock 147>, <&clock 421>; clock-names = "sclk_fimd", "fimd";@@ -641,7 +641,7 @@ status = "disabled"; }; - mixer at 14450000 { + mixer: mixer at 14450000 { compatible = "samsung,exynos5420-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>;@@ -720,4 +720,205 @@ clock-names = "watchdog"; samsung,syscon-phandle = <&pmu_system_controller>; }; + + sysmmu_g2dr: sysmmu at 10A60000 { + compatible = "samsung,sysmmu-v3.2";
arch/arm/boot/dts/exynos5420.dtsi line 735
Quoted 10 lines
arch/arm/boot/dts/exynos5420.dtsi +10
-0+ reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <24 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 482>, <&clock 481>; + }; + + sysmmu_g2dw: sysmmu at 10A70000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x10A60000 0x1000>;
Duplicate sysmmu reg base address.
reg = <0x10A70000 0x1000>;
Quoted 49 lines
arch/arm/boot/dts/exynos5420.dtsi +49
-0+ interrupt-parent = <&combiner>; + interrupts = <22 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 482>, <&clock 481>; + }; + + sysmmu_scaler0r: sysmmu at 12880000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x12880000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <22 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 384>, <&clock 381>; + }; + + sysmmu_scaler1r: sysmmu at 12890000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x12890000 0x1000>; + interrupts = <0 186 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 385>, <&clock 382>; + }; + + sysmmu_scaler2r: sysmmu at 128A0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128A0000 0x1000>; + interrupts = <0 188 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 386>, <&clock 383>; + }; + + sysmmu_scaler0w: sysmmu at 128C0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <27 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 384>, <&clock 381>; + }; + + sysmmu_scaler1w: sysmmu at 128D0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128D0000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <22 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 385>, <&clock 382>; + }; +
arch/arm/boot/dts/exynos5420.dtsi line 794
Quoted 10 lines
arch/arm/boot/dts/exynos5420.dtsi +10
-0+ sysmmu_scaler2w: sysmmu at 128E0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128E0000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <19 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 386>, <&clock 383>; + }; + + sysmmu_mfc_r: sysmmu at 11200000 {
0x11200000 belongs to mfc_l
sysmmu_mfc_l: sysmmu at 11200000
arch/arm/boot/dts/exynos5420.dtsi line 798
Quoted 4 lines
arch/arm/boot/dts/exynos5420.dtsi +4
-0+ compatible = "samsung,sysmmu-v2"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <6 2>;
interrupts = <8 5>;
Add mmu-masters field,
mmu-masters = <&mfc>;arch/arm/boot/dts/exynos5420.dtsi line 800
Quoted 2 lines
arch/arm/boot/dts/exynos5420.dtsi +2
-0+ clock-names = "sysmmu", "master"; + clocks = <&clock 402>, <&clock 401>;
clocks = <&clock 403>, <&clock 401>;
arch/arm/boot/dts/exynos5420.dtsi line 804
Quoted 4 lines
arch/arm/boot/dts/exynos5420.dtsi +4
-0+ samsung,power-domain = <&mfc_pd>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 {
0x11210000 belongs to mfc_r
sysmmu_mfc_r: sysmmu at 11210000
arch/arm/boot/dts/exynos5420.dtsi line 808
Quoted 4 lines
arch/arm/boot/dts/exynos5420.dtsi +4
-0+ compatible = "samsung,sysmmu-v2"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <8 5>;
interrupts = <6 2>;
Add mmu-masters field,
mmu-masters = <&mfc>;
arch/arm/boot/dts/exynos5420.dtsi line 810
Quoted 2 lines
arch/arm/boot/dts/exynos5420.dtsi +2
-0+ clock-names = "sysmmu", "master"; + clocks = <&clock 403>, <&clock 401>;
clocks = <&clock 402>, <&clock 401>;
Regards,
Shaik Ameer Basha
Quoted 100 lines · Shaik Ameer Basha
Hi KyongHo Cho,
Please find the comments inline.
Quoted 29 lines · Cho KyongHo
This patch adds dts entries for the System MMU devices found on Exynos4 and Exynos5 SoC series and the System MMU binding documentation.
CC Rob Herring <[email protected]>CC Sylwester Nawrocki <[email protected]>Signed-off-by Cho KyongHo <[email protected]>--- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 86 +++++++ arch/arm/boot/dts/exynos4.dtsi | 107 ++++++++ arch/arm/boot/dts/exynos4210.dtsi | 23 +- arch/arm/boot/dts/exynos4x12.dtsi | 77 +++++- arch/arm/boot/dts/exynos5250.dtsi | 266 +++++++++++++++++++- arch/arm/boot/dts/exynos5420.dtsi | 205 ++++++++++++++- 6 files changed, 758 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txtDocumentation/devicetree/bindings/iommu/samsung,exynos4210-sysmmu.txt new file +6
-0@@ -0,0 +1,86 @@ +Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit) + +Samsung's Exynos architecture contains System MMUs 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. +[snip]
Quoted 50 lines
arch/arm/boot/dts/exynos5250.dtsi +19
-2@@ -80,6 +80,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>;@@ -679,7 +689,7 @@ "sclk_hdmiphy", "mout_hdmi"; }; - mixer { + mixer: mixer { compatible = "samsung,exynos5250-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>;@@ -700,7 +710,7 @@ phy-names = "dp"; }; - fimd at 14400000 { + fimd: fimd at 14400000 { clocks = <&clock 133>, <&clock 339>; clock-names = "sclk_fimd", "fimd"; };@@ -715,4 +725,256 @@ io-channel-ranges; status = "disabled"; }; + + sysmmu_g2d: sysmmu at 10A60000 { + compatible = "samsung,sysmmu-v1"; + reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <24 5>; + clock-names = "sysmmu";arch/arm/boot/dts/exynos5250.dtsi line 744
Quoted 10 lines
arch/arm/boot/dts/exynos5250.dtsi +10
-0+ clocks = <&clock 361>; + }; + + sysmmu_mfc_r: sysmmu at 11200000 { + compatible = "samsung,sysmmu-v2"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <6 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 268>, <&clock 266>;Add mmu-masters...
Quoted 2 lines
mmu-masters = <&mfc>;
Ok.
Quoted 11 lines
arch/arm/boot/dts/exynos5250.dtsi line 754
Quoted 10 lines
arch/arm/boot/dts/exynos5250.dtsi +10
-0+ samsung,power-domain = <&pd_mfc>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 { + compatible = "samsung,sysmmu-v2"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <8 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 267>, <&clock 266>;
Quoted 3 lines
Add mmu-masters...
mmu-masters = <&mfc>;
OK.
Quoted 58 lines
Quoted 13 lines
arch/arm/boot/dts/exynos5250.dtsi +12
-0+ samsung,power-domain = <&pd_mfc>; + }; + + sysmmu_rotator: sysmmu at 11D40000 { + compatible = "samsung,sysmmu-v1"; + reg = <0x11D40000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <4 0>; + clock-names = "sysmmu"; + clocks = <&clock 272>; + }; +[snip]
Quoted 30 lines
};
arch/arm/boot/dts/exynos5420.dtsi +5
-2@@ -470,7 +470,7 @@ phy-names = "dp"; }; - fimd at 14400000 { + fimd: fimd at 14400000 { samsung,power-domain = <&disp_pd>; clocks = <&clock 147>, <&clock 421>; clock-names = "sclk_fimd", "fimd";@@ -641,7 +641,7 @@ status = "disabled"; }; - mixer at 14450000 { + mixer: mixer at 14450000 { compatible = "samsung,exynos5420-mixer"; reg = <0x14450000 0x10000>; interrupts = <0 94 0>;@@ -720,4 +720,205 @@ clock-names = "watchdog"; samsung,syscon-phandle = <&pmu_system_controller>; }; + + sysmmu_g2dr: sysmmu at 10A60000 { + compatible = "samsung,sysmmu-v3.2";arch/arm/boot/dts/exynos5420.dtsi line 735
Quoted 10 lines
arch/arm/boot/dts/exynos5420.dtsi +10
-0+ reg = <0x10A60000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <24 5>; + clock-names = "sysmmu", "master"; + clocks = <&clock 482>, <&clock 481>; + }; + + sysmmu_g2dw: sysmmu at 10A70000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x10A60000 0x1000>;Duplicate sysmmu reg base address.
Quoted 2 lines
reg = <0x10A70000 0x1000>;
Oh, really it is.
Thanks.
Quoted 61 lines
Quoted 49 lines
arch/arm/boot/dts/exynos5420.dtsi +49
-0+ interrupt-parent = <&combiner>; + interrupts = <22 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 482>, <&clock 481>; + }; + + sysmmu_scaler0r: sysmmu at 12880000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x12880000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <22 4>; + clock-names = "sysmmu", "master"; + clocks = <&clock 384>, <&clock 381>; + }; + + sysmmu_scaler1r: sysmmu at 12890000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x12890000 0x1000>; + interrupts = <0 186 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 385>, <&clock 382>; + }; + + sysmmu_scaler2r: sysmmu at 128A0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128A0000 0x1000>; + interrupts = <0 188 0>; + clock-names = "sysmmu", "master"; + clocks = <&clock 386>, <&clock 383>; + }; + + sysmmu_scaler0w: sysmmu at 128C0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128C0000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <27 2>; + clock-names = "sysmmu", "master"; + clocks = <&clock 384>, <&clock 381>; + }; + + sysmmu_scaler1w: sysmmu at 128D0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128D0000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <22 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 385>, <&clock 382>; + }; +arch/arm/boot/dts/exynos5420.dtsi line 794
Quoted 10 lines
arch/arm/boot/dts/exynos5420.dtsi +10
-0+ sysmmu_scaler2w: sysmmu at 128E0000 { + compatible = "samsung,sysmmu-v3.2"; + reg = <0x128E0000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <19 6>; + clock-names = "sysmmu", "master"; + clocks = <&clock 386>, <&clock 383>; + }; + + sysmmu_mfc_r: sysmmu at 11200000 {
0x11200000belongs tomfc_l
Quoted 2 lines
sysmmu_mfc_l: sysmmu at 11200000
OK. thanks.
Quoted 8 lines
arch/arm/boot/dts/exynos5420.dtsi line 798
Quoted 4 lines
arch/arm/boot/dts/exynos5420.dtsi +4
-0+ compatible = "samsung,sysmmu-v2"; + reg = <0x11200000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <6 2>;interrupts = <8 5>; Add mmu-masters field, mmu-masters = <&mfc>;
Oh, irq is also changed.
Thanks.
Quoted 5 lines
arch/arm/boot/dts/exynos5420.dtsi line 800
Quoted 3 lines
arch/arm/boot/dts/exynos5420.dtsi +2
-0+ clock-names = "sysmmu", "master"; + clocks = <&clock 402>, <&clock 401>;clocks = <&clock 403>, <&clock 401>;
Thanks.
This will be fixed with macro names.
Quoted 9 lines
arch/arm/boot/dts/exynos5420.dtsi line 804
Quoted 5 lines
arch/arm/boot/dts/exynos5420.dtsi +4
-0+ samsung,power-domain = <&mfc_pd>; + }; + + sysmmu_mfc_l: sysmmu at 11210000 {
0x11210000belongs tomfc_rsysmmu_mfc_r: sysmmu at 11210000
OK.
Quoted 9 lines
arch/arm/boot/dts/exynos5420.dtsi line 808
Quoted 4 lines
arch/arm/boot/dts/exynos5420.dtsi +4
-0+ compatible = "samsung,sysmmu-v2"; + reg = <0x11210000 0x1000>; + interrupt-parent = <&combiner>; + interrupts = <8 5>;interrupts = <6 2>;
Add mmu-masters field,mmu-masters = <&mfc>;
OK.
Quoted 5 lines
arch/arm/boot/dts/exynos5420.dtsi line 810
Quoted 2 lines
arch/arm/boot/dts/exynos5420.dtsi +2
-0+ clock-names = "sysmmu", "master"; + clocks = <&clock 403>, <&clock 401>;clocks = <&clock 402>, <&clock 401>;
Thanks for pointing out many mistakes.
Regards,
KyongHo