* [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs
@ 2021-01-20 10:53 Paul Cercueil
2021-01-20 10:53 ` [PATCH 2/2] dma: jz4780: Add support for the JZ4760(B) Paul Cercueil
2021-01-26 17:15 ` [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs Vinod Koul
0 siblings, 2 replies; 4+ messages in thread
From: Paul Cercueil @ 2021-01-20 10:53 UTC (permalink / raw)
To: Vinod Koul, Rob Herring
Cc: od, dmaengine, devicetree, linux-kernel, linux-mips, Paul Cercueil
Add ingenic,jz4760-dma and ingenic,jz4760b-dma compatible strings to
support the DMA engines present in the JZ4760 and JZ4760B SoCs.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
Documentation/devicetree/bindings/dma/ingenic,dma.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/ingenic,dma.yaml b/Documentation/devicetree/bindings/dma/ingenic,dma.yaml
index 6a2043721b95..ac4d59494fc8 100644
--- a/Documentation/devicetree/bindings/dma/ingenic,dma.yaml
+++ b/Documentation/devicetree/bindings/dma/ingenic,dma.yaml
@@ -17,6 +17,8 @@ properties:
enum:
- ingenic,jz4740-dma
- ingenic,jz4725b-dma
+ - ingenic,jz4760-dma
+ - ingenic,jz4760b-dma
- ingenic,jz4770-dma
- ingenic,jz4780-dma
- ingenic,x1000-dma
--
2.29.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] dma: jz4780: Add support for the JZ4760(B)
2021-01-20 10:53 [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs Paul Cercueil
@ 2021-01-20 10:53 ` Paul Cercueil
2021-01-26 17:16 ` Vinod Koul
2021-01-26 17:15 ` [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs Vinod Koul
1 sibling, 1 reply; 4+ messages in thread
From: Paul Cercueil @ 2021-01-20 10:53 UTC (permalink / raw)
To: Vinod Koul, Rob Herring
Cc: od, dmaengine, devicetree, linux-kernel, linux-mips, Paul Cercueil
Add support for the JZ4760 and JZ4760B SoCs.
Both SoCs have only 5 DMA channels per chip. The JZ4760B introduced the
DCKES/DCKEC registers.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
drivers/dma/dma-jz4780.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c
index 612d353648cf..ebee94dbd630 100644
--- a/drivers/dma/dma-jz4780.c
+++ b/drivers/dma/dma-jz4780.c
@@ -1004,6 +1004,18 @@ static const struct jz4780_dma_soc_data jz4725b_dma_soc_data = {
JZ_SOC_DATA_BREAK_LINKS,
};
+static const struct jz4780_dma_soc_data jz4760_dma_soc_data = {
+ .nb_channels = 5,
+ .transfer_ord_max = 6,
+ .flags = JZ_SOC_DATA_PER_CHAN_PM | JZ_SOC_DATA_NO_DCKES_DCKEC,
+};
+
+static const struct jz4780_dma_soc_data jz4760b_dma_soc_data = {
+ .nb_channels = 5,
+ .transfer_ord_max = 6,
+ .flags = JZ_SOC_DATA_PER_CHAN_PM,
+};
+
static const struct jz4780_dma_soc_data jz4770_dma_soc_data = {
.nb_channels = 6,
.transfer_ord_max = 6,
@@ -1031,6 +1043,8 @@ static const struct jz4780_dma_soc_data x1830_dma_soc_data = {
static const struct of_device_id jz4780_dma_dt_match[] = {
{ .compatible = "ingenic,jz4740-dma", .data = &jz4740_dma_soc_data },
{ .compatible = "ingenic,jz4725b-dma", .data = &jz4725b_dma_soc_data },
+ { .compatible = "ingenic,jz4760-dma", .data = &jz4760_dma_soc_data },
+ { .compatible = "ingenic,jz4760b-dma", .data = &jz4760b_dma_soc_data },
{ .compatible = "ingenic,jz4770-dma", .data = &jz4770_dma_soc_data },
{ .compatible = "ingenic,jz4780-dma", .data = &jz4780_dma_soc_data },
{ .compatible = "ingenic,x1000-dma", .data = &x1000_dma_soc_data },
--
2.29.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs
2021-01-20 10:53 [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs Paul Cercueil
2021-01-20 10:53 ` [PATCH 2/2] dma: jz4780: Add support for the JZ4760(B) Paul Cercueil
@ 2021-01-26 17:15 ` Vinod Koul
1 sibling, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2021-01-26 17:15 UTC (permalink / raw)
To: Paul Cercueil
Cc: Rob Herring, od, dmaengine, devicetree, linux-kernel, linux-mips
On 20-01-21, 10:53, Paul Cercueil wrote:
> Add ingenic,jz4760-dma and ingenic,jz4760b-dma compatible strings to
> support the DMA engines present in the JZ4760 and JZ4760B SoCs.
Applied, thanks
>
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
> Documentation/devicetree/bindings/dma/ingenic,dma.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/dma/ingenic,dma.yaml b/Documentation/devicetree/bindings/dma/ingenic,dma.yaml
> index 6a2043721b95..ac4d59494fc8 100644
> --- a/Documentation/devicetree/bindings/dma/ingenic,dma.yaml
> +++ b/Documentation/devicetree/bindings/dma/ingenic,dma.yaml
> @@ -17,6 +17,8 @@ properties:
> enum:
> - ingenic,jz4740-dma
> - ingenic,jz4725b-dma
> + - ingenic,jz4760-dma
> + - ingenic,jz4760b-dma
> - ingenic,jz4770-dma
> - ingenic,jz4780-dma
> - ingenic,x1000-dma
> --
> 2.29.2
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] dma: jz4780: Add support for the JZ4760(B)
2021-01-20 10:53 ` [PATCH 2/2] dma: jz4780: Add support for the JZ4760(B) Paul Cercueil
@ 2021-01-26 17:16 ` Vinod Koul
0 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2021-01-26 17:16 UTC (permalink / raw)
To: Paul Cercueil
Cc: Rob Herring, od, dmaengine, devicetree, linux-kernel, linux-mips
On 20-01-21, 10:53, Paul Cercueil wrote:
> Add support for the JZ4760 and JZ4760B SoCs.
>
> Both SoCs have only 5 DMA channels per chip. The JZ4760B introduced the
> DCKES/DCKEC registers.
Applied after fixing subsystem name, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-27 10:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 10:53 [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs Paul Cercueil
2021-01-20 10:53 ` [PATCH 2/2] dma: jz4780: Add support for the JZ4760(B) Paul Cercueil
2021-01-26 17:16 ` Vinod Koul
2021-01-26 17:15 ` [PATCH 1/2] dt-bindings: dma: ingenic: Add compatible strings for JZ4760(B) SoCs Vinod Koul
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).