[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <mhng-f3224022-f6c7-4982-96a2-70a29c09df62@palmer-ri-x1c9>
Date: Thu, 03 Mar 2022 12:43:04 -0800 (PST)
From: Palmer Dabbelt <palmer@...belt.com>
To: zong.li@...ive.com
CC: robh+dt@...nel.org, Paul Walmsley <paul.walmsley@...ive.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,
zong.li@...ive.com
Subject: Re: [PATCH v5 1/3] dt-bindings: Add dma-channels property and modify compatible
On Sun, 06 Feb 2022 22:30:38 PST (-0800), zong.li@...ive.com wrote:
> Add dma-channels property, then we can determine how many channels there
> by device tree, rather than statically defining it in PDMA driver.
> In addition, we also modify the compatible for PDMA versioning scheme.
>
> Signed-off-by: Zong Li <zong.li@...ive.com>
> Suggested-by: Palmer Dabbelt <palmer@...osinc.com>
> ---
> .../bindings/dma/sifive,fu540-c000-pdma.yaml | 19 +++++++++++++++++--
> 1 file changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
> index 75ad898c59bc..92f410f54d72 100644
> --- a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
> +++ b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
> @@ -25,7 +25,15 @@ description: |
> properties:
> compatible:
> items:
> - - const: sifive,fu540-c000-pdma
> + - enum:
> + - sifive,fu540-c000-pdma
> + - const: sifive,pdma0
> + description:
> + Should be "sifive,<chip>-pdma" and "sifive,pdma<version>".
> + Supported compatible strings are -
> + "sifive,fu540-c000-pdma" for the SiFive PDMA v0 as integrated onto the
> + SiFive FU540 chip resp and "sifive,pdma0" for the SiFive PDMA v0 IP block
> + with no chip integration tweaks.
>
> reg:
> maxItems: 1
> @@ -34,6 +42,12 @@ properties:
> minItems: 1
> maxItems: 8
>
> + dma-channels:
> + description: For backwards-compatibility, the default value is 4
> + minimum: 1
> + maximum: 4
> + default: 4
> +
> '#dma-cells':
> const: 1
>
> @@ -48,8 +62,9 @@ additionalProperties: false
> examples:
> - |
> dma@...0000 {
> - compatible = "sifive,fu540-c000-pdma";
> + compatible = "sifive,fu540-c000-pdma", "sifive,pdma0";
> reg = <0x3000000 0x8000>;
> + dma-channels = <4>;
> interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, <30>;
> #dma-cells = <1>;
> };
Reviewed-by: Palmer Dabbelt <palmer@...osinc.com>
Acked-by: Palmer Dabbelt <palmer@...osinc.com>
Powered by blists - more mailing lists