linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes
@ 2022-08-08 20:17 Sam Protsenko
  2022-08-08 20:17 ` [PATCH 1/2] arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850 Sam Protsenko
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sam Protsenko @ 2022-08-08 20:17 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski
  Cc: Marek Szyprowski, Chanho Park, Chanwoo Choi, David Virag,
	Alim Akhtar, Sumit Semwal, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel

Now that all clock domains needed for SysMMUs are implemented [1]
(pending), and the basic SysMMU v7 support is ready as well [2], let's
add all related CMU and SysMMU nodes to Exynos850 SoC device tree.

All those SysMMU instances were tested with "emulated translation"
driver [4] on E850-96 board: both the emulated translation and fault
handling were verified.

This patch series depends on [1], so it must be taken into the account
when merging it.

[1] https://lkml.org/lkml/2022/8/8/752
[2] https://lkml.org/lkml/2022/7/14/1215
[3] https://lkml.org/lkml/2022/7/26/950
[4] https://github.com/joe-skb7/linux/tree/e850-96-mainline-iommu

Sam Protsenko (2):
  arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850
  arm64: dts: exynos: Add SysMMU nodes for Exynos850

 arch/arm64/boot/dts/exynos/exynos850.dtsi | 83 +++++++++++++++++++++++
 1 file changed, 83 insertions(+)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850
  2022-08-08 20:17 [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Sam Protsenko
@ 2022-08-08 20:17 ` Sam Protsenko
  2022-08-14  4:08   ` kernel test robot
  2022-08-08 20:17 ` [PATCH 2/2] arm64: dts: exynos: Add SysMMU nodes " Sam Protsenko
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Sam Protsenko @ 2022-08-08 20:17 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski
  Cc: Marek Szyprowski, Chanho Park, Chanwoo Choi, David Virag,
	Alim Akhtar, Sumit Semwal, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel

Add missing clock domains to Exynos850 SoC device tree.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 arch/arm64/boot/dts/exynos/exynos850.dtsi | 38 +++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/exynos850.dtsi b/arch/arm64/boot/dts/exynos/exynos850.dtsi
index 9076afd4bb3e..8e78b50416d8 100644
--- a/arch/arm64/boot/dts/exynos/exynos850.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos850.dtsi
@@ -286,6 +286,21 @@ cmu_top: clock-controller@120e0000 {
 			clock-names = "oscclk";
 		};
 
+		cmu_mfcmscl: clock-controller@12c00000 {
+			compatible = "samsung,exynos850-cmu-mfcmscl";
+			reg = <0x12c00000 0x8000>;
+			#clock-cells = <1>;
+
+			clocks = <&oscclk>,
+				 <&cmu_top CLK_DOUT_MFCMSCL_MFC>,
+				 <&cmu_top CLK_DOUT_MFCMSCL_M2M>,
+				 <&cmu_top CLK_DOUT_MFCMSCL_MCSC>,
+				 <&cmu_top CLK_DOUT_MFCMSCL_JPEG>;
+			clock-names = "oscclk", "dout_mfcmscl_mfc",
+				      "dout_mfcmscl_m2m", "dout_mfcmscl_mcsc",
+				      "dout_mfcmscl_jpeg";
+		};
+
 		cmu_dpu: clock-controller@13000000 {
 			compatible = "samsung,exynos850-cmu-dpu";
 			reg = <0x13000000 0x8000>;
@@ -308,6 +323,29 @@ cmu_hsi: clock-controller@13400000 {
 				      "dout_hsi_mmc_card", "dout_hsi_usb20drd";
 		};
 
+		cmu_is: clock-controller@14500000 {
+			compatible = "samsung,exynos850-cmu-is";
+			reg = <0x14500000 0x8000>;
+			#clock-cells = <1>;
+
+			clocks = <&oscclk>,
+				 <&cmu_top CLK_DOUT_IS_BUS>,
+				 <&cmu_top CLK_DOUT_IS_ITP>,
+				 <&cmu_top CLK_DOUT_IS_VRA>,
+				 <&cmu_top CLK_DOUT_IS_GDC>;
+			clock-names = "oscclk", "dout_is_bus", "dout_is_itp",
+				      "dout_is_vra", "dout_is_gdc";
+		};
+
+		cmu_aud: clock-controller@14a00000 {
+			compatible = "samsung,exynos850-cmu-aud";
+			reg = <0x14a00000 0x8000>;
+			#clock-cells = <1>;
+
+			clocks = <&oscclk>, <&cmu_top CLK_DOUT_AUD>;
+			clock-names = "oscclk", "dout_aud";
+		};
+
 		pinctrl_alive: pinctrl@11850000 {
 			compatible = "samsung,exynos850-pinctrl";
 			reg = <0x11850000 0x1000>;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] arm64: dts: exynos: Add SysMMU nodes for Exynos850
  2022-08-08 20:17 [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Sam Protsenko
  2022-08-08 20:17 ` [PATCH 1/2] arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850 Sam Protsenko
@ 2022-08-08 20:17 ` Sam Protsenko
  2022-08-09  7:06   ` Krzysztof Kozlowski
  2022-08-09  7:07 ` [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Krzysztof Kozlowski
  2022-08-09 11:45 ` Sam Protsenko
  3 siblings, 1 reply; 8+ messages in thread
From: Sam Protsenko @ 2022-08-08 20:17 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski
  Cc: Marek Szyprowski, Chanho Park, Chanwoo Choi, David Virag,
	Alim Akhtar, Sumit Semwal, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel

Add all SysMMU nodes to Exynos850 SoC device tree.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 arch/arm64/boot/dts/exynos/exynos850.dtsi | 45 +++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/exynos850.dtsi b/arch/arm64/boot/dts/exynos/exynos850.dtsi
index 8e78b50416d8..4204a443ea4a 100644
--- a/arch/arm64/boot/dts/exynos/exynos850.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos850.dtsi
@@ -503,6 +503,51 @@ i2c_6: i2c@13890000 {
 			status = "disabled";
 		};
 
+		sysmmu_aud: sysmmu@14850000 {
+			compatible = "samsung,exynos-sysmmu";
+			reg = <0x14850000 0x9000>;
+			interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
+			clock-names = "sysmmu";
+			clocks = <&cmu_aud CLK_GOUT_AUD_SYSMMU_CLK>;
+			#iommu-cells = <0>;
+		};
+
+		sysmmu_dpu: sysmmu@130c0000 {
+			compatible = "samsung,exynos-sysmmu";
+			reg = <0x130c0000 0x9000>;
+			interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
+			clock-names = "sysmmu";
+			clocks = <&cmu_dpu CLK_GOUT_DPU_SMMU_CLK>;
+			#iommu-cells = <0>;
+		};
+
+		sysmmu_is0: sysmmu@14550000 {
+			compatible = "samsung,exynos-sysmmu";
+			reg = <0x14550000 0x9000>;
+			interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
+			clock-names = "sysmmu";
+			clocks = <&cmu_is CLK_GOUT_IS_SYSMMU_IS0_CLK>;
+			#iommu-cells = <0>;
+		};
+
+		sysmmu_is1: sysmmu@14570000 {
+			compatible = "samsung,exynos-sysmmu";
+			reg = <0x14570000 0x9000>;
+			interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
+			clock-names = "sysmmu";
+			clocks = <&cmu_is CLK_GOUT_IS_SYSMMU_IS1_CLK>;
+			#iommu-cells = <0>;
+		};
+
+		sysmmu_mfcmscl: sysmmu@12c50000 {
+			compatible = "samsung,exynos-sysmmu";
+			reg = <0x12c50000 0x9000>;
+			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+			clock-names = "sysmmu";
+			clocks = <&cmu_mfcmscl CLK_GOUT_MFCMSCL_SYSMMU_CLK>;
+			#iommu-cells = <0>;
+		};
+
 		sysreg_peri: syscon@10020000 {
 			compatible = "samsung,exynos850-sysreg", "syscon";
 			reg = <0x10020000 0x10000>;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] arm64: dts: exynos: Add SysMMU nodes for Exynos850
  2022-08-08 20:17 ` [PATCH 2/2] arm64: dts: exynos: Add SysMMU nodes " Sam Protsenko
@ 2022-08-09  7:06   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-09  7:06 UTC (permalink / raw)
  To: Sam Protsenko, Rob Herring, Krzysztof Kozlowski
  Cc: Marek Szyprowski, Chanho Park, Chanwoo Choi, David Virag,
	Alim Akhtar, Sumit Semwal, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel

On 08/08/2022 23:17, Sam Protsenko wrote:
> Add all SysMMU nodes to Exynos850 SoC device tree.
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> ---
>  arch/arm64/boot/dts/exynos/exynos850.dtsi | 45 +++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/exynos/exynos850.dtsi b/arch/arm64/boot/dts/exynos/exynos850.dtsi
> index 8e78b50416d8..4204a443ea4a 100644
> --- a/arch/arm64/boot/dts/exynos/exynos850.dtsi
> +++ b/arch/arm64/boot/dts/exynos/exynos850.dtsi
> @@ -503,6 +503,51 @@ i2c_6: i2c@13890000 {
>  			status = "disabled";
>  		};
>  
> +		sysmmu_aud: sysmmu@14850000 {

Order the nodes by unit address at least within each other.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes
  2022-08-08 20:17 [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Sam Protsenko
  2022-08-08 20:17 ` [PATCH 1/2] arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850 Sam Protsenko
  2022-08-08 20:17 ` [PATCH 2/2] arm64: dts: exynos: Add SysMMU nodes " Sam Protsenko
@ 2022-08-09  7:07 ` Krzysztof Kozlowski
  2022-08-09 11:11   ` Sam Protsenko
  2022-08-09 11:45 ` Sam Protsenko
  3 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-09  7:07 UTC (permalink / raw)
  To: Sam Protsenko, Rob Herring, Krzysztof Kozlowski
  Cc: Marek Szyprowski, Chanho Park, Chanwoo Choi, David Virag,
	Alim Akhtar, Sumit Semwal, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel

On 08/08/2022 23:17, Sam Protsenko wrote:
> Now that all clock domains needed for SysMMUs are implemented [1]
> (pending), and the basic SysMMU v7 support is ready as well [2], let's
> add all related CMU and SysMMU nodes to Exynos850 SoC device tree.
> 
> All those SysMMU instances were tested with "emulated translation"
> driver [4] on E850-96 board: both the emulated translation and fault
> handling were verified.
> 
> This patch series depends on [1], so it must be taken into the account
> when merging it.
> 
> [1] https://lkml.org/lkml/2022/8/8/752

It should not be sent separately then, unless you are fine waiting
entire cycle for this to land.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes
  2022-08-09  7:07 ` [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Krzysztof Kozlowski
@ 2022-08-09 11:11   ` Sam Protsenko
  0 siblings, 0 replies; 8+ messages in thread
From: Sam Protsenko @ 2022-08-09 11:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Marek Szyprowski, Chanho Park,
	Chanwoo Choi, David Virag, Alim Akhtar, Sumit Semwal, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel

On Tue, 9 Aug 2022 at 10:07, Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 08/08/2022 23:17, Sam Protsenko wrote:
> > Now that all clock domains needed for SysMMUs are implemented [1]
> > (pending), and the basic SysMMU v7 support is ready as well [2], let's
> > add all related CMU and SysMMU nodes to Exynos850 SoC device tree.
> >
> > All those SysMMU instances were tested with "emulated translation"
> > driver [4] on E850-96 board: both the emulated translation and fault
> > handling were verified.
> >
> > This patch series depends on [1], so it must be taken into the account
> > when merging it.
> >
> > [1] https://lkml.org/lkml/2022/8/8/752
>
> It should not be sent separately then, unless you are fine waiting
> entire cycle for this to land.
>

Sure, good point. If it's possible to take all those patches in a
single tree. I remember we already had a similar issue previously.

> Best regards,
> Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes
  2022-08-08 20:17 [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Sam Protsenko
                   ` (2 preceding siblings ...)
  2022-08-09  7:07 ` [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Krzysztof Kozlowski
@ 2022-08-09 11:45 ` Sam Protsenko
  3 siblings, 0 replies; 8+ messages in thread
From: Sam Protsenko @ 2022-08-09 11:45 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski
  Cc: Marek Szyprowski, Chanho Park, Chanwoo Choi, David Virag,
	Alim Akhtar, Sumit Semwal, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel

On Mon, 8 Aug 2022 at 23:17, Sam Protsenko <semen.protsenko@linaro.org> wrote:
>
> Now that all clock domains needed for SysMMUs are implemented [1]
> (pending), and the basic SysMMU v7 support is ready as well [2], let's
> add all related CMU and SysMMU nodes to Exynos850 SoC device tree.
>
> All those SysMMU instances were tested with "emulated translation"
> driver [4] on E850-96 board: both the emulated translation and fault
> handling were verified.
>
> This patch series depends on [1], so it must be taken into the account
> when merging it.
>
> [1] https://lkml.org/lkml/2022/8/8/752
> [2] https://lkml.org/lkml/2022/7/14/1215
> [3] https://lkml.org/lkml/2022/7/26/950
> [4] https://github.com/joe-skb7/linux/tree/e850-96-mainline-iommu
>
> Sam Protsenko (2):
>   arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850
>   arm64: dts: exynos: Add SysMMU nodes for Exynos850
>
>  arch/arm64/boot/dts/exynos/exynos850.dtsi | 83 +++++++++++++++++++++++
>  1 file changed, 83 insertions(+)
>
> --
> 2.30.2
>

This patch series is superseded by v2 here: [1].

[1] https://lkml.org/lkml/2022/8/9/328

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850
  2022-08-08 20:17 ` [PATCH 1/2] arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850 Sam Protsenko
@ 2022-08-14  4:08   ` kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2022-08-14  4:08 UTC (permalink / raw)
  To: Sam Protsenko, Rob Herring, Krzysztof Kozlowski
  Cc: kbuild-all, Marek Szyprowski, Chanho Park, Chanwoo Choi,
	David Virag, Alim Akhtar, Sumit Semwal, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel

Hi Sam,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on krzk/for-next]
[also build test ERROR on krzk-dt/for-next linus/master v5.19 next-20220812]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Sam-Protsenko/arm64-dts-exynos850-Add-cmu-and-sysmmu-nodes/20220809-041907
base:   https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git for-next
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220814/202208141234.dc1oJWXs-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/c4a995f799014f9233486fa406340888e8e9bc34
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Sam-Protsenko/arm64-dts-exynos850-Add-cmu-and-sysmmu-nodes/20220809-041907
        git checkout c4a995f799014f9233486fa406340888e8e9bc34
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/exynos/exynos850.dtsi:295.16-17 syntax error
   FATAL ERROR: Unable to parse input tree

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-14  4:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 20:17 [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Sam Protsenko
2022-08-08 20:17 ` [PATCH 1/2] arm64: dts: exynos: Add CMU_AUD, CMU_IS and CMU_MFCMSCL for Exynos850 Sam Protsenko
2022-08-14  4:08   ` kernel test robot
2022-08-08 20:17 ` [PATCH 2/2] arm64: dts: exynos: Add SysMMU nodes " Sam Protsenko
2022-08-09  7:06   ` Krzysztof Kozlowski
2022-08-09  7:07 ` [PATCH 0/2] arm64: dts: exynos850: Add cmu and sysmmu nodes Krzysztof Kozlowski
2022-08-09 11:11   ` Sam Protsenko
2022-08-09 11:45 ` Sam Protsenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).