1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/dma/ingenic,dma.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Ingenic SoCs DMA Controller DT bindings
10 - Paul Cercueil <paul@crapouillou.net>
13 - $ref: "dma-controller.yaml#"
29 - description: Channel-specific registers
30 - description: System control registers
41 DMA clients must use the format described in dma.txt, giving a phandle
42 to the DMA controller plus the following 2 integer cells:
44 - Request type: The DMA request type for transfers to/from the
45 device on the allocated channel, as defined in the SoC documentation.
47 - Channel: If set to 0xffffffff, any available channel will be allocated
48 for the client. Otherwise, the exact channel specified will be used.
49 The channel should be reserved on the DMA controller using the
50 ingenic,reserved-channels property.
52 ingenic,reserved-channels:
53 $ref: /schemas/types.yaml#/definitions/uint32
55 Bitmask of channels to reserve for devices that need a specific
56 channel. These channels will only be assigned when explicitely
57 requested by a client. The primary use for this is channels 0 and
58 1, which can be configured to have special behaviour for NAND/BCH
59 when using programmable firmware.
67 unevaluatedProperties: false
71 #include <dt-bindings/clock/jz4780-cgu.h>
72 dma: dma-controller@13420000 {
73 compatible = "ingenic,jz4780-dma";
74 reg = <0x13420000 0x400>, <0x13421000 0x40>;
76 interrupt-parent = <&intc>;
79 clocks = <&cgu JZ4780_CLK_PDMA>;
83 ingenic,reserved-channels = <0x3>;