devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties
@ 2022-04-27 15:58 Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 01/10] ARM: dts: zynq-7000: " Krzysztof Kozlowski
                   ` (9 more replies)
  0 siblings, 10 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski

Hi,

Rob reported [1] that many (all?) PL330 device nodes use wrong dma-channels and
dma-requests properties.  The proper ones are without leading '#'.

I guess everything started with 42cf20980cde ("ARM: dts: pl330: Add #dma-cells for
generic dma binding support").

Patches are independent and can be picked-up as is. Otherwise please ack and
I'll push it to SoC.

[1] https://lore.kernel.org/linux-devicetree/fedb56be-f275-aabb-cdf5-dbd394b8a7bd@linaro.org/T/#m6235f451045c337d70a62dc65eab9a716618550b

Best regards,
Krzysztof

Krzysztof Kozlowski (10):
  ARM: dts: zynq-7000: use proper 'dma-channels/requests' properties
  ARM: dts: socfpga: use proper 'dma-channels/requests' properties
  arm64: dts: stratix10/agilex: use proper 'dma-channels/requests'
    properties
  arm64: dts: juno: use proper 'dma-channels/requests' properties
  arm64: dts: broadcom: use proper 'dma-channels/requests' properties
  dt-bindings: mfd: samsung,exynos5433-lpass: fix
    'dma-channels/requests' properties
  ARM: dts: s5pv210: use proper 'dma-channels/requests' properties
  ARM: dts: exynos: use proper 'dma-channels/requests' properties
  arm64: dts: exynos: use proper 'dma-channels/requests' properties
  arm64: dts: fsd: use proper 'dma-channels/requests' properties

 .../mfd/samsung,exynos5433-lpass.yaml         |  4 ++--
 arch/arm/boot/dts/exynos3250.dtsi             |  8 ++++----
 arch/arm/boot/dts/exynos4.dtsi                | 12 +++++------
 .../boot/dts/exynos4210-universal_c210.dts    |  4 ++--
 arch/arm/boot/dts/exynos5250.dtsi             | 16 +++++++--------
 arch/arm/boot/dts/exynos5410.dtsi             |  8 ++++----
 arch/arm/boot/dts/exynos5420.dtsi             | 20 +++++++++----------
 arch/arm/boot/dts/s5pv210.dtsi                | 12 +++++------
 arch/arm/boot/dts/socfpga.dtsi                |  4 ++--
 arch/arm/boot/dts/socfpga_arria10.dtsi        |  4 ++--
 arch/arm/boot/dts/zynq-7000.dtsi              |  4 ++--
 .../boot/dts/altera/socfpga_stratix10.dtsi    |  4 ++--
 arch/arm64/boot/dts/arm/juno-base.dtsi        |  4 ++--
 .../boot/dts/broadcom/northstar2/ns2.dtsi     |  4 ++--
 .../boot/dts/broadcom/stingray/stingray.dtsi  |  4 ++--
 arch/arm64/boot/dts/exynos/exynos5433.dtsi    | 12 +++++------
 arch/arm64/boot/dts/exynos/exynos7.dtsi       |  8 ++++----
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi |  4 ++--
 arch/arm64/boot/dts/tesla/fsd.dtsi            | 16 +++++++--------
 19 files changed, 76 insertions(+), 76 deletions(-)

-- 
2.32.0


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

* [PATCH 01/10] ARM: dts: zynq-7000: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-28  6:24   ` Michal Simek
  2022-04-27 15:58 ` [PATCH 02/10] ARM: dts: socfpga: " Krzysztof Kozlowski
                   ` (8 subsequent siblings)
  9 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm/boot/dts/zynq-7000.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index 47c2a4b14c06..40c60a2b6d2c 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -343,8 +343,8 @@ dmac_s: dmac@f8003000 {
 			             <0 40 4>, <0 41 4>,
 			             <0 42 4>, <0 43 4>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <4>;
+			dma-channels = <8>;
+			dma-requests = <4>;
 			clocks = <&clkc 27>;
 			clock-names = "apb_pclk";
 		};
-- 
2.32.0


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

* [PATCH 02/10] ARM: dts: socfpga: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 01/10] ARM: dts: zynq-7000: " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 03/10] arm64: dts: stratix10/agilex: " Krzysztof Kozlowski
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm/boot/dts/socfpga.dtsi         | 4 ++--
 arch/arm/boot/dts/socfpga_arria10.dtsi | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index b8c5dd7860cb..a459d3978cfa 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -80,8 +80,8 @@ pdma: pdma@ffe01000 {
 					     <0 110 4>,
 					     <0 111 4>;
 				#dma-cells = <1>;
-				#dma-channels = <8>;
-				#dma-requests = <32>;
+				dma-channels = <8>;
+				dma-requests = <32>;
 				clocks = <&l4_main_clk>;
 				clock-names = "apb_pclk";
 				resets = <&rst DMA_RESET>;
diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi
index f1e50d2e623a..d7641c9f2875 100644
--- a/arch/arm/boot/dts/socfpga_arria10.dtsi
+++ b/arch/arm/boot/dts/socfpga_arria10.dtsi
@@ -73,8 +73,8 @@ pdma: pdma@ffda1000 {
 					     <0 90 IRQ_TYPE_LEVEL_HIGH>,
 					     <0 91 IRQ_TYPE_LEVEL_HIGH>;
 				#dma-cells = <1>;
-				#dma-channels = <8>;
-				#dma-requests = <32>;
+				dma-channels = <8>;
+				dma-requests = <32>;
 				clocks = <&l4_main_clk>;
 				clock-names = "apb_pclk";
 				resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
-- 
2.32.0


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

* [PATCH 03/10] arm64: dts: stratix10/agilex: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 01/10] ARM: dts: zynq-7000: " Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 02/10] ARM: dts: socfpga: " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 04/10] arm64: dts: juno: " Krzysztof Kozlowski
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 ++--
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
index 884bda106399..b743e625f482 100644
--- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
+++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
@@ -346,8 +346,8 @@ pdma: dma-controller@ffda0000 {
 				     <0 88 4>,
 				     <0 89 4>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
 			clock-names = "apb_pclk";
 			resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
index c78371703e76..2bf632edc3ad 100644
--- a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
+++ b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
@@ -350,8 +350,8 @@ pdma: dma-controller@ffda0000 {
 				     <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
 			reset-names = "dma", "dma-ocp";
 			clocks = <&clkmgr AGILEX_L4_MAIN_CLK>;
-- 
2.32.0


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

* [PATCH 04/10] arm64: dts: juno: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2022-04-27 15:58 ` [PATCH 03/10] arm64: dts: stratix10/agilex: " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-28 10:43   ` Robin Murphy
  2022-04-27 15:58 ` [PATCH 05/10] arm64: dts: broadcom: " Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  9 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/arm/juno-base.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
index 4f40a5c8f565..96ef0ddc0b2d 100644
--- a/arch/arm64/boot/dts/arm/juno-base.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
@@ -829,8 +829,8 @@ dma-controller@7ff00000 {
 		compatible = "arm,pl330", "arm,primecell";
 		reg = <0x0 0x7ff00000 0 0x1000>;
 		#dma-cells = <1>;
-		#dma-channels = <8>;
-		#dma-requests = <32>;
+		dma-channels = <8>;
+		dma-requests = <32>;
 		interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
-- 
2.32.0


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

* [PATCH 05/10] arm64: dts: broadcom: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2022-04-27 15:58 ` [PATCH 04/10] arm64: dts: juno: " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi    | 4 ++--
 arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi b/arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi
index f59fa3979a04..230ccb685be6 100644
--- a/arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi
+++ b/arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi
@@ -289,8 +289,8 @@ dma0: dma-controller@61360000 {
 				     <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			clocks = <&iprocslow>;
 			clock-names = "apb_pclk";
 		};
diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi
index 7f1b8efd0883..2a58c1b43f6f 100644
--- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi
+++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi
@@ -556,8 +556,8 @@ dma0: dma-controller@310000 {
 				     <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			clocks = <&hsls_div2_clk>;
 			clock-names = "apb_pclk";
 			iommus = <&smmu 0x6000 0x0000>;
-- 
2.32.0


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

* [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2022-04-27 15:58 ` [PATCH 05/10] arm64: dts: broadcom: " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 16:41   ` Alim Akhtar
                     ` (2 more replies)
  2022-04-27 15:58 ` [PATCH 07/10] ARM: dts: s5pv210: use proper " Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  9 siblings, 3 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Fixes: e18183cefc8b ("mfd: Add DT bindings documentation for Samsung Exynos LPASS")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml b/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml
index f7bb67d10eff..b97b06848729 100644
--- a/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml
+++ b/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml
@@ -79,8 +79,8 @@ examples:
             clocks = <&cmu_aud CLK_ACLK_DMAC>;
             clock-names = "apb_pclk";
             #dma-cells = <1>;
-            #dma-channels = <8>;
-            #dma-requests = <32>;
+            dma-channels = <8>;
+            dma-requests = <32>;
             power-domains = <&pd_aud>;
         };
 
-- 
2.32.0


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

* [PATCH 07/10] ARM: dts: s5pv210: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2022-04-27 15:58 ` [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 16:45   ` Alim Akhtar
  2022-04-27 15:58 ` [PATCH 08/10] ARM: dts: exynos: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  9 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm/boot/dts/s5pv210.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi
index ac281f42e8f5..f6988ba3393d 100644
--- a/arch/arm/boot/dts/s5pv210.dtsi
+++ b/arch/arm/boot/dts/s5pv210.dtsi
@@ -125,8 +125,8 @@ pdma0: dma-controller@e0900000 {
 			clocks = <&clocks CLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@e0a00000 {
@@ -137,8 +137,8 @@ pdma1: dma-controller@e0a00000 {
 			clocks = <&clocks CLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		adc: adc@e1700000 {
@@ -526,8 +526,8 @@ mdma1: dma-controller@fa200000 {
 			clocks = <&clocks CLK_MDMA>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <1>;
+			dma-channels = <8>;
+			dma-requests = <1>;
 		};
 
 		rotator: rotator@fa300000 {
-- 
2.32.0


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

* [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
                   ` (6 preceding siblings ...)
  2022-04-27 15:58 ` [PATCH 07/10] ARM: dts: s5pv210: use proper " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 16:44   ` Alim Akhtar
  2022-04-28  9:50   ` Marek Szyprowski
  2022-04-27 15:58 ` [PATCH 09/10] arm64: " Krzysztof Kozlowski
  2022-04-27 15:58 ` [PATCH 10/10] arm64: dts: fsd: " Krzysztof Kozlowski
  9 siblings, 2 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm/boot/dts/exynos3250.dtsi             |  8 ++++----
 arch/arm/boot/dts/exynos4.dtsi                | 12 +++++------
 .../boot/dts/exynos4210-universal_c210.dts    |  4 ++--
 arch/arm/boot/dts/exynos5250.dtsi             | 16 +++++++--------
 arch/arm/boot/dts/exynos5410.dtsi             |  8 ++++----
 arch/arm/boot/dts/exynos5420.dtsi             | 20 +++++++++----------
 6 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi
index 41bb421e67c2..7bdd4f0782c3 100644
--- a/arch/arm/boot/dts/exynos3250.dtsi
+++ b/arch/arm/boot/dts/exynos3250.dtsi
@@ -429,8 +429,8 @@ pdma0: dma-controller@12680000 {
 			clocks = <&cmu CLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@12690000 {
@@ -440,8 +440,8 @@ pdma1: dma-controller@12690000 {
 			clocks = <&cmu CLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		adc: adc@126c0000 {
diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
index 5fd17bc52321..2a244aaf84b4 100644
--- a/arch/arm/boot/dts/exynos4.dtsi
+++ b/arch/arm/boot/dts/exynos4.dtsi
@@ -676,8 +676,8 @@ pdma0: dma-controller@12680000 {
 			clocks = <&clock CLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@12690000 {
@@ -687,8 +687,8 @@ pdma1: dma-controller@12690000 {
 			clocks = <&clock CLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		mdma1: dma-controller@12850000 {
@@ -698,8 +698,8 @@ mdma1: dma-controller@12850000 {
 			clocks = <&clock CLK_MDMA>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <1>;
+			dma-channels = <8>;
+			dma-requests = <1>;
 		};
 
 		fimd: fimd@11c00000 {
diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts b/arch/arm/boot/dts/exynos4210-universal_c210.dts
index 138d606d58a5..c1b11704b8ee 100644
--- a/arch/arm/boot/dts/exynos4210-universal_c210.dts
+++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts
@@ -666,8 +666,8 @@ mdma0: dma-controller@12840000 {
 		clocks = <&clock CLK_MDMA>;
 		clock-names = "apb_pclk";
 		#dma-cells = <1>;
-		#dma-channels = <8>;
-		#dma-requests = <1>;
+		dma-channels = <8>;
+		dma-requests = <1>;
 		power-domains = <&pd_lcd0>;
 	};
 };
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index df80ddfada2d..c4c0b4c08094 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -700,8 +700,8 @@ pdma0: dma-controller@121a0000 {
 			clocks = <&clock CLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@121b0000 {
@@ -711,8 +711,8 @@ pdma1: dma-controller@121b0000 {
 			clocks = <&clock CLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		mdma0: dma-controller@10800000 {
@@ -722,8 +722,8 @@ mdma0: dma-controller@10800000 {
 			clocks = <&clock CLK_MDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <1>;
+			dma-channels = <8>;
+			dma-requests = <1>;
 		};
 
 		mdma1: dma-controller@11c10000 {
@@ -733,8 +733,8 @@ mdma1: dma-controller@11c10000 {
 			clocks = <&clock CLK_MDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <1>;
+			dma-channels = <8>;
+			dma-requests = <1>;
 		};
 
 		gsc_0: gsc@13e00000 {
diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
index 4d797a9abba4..6dc08cb0622c 100644
--- a/arch/arm/boot/dts/exynos5410.dtsi
+++ b/arch/arm/boot/dts/exynos5410.dtsi
@@ -196,8 +196,8 @@ pdma0: dma-controller@121a0000 {
 			clocks = <&clock CLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@121b0000 {
@@ -207,8 +207,8 @@ pdma1: dma-controller@121b0000 {
 			clocks = <&clock CLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		audi2s0: i2s@3830000 {
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 21b608705049..08198d82ce8d 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -437,8 +437,8 @@ adma: dma-controller@3880000 {
 			clocks = <&clock_audss EXYNOS_ADMA>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <6>;
-			#dma-requests = <16>;
+			dma-channels = <6>;
+			dma-requests = <16>;
 			power-domains = <&mau_pd>;
 		};
 
@@ -449,8 +449,8 @@ pdma0: dma-controller@121a0000 {
 			clocks = <&clock CLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@121b0000 {
@@ -460,8 +460,8 @@ pdma1: dma-controller@121b0000 {
 			clocks = <&clock CLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		mdma0: dma-controller@10800000 {
@@ -471,8 +471,8 @@ mdma0: dma-controller@10800000 {
 			clocks = <&clock CLK_MDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <1>;
+			dma-channels = <8>;
+			dma-requests = <1>;
 		};
 
 		mdma1: dma-controller@11c10000 {
@@ -482,8 +482,8 @@ mdma1: dma-controller@11c10000 {
 			clocks = <&clock CLK_MDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <1>;
+			dma-channels = <8>;
+			dma-requests = <1>;
 			/*
 			 * MDMA1 can support both secure and non-secure
 			 * AXI transactions. When this is enabled in
-- 
2.32.0


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

* [PATCH 09/10] arm64: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
                   ` (7 preceding siblings ...)
  2022-04-27 15:58 ` [PATCH 08/10] ARM: dts: exynos: " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 16:46   ` Alim Akhtar
  2022-04-27 15:58 ` [PATCH 10/10] arm64: dts: fsd: " Krzysztof Kozlowski
  9 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/exynos/exynos5433.dtsi | 12 ++++++------
 arch/arm64/boot/dts/exynos/exynos7.dtsi    |  8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
index 017ccc2f4650..91e82e4283b2 100644
--- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
@@ -1866,8 +1866,8 @@ pdma0: dma-controller@15610000 {
 			clocks = <&cmu_fsys CLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@15600000 {
@@ -1877,8 +1877,8 @@ pdma1: dma-controller@15600000 {
 			clocks = <&cmu_fsys CLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		audio-subsystem@11400000 {
@@ -1898,8 +1898,8 @@ adma: dma-controller@11420000 {
 				clocks = <&cmu_aud CLK_ACLK_DMAC>;
 				clock-names = "apb_pclk";
 				#dma-cells = <1>;
-				#dma-channels = <8>;
-				#dma-requests = <32>;
+				dma-channels = <8>;
+				dma-requests = <32>;
 				power-domains = <&pd_aud>;
 			};
 
diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi
index e38bb02a2152..c31534771620 100644
--- a/arch/arm64/boot/dts/exynos/exynos7.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi
@@ -149,8 +149,8 @@ pdma0: dma-controller@10e10000 {
 			clocks = <&clock_fsys0 ACLK_PDMA0>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		pdma1: dma-controller@10eb0000 {
@@ -160,8 +160,8 @@ pdma1: dma-controller@10eb0000 {
 			clocks = <&clock_fsys0 ACLK_PDMA1>;
 			clock-names = "apb_pclk";
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 		};
 
 		clock_topc: clock-controller@10570000 {
-- 
2.32.0


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

* [PATCH 10/10] arm64: dts: fsd: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
                   ` (8 preceding siblings ...)
  2022-04-27 15:58 ` [PATCH 09/10] arm64: " Krzysztof Kozlowski
@ 2022-04-27 15:58 ` Krzysztof Kozlowski
  2022-04-27 16:49   ` Alim Akhtar
  9 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 15:58 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Alim Akhtar,
	Dinh Nguyen, Michal Simek, Liviu Dudau, Sudeep Holla,
	Lorenzo Pieralisi, Ray Jui, Scott Branden, Broadcom Kernel Team,
	Sylwester Nawrocki, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring

pl330 DMA controller bindings documented 'dma-channels' and
'dma-requests' properties (without leading hash sign), so fix the DTS to
match the bindings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/tesla/fsd.dtsi | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi
index 10c217a57a7d..7fba37d860b2 100644
--- a/arch/arm64/boot/dts/tesla/fsd.dtsi
+++ b/arch/arm64/boot/dts/tesla/fsd.dtsi
@@ -432,8 +432,8 @@ mdma0: dma-controller@10100000 {
 			reg = <0x0 0x10100000 0x0 0x1000>;
 			interrupts = <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			clocks = <&clock_imem IMEM_DMA0_IPCLKPORT_ACLK>;
 			clock-names = "apb_pclk";
 			iommus = <&smmu_imem 0x800 0x0>;
@@ -444,8 +444,8 @@ mdma1: dma-controller@10110000 {
 			reg = <0x0 0x10110000 0x0 0x1000>;
 			interrupts = <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			clocks = <&clock_imem IMEM_DMA1_IPCLKPORT_ACLK>;
 			clock-names = "apb_pclk";
 			iommus = <&smmu_imem 0x801 0x0>;
@@ -456,8 +456,8 @@ pdma0: dma-controller@14280000 {
 			reg = <0x0 0x14280000 0x0 0x1000>;
 			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			clocks = <&clock_peric PERIC_DMA0_IPCLKPORT_ACLK>;
 			clock-names = "apb_pclk";
 			iommus = <&smmu_peric 0x2 0x0>;
@@ -468,8 +468,8 @@ pdma1: dma-controller@14290000 {
 			reg = <0x0 0x14290000 0x0 0x1000>;
 			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
 			#dma-cells = <1>;
-			#dma-channels = <8>;
-			#dma-requests = <32>;
+			dma-channels = <8>;
+			dma-requests = <32>;
 			clocks = <&clock_peric PERIC_DMA1_IPCLKPORT_ACLK>;
 			clock-names = "apb_pclk";
 			iommus = <&smmu_peric 0x1 0x0>;
-- 
2.32.0


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

* RE: [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix " Krzysztof Kozlowski
@ 2022-04-27 16:41   ` Alim Akhtar
  2022-04-27 18:25   ` Rob Herring
  2022-04-28  9:53   ` Lee Jones
  2 siblings, 0 replies; 29+ messages in thread
From: Alim Akhtar @ 2022-04-27 16:41 UTC (permalink / raw)
  To: 'Krzysztof Kozlowski', 'Lee Jones',
	'Rob Herring', 'Krzysztof Kozlowski',
	'Dinh Nguyen', 'Michal Simek',
	'Liviu Dudau', 'Sudeep Holla',
	'Lorenzo Pieralisi', 'Ray Jui',
	'Scott Branden', 'Broadcom Kernel Team',
	'Sylwester Nawrocki',
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: 'Rob Herring'



>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org]
>Sent: Wednesday, April 27, 2022 9:29 PM
>To: Lee Jones <lee.jones@linaro.org>; Rob Herring <robh+dt@kernel.org>;
>Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Alim Akhtar
><alim.akhtar@samsung.com>; Dinh Nguyen <dinguyen@kernel.org>; Michal
>Simek <michal.simek@xilinx.com>; Liviu Dudau <liviu.dudau@arm.com>;
>Sudeep Holla <sudeep.holla@arm.com>; Lorenzo Pieralisi
><lorenzo.pieralisi@arm.com>; Ray Jui <rjui@broadcom.com>; Scott Branden
><sbranden@broadcom.com>; Broadcom Kernel Team <bcm-kernel-feedback-
>list@broadcom.com>; Sylwester Nawrocki <s.nawrocki@samsung.com>;
>devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
>samsung-soc@vger.kernel.org; linux-kernel@vger.kernel.org
>Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>; Rob Herring
><robh@kernel.org>
>Subject: [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix
>'dma-channels/requests' properties
>
>pl330 DMA controller bindings documented 'dma-channels' and 'dma-
>requests' properties (without leading hash sign), so fix the DTS to match
the
>bindings.
>
>Reported-by: Rob Herring <robh@kernel.org>
>Fixes: e18183cefc8b ("mfd: Add DT bindings documentation for Samsung
>Exynos LPASS")
>Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>---
Looking at Documentation/devicetree/bindings/dma/dma-common.yaml
This change looks good.

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>


> .../devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml     | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/Documentation/devicetree/bindings/mfd/samsung,exynos5433-
>lpass.yaml b/Documentation/devicetree/bindings/mfd/samsung,exynos5433-
>lpass.yaml
>index f7bb67d10eff..b97b06848729 100644
>--- a/Documentation/devicetree/bindings/mfd/samsung,exynos5433-
>lpass.yaml
>+++ b/Documentation/devicetree/bindings/mfd/samsung,exynos5433-
>lpass.yam
>+++ l
>@@ -79,8 +79,8 @@ examples:
>             clocks = <&cmu_aud CLK_ACLK_DMAC>;
>             clock-names = "apb_pclk";
>             #dma-cells = <1>;
>-            #dma-channels = <8>;
>-            #dma-requests = <32>;
>+            dma-channels = <8>;
>+            dma-requests = <32>;
>             power-domains = <&pd_aud>;
>         };
>
>--
>2.32.0



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

* RE: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 08/10] ARM: dts: exynos: " Krzysztof Kozlowski
@ 2022-04-27 16:44   ` Alim Akhtar
  2022-04-28  9:50   ` Marek Szyprowski
  1 sibling, 0 replies; 29+ messages in thread
From: Alim Akhtar @ 2022-04-27 16:44 UTC (permalink / raw)
  To: 'Krzysztof Kozlowski', 'Lee Jones',
	'Rob Herring', 'Krzysztof Kozlowski',
	'Dinh Nguyen', 'Michal Simek',
	'Liviu Dudau', 'Sudeep Holla',
	'Lorenzo Pieralisi', 'Ray Jui',
	'Scott Branden', 'Broadcom Kernel Team',
	'Sylwester Nawrocki',
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: 'Rob Herring'



>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org]
>Sent: Wednesday, April 27, 2022 9:29 PM
>To: Lee Jones <lee.jones@linaro.org>; Rob Herring <robh+dt@kernel.org>;
>Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Alim Akhtar
><alim.akhtar@samsung.com>; Dinh Nguyen <dinguyen@kernel.org>; Michal
>Simek <michal.simek@xilinx.com>; Liviu Dudau <liviu.dudau@arm.com>;
>Sudeep Holla <sudeep.holla@arm.com>; Lorenzo Pieralisi
><lorenzo.pieralisi@arm.com>; Ray Jui <rjui@broadcom.com>; Scott Branden
><sbranden@broadcom.com>; Broadcom Kernel Team <bcm-kernel-feedback-
>list@broadcom.com>; Sylwester Nawrocki <s.nawrocki@samsung.com>;
>devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
>samsung-soc@vger.kernel.org; linux-kernel@vger.kernel.org
>Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>; Rob Herring
><robh@kernel.org>
>Subject: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-
>channels/requests' properties
>
>pl330 DMA controller bindings documented 'dma-channels' and 'dma-
>requests' properties (without leading hash sign), so fix the DTS to match
the
>bindings.
>
>Reported-by: Rob Herring <robh@kernel.org>
>Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>---

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>


> arch/arm/boot/dts/exynos3250.dtsi             |  8 ++++----
> arch/arm/boot/dts/exynos4.dtsi                | 12 +++++------
> .../boot/dts/exynos4210-universal_c210.dts    |  4 ++--
> arch/arm/boot/dts/exynos5250.dtsi             | 16 +++++++--------
> arch/arm/boot/dts/exynos5410.dtsi             |  8 ++++----
> arch/arm/boot/dts/exynos5420.dtsi             | 20 +++++++++----------
> 6 files changed, 34 insertions(+), 34 deletions(-)
>
>diff --git a/arch/arm/boot/dts/exynos3250.dtsi
>b/arch/arm/boot/dts/exynos3250.dtsi
>index 41bb421e67c2..7bdd4f0782c3 100644
>--- a/arch/arm/boot/dts/exynos3250.dtsi
>+++ b/arch/arm/boot/dts/exynos3250.dtsi
>@@ -429,8 +429,8 @@ pdma0: dma-controller@12680000 {
> 			clocks = <&cmu CLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@12690000 {
>@@ -440,8 +440,8 @@ pdma1: dma-controller@12690000 {
> 			clocks = <&cmu CLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		adc: adc@126c0000 {
>diff --git a/arch/arm/boot/dts/exynos4.dtsi
>b/arch/arm/boot/dts/exynos4.dtsi index 5fd17bc52321..2a244aaf84b4 100644
>--- a/arch/arm/boot/dts/exynos4.dtsi
>+++ b/arch/arm/boot/dts/exynos4.dtsi
>@@ -676,8 +676,8 @@ pdma0: dma-controller@12680000 {
> 			clocks = <&clock CLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@12690000 {
>@@ -687,8 +687,8 @@ pdma1: dma-controller@12690000 {
> 			clocks = <&clock CLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		mdma1: dma-controller@12850000 {
>@@ -698,8 +698,8 @@ mdma1: dma-controller@12850000 {
> 			clocks = <&clock CLK_MDMA>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <1>;
>+			dma-channels = <8>;
>+			dma-requests = <1>;
> 		};
>
> 		fimd: fimd@11c00000 {
>diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts
>b/arch/arm/boot/dts/exynos4210-universal_c210.dts
>index 138d606d58a5..c1b11704b8ee 100644
>--- a/arch/arm/boot/dts/exynos4210-universal_c210.dts
>+++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts
>@@ -666,8 +666,8 @@ mdma0: dma-controller@12840000 {
> 		clocks = <&clock CLK_MDMA>;
> 		clock-names = "apb_pclk";
> 		#dma-cells = <1>;
>-		#dma-channels = <8>;
>-		#dma-requests = <1>;
>+		dma-channels = <8>;
>+		dma-requests = <1>;
> 		power-domains = <&pd_lcd0>;
> 	};
> };
>diff --git a/arch/arm/boot/dts/exynos5250.dtsi
>b/arch/arm/boot/dts/exynos5250.dtsi
>index df80ddfada2d..c4c0b4c08094 100644
>--- a/arch/arm/boot/dts/exynos5250.dtsi
>+++ b/arch/arm/boot/dts/exynos5250.dtsi
>@@ -700,8 +700,8 @@ pdma0: dma-controller@121a0000 {
> 			clocks = <&clock CLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@121b0000 {
>@@ -711,8 +711,8 @@ pdma1: dma-controller@121b0000 {
> 			clocks = <&clock CLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		mdma0: dma-controller@10800000 {
>@@ -722,8 +722,8 @@ mdma0: dma-controller@10800000 {
> 			clocks = <&clock CLK_MDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <1>;
>+			dma-channels = <8>;
>+			dma-requests = <1>;
> 		};
>
> 		mdma1: dma-controller@11c10000 {
>@@ -733,8 +733,8 @@ mdma1: dma-controller@11c10000 {
> 			clocks = <&clock CLK_MDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <1>;
>+			dma-channels = <8>;
>+			dma-requests = <1>;
> 		};
>
> 		gsc_0: gsc@13e00000 {
>diff --git a/arch/arm/boot/dts/exynos5410.dtsi
>b/arch/arm/boot/dts/exynos5410.dtsi
>index 4d797a9abba4..6dc08cb0622c 100644
>--- a/arch/arm/boot/dts/exynos5410.dtsi
>+++ b/arch/arm/boot/dts/exynos5410.dtsi
>@@ -196,8 +196,8 @@ pdma0: dma-controller@121a0000 {
> 			clocks = <&clock CLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@121b0000 {
>@@ -207,8 +207,8 @@ pdma1: dma-controller@121b0000 {
> 			clocks = <&clock CLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		audi2s0: i2s@3830000 {
>diff --git a/arch/arm/boot/dts/exynos5420.dtsi
>b/arch/arm/boot/dts/exynos5420.dtsi
>index 21b608705049..08198d82ce8d 100644
>--- a/arch/arm/boot/dts/exynos5420.dtsi
>+++ b/arch/arm/boot/dts/exynos5420.dtsi
>@@ -437,8 +437,8 @@ adma: dma-controller@3880000 {
> 			clocks = <&clock_audss EXYNOS_ADMA>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <6>;
>-			#dma-requests = <16>;
>+			dma-channels = <6>;
>+			dma-requests = <16>;
> 			power-domains = <&mau_pd>;
> 		};
>
>@@ -449,8 +449,8 @@ pdma0: dma-controller@121a0000 {
> 			clocks = <&clock CLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@121b0000 {
>@@ -460,8 +460,8 @@ pdma1: dma-controller@121b0000 {
> 			clocks = <&clock CLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		mdma0: dma-controller@10800000 {
>@@ -471,8 +471,8 @@ mdma0: dma-controller@10800000 {
> 			clocks = <&clock CLK_MDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <1>;
>+			dma-channels = <8>;
>+			dma-requests = <1>;
> 		};
>
> 		mdma1: dma-controller@11c10000 {
>@@ -482,8 +482,8 @@ mdma1: dma-controller@11c10000 {
> 			clocks = <&clock CLK_MDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <1>;
>+			dma-channels = <8>;
>+			dma-requests = <1>;
> 			/*
> 			 * MDMA1 can support both secure and non-secure
> 			 * AXI transactions. When this is enabled in
>--
>2.32.0



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

* RE: [PATCH 07/10] ARM: dts: s5pv210: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 07/10] ARM: dts: s5pv210: use proper " Krzysztof Kozlowski
@ 2022-04-27 16:45   ` Alim Akhtar
  0 siblings, 0 replies; 29+ messages in thread
From: Alim Akhtar @ 2022-04-27 16:45 UTC (permalink / raw)
  To: 'Krzysztof Kozlowski', 'Lee Jones',
	'Rob Herring', 'Krzysztof Kozlowski',
	'Dinh Nguyen', 'Michal Simek',
	'Liviu Dudau', 'Sudeep Holla',
	'Lorenzo Pieralisi', 'Ray Jui',
	'Scott Branden', 'Broadcom Kernel Team',
	'Sylwester Nawrocki',
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: 'Rob Herring'



>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org]
>Sent: Wednesday, April 27, 2022 9:29 PM
>To: Lee Jones <lee.jones@linaro.org>; Rob Herring <robh+dt@kernel.org>;
>Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Alim Akhtar
><alim.akhtar@samsung.com>; Dinh Nguyen <dinguyen@kernel.org>; Michal
>Simek <michal.simek@xilinx.com>; Liviu Dudau <liviu.dudau@arm.com>;
>Sudeep Holla <sudeep.holla@arm.com>; Lorenzo Pieralisi
><lorenzo.pieralisi@arm.com>; Ray Jui <rjui@broadcom.com>; Scott Branden
><sbranden@broadcom.com>; Broadcom Kernel Team <bcm-kernel-feedback-
>list@broadcom.com>; Sylwester Nawrocki <s.nawrocki@samsung.com>;
>devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
>samsung-soc@vger.kernel.org; linux-kernel@vger.kernel.org
>Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>; Rob Herring
><robh@kernel.org>
>Subject: [PATCH 07/10] ARM: dts: s5pv210: use proper 'dma-
>channels/requests' properties
>
>pl330 DMA controller bindings documented 'dma-channels' and 'dma-
>requests' properties (without leading hash sign), so fix the DTS to match
the
>bindings.
>
>Reported-by: Rob Herring <robh@kernel.org>
>Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>---

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>


> arch/arm/boot/dts/s5pv210.dtsi | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
>diff --git a/arch/arm/boot/dts/s5pv210.dtsi
b/arch/arm/boot/dts/s5pv210.dtsi
>index ac281f42e8f5..f6988ba3393d 100644
>--- a/arch/arm/boot/dts/s5pv210.dtsi
>+++ b/arch/arm/boot/dts/s5pv210.dtsi
>@@ -125,8 +125,8 @@ pdma0: dma-controller@e0900000 {
> 			clocks = <&clocks CLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@e0a00000 {
>@@ -137,8 +137,8 @@ pdma1: dma-controller@e0a00000 {
> 			clocks = <&clocks CLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		adc: adc@e1700000 {
>@@ -526,8 +526,8 @@ mdma1: dma-controller@fa200000 {
> 			clocks = <&clocks CLK_MDMA>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <1>;
>+			dma-channels = <8>;
>+			dma-requests = <1>;
> 		};
>
> 		rotator: rotator@fa300000 {
>--
>2.32.0



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

* RE: [PATCH 09/10] arm64: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 09/10] arm64: " Krzysztof Kozlowski
@ 2022-04-27 16:46   ` Alim Akhtar
  0 siblings, 0 replies; 29+ messages in thread
From: Alim Akhtar @ 2022-04-27 16:46 UTC (permalink / raw)
  To: 'Krzysztof Kozlowski', 'Lee Jones',
	'Rob Herring', 'Krzysztof Kozlowski',
	'Dinh Nguyen', 'Michal Simek',
	'Liviu Dudau', 'Sudeep Holla',
	'Lorenzo Pieralisi', 'Ray Jui',
	'Scott Branden', 'Broadcom Kernel Team',
	'Sylwester Nawrocki',
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: 'Rob Herring'



>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org]
>Sent: Wednesday, April 27, 2022 9:29 PM
>To: Lee Jones <lee.jones@linaro.org>; Rob Herring <robh+dt@kernel.org>;
>Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Alim Akhtar
><alim.akhtar@samsung.com>; Dinh Nguyen <dinguyen@kernel.org>; Michal
>Simek <michal.simek@xilinx.com>; Liviu Dudau <liviu.dudau@arm.com>;
>Sudeep Holla <sudeep.holla@arm.com>; Lorenzo Pieralisi
><lorenzo.pieralisi@arm.com>; Ray Jui <rjui@broadcom.com>; Scott Branden
><sbranden@broadcom.com>; Broadcom Kernel Team <bcm-kernel-feedback-
>list@broadcom.com>; Sylwester Nawrocki <s.nawrocki@samsung.com>;
>devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
>samsung-soc@vger.kernel.org; linux-kernel@vger.kernel.org
>Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>; Rob Herring
><robh@kernel.org>
>Subject: [PATCH 09/10] arm64: dts: exynos: use proper 'dma-
>channels/requests' properties
>
>pl330 DMA controller bindings documented 'dma-channels' and 'dma-
>requests' properties (without leading hash sign), so fix the DTS to match
the
>bindings.
>
>Reported-by: Rob Herring <robh@kernel.org>
>Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>---

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>


> arch/arm64/boot/dts/exynos/exynos5433.dtsi | 12 ++++++------
> arch/arm64/boot/dts/exynos/exynos7.dtsi    |  8 ++++----
> 2 files changed, 10 insertions(+), 10 deletions(-)
>
>diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
>b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
>index 017ccc2f4650..91e82e4283b2 100644
>--- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
>+++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
>@@ -1866,8 +1866,8 @@ pdma0: dma-controller@15610000 {
> 			clocks = <&cmu_fsys CLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@15600000 {
>@@ -1877,8 +1877,8 @@ pdma1: dma-controller@15600000 {
> 			clocks = <&cmu_fsys CLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		audio-subsystem@11400000 {
>@@ -1898,8 +1898,8 @@ adma: dma-controller@11420000 {
> 				clocks = <&cmu_aud CLK_ACLK_DMAC>;
> 				clock-names = "apb_pclk";
> 				#dma-cells = <1>;
>-				#dma-channels = <8>;
>-				#dma-requests = <32>;
>+				dma-channels = <8>;
>+				dma-requests = <32>;
> 				power-domains = <&pd_aud>;
> 			};
>
>diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi
>b/arch/arm64/boot/dts/exynos/exynos7.dtsi
>index e38bb02a2152..c31534771620 100644
>--- a/arch/arm64/boot/dts/exynos/exynos7.dtsi
>+++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi
>@@ -149,8 +149,8 @@ pdma0: dma-controller@10e10000 {
> 			clocks = <&clock_fsys0 ACLK_PDMA0>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		pdma1: dma-controller@10eb0000 {
>@@ -160,8 +160,8 @@ pdma1: dma-controller@10eb0000 {
> 			clocks = <&clock_fsys0 ACLK_PDMA1>;
> 			clock-names = "apb_pclk";
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 		};
>
> 		clock_topc: clock-controller@10570000 {
>--
>2.32.0



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

* RE: [PATCH 10/10] arm64: dts: fsd: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 10/10] arm64: dts: fsd: " Krzysztof Kozlowski
@ 2022-04-27 16:49   ` Alim Akhtar
  0 siblings, 0 replies; 29+ messages in thread
From: Alim Akhtar @ 2022-04-27 16:49 UTC (permalink / raw)
  To: 'Krzysztof Kozlowski', 'Lee Jones',
	'Rob Herring', 'Krzysztof Kozlowski',
	'Dinh Nguyen', 'Michal Simek',
	'Liviu Dudau', 'Sudeep Holla',
	'Lorenzo Pieralisi', 'Ray Jui',
	'Scott Branden', 'Broadcom Kernel Team',
	'Sylwester Nawrocki',
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: 'Rob Herring'



>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org]
>Sent: Wednesday, April 27, 2022 9:29 PM
>To: Lee Jones <lee.jones@linaro.org>; Rob Herring <robh+dt@kernel.org>;
>Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Alim Akhtar
><alim.akhtar@samsung.com>; Dinh Nguyen <dinguyen@kernel.org>; Michal
>Simek <michal.simek@xilinx.com>; Liviu Dudau <liviu.dudau@arm.com>;
>Sudeep Holla <sudeep.holla@arm.com>; Lorenzo Pieralisi
><lorenzo.pieralisi@arm.com>; Ray Jui <rjui@broadcom.com>; Scott Branden
><sbranden@broadcom.com>; Broadcom Kernel Team <bcm-kernel-feedback-
>list@broadcom.com>; Sylwester Nawrocki <s.nawrocki@samsung.com>;
>devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
>samsung-soc@vger.kernel.org; linux-kernel@vger.kernel.org
>Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>; Rob Herring
><robh@kernel.org>
>Subject: [PATCH 10/10] arm64: dts: fsd: use proper 'dma-channels/requests'
>properties
>
>pl330 DMA controller bindings documented 'dma-channels' and 'dma-
>requests' properties (without leading hash sign), so fix the DTS to match
the
>bindings.
>
>Reported-by: Rob Herring <robh@kernel.org>
>Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>---

Acked-by: Alim Akhtar <alim.akhtar@samsung.com>

> arch/arm64/boot/dts/tesla/fsd.dtsi | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
>diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi
>b/arch/arm64/boot/dts/tesla/fsd.dtsi
>index 10c217a57a7d..7fba37d860b2 100644
>--- a/arch/arm64/boot/dts/tesla/fsd.dtsi
>+++ b/arch/arm64/boot/dts/tesla/fsd.dtsi
>@@ -432,8 +432,8 @@ mdma0: dma-controller@10100000 {
> 			reg = <0x0 0x10100000 0x0 0x1000>;
> 			interrupts = <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>;
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 			clocks = <&clock_imem
>IMEM_DMA0_IPCLKPORT_ACLK>;
> 			clock-names = "apb_pclk";
> 			iommus = <&smmu_imem 0x800 0x0>;
>@@ -444,8 +444,8 @@ mdma1: dma-controller@10110000 {
> 			reg = <0x0 0x10110000 0x0 0x1000>;
> 			interrupts = <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>;
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 			clocks = <&clock_imem
>IMEM_DMA1_IPCLKPORT_ACLK>;
> 			clock-names = "apb_pclk";
> 			iommus = <&smmu_imem 0x801 0x0>;
>@@ -456,8 +456,8 @@ pdma0: dma-controller@14280000 {
> 			reg = <0x0 0x14280000 0x0 0x1000>;
> 			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 			clocks = <&clock_peric
>PERIC_DMA0_IPCLKPORT_ACLK>;
> 			clock-names = "apb_pclk";
> 			iommus = <&smmu_peric 0x2 0x0>;
>@@ -468,8 +468,8 @@ pdma1: dma-controller@14290000 {
> 			reg = <0x0 0x14290000 0x0 0x1000>;
> 			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
> 			#dma-cells = <1>;
>-			#dma-channels = <8>;
>-			#dma-requests = <32>;
>+			dma-channels = <8>;
>+			dma-requests = <32>;
> 			clocks = <&clock_peric
>PERIC_DMA1_IPCLKPORT_ACLK>;
> 			clock-names = "apb_pclk";
> 			iommus = <&smmu_peric 0x1 0x0>;
>--
>2.32.0



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

* Re: [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix " Krzysztof Kozlowski
  2022-04-27 16:41   ` Alim Akhtar
@ 2022-04-27 18:25   ` Rob Herring
  2022-04-28  9:53   ` Lee Jones
  2 siblings, 0 replies; 29+ messages in thread
From: Rob Herring @ 2022-04-27 18:25 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Lee Jones, Ray Jui, linux-kernel, linux-samsung-soc,
	linux-arm-kernel, devicetree, Michal Simek, Lorenzo Pieralisi,
	Broadcom Kernel Team, Dinh Nguyen, Alim Akhtar, Scott Branden,
	Sudeep Holla, Sylwester Nawrocki, Krzysztof Kozlowski,
	Rob Herring, Liviu Dudau

On Wed, 27 Apr 2022 17:58:36 +0200, Krzysztof Kozlowski wrote:
> pl330 DMA controller bindings documented 'dma-channels' and
> 'dma-requests' properties (without leading hash sign), so fix the DTS to
> match the bindings.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Fixes: e18183cefc8b ("mfd: Add DT bindings documentation for Samsung Exynos LPASS")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml     | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 01/10] ARM: dts: zynq-7000: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 01/10] ARM: dts: zynq-7000: " Krzysztof Kozlowski
@ 2022-04-28  6:24   ` Michal Simek
  0 siblings, 0 replies; 29+ messages in thread
From: Michal Simek @ 2022-04-28  6:24 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring



On 4/27/22 17:58, Krzysztof Kozlowski wrote:
> pl330 DMA controller bindings documented 'dma-channels' and
> 'dma-requests' properties (without leading hash sign), so fix the DTS to
> match the bindings.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>   arch/arm/boot/dts/zynq-7000.dtsi | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
> index 47c2a4b14c06..40c60a2b6d2c 100644
> --- a/arch/arm/boot/dts/zynq-7000.dtsi
> +++ b/arch/arm/boot/dts/zynq-7000.dtsi
> @@ -343,8 +343,8 @@ dmac_s: dmac@f8003000 {
>   			             <0 40 4>, <0 41 4>,
>   			             <0 42 4>, <0 43 4>;
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <4>;
> +			dma-channels = <8>;
> +			dma-requests = <4>;
>   			clocks = <&clkc 27>;
>   			clock-names = "apb_pclk";
>   		};

Acked-by: Michal Simek <michal.simek@amd.com>

Thanks,
Michal

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

* Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 08/10] ARM: dts: exynos: " Krzysztof Kozlowski
  2022-04-27 16:44   ` Alim Akhtar
@ 2022-04-28  9:50   ` Marek Szyprowski
  2022-04-28  9:54     ` Krzysztof Kozlowski
  2022-04-28  9:55     ` Alim Akhtar
  1 sibling, 2 replies; 29+ messages in thread
From: Marek Szyprowski @ 2022-04-28  9:50 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring

Hi Krzysztof,

On 27.04.2022 17:58, Krzysztof Kozlowski wrote:
> pl330 DMA controller bindings documented 'dma-channels' and
> 'dma-requests' properties (without leading hash sign), so fix the DTS to
> match the bindings.
>
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Are those properties really needed for PL330 driver on Exynos SoCs? I've 
removed them and I still see the proper values read from registers and 
reported in the log (Exynos4210):

dma-pl330 12680000.dma-controller: Loaded driver for PL330 DMAC-141330
dma-pl330 12680000.dma-controller:       DBUFF-32x4bytes Num_Chans-8 
Num_Peri-32 Num_Events-32
dma-pl330 12690000.dma-controller: Loaded driver for PL330 DMAC-141330
dma-pl330 12690000.dma-controller:       DBUFF-32x4bytes Num_Chans-8 
Num_Peri-32 Num_Events-32
dma-pl330 12850000.dma-controller: Loaded driver for PL330 DMAC-141330
dma-pl330 12850000.dma-controller:       DBUFF-64x8bytes Num_Chans-8 
Num_Peri-1 Num_Events-32

I also don't see any code that would read those properties. IMHO they 
should be simply removed at all, at least for the PL330 related nodes.

> ---
>   arch/arm/boot/dts/exynos3250.dtsi             |  8 ++++----
>   arch/arm/boot/dts/exynos4.dtsi                | 12 +++++------
>   .../boot/dts/exynos4210-universal_c210.dts    |  4 ++--
>   arch/arm/boot/dts/exynos5250.dtsi             | 16 +++++++--------
>   arch/arm/boot/dts/exynos5410.dtsi             |  8 ++++----
>   arch/arm/boot/dts/exynos5420.dtsi             | 20 +++++++++----------
>   6 files changed, 34 insertions(+), 34 deletions(-)
>
> diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi
> index 41bb421e67c2..7bdd4f0782c3 100644
> --- a/arch/arm/boot/dts/exynos3250.dtsi
> +++ b/arch/arm/boot/dts/exynos3250.dtsi
> @@ -429,8 +429,8 @@ pdma0: dma-controller@12680000 {
>   			clocks = <&cmu CLK_PDMA0>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		pdma1: dma-controller@12690000 {
> @@ -440,8 +440,8 @@ pdma1: dma-controller@12690000 {
>   			clocks = <&cmu CLK_PDMA1>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		adc: adc@126c0000 {
> diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
> index 5fd17bc52321..2a244aaf84b4 100644
> --- a/arch/arm/boot/dts/exynos4.dtsi
> +++ b/arch/arm/boot/dts/exynos4.dtsi
> @@ -676,8 +676,8 @@ pdma0: dma-controller@12680000 {
>   			clocks = <&clock CLK_PDMA0>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		pdma1: dma-controller@12690000 {
> @@ -687,8 +687,8 @@ pdma1: dma-controller@12690000 {
>   			clocks = <&clock CLK_PDMA1>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		mdma1: dma-controller@12850000 {
> @@ -698,8 +698,8 @@ mdma1: dma-controller@12850000 {
>   			clocks = <&clock CLK_MDMA>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <1>;
> +			dma-channels = <8>;
> +			dma-requests = <1>;
>   		};
>   
>   		fimd: fimd@11c00000 {
> diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts b/arch/arm/boot/dts/exynos4210-universal_c210.dts
> index 138d606d58a5..c1b11704b8ee 100644
> --- a/arch/arm/boot/dts/exynos4210-universal_c210.dts
> +++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts
> @@ -666,8 +666,8 @@ mdma0: dma-controller@12840000 {
>   		clocks = <&clock CLK_MDMA>;
>   		clock-names = "apb_pclk";
>   		#dma-cells = <1>;
> -		#dma-channels = <8>;
> -		#dma-requests = <1>;
> +		dma-channels = <8>;
> +		dma-requests = <1>;
>   		power-domains = <&pd_lcd0>;
>   	};
>   };
> diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
> index df80ddfada2d..c4c0b4c08094 100644
> --- a/arch/arm/boot/dts/exynos5250.dtsi
> +++ b/arch/arm/boot/dts/exynos5250.dtsi
> @@ -700,8 +700,8 @@ pdma0: dma-controller@121a0000 {
>   			clocks = <&clock CLK_PDMA0>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		pdma1: dma-controller@121b0000 {
> @@ -711,8 +711,8 @@ pdma1: dma-controller@121b0000 {
>   			clocks = <&clock CLK_PDMA1>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		mdma0: dma-controller@10800000 {
> @@ -722,8 +722,8 @@ mdma0: dma-controller@10800000 {
>   			clocks = <&clock CLK_MDMA0>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <1>;
> +			dma-channels = <8>;
> +			dma-requests = <1>;
>   		};
>   
>   		mdma1: dma-controller@11c10000 {
> @@ -733,8 +733,8 @@ mdma1: dma-controller@11c10000 {
>   			clocks = <&clock CLK_MDMA1>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <1>;
> +			dma-channels = <8>;
> +			dma-requests = <1>;
>   		};
>   
>   		gsc_0: gsc@13e00000 {
> diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
> index 4d797a9abba4..6dc08cb0622c 100644
> --- a/arch/arm/boot/dts/exynos5410.dtsi
> +++ b/arch/arm/boot/dts/exynos5410.dtsi
> @@ -196,8 +196,8 @@ pdma0: dma-controller@121a0000 {
>   			clocks = <&clock CLK_PDMA0>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		pdma1: dma-controller@121b0000 {
> @@ -207,8 +207,8 @@ pdma1: dma-controller@121b0000 {
>   			clocks = <&clock CLK_PDMA1>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		audi2s0: i2s@3830000 {
> diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
> index 21b608705049..08198d82ce8d 100644
> --- a/arch/arm/boot/dts/exynos5420.dtsi
> +++ b/arch/arm/boot/dts/exynos5420.dtsi
> @@ -437,8 +437,8 @@ adma: dma-controller@3880000 {
>   			clocks = <&clock_audss EXYNOS_ADMA>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <6>;
> -			#dma-requests = <16>;
> +			dma-channels = <6>;
> +			dma-requests = <16>;
>   			power-domains = <&mau_pd>;
>   		};
>   
> @@ -449,8 +449,8 @@ pdma0: dma-controller@121a0000 {
>   			clocks = <&clock CLK_PDMA0>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		pdma1: dma-controller@121b0000 {
> @@ -460,8 +460,8 @@ pdma1: dma-controller@121b0000 {
>   			clocks = <&clock CLK_PDMA1>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <32>;
> +			dma-channels = <8>;
> +			dma-requests = <32>;
>   		};
>   
>   		mdma0: dma-controller@10800000 {
> @@ -471,8 +471,8 @@ mdma0: dma-controller@10800000 {
>   			clocks = <&clock CLK_MDMA0>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <1>;
> +			dma-channels = <8>;
> +			dma-requests = <1>;
>   		};
>   
>   		mdma1: dma-controller@11c10000 {
> @@ -482,8 +482,8 @@ mdma1: dma-controller@11c10000 {
>   			clocks = <&clock CLK_MDMA1>;
>   			clock-names = "apb_pclk";
>   			#dma-cells = <1>;
> -			#dma-channels = <8>;
> -			#dma-requests = <1>;
> +			dma-channels = <8>;
> +			dma-requests = <1>;
>   			/*
>   			 * MDMA1 can support both secure and non-secure
>   			 * AXI transactions. When this is enabled in

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland


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

* Re: [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix " Krzysztof Kozlowski
  2022-04-27 16:41   ` Alim Akhtar
  2022-04-27 18:25   ` Rob Herring
@ 2022-04-28  9:53   ` Lee Jones
  2 siblings, 0 replies; 29+ messages in thread
From: Lee Jones @ 2022-04-28  9:53 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Alim Akhtar, Dinh Nguyen,
	Michal Simek, Liviu Dudau, Sudeep Holla, Lorenzo Pieralisi,
	Ray Jui, Scott Branden, Broadcom Kernel Team, Sylwester Nawrocki,
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel,
	Rob Herring

On Wed, 27 Apr 2022, Krzysztof Kozlowski wrote:

> pl330 DMA controller bindings documented 'dma-channels' and
> 'dma-requests' properties (without leading hash sign), so fix the DTS to
> match the bindings.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Fixes: e18183cefc8b ("mfd: Add DT bindings documentation for Samsung Exynos LPASS")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml     | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-28  9:50   ` Marek Szyprowski
@ 2022-04-28  9:54     ` Krzysztof Kozlowski
  2022-04-28  9:57       ` Marek Szyprowski
  2022-04-28  9:55     ` Alim Akhtar
  1 sibling, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-28  9:54 UTC (permalink / raw)
  To: Marek Szyprowski, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring

On 28/04/2022 11:50, Marek Szyprowski wrote:
> Hi Krzysztof,
> 
> On 27.04.2022 17:58, Krzysztof Kozlowski wrote:
>> pl330 DMA controller bindings documented 'dma-channels' and
>> 'dma-requests' properties (without leading hash sign), so fix the DTS to
>> match the bindings.
>>
>> Reported-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> Are those properties really needed for PL330 driver on Exynos SoCs? I've 
> removed them and I still see the proper values read from registers and 
> reported in the log (Exynos4210):
> 
> dma-pl330 12680000.dma-controller: Loaded driver for PL330 DMAC-141330
> dma-pl330 12680000.dma-controller:       DBUFF-32x4bytes Num_Chans-8 
> Num_Peri-32 Num_Events-32
> dma-pl330 12690000.dma-controller: Loaded driver for PL330 DMAC-141330
> dma-pl330 12690000.dma-controller:       DBUFF-32x4bytes Num_Chans-8 
> Num_Peri-32 Num_Events-32
> dma-pl330 12850000.dma-controller: Loaded driver for PL330 DMAC-141330
> dma-pl330 12850000.dma-controller:       DBUFF-64x8bytes Num_Chans-8 
> Num_Peri-1 Num_Events-32
> 
> I also don't see any code that would read those properties. IMHO they 
> should be simply removed at all, at least for the PL330 related nodes.

In current Linux implementation they indeed are not used. Nothing parses
them. However:
1. They describe (hopefully correct) the hardware.
2. They might be used by other implementations of pl330 driver.

I would not remove them from existing sources, but indeed maybe there is
no need to add for new files.

Best regards,
Krzysztof

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

* RE: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-28  9:50   ` Marek Szyprowski
  2022-04-28  9:54     ` Krzysztof Kozlowski
@ 2022-04-28  9:55     ` Alim Akhtar
  1 sibling, 0 replies; 29+ messages in thread
From: Alim Akhtar @ 2022-04-28  9:55 UTC (permalink / raw)
  To: 'Marek Szyprowski', 'Krzysztof Kozlowski',
	'Lee Jones', 'Rob Herring',
	'Krzysztof Kozlowski', 'Dinh Nguyen',
	'Michal Simek', 'Liviu Dudau',
	'Sudeep Holla', 'Lorenzo Pieralisi',
	'Ray Jui', 'Scott Branden',
	'Broadcom Kernel Team', 'Sylwester Nawrocki',
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: 'Rob Herring'



>-----Original Message-----
>From: Marek Szyprowski [mailto:m.szyprowski@samsung.com]
>Sent: Thursday, April 28, 2022 3:20 PM
>To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>; Lee Jones
><lee.jones@linaro.org>; Rob Herring <robh+dt@kernel.org>; Krzysztof
>Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Alim Akhtar
><alim.akhtar@samsung.com>; Dinh Nguyen <dinguyen@kernel.org>; Michal
>Simek <michal.simek@xilinx.com>; Liviu Dudau <liviu.dudau@arm.com>;
>Sudeep Holla <sudeep.holla@arm.com>; Lorenzo Pieralisi
><lorenzo.pieralisi@arm.com>; Ray Jui <rjui@broadcom.com>; Scott Branden
><sbranden@broadcom.com>; Broadcom Kernel Team <bcm-kernel-feedback-
>list@broadcom.com>; Sylwester Nawrocki <s.nawrocki@samsung.com>;
>devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
>samsung-soc@vger.kernel.org; linux-kernel@vger.kernel.org
>Cc: Rob Herring <robh@kernel.org>
>Subject: Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-
>channels/requests' properties
>
>Hi Krzysztof,
>
>On 27.04.2022 17:58, Krzysztof Kozlowski wrote:
>> pl330 DMA controller bindings documented 'dma-channels' and
>> 'dma-requests' properties (without leading hash sign), so fix the DTS
>> to match the bindings.
>>
>> Reported-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
>Are those properties really needed for PL330 driver on Exynos SoCs? I've
>removed them and I still see the proper values read from registers and
>reported in the log (Exynos4210):
>
>dma-pl330 12680000.dma-controller: Loaded driver for PL330 DMAC-141330
>dma-pl330 12680000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>Num_Peri-32 Num_Events-32
>dma-pl330 12690000.dma-controller: Loaded driver for PL330 DMAC-141330
>dma-pl330 12690000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>Num_Peri-32 Num_Events-32
>dma-pl330 12850000.dma-controller: Loaded driver for PL330 DMAC-141330
>dma-pl330 12850000.dma-controller:       DBUFF-64x8bytes Num_Chans-8
>Num_Peri-1 Num_Events-32
>
>I also don't see any code that would read those properties. IMHO they should
>be simply removed at all, at least for the PL330 related nodes.
>
I thought these series is correcting the DMA binding error, however is DMA binding itself is broken then probably this need a relook. 

>> ---
>>   arch/arm/boot/dts/exynos3250.dtsi             |  8 ++++----
>>   arch/arm/boot/dts/exynos4.dtsi                | 12 +++++------
>>   .../boot/dts/exynos4210-universal_c210.dts    |  4 ++--
>>   arch/arm/boot/dts/exynos5250.dtsi             | 16 +++++++--------
>>   arch/arm/boot/dts/exynos5410.dtsi             |  8 ++++----
>>   arch/arm/boot/dts/exynos5420.dtsi             | 20 +++++++++----------
>>   6 files changed, 34 insertions(+), 34 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/exynos3250.dtsi
>> b/arch/arm/boot/dts/exynos3250.dtsi
>> index 41bb421e67c2..7bdd4f0782c3 100644
>> --- a/arch/arm/boot/dts/exynos3250.dtsi
>> +++ b/arch/arm/boot/dts/exynos3250.dtsi
>> @@ -429,8 +429,8 @@ pdma0: dma-controller@12680000 {
>>   			clocks = <&cmu CLK_PDMA0>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		pdma1: dma-controller@12690000 {
>> @@ -440,8 +440,8 @@ pdma1: dma-controller@12690000 {
>>   			clocks = <&cmu CLK_PDMA1>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		adc: adc@126c0000 {
>> diff --git a/arch/arm/boot/dts/exynos4.dtsi
>> b/arch/arm/boot/dts/exynos4.dtsi index 5fd17bc52321..2a244aaf84b4
>> 100644
>> --- a/arch/arm/boot/dts/exynos4.dtsi
>> +++ b/arch/arm/boot/dts/exynos4.dtsi
>> @@ -676,8 +676,8 @@ pdma0: dma-controller@12680000 {
>>   			clocks = <&clock CLK_PDMA0>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		pdma1: dma-controller@12690000 {
>> @@ -687,8 +687,8 @@ pdma1: dma-controller@12690000 {
>>   			clocks = <&clock CLK_PDMA1>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		mdma1: dma-controller@12850000 {
>> @@ -698,8 +698,8 @@ mdma1: dma-controller@12850000 {
>>   			clocks = <&clock CLK_MDMA>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <1>;
>> +			dma-channels = <8>;
>> +			dma-requests = <1>;
>>   		};
>>
>>   		fimd: fimd@11c00000 {
>> diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts
>> b/arch/arm/boot/dts/exynos4210-universal_c210.dts
>> index 138d606d58a5..c1b11704b8ee 100644
>> --- a/arch/arm/boot/dts/exynos4210-universal_c210.dts
>> +++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts
>> @@ -666,8 +666,8 @@ mdma0: dma-controller@12840000 {
>>   		clocks = <&clock CLK_MDMA>;
>>   		clock-names = "apb_pclk";
>>   		#dma-cells = <1>;
>> -		#dma-channels = <8>;
>> -		#dma-requests = <1>;
>> +		dma-channels = <8>;
>> +		dma-requests = <1>;
>>   		power-domains = <&pd_lcd0>;
>>   	};
>>   };
>> diff --git a/arch/arm/boot/dts/exynos5250.dtsi
>> b/arch/arm/boot/dts/exynos5250.dtsi
>> index df80ddfada2d..c4c0b4c08094 100644
>> --- a/arch/arm/boot/dts/exynos5250.dtsi
>> +++ b/arch/arm/boot/dts/exynos5250.dtsi
>> @@ -700,8 +700,8 @@ pdma0: dma-controller@121a0000 {
>>   			clocks = <&clock CLK_PDMA0>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		pdma1: dma-controller@121b0000 {
>> @@ -711,8 +711,8 @@ pdma1: dma-controller@121b0000 {
>>   			clocks = <&clock CLK_PDMA1>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		mdma0: dma-controller@10800000 {
>> @@ -722,8 +722,8 @@ mdma0: dma-controller@10800000 {
>>   			clocks = <&clock CLK_MDMA0>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <1>;
>> +			dma-channels = <8>;
>> +			dma-requests = <1>;
>>   		};
>>
>>   		mdma1: dma-controller@11c10000 {
>> @@ -733,8 +733,8 @@ mdma1: dma-controller@11c10000 {
>>   			clocks = <&clock CLK_MDMA1>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <1>;
>> +			dma-channels = <8>;
>> +			dma-requests = <1>;
>>   		};
>>
>>   		gsc_0: gsc@13e00000 {
>> diff --git a/arch/arm/boot/dts/exynos5410.dtsi
>> b/arch/arm/boot/dts/exynos5410.dtsi
>> index 4d797a9abba4..6dc08cb0622c 100644
>> --- a/arch/arm/boot/dts/exynos5410.dtsi
>> +++ b/arch/arm/boot/dts/exynos5410.dtsi
>> @@ -196,8 +196,8 @@ pdma0: dma-controller@121a0000 {
>>   			clocks = <&clock CLK_PDMA0>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		pdma1: dma-controller@121b0000 {
>> @@ -207,8 +207,8 @@ pdma1: dma-controller@121b0000 {
>>   			clocks = <&clock CLK_PDMA1>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		audi2s0: i2s@3830000 {
>> diff --git a/arch/arm/boot/dts/exynos5420.dtsi
>> b/arch/arm/boot/dts/exynos5420.dtsi
>> index 21b608705049..08198d82ce8d 100644
>> --- a/arch/arm/boot/dts/exynos5420.dtsi
>> +++ b/arch/arm/boot/dts/exynos5420.dtsi
>> @@ -437,8 +437,8 @@ adma: dma-controller@3880000 {
>>   			clocks = <&clock_audss EXYNOS_ADMA>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <6>;
>> -			#dma-requests = <16>;
>> +			dma-channels = <6>;
>> +			dma-requests = <16>;
>>   			power-domains = <&mau_pd>;
>>   		};
>>
>> @@ -449,8 +449,8 @@ pdma0: dma-controller@121a0000 {
>>   			clocks = <&clock CLK_PDMA0>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		pdma1: dma-controller@121b0000 {
>> @@ -460,8 +460,8 @@ pdma1: dma-controller@121b0000 {
>>   			clocks = <&clock CLK_PDMA1>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <32>;
>> +			dma-channels = <8>;
>> +			dma-requests = <32>;
>>   		};
>>
>>   		mdma0: dma-controller@10800000 {
>> @@ -471,8 +471,8 @@ mdma0: dma-controller@10800000 {
>>   			clocks = <&clock CLK_MDMA0>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <1>;
>> +			dma-channels = <8>;
>> +			dma-requests = <1>;
>>   		};
>>
>>   		mdma1: dma-controller@11c10000 {
>> @@ -482,8 +482,8 @@ mdma1: dma-controller@11c10000 {
>>   			clocks = <&clock CLK_MDMA1>;
>>   			clock-names = "apb_pclk";
>>   			#dma-cells = <1>;
>> -			#dma-channels = <8>;
>> -			#dma-requests = <1>;
>> +			dma-channels = <8>;
>> +			dma-requests = <1>;
>>   			/*
>>   			 * MDMA1 can support both secure and non-secure
>>   			 * AXI transactions. When this is enabled in
>
>Best regards
>--
>Marek Szyprowski, PhD
>Samsung R&D Institute Poland



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

* Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-28  9:54     ` Krzysztof Kozlowski
@ 2022-04-28  9:57       ` Marek Szyprowski
  2022-04-28 10:00         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 29+ messages in thread
From: Marek Szyprowski @ 2022-04-28  9:57 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring

On 28.04.2022 11:54, Krzysztof Kozlowski wrote:
> On 28/04/2022 11:50, Marek Szyprowski wrote:
>> On 27.04.2022 17:58, Krzysztof Kozlowski wrote:
>>> pl330 DMA controller bindings documented 'dma-channels' and
>>> 'dma-requests' properties (without leading hash sign), so fix the DTS to
>>> match the bindings.
>>>
>>> Reported-by: Rob Herring <robh@kernel.org>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> Are those properties really needed for PL330 driver on Exynos SoCs? I've
>> removed them and I still see the proper values read from registers and
>> reported in the log (Exynos4210):
>>
>> dma-pl330 12680000.dma-controller: Loaded driver for PL330 DMAC-141330
>> dma-pl330 12680000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>> Num_Peri-32 Num_Events-32
>> dma-pl330 12690000.dma-controller: Loaded driver for PL330 DMAC-141330
>> dma-pl330 12690000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>> Num_Peri-32 Num_Events-32
>> dma-pl330 12850000.dma-controller: Loaded driver for PL330 DMAC-141330
>> dma-pl330 12850000.dma-controller:       DBUFF-64x8bytes Num_Chans-8
>> Num_Peri-1 Num_Events-32
>>
>> I also don't see any code that would read those properties. IMHO they
>> should be simply removed at all, at least for the PL330 related nodes.
> In current Linux implementation they indeed are not used. Nothing parses
> them. However:
> 1. They describe (hopefully correct) the hardware.
> 2. They might be used by other implementations of pl330 driver.
>
> I would not remove them from existing sources, but indeed maybe there is
> no need to add for new files.

What's the point in having dt properties duplicating data that might be 
read from the driver registers?


Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland


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

* Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-28  9:57       ` Marek Szyprowski
@ 2022-04-28 10:00         ` Krzysztof Kozlowski
  2022-04-28 10:05           ` Marek Szyprowski
  0 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-28 10:00 UTC (permalink / raw)
  To: Marek Szyprowski, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring

On 28/04/2022 11:57, Marek Szyprowski wrote:
> On 28.04.2022 11:54, Krzysztof Kozlowski wrote:
>> On 28/04/2022 11:50, Marek Szyprowski wrote:
>>> On 27.04.2022 17:58, Krzysztof Kozlowski wrote:
>>>> pl330 DMA controller bindings documented 'dma-channels' and
>>>> 'dma-requests' properties (without leading hash sign), so fix the DTS to
>>>> match the bindings.
>>>>
>>>> Reported-by: Rob Herring <robh@kernel.org>
>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> Are those properties really needed for PL330 driver on Exynos SoCs? I've
>>> removed them and I still see the proper values read from registers and
>>> reported in the log (Exynos4210):
>>>
>>> dma-pl330 12680000.dma-controller: Loaded driver for PL330 DMAC-141330
>>> dma-pl330 12680000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>>> Num_Peri-32 Num_Events-32
>>> dma-pl330 12690000.dma-controller: Loaded driver for PL330 DMAC-141330
>>> dma-pl330 12690000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>>> Num_Peri-32 Num_Events-32
>>> dma-pl330 12850000.dma-controller: Loaded driver for PL330 DMAC-141330
>>> dma-pl330 12850000.dma-controller:       DBUFF-64x8bytes Num_Chans-8
>>> Num_Peri-1 Num_Events-32
>>>
>>> I also don't see any code that would read those properties. IMHO they
>>> should be simply removed at all, at least for the PL330 related nodes.
>> In current Linux implementation they indeed are not used. Nothing parses
>> them. However:
>> 1. They describe (hopefully correct) the hardware.
>> 2. They might be used by other implementations of pl330 driver.
>>
>> I would not remove them from existing sources, but indeed maybe there is
>> no need to add for new files.
> 
> What's the point in having dt properties duplicating data that might be 
> read from the driver registers?

Hm, indeed, there is no point in this. Since they are read from
registers, what was the idea behind in commit 42cf20980cde?

Best regards,
Krzysztof

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

* Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-28 10:00         ` Krzysztof Kozlowski
@ 2022-04-28 10:05           ` Marek Szyprowski
  2022-04-28 10:09             ` Krzysztof Kozlowski
  0 siblings, 1 reply; 29+ messages in thread
From: Marek Szyprowski @ 2022-04-28 10:05 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring

On 28.04.2022 12:00, Krzysztof Kozlowski wrote:
> On 28/04/2022 11:57, Marek Szyprowski wrote:
>> On 28.04.2022 11:54, Krzysztof Kozlowski wrote:
>>> On 28/04/2022 11:50, Marek Szyprowski wrote:
>>>> On 27.04.2022 17:58, Krzysztof Kozlowski wrote:
>>>>> pl330 DMA controller bindings documented 'dma-channels' and
>>>>> 'dma-requests' properties (without leading hash sign), so fix the DTS to
>>>>> match the bindings.
>>>>>
>>>>> Reported-by: Rob Herring <robh@kernel.org>
>>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>>> Are those properties really needed for PL330 driver on Exynos SoCs? I've
>>>> removed them and I still see the proper values read from registers and
>>>> reported in the log (Exynos4210):
>>>>
>>>> dma-pl330 12680000.dma-controller: Loaded driver for PL330 DMAC-141330
>>>> dma-pl330 12680000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>>>> Num_Peri-32 Num_Events-32
>>>> dma-pl330 12690000.dma-controller: Loaded driver for PL330 DMAC-141330
>>>> dma-pl330 12690000.dma-controller:       DBUFF-32x4bytes Num_Chans-8
>>>> Num_Peri-32 Num_Events-32
>>>> dma-pl330 12850000.dma-controller: Loaded driver for PL330 DMAC-141330
>>>> dma-pl330 12850000.dma-controller:       DBUFF-64x8bytes Num_Chans-8
>>>> Num_Peri-1 Num_Events-32
>>>>
>>>> I also don't see any code that would read those properties. IMHO they
>>>> should be simply removed at all, at least for the PL330 related nodes.
>>> In current Linux implementation they indeed are not used. Nothing parses
>>> them. However:
>>> 1. They describe (hopefully correct) the hardware.
>>> 2. They might be used by other implementations of pl330 driver.
>>>
>>> I would not remove them from existing sources, but indeed maybe there is
>>> no need to add for new files.
>> What's the point in having dt properties duplicating data that might be
>> read from the driver registers?
> Hm, indeed, there is no point in this. Since they are read from
> registers, what was the idea behind in commit 42cf20980cde?

#dma-cells is indeed required, but the rest seems to be the cargo-cult 
of some kind.


Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland


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

* Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-28 10:05           ` Marek Szyprowski
@ 2022-04-28 10:09             ` Krzysztof Kozlowski
  2022-04-28 13:33               ` Rob Herring
  0 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-28 10:09 UTC (permalink / raw)
  To: Marek Szyprowski, Rob Herring
  Cc: devicetree, Dinh Nguyen, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Sudeep Holla, Michal Simek,
	Lorenzo Pieralisi, Scott Branden, Sylwester Nawrocki,
	linux-samsung-soc, Broadcom Kernel Team, linux-kernel,
	Alim Akhtar, Liviu Dudau, Ray Jui, linux-arm-kernel

On 28/04/2022 12:05, Marek Szyprowski wrote:
>>>>> I also don't see any code that would read those properties. IMHO they
>>>>> should be simply removed at all, at least for the PL330 related nodes.
>>>> In current Linux implementation they indeed are not used. Nothing parses
>>>> them. However:
>>>> 1. They describe (hopefully correct) the hardware.
>>>> 2. They might be used by other implementations of pl330 driver.
>>>>
>>>> I would not remove them from existing sources, but indeed maybe there is
>>>> no need to add for new files.
>>> What's the point in having dt properties duplicating data that might be
>>> read from the driver registers?
>> Hm, indeed, there is no point in this. Since they are read from
>> registers, what was the idea behind in commit 42cf20980cde?
> 
> #dma-cells is indeed required, but the rest seems to be the cargo-cult 
> of some kind.

Rob,

Any guidance from your side? Is there any benefit in describing the
hadrware (dma-channels/dma-requests) if the same value can be read from
registers?


Best regards,
Krzysztof

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

* Re: [PATCH 04/10] arm64: dts: juno: use proper 'dma-channels/requests' properties
  2022-04-27 15:58 ` [PATCH 04/10] arm64: dts: juno: " Krzysztof Kozlowski
@ 2022-04-28 10:43   ` Robin Murphy
  2022-04-28 10:45     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 29+ messages in thread
From: Robin Murphy @ 2022-04-28 10:43 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring

On 2022-04-27 16:58, Krzysztof Kozlowski wrote:
> pl330 DMA controller bindings documented 'dma-channels' and
> 'dma-requests' properties (without leading hash sign), so fix the DTS to
> match the bindings.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>   arch/arm64/boot/dts/arm/juno-base.dtsi | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
> index 4f40a5c8f565..96ef0ddc0b2d 100644
> --- a/arch/arm64/boot/dts/arm/juno-base.dtsi
> +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
> @@ -829,8 +829,8 @@ dma-controller@7ff00000 {
>   		compatible = "arm,pl330", "arm,primecell";
>   		reg = <0x0 0x7ff00000 0 0x1000>;
>   		#dma-cells = <1>;
> -		#dma-channels = <8>;
> -		#dma-requests = <32>;
> +		dma-channels = <8>;
> +		dma-requests = <32>;

BTW, this has always been wrong - Juno is configured with only 8 request 
interfaces. But then it's moot anyway since PL330 has an ID register for 
this stuff[1], so the DT properties aren't used by Linux, and shouldn't 
be needed in general.

Thanks,
Robin.

[1] 
https://developer.arm.com/documentation/ddi0424/d/programmers-model/register-descriptions/configuration-register-0?lang=en

>   		interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
>   			     <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
>   			     <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,

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

* Re: [PATCH 04/10] arm64: dts: juno: use proper 'dma-channels/requests' properties
  2022-04-28 10:43   ` Robin Murphy
@ 2022-04-28 10:45     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-28 10:45 UTC (permalink / raw)
  To: Robin Murphy, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Alim Akhtar, Dinh Nguyen, Michal Simek, Liviu Dudau,
	Sudeep Holla, Lorenzo Pieralisi, Ray Jui, Scott Branden,
	Broadcom Kernel Team, Sylwester Nawrocki, devicetree,
	linux-arm-kernel, linux-samsung-soc, linux-kernel
  Cc: Rob Herring

On 28/04/2022 12:43, Robin Murphy wrote:
> On 2022-04-27 16:58, Krzysztof Kozlowski wrote:
>> pl330 DMA controller bindings documented 'dma-channels' and
>> 'dma-requests' properties (without leading hash sign), so fix the DTS to
>> match the bindings.
>>
>> Reported-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>>   arch/arm64/boot/dts/arm/juno-base.dtsi | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
>> index 4f40a5c8f565..96ef0ddc0b2d 100644
>> --- a/arch/arm64/boot/dts/arm/juno-base.dtsi
>> +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
>> @@ -829,8 +829,8 @@ dma-controller@7ff00000 {
>>   		compatible = "arm,pl330", "arm,primecell";
>>   		reg = <0x0 0x7ff00000 0 0x1000>;
>>   		#dma-cells = <1>;
>> -		#dma-channels = <8>;
>> -		#dma-requests = <32>;
>> +		dma-channels = <8>;
>> +		dma-requests = <32>;
> 
> BTW, this has always been wrong - Juno is configured with only 8 request 
> interfaces. But then it's moot anyway since PL330 has an ID register for 
> this stuff[1], so the DT properties aren't used by Linux, and shouldn't 
> be needed in general.

Marek also raised the point [1] that these properties are useless for
PL330 because the actual data is read from the device registers.

I understand you are also supporting the idea of removing them from
pl330 device nodes?

[1]
https://lore.kernel.org/linux-devicetree/20220427155840.596535-1-krzysztof.kozlowski@linaro.org/T/#mf108b8c9f0d513ebc6e381775e3c6887b5c2fe31

Best regards,
Krzysztof

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

* Re: [PATCH 08/10] ARM: dts: exynos: use proper 'dma-channels/requests' properties
  2022-04-28 10:09             ` Krzysztof Kozlowski
@ 2022-04-28 13:33               ` Rob Herring
  0 siblings, 0 replies; 29+ messages in thread
From: Rob Herring @ 2022-04-28 13:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Marek Szyprowski, devicetree, Dinh Nguyen, Lee Jones,
	Krzysztof Kozlowski, Sudeep Holla, Michal Simek,
	Lorenzo Pieralisi, Scott Branden, Sylwester Nawrocki,
	linux-samsung-soc, Broadcom Kernel Team, linux-kernel,
	Alim Akhtar, Liviu Dudau, Ray Jui, linux-arm-kernel

On Thu, Apr 28, 2022 at 12:09:02PM +0200, Krzysztof Kozlowski wrote:
> On 28/04/2022 12:05, Marek Szyprowski wrote:
> >>>>> I also don't see any code that would read those properties. IMHO they
> >>>>> should be simply removed at all, at least for the PL330 related nodes.
> >>>> In current Linux implementation they indeed are not used. Nothing parses
> >>>> them. However:
> >>>> 1. They describe (hopefully correct) the hardware.
> >>>> 2. They might be used by other implementations of pl330 driver.
> >>>>
> >>>> I would not remove them from existing sources, but indeed maybe there is
> >>>> no need to add for new files.
> >>> What's the point in having dt properties duplicating data that might be
> >>> read from the driver registers?
> >> Hm, indeed, there is no point in this. Since they are read from
> >> registers, what was the idea behind in commit 42cf20980cde?
> > 
> > #dma-cells is indeed required, but the rest seems to be the cargo-cult 
> > of some kind.
> 
> Rob,
> 
> Any guidance from your side? Is there any benefit in describing the
> hadrware (dma-channels/dma-requests) if the same value can be read from
> registers?

Drop the properties. They should only be an override if ever needed.

Rob

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

end of thread, other threads:[~2022-04-28 13:33 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 15:58 [PATCH 00/10] ARM/arm64: dts: use proper 'dma-channels/requests' properties Krzysztof Kozlowski
2022-04-27 15:58 ` [PATCH 01/10] ARM: dts: zynq-7000: " Krzysztof Kozlowski
2022-04-28  6:24   ` Michal Simek
2022-04-27 15:58 ` [PATCH 02/10] ARM: dts: socfpga: " Krzysztof Kozlowski
2022-04-27 15:58 ` [PATCH 03/10] arm64: dts: stratix10/agilex: " Krzysztof Kozlowski
2022-04-27 15:58 ` [PATCH 04/10] arm64: dts: juno: " Krzysztof Kozlowski
2022-04-28 10:43   ` Robin Murphy
2022-04-28 10:45     ` Krzysztof Kozlowski
2022-04-27 15:58 ` [PATCH 05/10] arm64: dts: broadcom: " Krzysztof Kozlowski
2022-04-27 15:58 ` [PATCH 06/10] dt-bindings: mfd: samsung,exynos5433-lpass: fix " Krzysztof Kozlowski
2022-04-27 16:41   ` Alim Akhtar
2022-04-27 18:25   ` Rob Herring
2022-04-28  9:53   ` Lee Jones
2022-04-27 15:58 ` [PATCH 07/10] ARM: dts: s5pv210: use proper " Krzysztof Kozlowski
2022-04-27 16:45   ` Alim Akhtar
2022-04-27 15:58 ` [PATCH 08/10] ARM: dts: exynos: " Krzysztof Kozlowski
2022-04-27 16:44   ` Alim Akhtar
2022-04-28  9:50   ` Marek Szyprowski
2022-04-28  9:54     ` Krzysztof Kozlowski
2022-04-28  9:57       ` Marek Szyprowski
2022-04-28 10:00         ` Krzysztof Kozlowski
2022-04-28 10:05           ` Marek Szyprowski
2022-04-28 10:09             ` Krzysztof Kozlowski
2022-04-28 13:33               ` Rob Herring
2022-04-28  9:55     ` Alim Akhtar
2022-04-27 15:58 ` [PATCH 09/10] arm64: " Krzysztof Kozlowski
2022-04-27 16:46   ` Alim Akhtar
2022-04-27 15:58 ` [PATCH 10/10] arm64: dts: fsd: " Krzysztof Kozlowski
2022-04-27 16:49   ` Alim Akhtar

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).