Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: dma: ingenic: Support #dma-cells = <3>

Extend the binding to support specifying a different request type for
each direction.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20211206174259.68133-3-paul@crapouillou.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Paul Cercueil and committed by
Vinod Koul
dafa79a1 e0699a75

+10 -4
+10 -4
Documentation/devicetree/bindings/dma/ingenic,dma.yaml
··· 44 44 maxItems: 1 45 45 46 46 "#dma-cells": 47 - const: 2 47 + enum: [2, 3] 48 48 description: > 49 49 DMA clients must use the format described in dma.txt, giving a phandle 50 - to the DMA controller plus the following 2 integer cells: 50 + to the DMA controller plus the following integer cells: 51 51 52 - - Request type: The DMA request type for transfers to/from the 53 - device on the allocated channel, as defined in the SoC documentation. 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 59 + then bidirectional. 54 60 55 61 - Channel: If set to 0xffffffff, any available channel will be allocated 56 62 for the client. Otherwise, the exact channel specified will be used.