SiFive Unleashed Rev C000 Platform DMA
Schema identifier ($id): "http://devicetree.org/schemas/dma/sifive,fu540-c000-pdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Green Wan <green.wan@sifive.com>", "Palmer Debbelt <palmer@sifive.com>", "Paul Walmsley <paul.walmsley@sifive.com>"
Platform DMA is a DMA engine of SiFive Unleashed. It supports 4 channels. Each channel has 2 interrupts. One is for DMA done and the other is for DME error.
In different SoC, DMA could be attached to different IRQ line. DT file need to be changed to meet the difference. For technical doc,
https://static.dev.sifive.com/FU540-C000-v1.0.pdf
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-pdma"Item 2
Exact value (
const):"microchip,mpfs-pdma"Item 3
Exact value (
const):"sifive,pdma0"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,mpfs-pdma","sifive,fu540-c000-pdma"Item 2
Exact value (
const):"sifive,pdma0"
Should be "sifive,<chip>-pdma" and "sifive,pdma<version>". Supported compatible strings are - "sifive,fu540-c000-pdma" for the SiFive PDMA v0 as integrated onto the SiFive FU540 chip resp and "sifive,pdma0" for the SiFive PDMA v0 IP block with no chip integration tweaks.
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
dma-channels — not listed as required here #
For backwards-compatibility, the default value is 4
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 4
#dma-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-controller@3000000 {
compatible = "sifive,fu540-c000-pdma", "sifive,pdma0";
reg = <0x3000000 0x8000>;
dma-channels = <4>;
interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, <30>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0