[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <0419b2865c87f72adeb4edee9113a959e468b4a5.1641289490.git.zong.li@sifive.com>
Date: Wed, 5 Jan 2022 13:43:59 +0800
From: Zong Li <zong.li@...ive.com>
To: robh+dt@...nel.org, paul.walmsley@...ive.com, palmer@...belt.com,
aou@...s.berkeley.edu, krzysztof.kozlowski@...onical.com,
conor.dooley@...rochip.com, geert@...ux-m68k.org,
bin.meng@...driver.com, green.wan@...ive.com, vkoul@...nel.org,
dmaengine@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org
Cc: Zong Li <zong.li@...ive.com>
Subject: [PATCH 2/3] dt-bindings: Add dma-channels for pdma device node
Add dma-channels property, then we can determine how many channels there
by device tree, rather than statically defines it in PDMA driver
Signed-off-by: Zong Li <zong.li@...ive.com>
---
.../devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
index d32a71b975fe..256bcb111d57 100644
--- a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
+++ b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
@@ -34,12 +34,17 @@ properties:
minItems: 1
maxItems: 8
+ dma-channels:
+ minimum: 1
+ maximum: 4
+
'#dma-cells':
const: 1
required:
- compatible
- reg
+ - dma-channels
- interrupts
- '#dma-cells'
@@ -50,6 +55,7 @@ examples:
dma@...0000 {
compatible = "sifive,fu540-c000-pdma";
reg = <0x3000000 0x8000>;
+ dma-channels = <4>;
interrupts = <23 24 25 26 27 28 29 30>;
#dma-cells = <1>;
};
--
2.31.1
Powered by blists - more mailing lists