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#"
25 - ingenic,jz4760b-bdma
26 - ingenic,jz4760b-mdma
32 - const: ingenic,jz4770-bdma
33 - const: ingenic,jz4760b-bdma
37 - description: Channel-specific registers
38 - description: System control registers
49 DMA clients must use the format described in dma.txt, giving a phandle
50 to the DMA controller plus the following integer cells:
52 - Request type: The DMA request type specifies the device endpoint that
53 will be the source or destination of the DMA transfer.
54 If "#dma-cells" is 2, the request type is a single cell, and the
55 direction will be unidirectional (either RX or TX but not both).
56 If "#dma-cells" is 3, the request type has two cells; the first
57 one corresponds to the host to device direction (TX), the second one
58 corresponds to the device to host direction (RX). The DMA channel is
61 - Channel: If set to 0xffffffff, any available channel will be allocated
62 for the client. Otherwise, the exact channel specified will be used.
63 The channel should be reserved on the DMA controller using the
64 ingenic,reserved-channels property.
66 ingenic,reserved-channels:
67 $ref: /schemas/types.yaml#/definitions/uint32
69 Bitmask of channels to reserve for devices that need a specific
70 channel. These channels will only be assigned when explicitely
71 requested by a client. The primary use for this is channels 0 and
72 1, which can be configured to have special behaviour for NAND/BCH
73 when using programmable firmware.
81 unevaluatedProperties: false
85 #include <dt-bindings/clock/ingenic,jz4780-cgu.h>
86 dma: dma-controller@13420000 {
87 compatible = "ingenic,jz4780-dma";
88 reg = <0x13420000 0x400>, <0x13421000 0x40>;
90 interrupt-parent = <&intc>;
93 clocks = <&cgu JZ4780_CLK_PDMA>;
97 ingenic,reserved-channels = <0x3>;