All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] riscv: dts: fu740: Add PDMA node
@ 2021-12-03  9:57 v.v.mitrofanov
  2021-12-03  9:57 ` [PATCH 1/1] " v.v.mitrofanov
  0 siblings, 1 reply; 4+ messages in thread
From: v.v.mitrofanov @ 2021-12-03  9:57 UTC (permalink / raw)
  To: Rob Herring, Palmer Dabbelt, Paul Walmsley, Albert Ou,
	David Abdurachmanov, Lorenzo Pieralisi, Atish Patra, Yash Shah,
	Greentime Hu, v.v.mitrofanov, devicetree, linux-riscv,
	linux-kernel

Sifive FU740 supports PDMA but is not implemented in DT. The same
PDMA module implemented in FU750 chip. I added DT description with all
required fields. I also tested PDMA robust with drivers/dma/dmatest.ko test.

v.v.mitrofanov (1):
  riscv: dts: fu740: Add PDMA node

 arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.30.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* [PATCH 1/1] riscv: dts: fu740: Add PDMA node
  2021-12-03  9:57 [PATCH 0/1] riscv: dts: fu740: Add PDMA node v.v.mitrofanov
@ 2021-12-03  9:57 ` v.v.mitrofanov
  2021-12-03 10:50     ` Jessica Clarke
  0 siblings, 1 reply; 4+ messages in thread
From: v.v.mitrofanov @ 2021-12-03  9:57 UTC (permalink / raw)
  To: Rob Herring, Palmer Dabbelt, Paul Walmsley, Albert Ou,
	David Abdurachmanov, Yash Shah, Atish Patra, v.v.mitrofanov,
	Greentime Hu, devicetree, linux-riscv, linux-kernel

HiFive unmatched supports PDMA but is not implemented in DT.

Add the PDMA node in SiFive FU740 soc-specific DT file.

Signed-off-by: v.v.mitrofanov <v.v.mitrofanov@yadro.com>
---
 arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
index 64ff2e758336..833fb4f4376b 100644
--- a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
+++ b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
@@ -164,6 +164,13 @@ prci: clock-controller@10000000 {
 			#clock-cells = <1>;
 			#reset-cells = <1>;
 		};
+		dma: dma@3000000 {
+			compatible = "sifive,fu540-c000-pdma";
+			reg = <0x0 0x3000000 0x0 0x8000>;
+			interrupt-parent = <&plic0>;
+			interrupts = <11 12 13 14 15 16 17 18>;
+			#dma-cells = <1>;
+		};
 		uart0: serial@10010000 {
 			compatible = "sifive,fu740-c000-uart", "sifive,uart0";
 			reg = <0x0 0x10010000 0x0 0x1000>;
-- 
2.30.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH 1/1] riscv: dts: fu740: Add PDMA node
  2021-12-03  9:57 ` [PATCH 1/1] " v.v.mitrofanov
@ 2021-12-03 10:50     ` Jessica Clarke
  0 siblings, 0 replies; 4+ messages in thread
From: Jessica Clarke @ 2021-12-03 10:50 UTC (permalink / raw)
  To: v.v.mitrofanov
  Cc: Rob Herring, Palmer Dabbelt, Paul Walmsley, Albert Ou,
	David Abdurachmanov, Yash Shah, Atish Patra, Greentime Hu,
	devicetree, linux-riscv, linux-kernel

On 3 Dec 2021, at 09:57, v.v.mitrofanov <v.v.mitrofanov@yadro.com> wrote:
> 
> HiFive unmatched supports PDMA but is not implemented in DT.
> 
> Add the PDMA node in SiFive FU740 soc-specific DT file.
> 
> Signed-off-by: v.v.mitrofanov <v.v.mitrofanov@yadro.com>
> ---
> arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
> 
> diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
> index 64ff2e758336..833fb4f4376b 100644
> --- a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
> +++ b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
> @@ -164,6 +164,13 @@ prci: clock-controller@10000000 {
> 			#clock-cells = <1>;
> 			#reset-cells = <1>;
> 		};
> +		dma: dma@3000000 {
> +			compatible = "sifive,fu540-c000-pdma";

I know the PLIC and CGEM devices abuse fu540-specific compatible
strings (which it would be great to fix; FreeBSD is already prepared
for that, though it’d also be nice to introduce a generic compatible
string for the SiFive CGEM rather than having just a SoC-specific one
given the FU540 and FU740 have the same interface), but let’s not make
things worse. This should say fu740, and there should also be a generic
SiFive PDMA compatible so we don’t need to add a new compatible to an
otherwise-unchanged driver every time a new SiFive SoC appears.

Jess


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

* Re: [PATCH 1/1] riscv: dts: fu740: Add PDMA node
@ 2021-12-03 10:50     ` Jessica Clarke
  0 siblings, 0 replies; 4+ messages in thread
From: Jessica Clarke @ 2021-12-03 10:50 UTC (permalink / raw)
  To: v.v.mitrofanov
  Cc: Rob Herring, Palmer Dabbelt, Paul Walmsley, Albert Ou,
	David Abdurachmanov, Yash Shah, Atish Patra, Greentime Hu,
	devicetree, linux-riscv, linux-kernel

On 3 Dec 2021, at 09:57, v.v.mitrofanov <v.v.mitrofanov@yadro.com> wrote:
> 
> HiFive unmatched supports PDMA but is not implemented in DT.
> 
> Add the PDMA node in SiFive FU740 soc-specific DT file.
> 
> Signed-off-by: v.v.mitrofanov <v.v.mitrofanov@yadro.com>
> ---
> arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
> 
> diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
> index 64ff2e758336..833fb4f4376b 100644
> --- a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
> +++ b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
> @@ -164,6 +164,13 @@ prci: clock-controller@10000000 {
> 			#clock-cells = <1>;
> 			#reset-cells = <1>;
> 		};
> +		dma: dma@3000000 {
> +			compatible = "sifive,fu540-c000-pdma";

I know the PLIC and CGEM devices abuse fu540-specific compatible
strings (which it would be great to fix; FreeBSD is already prepared
for that, though it’d also be nice to introduce a generic compatible
string for the SiFive CGEM rather than having just a SoC-specific one
given the FU540 and FU740 have the same interface), but let’s not make
things worse. This should say fu740, and there should also be a generic
SiFive PDMA compatible so we don’t need to add a new compatible to an
otherwise-unchanged driver every time a new SiFive SoC appears.

Jess


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2021-12-03 10:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03  9:57 [PATCH 0/1] riscv: dts: fu740: Add PDMA node v.v.mitrofanov
2021-12-03  9:57 ` [PATCH 1/1] " v.v.mitrofanov
2021-12-03 10:50   ` Jessica Clarke
2021-12-03 10:50     ` Jessica Clarke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.