devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add JH8100 support for snps,dw-axi-dmac
@ 2024-03-26  9:54 Tan Chun Hau
  2024-03-26  9:54 ` [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support Tan Chun Hau
  2024-03-26  9:54 ` [PATCH 2/2] dmaengine: dw-axi-dmac: Add support for StarFive JH8100 DMA Tan Chun Hau
  0 siblings, 2 replies; 5+ messages in thread
From: Tan Chun Hau @ 2024-03-26  9:54 UTC (permalink / raw)
  To: Eugeniy Paltsev, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Ley Foon Tan, Jee Heng Sia, dmaengine, devicetree, linux-kernel

Add StarFive JH8100 DMA support.

Tan Chun Hau (2):
  dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support
  dmaengine: dw-axi-dmac: Add support for StarFive JH8100 DMA

 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 1 +
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c              | 3 +++
 2 files changed, 4 insertions(+)

-- 
2.25.1


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

* [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support
  2024-03-26  9:54 [PATCH 0/2] Add JH8100 support for snps,dw-axi-dmac Tan Chun Hau
@ 2024-03-26  9:54 ` Tan Chun Hau
  2024-03-26 18:32   ` Conor Dooley
  2024-03-26  9:54 ` [PATCH 2/2] dmaengine: dw-axi-dmac: Add support for StarFive JH8100 DMA Tan Chun Hau
  1 sibling, 1 reply; 5+ messages in thread
From: Tan Chun Hau @ 2024-03-26  9:54 UTC (permalink / raw)
  To: Eugeniy Paltsev, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Ley Foon Tan, Jee Heng Sia, dmaengine, devicetree, linux-kernel

Add support for StarFive JH8100 SoC in Sysnopsys Designware AXI DMA
controller.

Signed-off-by: Tan Chun Hau <chunhau.tan@starfivetech.com>
---
 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
index 363cf8bd150d..525f5f3932f5 100644
--- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
+++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
@@ -21,6 +21,7 @@ properties:
       - snps,axi-dma-1.01a
       - intel,kmb-axi-dma
       - starfive,jh7110-axi-dma
+      - starfive,jh8100-axi-dma
 
   reg:
     minItems: 1
-- 
2.25.1


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

* [PATCH 2/2] dmaengine: dw-axi-dmac: Add support for StarFive JH8100 DMA
  2024-03-26  9:54 [PATCH 0/2] Add JH8100 support for snps,dw-axi-dmac Tan Chun Hau
  2024-03-26  9:54 ` [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support Tan Chun Hau
@ 2024-03-26  9:54 ` Tan Chun Hau
  1 sibling, 0 replies; 5+ messages in thread
From: Tan Chun Hau @ 2024-03-26  9:54 UTC (permalink / raw)
  To: Eugeniy Paltsev, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Ley Foon Tan, Jee Heng Sia, dmaengine, devicetree, linux-kernel

JH8100 requires reset operation only in device probe.

Signed-off-by: Tan Chun Hau <chunhau.tan@starfivetech.com>
---
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index a86a81ff0caa..abb3523ba8ab 100644
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
@@ -1653,6 +1653,9 @@ static const struct of_device_id dw_dma_of_id_table[] = {
 	}, {
 		.compatible = "starfive,jh7110-axi-dma",
 		.data = (void *)(AXI_DMA_FLAG_HAS_RESETS | AXI_DMA_FLAG_USE_CFG2),
+	}, {
+		.compatible = "starfive,jh8100-axi-dma",
+		.data = (void *)AXI_DMA_FLAG_HAS_RESETS,
 	},
 	{}
 };
-- 
2.25.1


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

* Re: [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support
  2024-03-26  9:54 ` [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support Tan Chun Hau
@ 2024-03-26 18:32   ` Conor Dooley
  2024-03-27  2:50     ` ChunHau Tan
  0 siblings, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2024-03-26 18:32 UTC (permalink / raw)
  To: Tan Chun Hau
  Cc: Eugeniy Paltsev, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Ley Foon Tan, Jee Heng Sia, dmaengine, devicetree,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

On Tue, Mar 26, 2024 at 02:54:56AM -0700, Tan Chun Hau wrote:
> Add support for StarFive JH8100 SoC in Sysnopsys Designware AXI DMA
> controller.

Your commit message should explain what makes this incompatible with
existing devices. That inforatiion does appear to be in the driver
patch, but should also be here. Otherwise,
Acked-by: Conor Dooley <conor.dooley@microchip.com>

> 
> Signed-off-by: Tan Chun Hau <chunhau.tan@starfivetech.com>
> ---
>  Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
> index 363cf8bd150d..525f5f3932f5 100644
> --- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
> +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
> @@ -21,6 +21,7 @@ properties:
>        - snps,axi-dma-1.01a
>        - intel,kmb-axi-dma
>        - starfive,jh7110-axi-dma
> +      - starfive,jh8100-axi-dma
>  
>    reg:
>      minItems: 1
> -- 
> 2.25.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* RE: [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support
  2024-03-26 18:32   ` Conor Dooley
@ 2024-03-27  2:50     ` ChunHau Tan
  0 siblings, 0 replies; 5+ messages in thread
From: ChunHau Tan @ 2024-03-27  2:50 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Eugeniy Paltsev, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Leyfoon Tan, JeeHeng Sia, dmaengine@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org



> -----Original Message-----
> From: Conor Dooley <conor@kernel.org>
> Sent: Wednesday, 27 March, 2024 2:33 AM
> To: ChunHau Tan <chunhau.tan@starfivetech.com>
> Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>; Vinod Koul
> <vkoul@kernel.org>; Rob Herring <robh@kernel.org>; Krzysztof Kozlowski
> <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley <conor+dt@kernel.org>;
> Leyfoon Tan <leyfoon.tan@starfivetech.com>; JeeHeng Sia
> <jeeheng.sia@starfivetech.com>; dmaengine@vger.kernel.org;
> devicetree@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100
> support
> 
> On Tue, Mar 26, 2024 at 02:54:56AM -0700, Tan Chun Hau wrote:
> > Add support for StarFive JH8100 SoC in Sysnopsys Designware AXI DMA
> > controller.
> 
> Your commit message should explain what makes this incompatible with existing
> devices. That inforatiion does appear to be in the driver patch, but should also be
> here. Otherwise,
> Acked-by: Conor Dooley <conor.dooley@microchip.com>

Okay, thank you for the feedback.
> 
> >
> > Signed-off-by: Tan Chun Hau <chunhau.tan@starfivetech.com>
> > ---
> >  Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git
> > a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
> > b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
> > index 363cf8bd150d..525f5f3932f5 100644
> > --- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
> > +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
> > @@ -21,6 +21,7 @@ properties:
> >        - snps,axi-dma-1.01a
> >        - intel,kmb-axi-dma
> >        - starfive,jh7110-axi-dma
> > +      - starfive,jh8100-axi-dma
> >
> >    reg:
> >      minItems: 1
> > --
> > 2.25.1
> >

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

end of thread, other threads:[~2024-03-27  2:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-26  9:54 [PATCH 0/2] Add JH8100 support for snps,dw-axi-dmac Tan Chun Hau
2024-03-26  9:54 ` [PATCH 1/2] dt-bindings: dma: snps,dw-axi-dmac: Add JH8100 support Tan Chun Hau
2024-03-26 18:32   ` Conor Dooley
2024-03-27  2:50     ` ChunHau Tan
2024-03-26  9:54 ` [PATCH 2/2] dmaengine: dw-axi-dmac: Add support for StarFive JH8100 DMA Tan Chun Hau

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