xref: /freebsd/sys/contrib/device-tree/Bindings/dma/sifive,fu540-c000-pdma.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/dma/sifive,fu540-c000-pdma.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: SiFive Unleashed Rev C000 Platform DMA
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Green Wan <green.wan@sifive.com>
11*c66ec88fSEmmanuel Vadot  - Palmer Debbelt <palmer@sifive.com>
12*c66ec88fSEmmanuel Vadot  - Paul Walmsley <paul.walmsley@sifive.com>
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadotdescription: |
15*c66ec88fSEmmanuel Vadot  Platform DMA is a DMA engine of SiFive Unleashed. It supports 4
16*c66ec88fSEmmanuel Vadot  channels. Each channel has 2 interrupts. One is for DMA done and
17*c66ec88fSEmmanuel Vadot  the other is for DME error.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot  In different SoC, DMA could be attached to different IRQ line.
20*c66ec88fSEmmanuel Vadot  DT file need to be changed to meet the difference. For technical
21*c66ec88fSEmmanuel Vadot  doc,
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot  https://static.dev.sifive.com/FU540-C000-v1.0.pdf
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadotproperties:
26*c66ec88fSEmmanuel Vadot  compatible:
27*c66ec88fSEmmanuel Vadot    items:
28*c66ec88fSEmmanuel Vadot      - const: sifive,fu540-c000-pdma
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot  reg:
31*c66ec88fSEmmanuel Vadot    maxItems: 1
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot  interrupts:
34*c66ec88fSEmmanuel Vadot    minItems: 1
35*c66ec88fSEmmanuel Vadot    maxItems: 8
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot  '#dma-cells':
38*c66ec88fSEmmanuel Vadot    const: 1
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadotrequired:
41*c66ec88fSEmmanuel Vadot  - compatible
42*c66ec88fSEmmanuel Vadot  - reg
43*c66ec88fSEmmanuel Vadot  - interrupts
44*c66ec88fSEmmanuel Vadot  - '#dma-cells'
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel VadotadditionalProperties: false
47*c66ec88fSEmmanuel Vadot
48*c66ec88fSEmmanuel Vadotexamples:
49*c66ec88fSEmmanuel Vadot  - |
50*c66ec88fSEmmanuel Vadot    dma@3000000 {
51*c66ec88fSEmmanuel Vadot      compatible = "sifive,fu540-c000-pdma";
52*c66ec88fSEmmanuel Vadot      reg = <0x3000000 0x8000>;
53*c66ec88fSEmmanuel Vadot      interrupts = <23 24 25 26 27 28 29 30>;
54*c66ec88fSEmmanuel Vadot      #dma-cells = <1>;
55*c66ec88fSEmmanuel Vadot    };
56*c66ec88fSEmmanuel Vadot
57*c66ec88fSEmmanuel Vadot...
58