Spreadtrum SC9860 DMA controller

Schema identifier ($id): "http://devicetree.org/schemas/dma/sprd,sc9860-dma.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

There are three DMA controllers: AP DMA, AON DMA and AGCP DMA. For AGCP DMA controller, it can or do not request the IRQ, which will save system power without resuming system by DMA interrupts if AGCP DMA does not request the IRQ.

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,sc9860-dma"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

DMA enable clock

Item 2

optional ashb_eb clock, only for the AGCP DMA controller

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "enable"

Item 2

Exact value (const): "ashb_eb"

#dma-cells — required here #

Exact value (const): 1

dma-channels — required here #

Exact value (const): 32

#dma-channels — not listed as required here #

Exact value (const): 32

Deprecated (deprecated): true

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#dma-cells", "dma-channels"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dma-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sprd,sc9860-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

/* AP DMA controller */
dma-controller@20100000 {
  compatible = "sprd,sc9860-dma";
  reg = <0x20100000 0x4000>;
  interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&apahb_gate CLK_DMA_EB>;
  clock-names = "enable";
  #dma-cells = <1>;
  dma-channels = <32>;
};

/* AGCP DMA controller */
dma-controller@41580000 {
  compatible = "sprd,sc9860-dma";
  reg = <0x41580000 0x4000>;
  clocks = <&agcp_gate CLK_AGCP_DMAAP_EB>,
           <&agcp_gate CLK_AGCP_AP_ASHB_EB>;
  clock-names = "enable", "ashb_eb";
  #dma-cells = <1>;
  dma-channels = <32>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page