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

dt-bindings: dma: Convert UniPhier MIO DMA controller to json-schema

Convert the UniPhier MIO (Media I/O) DMA controller binding to DT
schema format.

While I was here, I added the resets property.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Masahiro Yamada and committed by
Rob Herring
7ebec905 6bb984a3

+63 -25
+63
Documentation/devicetree/bindings/dma/socionext,uniphier-mio-dmac.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/dma/socionext,uniphier-mio-dmac.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: UniPhier Media IO DMA controller 8 + 9 + description: | 10 + This works as an external DMA engine for SD/eMMC controllers etc. 11 + found in UniPhier LD4, Pro4, sLD8 SoCs. 12 + 13 + maintainers: 14 + - Masahiro Yamada <yamada.masahiro@socionext.com> 15 + 16 + allOf: 17 + - $ref: "dma-controller.yaml#" 18 + 19 + properties: 20 + compatible: 21 + const: socionext,uniphier-mio-dmac 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + description: | 28 + A list of interrupt specifiers associated with the DMA channels. 29 + The number of interrupt lines is SoC-dependent. 30 + 31 + clocks: 32 + maxItems: 1 33 + 34 + resets: 35 + maxItems: 1 36 + 37 + '#dma-cells': 38 + description: The single cell represents the channel index. 39 + const: 1 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - interrupts 45 + - clocks 46 + - '#dma-cells' 47 + 48 + additionalProperties: false 49 + 50 + examples: 51 + - | 52 + // In the example below, "interrupts = <0 68 4>, <0 68 4>, ..." is not a 53 + // typo. The first two channels share a single interrupt line. 54 + 55 + dmac: dma-controller@5a000000 { 56 + compatible = "socionext,uniphier-mio-dmac"; 57 + reg = <0x5a000000 0x1000>; 58 + interrupts = <0 68 4>, <0 68 4>, <0 69 4>, <0 70 4>, 59 + <0 71 4>, <0 72 4>, <0 73 4>, <0 74 4>; 60 + clocks = <&mio_clk 7>; 61 + resets = <&mio_rst 7>; 62 + #dma-cells = <1>; 63 + };
-25
Documentation/devicetree/bindings/dma/uniphier-mio-dmac.txt
··· 1 - UniPhier Media IO DMA controller 2 - 3 - This works as an external DMA engine for SD/eMMC controllers etc. 4 - found in UniPhier LD4, Pro4, sLD8 SoCs. 5 - 6 - Required properties: 7 - - compatible: should be "socionext,uniphier-mio-dmac". 8 - - reg: offset and length of the register set for the device. 9 - - interrupts: a list of interrupt specifiers associated with the DMA channels. 10 - - clocks: a single clock specifier. 11 - - #dma-cells: should be <1>. The single cell represents the channel index. 12 - 13 - Example: 14 - dmac: dma-controller@5a000000 { 15 - compatible = "socionext,uniphier-mio-dmac"; 16 - reg = <0x5a000000 0x1000>; 17 - interrupts = <0 68 4>, <0 68 4>, <0 69 4>, <0 70 4>, 18 - <0 71 4>, <0 72 4>, <0 73 4>, <0 74 4>; 19 - clocks = <&mio_clk 7>; 20 - #dma-cells = <1>; 21 - }; 22 - 23 - Note: 24 - In the example above, "interrupts = <0 68 4>, <0 68 4>, ..." is not a typo. 25 - The first two channels share a single interrupt line.