Message ID | 7487a25cdb240d1be4a8593aa602c3c73d8f5acb.1623251990.git.olivier.dautricourt@orolia.com |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | [v6,1/3] dt-bindings: dma: add schema for altera-msgdma | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | success | |
robh/dt-meta-schema | success | |
robh/dtbs-check | success |
On 09.06.21 17:20, Olivier Dautricourt wrote: > This entry is for the standalone driver in drivers/dma/altera-msgdma.c > Add myself as 'Odd fixes' maintainer for this driver as i am currently > writing new code and have access to the hardware. > Add Stefan Roese as reviewer. > > Signed-off-by: Olivier Dautricourt <olivier.dautricourt@orolia.com> Acked-by: Stefan Roese <sr@denx.de> Thanks, Stefan > --- > > Notes: > splitted commit, introduced in v5 > > v6: > add Stefan Roese as Reviewer (after consulting him) > > MAINTAINERS | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index b706dd20ff2b..3167d26f0718 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -783,6 +783,14 @@ M: Ley Foon Tan <ley.foon.tan@intel.com> > S: Maintained > F: drivers/mailbox/mailbox-altera.c > > +ALTERA MSGDMA IP CORE DRIVER > +M: Olivier Dautricourt <olivier.dautricourt@orolia.com> > +R: Stefan Roese <sr@denx.de> > +L: dmaengine@vger.kernel.org > +S: Odd Fixes > +F: Documentation/devicetree/bindings/dma/altr,msgdma.yaml > +F: drivers/dma/altera-msgdma.c > + > ALTERA PIO DRIVER > M: Joyce Ooi <joyce.ooi@intel.com> > L: linux-gpio@vger.kernel.org > -- > 2.31.0.rc2 > > > -- > Olivier Dautricourt > Viele Grüße, Stefan
On 09-06-21, 17:20, Olivier Dautricourt wrote:
> add yaml schema for Altera mSGDMA bindings in devicetree.
Applied all, thanks
diff --git a/Documentation/devicetree/bindings/dma/altr,msgdma.yaml b/Documentation/devicetree/bindings/dma/altr,msgdma.yaml new file mode 100644 index 000000000000..a4f9fe23dcd9 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/altr,msgdma.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/altr,msgdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Altera mSGDMA IP core + +maintainers: + - Olivier Dautricourt <olivier.dautricourt@orolia.com> + +description: | + Altera / Intel modular Scatter-Gather Direct Memory Access (mSGDMA) + intellectual property (IP) + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + compatible: + const: altr,socfpga-msgdma + + reg: + items: + - description: Control and Status Register Slave Port + - description: Descriptor Slave Port + - description: Response Slave Port + + reg-names: + items: + - const: csr + - const: desc + - const: resp + + interrupts: + maxItems: 1 + + "#dma-cells": + const: 1 + description: + The cell identifies the channel id (must be 0) + +required: + - compatible + - reg + - reg-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + + msgdma_controller: dma-controller@ff200b00 { + compatible = "altr,socfpga-msgdma"; + reg = <0xff200b00 0x100>, <0xff200c00 0x100>, <0xff200d00 0x100>; + reg-names = "csr", "desc", "resp"; + interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>; + #dma-cells = <1>; + };