[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1520263566.3152.17.camel@synopsys.com>
Date: Mon, 5 Mar 2018 15:26:07 +0000
From: Eugeniy Paltsev <Eugeniy.Paltsev@...opsys.com>
To: "andy.shevchenko@...il.com" <andy.shevchenko@...il.com>
CC: "vinod.koul@...el.com" <vinod.koul@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"Alexey.Brodkin@...opsys.com" <Alexey.Brodkin@...opsys.com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-snps-arc@...ts.infradead.org"
<linux-snps-arc@...ts.infradead.org>,
"dan.j.williams@...el.com" <dan.j.williams@...el.com>,
"dmaengine@...r.kernel.org" <dmaengine@...r.kernel.org>,
"wan.ahmad.zainie.wan.mohamad@...el.com"
<wan.ahmad.zainie.wan.mohamad@...el.com>
Subject: Re: [PATCH v2 1/2] dmaengine: Introduce DW AXI DMAC driver
On Mon, 2018-02-26 at 18:42 +0200, Andy Shevchenko wrote:
> On Mon, Feb 26, 2018 at 4:56 PM, Eugeniy Paltsev
> <Eugeniy.Paltsev@...opsys.com> wrote:
> > +static int parse_device_properties(struct axi_dma_chip *chip)
> > +{
> > + ret = device_property_read_u32(dev, "snps,dma-masters", &tmp);
>
> Why it has prefix?
>
> > + ret = device_property_read_u32(dev, "snps,data-width", &tmp);
>
> Ditto.
>
> > + ret = device_property_read_u32_array(dev, "snps,block-size", carr,
> > + chip->dw->hdata->nr_channels);
>
> (perhaps this one can be moved outside of local namespace)
>
> > + ret = device_property_read_u32_array(dev, "snps,priority", carr,
> > + chip->dw->hdata->nr_channels);
>
> Can you use just "priority"?
>
>
Rob Herring asked me to add vendor prefix to this properties.
See http://patchwork.ozlabs.org/patch/719708/
-------------------->8--------------------------
> > +Required properties:
> > +- compatible: "snps,axi-dma"
>
> Too generic. This needs an IP version at least.
>
> > +- reg: Address range of the DMAC registers. This should include
> > + all of the per-channel registers.
> > +- interrupt: Should contain the DMAC interrupt number.
> > +- interrupt-parent: Should be the phandle for the interrupt controller
> > + that services interrupts for this device.
> > +- dma-channels: Number of channels supported by hardware.
> > +- dma-masters: Number of AXI masters supported by the hardware.
> > +- data-width: Maximum AXI data width supported by hardware.
> > + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits)
>
> > +- priority: Priority of channel. Array property. Priority value must be
> > + programmed within [0:dma-channels-1] range. (0 - minimum priority)
> > +- block-size: Maximum block size supported by the controller channel. Array
> > + property.
>
> Other than dma-channels, all these either need vendor prefix.
>
-------------------->8--------------------------
On Fri, 2018-03-02 at 13:44 +0530, Vinod Koul wrote:
> On Mon, Feb 26, 2018 at 05:56:28PM +0300, Eugeniy Paltsev wrote:
> > +dmac: dma-controller@...00 {
> > + compatible = "snps,axi-dma-1.01a";
>
> do we need "snps here..?
>
Ditto.
--
Eugeniy Paltsev
Powered by blists - more mailing lists