[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANXhq0qX_TZTRyZGGBSs0_zUa87ktSSv-CubHF8pFxuhv7rocA@mail.gmail.com>
Date: Thu, 27 Jan 2022 15:35:21 +0800
From: Zong Li <zong.li@...ive.com>
To: Vinod Koul <vkoul@...nel.org>
Cc: Rob Herring <robh+dt@...nel.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>,
Conor Dooley <conor.dooley@...rochip.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Bin Meng <bin.meng@...driver.com>,
Green Wan <green.wan@...ive.com>,
dmaengine <dmaengine@...r.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org List" <linux-kernel@...r.kernel.org>,
linux-riscv <linux-riscv@...ts.infradead.org>
Subject: Re: [PATCH v4 1/3] riscv: dts: Add dma-channels property in dma node
On Thu, Jan 27, 2022 at 3:03 PM Vinod Koul <vkoul@...nel.org> wrote:
>
> On 17-01-22, 09:35, Zong Li wrote:
> > Add dma-channels property, then we can determine how many channels there
> > by device tree.
> >
> > Signed-off-by: Zong Li <zong.li@...ive.com>
> > ---
> > arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 1 +
> > arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 1 +
> > 2 files changed, 2 insertions(+)
> >
> > diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi b/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi
> > index c9f6d205d2ba..3c48f2d7a4a4 100644
> > --- a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi
> > +++ b/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi
> > @@ -188,6 +188,7 @@ dma@...0000 {
>
> Unrelated but the node name should be dma-controller@...
>
Thanks for the correction, I guess we could give another patch for
changing the node name.
> > reg = <0x0 0x3000000 0x0 0x8000>;
> > interrupt-parent = <&plic>;
> > interrupts = <23 24 25 26 27 28 29 30>;
> > + dma-channels = <4>;
> > #dma-cells = <1>;
> > };
> >
> > diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi
> > index 0655b5c4201d..2bdfe7f06e4b 100644
> > --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi
> > +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi
> > @@ -171,6 +171,7 @@ dma: dma@...0000 {
> > reg = <0x0 0x3000000 0x0 0x8000>;
> > interrupt-parent = <&plic0>;
> > interrupts = <23 24 25 26 27 28 29 30>;
> > + dma-channels = <4>;
> > #dma-cells = <1>;
> > };
> > uart1: serial@...11000 {
> > --
> > 2.31.1
>
> --
> ~Vinod
Powered by blists - more mailing lists