summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/dma/dma-controller.yaml
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2019-07-20 11:26:05 +0200
committerVinod Koul <vkoul@kernel.org>2019-07-29 12:18:49 +0530
commitb37e3534ac4275c1f0d0e08d1b6f672f6cc740c3 (patch)
tree5bd323424a2b72154a22d23908d8ac6829e367d8 /Documentation/devicetree/bindings/dma/dma-controller.yaml
parentaa3c6ce4eab8fb0e967954be1ba1cad3b715f63b (diff)
downloadlinux-b37e3534ac4275c1f0d0e08d1b6f672f6cc740c3.tar.gz
linux-b37e3534ac4275c1f0d0e08d1b6f672f6cc740c3.tar.bz2
linux-b37e3534ac4275c1f0d0e08d1b6f672f6cc740c3.zip
dt-bindings: dmaengine: Add YAML schemas for the generic DMA bindings
The DMA controllers and consumers have a bunch of generic properties that are needed in a device tree. Add a YAML schemas for those. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20190720092607.31095-1-maxime.ripard@bootlin.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/dma/dma-controller.yaml')
-rw-r--r--Documentation/devicetree/bindings/dma/dma-controller.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/dma/dma-controller.yaml b/Documentation/devicetree/bindings/dma/dma-controller.yaml
new file mode 100644
index 000000000000..c39f6de76670
--- /dev/null
+++ b/Documentation/devicetree/bindings/dma/dma-controller.yaml
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/dma/dma-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: DMA Controller Generic Binding
+
+maintainers:
+ - Vinod Koul <vkoul@kernel.org>
+
+allOf:
+ - $ref: "dma-common.yaml#"
+
+# Everything else is described in the common file
+properties:
+ $nodename:
+ pattern: "^dma-controller(@.*)?$"
+
+examples:
+ - |
+ dma: dma-controller@48000000 {
+ compatible = "ti,omap-sdma";
+ reg = <0x48000000 0x1000>;
+ interrupts = <0 12 0x4
+ 0 13 0x4
+ 0 14 0x4
+ 0 15 0x4>;
+ #dma-cells = <1>;
+ dma-channels = <32>;
+ dma-requests = <127>;
+ dma-channel-mask = <0xfffe>;
+ };
+
+...