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

dt-bindings: dma: convert atmel-dma.txt to YAML

Add a description, required properties, appropriate compatibles and
missing properties like clocks and clock-names which are not defined in
the text binding for all the SoCs that are supported by microchip.
Update the text binding name `atmel-dma.txt` to
`atmel,at91sam9g45-dma.yaml` for the files which reference to
`atmel-dma.txt`. Drop Tudor name from maintainers.

Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
Signed-off-by: Charan Pedumuru <charan.pedumuru@microchip.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250203-test-v4-1-a9ec3eded1c7@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Durai Manickam KR and committed by
Vinod Koul
a54ec770 1c4c8609

+70 -44
+68
Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.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/atmel,at91sam9g45-dma.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Atmel Direct Memory Access Controller (DMA) 8 + 9 + maintainers: 10 + - Ludovic Desroches <ludovic.desroches@microchip.com> 11 + 12 + description: 13 + The Atmel Direct Memory Access Controller (DMAC) transfers data from a source 14 + peripheral to a destination peripheral over one or more AMBA buses. One channel 15 + is required for each source/destination pair. In the most basic configuration, 16 + the DMAC has one master interface and one channel. The master interface reads 17 + the data from a source and writes it to a destination. Two AMBA transfers are 18 + required for each DMAC data transfer. This is also known as a dual-access transfer. 19 + The DMAC is programmed via the APB interface. 20 + 21 + properties: 22 + compatible: 23 + enum: 24 + - atmel,at91sam9g45-dma 25 + - atmel,at91sam9rl-dma 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + "#dma-cells": 34 + description: 35 + Must be <2>, used to represent the number of integer cells in the dma 36 + property of client devices. The two cells in order are 37 + 1. The first cell represents the channel number. 38 + 2. The second cell is 0 for RX and 1 for TX transfers. 39 + const: 2 40 + 41 + clocks: 42 + maxItems: 1 43 + 44 + clock-names: 45 + const: dma_clk 46 + 47 + required: 48 + - compatible 49 + - reg 50 + - interrupts 51 + - "#dma-cells" 52 + - clocks 53 + - clock-names 54 + 55 + additionalProperties: false 56 + 57 + examples: 58 + - | 59 + dma-controller@ffffec00 { 60 + compatible = "atmel,at91sam9g45-dma"; 61 + reg = <0xffffec00 0x200>; 62 + interrupts = <21>; 63 + #dma-cells = <2>; 64 + clocks = <&pmc 2 20>; 65 + clock-names = "dma_clk"; 66 + }; 67 + 68 + ...
-42
Documentation/devicetree/bindings/dma/atmel-dma.txt
··· 1 - * Atmel Direct Memory Access Controller (DMA) 2 - 3 - Required properties: 4 - - compatible: Should be "atmel,<chip>-dma". 5 - - reg: Should contain DMA registers location and length. 6 - - interrupts: Should contain DMA interrupt. 7 - - #dma-cells: Must be <2>, used to represent the number of integer cells in 8 - the dmas property of client devices. 9 - 10 - Example: 11 - 12 - dma0: dma@ffffec00 { 13 - compatible = "atmel,at91sam9g45-dma"; 14 - reg = <0xffffec00 0x200>; 15 - interrupts = <21>; 16 - #dma-cells = <2>; 17 - }; 18 - 19 - DMA clients connected to the Atmel DMA controller must use the format 20 - described in the dma.txt file, using a three-cell specifier for each channel: 21 - a phandle plus two integer cells. 22 - The three cells in order are: 23 - 24 - 1. A phandle pointing to the DMA controller. 25 - 2. The memory interface (16 most significant bits), the peripheral interface 26 - (16 less significant bits). 27 - 3. Parameters for the at91 DMA configuration register which are device 28 - dependent: 29 - - bit 7-0: peripheral identifier for the hardware handshaking interface. The 30 - identifier can be different for tx and rx. 31 - - bit 11-8: FIFO configuration. 0 for half FIFO, 1 for ALAP, 2 for ASAP. 32 - 33 - Example: 34 - 35 - i2c0@i2c@f8010000 { 36 - compatible = "atmel,at91sam9x5-i2c"; 37 - reg = <0xf8010000 0x100>; 38 - interrupts = <9 4 6>; 39 - dmas = <&dma0 1 7>, 40 - <&dma0 1 8>; 41 - dma-names = "tx", "rx"; 42 - };
+1 -1
Documentation/devicetree/bindings/misc/atmel-ssc.txt
··· 14 14 Required properties for devices compatible with "atmel,at91sam9g45-ssc": 15 15 - dmas: DMA specifier, consisting of a phandle to DMA controller node, 16 16 the memory interface and SSC DMA channel ID (for tx and rx). 17 - See Documentation/devicetree/bindings/dma/atmel-dma.txt for details. 17 + See Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml for details. 18 18 - dma-names: Must be "tx", "rx". 19 19 20 20 Optional properties:
+1 -1
MAINTAINERS
··· 15347 15347 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 15348 15348 L: dmaengine@vger.kernel.org 15349 15349 S: Supported 15350 - F: Documentation/devicetree/bindings/dma/atmel-dma.txt 15350 + F: Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml 15351 15351 F: drivers/dma/at_hdmac.c 15352 15352 F: drivers/dma/at_xdmac.c 15353 15353 F: include/dt-bindings/dma/at91.h