diff mbox

[v2,3/5] dt-bindings: stm32-dma: Add property to handle STM32 DMAMUX

Message ID 1498222853-11110-4-git-send-email-pierre-yves.mordret@st.com (mailing list archive)
State Superseded
Headers show

Commit Message

Pierre Yves MORDRET June 23, 2017, 1 p.m. UTC
This patch adds an optional property needed for STM32 DMA controller
addressed via STM32 DMAMUX.

Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com>
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
---
 Version history:
    v2:
        * Typo fix
---
---
 Documentation/devicetree/bindings/dma/stm32-dma.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Rob Herring June 26, 2017, 7:33 p.m. UTC | #1
On Fri, Jun 23, 2017 at 03:00:51PM +0200, Pierre-Yves MORDRET wrote:
> This patch adds an optional property needed for STM32 DMA controller
> addressed via STM32 DMAMUX.
> 
> Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com>
> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
> ---
>  Version history:
>     v2:
>         * Typo fix
> ---
> ---
>  Documentation/devicetree/bindings/dma/stm32-dma.txt | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/dma/stm32-dma.txt b/Documentation/devicetree/bindings/dma/stm32-dma.txt
> index 4408af6..340c918 100644
> --- a/Documentation/devicetree/bindings/dma/stm32-dma.txt
> +++ b/Documentation/devicetree/bindings/dma/stm32-dma.txt
> @@ -16,6 +16,9 @@ Optional properties:
>  - resets: Reference to a reset controller asserting the DMA controller
>  - st,mem2mem: boolean; if defined, it indicates that the controller supports
>    memory-to-memory transfer
> +- st,dmamux: boolean; if defined, it indicates that the controller is behind a
> +  DMA multiplexer. In that case, using dma instances doesn't work for DMA
> +  clients. They have to use dma-router instances.

Won't this be obvious looking at the bindings for clients?

In any case, this should be implied by the compatible string.

Rob
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Pierre Yves MORDRET June 27, 2017, 8:09 a.m. UTC | #2
DQoNCk9uIDA2LzI2LzIwMTcgMDk6MzMgUE0sIFJvYiBIZXJyaW5nIHdyb3RlOg0KPiBPbiBGcmks
IEp1biAyMywgMjAxNyBhdCAwMzowMDo1MVBNICswMjAwLCBQaWVycmUtWXZlcyBNT1JEUkVUIHdy
b3RlOg0KPj4gVGhpcyBwYXRjaCBhZGRzIGFuIG9wdGlvbmFsIHByb3BlcnR5IG5lZWRlZCBmb3Ig
U1RNMzIgRE1BIGNvbnRyb2xsZXINCj4+IGFkZHJlc3NlZCB2aWEgU1RNMzIgRE1BTVVYLg0KPj4N
Cj4+IFNpZ25lZC1vZmYtYnk6IE0nYm91bWJhIENlZHJpYyBNYWRpYW5nYSA8Y2VkcmljLm1hZGlh
bmdhQGdtYWlsLmNvbT4NCj4+IFNpZ25lZC1vZmYtYnk6IFBpZXJyZS1ZdmVzIE1PUkRSRVQgPHBp
ZXJyZS15dmVzLm1vcmRyZXRAc3QuY29tPg0KPj4gLS0tDQo+PiAgIFZlcnNpb24gaGlzdG9yeToN
Cj4+ICAgICAgdjI6DQo+PiAgICAgICAgICAqIFR5cG8gZml4DQo+PiAtLS0NCj4+IC0tLQ0KPj4g
ICBEb2N1bWVudGF0aW9uL2RldmljZXRyZWUvYmluZGluZ3MvZG1hL3N0bTMyLWRtYS50eHQgfCA1
ICsrKystDQo+PiAgIDEgZmlsZSBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24o
LSkNCj4+DQo+PiBkaWZmIC0tZ2l0IGEvRG9jdW1lbnRhdGlvbi9kZXZpY2V0cmVlL2JpbmRpbmdz
L2RtYS9zdG0zMi1kbWEudHh0IGIvRG9jdW1lbnRhdGlvbi9kZXZpY2V0cmVlL2JpbmRpbmdzL2Rt
YS9zdG0zMi1kbWEudHh0DQo+PiBpbmRleCA0NDA4Y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cmUuDQoNClB5
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/dma/stm32-dma.txt b/Documentation/devicetree/bindings/dma/stm32-dma.txt
index 4408af6..340c918 100644
--- a/Documentation/devicetree/bindings/dma/stm32-dma.txt
+++ b/Documentation/devicetree/bindings/dma/stm32-dma.txt
@@ -16,6 +16,9 @@  Optional properties:
 - resets: Reference to a reset controller asserting the DMA controller
 - st,mem2mem: boolean; if defined, it indicates that the controller supports
   memory-to-memory transfer
+- st,dmamux: boolean; if defined, it indicates that the controller is behind a
+  DMA multiplexer. In that case, using dma instances doesn't work for DMA
+  clients. They have to use dma-router instances.
 
 Example:
 
@@ -39,7 +42,7 @@  Example:
 * DMA client
 
 DMA clients connected to the STM32 DMA controller must use the format
-described in the dma.txt file, using a five-cell specifier for each
+described in the dma.txt file, using a four-cell specifier for each
 channel: a phandle to the DMA controller plus the following four integer cells:
 
 1. The channel id