Path: blob/master/Documentation/devicetree/bindings/dma/fsl,eloplus-dma.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/dma/fsl,eloplus-dma.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Freescale EloPlus DMA Controller78maintainers:9- J. Neuschäfer <j.ne@posteo.net>1011description:12This is a 4-channel DMA controller with extended addresses and chaining,13mainly used in Freescale mpc85xx/86xx, Pxxx and BSC series chips, such as14mpc8540, mpc8641 p4080, bsc9131 etc.1516properties:17compatible:18oneOf:19- items:20- enum:21- fsl,mpc8540-dma22- fsl,mpc8541-dma23- fsl,mpc8548-dma24- fsl,mpc8555-dma25- fsl,mpc8560-dma26- fsl,mpc8572-dma27- fsl,mpc8641-dma28- const: fsl,eloplus-dma29- const: fsl,eloplus-dma3031reg:32items:33- description:34DMA General Status Register, i.e. DGSR which contains35status for all the 4 DMA channels3637cell-index:38$ref: /schemas/types.yaml#/definitions/uint3239description:40controller index. 0 for controller @ 0x21000, 1 for controller @ 0xc0004142ranges: true4344"#address-cells":45const: 14647"#size-cells":48const: 14950interrupts:51maxItems: 152description: Controller interrupt.5354patternProperties:55"^dma-channel@[0-9a-f]+$":56type: object57additionalProperties: false5859properties:60compatible:61oneOf:62# native DMA channel63- items:64- enum:65- fsl,mpc8540-dma-channel66- fsl,mpc8541-dma-channel67- fsl,mpc8548-dma-channel68- fsl,mpc8555-dma-channel69- fsl,mpc8560-dma-channel70- fsl,mpc8572-dma-channel71- const: fsl,eloplus-dma-channel7273# audio DMA channel, see fsl,ssi.yaml74- const: fsl,ssi-dma-channel7576reg:77maxItems: 17879cell-index:80description: DMA channel index starts at 0.8182interrupts:83maxItems: 184description:85Per-channel interrupt. Only necessary if no controller interrupt has86been provided.8788additionalProperties: false8990examples:91- |92#include <dt-bindings/interrupt-controller/irq.h>9394dma@21300 {95compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";96reg = <0x21300 4>;97#address-cells = <1>;98#size-cells = <1>;99ranges = <0 0x21100 0x200>;100cell-index = <0>;101102dma-channel@0 {103compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";104reg = <0 0x80>;105cell-index = <0>;106interrupts = <20 IRQ_TYPE_EDGE_FALLING>;107};108109dma-channel@80 {110compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";111reg = <0x80 0x80>;112cell-index = <1>;113interrupts = <21 IRQ_TYPE_EDGE_FALLING>;114};115116dma-channel@100 {117compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";118reg = <0x100 0x80>;119cell-index = <2>;120interrupts = <22 IRQ_TYPE_EDGE_FALLING>;121};122123dma-channel@180 {124compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";125reg = <0x180 0x80>;126cell-index = <3>;127interrupts = <23 IRQ_TYPE_EDGE_FALLING>;128};129};130131...132133134