* [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML
@ 2025-01-23 9:28 Charan Pedumuru
2025-01-23 11:15 ` kernel test robot
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Charan Pedumuru @ 2025-01-23 9:28 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
Ludovic Desroches, Tudor Ambarus
Cc: dmaengine, devicetree, linux-arm-kernel, linux-kernel,
Durai Manickam KR, Charan Pedumuru
From: Durai Manickam KR <durai.manickamkr@microchip.com>
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.
Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
Signed-off-by: Charan Pedumuru <charan.pedumuru@microchip.com>
---
Changes in v2:
- Renamed the yaml file to a compatible.
- Removed `|` and description for common properties.
- Modified the commit message.
- Dropped the label for the node in examples.
- Link to v1: https://lore.kernel.org/all/20240215-dmac-v1-1-8f1c6f031c98@microchip.com
---
.../bindings/dma/atmel,at91sam9g45-dma.yaml | 67 ++++++++++++++++++++++
.../devicetree/bindings/dma/atmel-dma.txt | 42 --------------
2 files changed, 67 insertions(+), 42 deletions(-)
diff --git a/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml b/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml
new file mode 100644
index 000000000000..8d0d68786cbc
--- /dev/null
+++ b/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/dma/atmel,at91sam9g45-dma.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Atmel Direct Memory Access Controller (DMA)
+
+maintainers:
+ - Ludovic Desroches <ludovic.desroches@microchip.com>
+ - Tudor Ambarus <tudor.ambarus@linaro.org>
+
+description:
+ The Atmel Direct Memory Access Controller (DMAC) transfers data from a source
+ peripheral to a destination peripheral over one or more AMBA buses. One channel
+ is required for each source/destination pair. In the most basic configuration,
+ the DMAC has one master interface and one channel. The master interface reads
+ the data from a source and writes it to a destination. Two AMBA transfers are
+ required for each DMAC data transfer. This is also known as a dual-access transfer.
+ The DMAC is programmed via the APB interface.
+
+properties:
+ compatible:
+ oneOf:
+ - enum:
+ - atmel,at91sam9g45-dma
+ - atmel,at91sam9rl-dma
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ "#dma-cells":
+ description:
+ Must be <2>, used to represent the number of integer cells in the dmas
+ property of client devices.
+ const: 2
+
+ clocks:
+ maxItems: 1
+
+ clock-names:
+ const: dma_clk
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - "#dma-cells"
+ - clocks
+ - clock-names
+
+additionalProperties: false
+
+examples:
+ - |
+ dma-controller@ffffec00 {
+ compatible = "atmel,at91sam9g45-dma";
+ reg = <0xffffec00 0x200>;
+ interrupts = <21>;
+ #dma-cells = <2>;
+ clocks = <&pmc 2 20>;
+ clock-names = "dma_clk";
+ };
+
+...
diff --git a/Documentation/devicetree/bindings/dma/atmel-dma.txt b/Documentation/devicetree/bindings/dma/atmel-dma.txt
deleted file mode 100644
index f69bcf5a6343..000000000000
--- a/Documentation/devicetree/bindings/dma/atmel-dma.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-* Atmel Direct Memory Access Controller (DMA)
-
-Required properties:
-- compatible: Should be "atmel,<chip>-dma".
-- reg: Should contain DMA registers location and length.
-- interrupts: Should contain DMA interrupt.
-- #dma-cells: Must be <2>, used to represent the number of integer cells in
-the dmas property of client devices.
-
-Example:
-
-dma0: dma@ffffec00 {
- compatible = "atmel,at91sam9g45-dma";
- reg = <0xffffec00 0x200>;
- interrupts = <21>;
- #dma-cells = <2>;
-};
-
-DMA clients connected to the Atmel DMA controller must use the format
-described in the dma.txt file, using a three-cell specifier for each channel:
-a phandle plus two integer cells.
-The three cells in order are:
-
-1. A phandle pointing to the DMA controller.
-2. The memory interface (16 most significant bits), the peripheral interface
-(16 less significant bits).
-3. Parameters for the at91 DMA configuration register which are device
-dependent:
- - bit 7-0: peripheral identifier for the hardware handshaking interface. The
- identifier can be different for tx and rx.
- - bit 11-8: FIFO configuration. 0 for half FIFO, 1 for ALAP, 2 for ASAP.
-
-Example:
-
-i2c0@i2c@f8010000 {
- compatible = "atmel,at91sam9x5-i2c";
- reg = <0xf8010000 0x100>;
- interrupts = <9 4 6>;
- dmas = <&dma0 1 7>,
- <&dma0 1 8>;
- dma-names = "tx", "rx";
-};
---
base-commit: 232f121837ad8b1c21cc80f2c8842a4090c5a2a0
change-id: 20250122-dma-c2778dfa4246
Best regards,
--
Charan Pedumuru <charan.pedumuru@microchip.com>
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML
2025-01-23 9:28 [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML Charan Pedumuru
@ 2025-01-23 11:15 ` kernel test robot
2025-01-23 18:46 ` Conor Dooley
2025-01-24 7:29 ` Tudor Ambarus
2 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2025-01-23 11:15 UTC (permalink / raw)
To: Charan Pedumuru, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
Ludovic Desroches, Tudor Ambarus
Cc: oe-kbuild-all, dmaengine, devicetree, linux-arm-kernel,
linux-kernel, Durai Manickam KR, Charan Pedumuru
Hi Charan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 232f121837ad8b1c21cc80f2c8842a4090c5a2a0]
url: https://github.com/intel-lab-lkp/linux/commits/Charan-Pedumuru/dt-bindings-dma-convert-atmel-dma-txt-to-YAML/20250123-173101
base: 232f121837ad8b1c21cc80f2c8842a4090c5a2a0
patch link: https://lore.kernel.org/r/20250123-dma-v1-1-054f1a77e733%40microchip.com
patch subject: [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML
reproduce: (https://download.01.org/0day-ci/archive/20250123/202501231832.JO111vnL-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501231832.JO111vnL-lkp@intel.com/
All warnings (new ones prefixed by >>):
Documentation/userspace-api/netlink/netlink-raw.rst: :doc:`rt_link<../../networking/netlink_spec/rt_link>`
Documentation/userspace-api/netlink/netlink-raw.rst: :doc:`tc<../../networking/netlink_spec/tc>`
Documentation/userspace-api/netlink/netlink-raw.rst: :doc:`tc<../../networking/netlink_spec/tc>`
Warning: Documentation/arch/powerpc/cxl.rst references a file that doesn't exist: Documentation/ABI/testing/sysfs-class-cxl
>> Warning: Documentation/devicetree/bindings/misc/atmel-ssc.txt references a file that doesn't exist: Documentation/devicetree/bindings/dma/atmel-dma.txt
Warning: Documentation/devicetree/bindings/regulator/siliconmitus,sm5703-regulator.yaml references a file that doesn't exist: Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml
Warning: Documentation/hwmon/g762.rst references a file that doesn't exist: Documentation/devicetree/bindings/hwmon/g762.txt
Warning: Documentation/translations/ja_JP/SubmittingPatches references a file that doesn't exist: linux-2.6.12-vanilla/Documentation/dontdiff
Warning: Documentation/translations/zh_CN/admin-guide/README.rst references a file that doesn't exist: Documentation/dev-tools/kgdb.rst
Warning: Documentation/translations/zh_CN/dev-tools/gdb-kernel-debugging.rst references a file that doesn't exist: Documentation/dev-tools/gdb-kernel-debugging.rst
Warning: Documentation/translations/zh_TW/admin-guide/README.rst references a file that doesn't exist: Documentation/dev-tools/kgdb.rst
Warning: Documentation/translations/zh_TW/dev-tools/gdb-kernel-debugging.rst references a file that doesn't exist: Documentation/dev-tools/gdb-kernel-debugging.rst
Warning: Documentation/userspace-api/netlink/index.rst references a file that doesn't exist: Documentation/networking/netlink_spec/index.rst
Warning: Documentation/userspace-api/netlink/specs.rst references a file that doesn't exist: Documentation/networking/netlink_spec/index.rst
>> Warning: MAINTAINERS references a file that doesn't exist: Documentation/devicetree/bindings/dma/atmel-dma.txt
Warning: MAINTAINERS references a file that doesn't exist: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
Warning: MAINTAINERS references a file that doesn't exist: Documentation/devicetree/bindings/leds/backlight/ti,lp8864.yaml
Warning: lib/Kconfig.debug references a file that doesn't exist: Documentation/dev-tools/fault-injection/fault-injection.rst
Using alabaster theme
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML
2025-01-23 9:28 [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML Charan Pedumuru
2025-01-23 11:15 ` kernel test robot
@ 2025-01-23 18:46 ` Conor Dooley
2025-01-24 7:29 ` Tudor Ambarus
2 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2025-01-23 18:46 UTC (permalink / raw)
To: Charan Pedumuru
Cc: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
Ludovic Desroches, Tudor Ambarus, dmaengine, devicetree,
linux-arm-kernel, linux-kernel, Durai Manickam KR
[-- Attachment #1: Type: text/plain, Size: 2599 bytes --]
On Thu, Jan 23, 2025 at 02:58:01PM +0530, Charan Pedumuru wrote:
> From: Durai Manickam KR <durai.manickamkr@microchip.com>
>
> 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.
>
> Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
> Signed-off-by: Charan Pedumuru <charan.pedumuru@microchip.com>
> ---
> Changes in v2:
> - Renamed the yaml file to a compatible.
> - Removed `|` and description for common properties.
> - Modified the commit message.
> - Dropped the label for the node in examples.
> - Link to v1: https://lore.kernel.org/all/20240215-dmac-v1-1-8f1c6f031c98@microchip.com
> ---
> .../bindings/dma/atmel,at91sam9g45-dma.yaml | 67 ++++++++++++++++++++++
> .../devicetree/bindings/dma/atmel-dma.txt | 42 --------------
> 2 files changed, 67 insertions(+), 42 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml b/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml
> new file mode 100644
> index 000000000000..8d0d68786cbc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml
> @@ -0,0 +1,67 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/dma/atmel,at91sam9g45-dma.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Atmel Direct Memory Access Controller (DMA)
> +
> +maintainers:
> + - Ludovic Desroches <ludovic.desroches@microchip.com>
> + - Tudor Ambarus <tudor.ambarus@linaro.org>
> +
> +description:
> + The Atmel Direct Memory Access Controller (DMAC) transfers data from a source
> + peripheral to a destination peripheral over one or more AMBA buses. One channel
> + is required for each source/destination pair. In the most basic configuration,
> + the DMAC has one master interface and one channel. The master interface reads
> + the data from a source and writes it to a destination. Two AMBA transfers are
> + required for each DMAC data transfer. This is also known as a dual-access transfer.
> + The DMAC is programmed via the APB interface.
> +
> +properties:
> + compatible:
> + oneOf:
> + - enum:
compatible:
enum:
You only have one option in your oneOf list.
> + - atmel,at91sam9g45-dma
> + - atmel,at91sam9rl-dma
Blank line here please.
> + reg:
> + maxItems: 1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML
2025-01-23 9:28 [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML Charan Pedumuru
2025-01-23 11:15 ` kernel test robot
2025-01-23 18:46 ` Conor Dooley
@ 2025-01-24 7:29 ` Tudor Ambarus
2025-01-27 4:08 ` Charan.Pedumuru
2 siblings, 1 reply; 5+ messages in thread
From: Tudor Ambarus @ 2025-01-24 7:29 UTC (permalink / raw)
To: Charan Pedumuru, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
Ludovic Desroches
Cc: dmaengine, devicetree, linux-arm-kernel, linux-kernel,
Durai Manickam KR
On 1/23/25 9:28 AM, Charan Pedumuru wrote:
> +maintainers:
> + - Ludovic Desroches <ludovic.desroches@microchip.com>
> + - Tudor Ambarus <tudor.ambarus@linaro.org>
If sending v3, please drop me from the maintainers list.
Thanks,
ta
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML
2025-01-24 7:29 ` Tudor Ambarus
@ 2025-01-27 4:08 ` Charan.Pedumuru
0 siblings, 0 replies; 5+ messages in thread
From: Charan.Pedumuru @ 2025-01-27 4:08 UTC (permalink / raw)
To: tudor.ambarus, vkoul, robh, krzk+dt, conor+dt, Nicolas.Ferre,
alexandre.belloni, claudiu.beznea, Ludovic.Desroches
Cc: dmaengine, devicetree, linux-arm-kernel, linux-kernel,
Durai.ManickamKR
On 24/01/25 12:59, Tudor Ambarus wrote:
> [You don't often get email from tudor.ambarus@linaro.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> On 1/23/25 9:28 AM, Charan Pedumuru wrote:
>> +maintainers:
>> + - Ludovic Desroches <ludovic.desroches@microchip.com>
>> + - Tudor Ambarus <tudor.ambarus@linaro.org>
> If sending v3, please drop me from the maintainers list.
Sure, I will drop you name.
>
> Thanks,
> ta
--
Best Regards,
Charan.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-27 4:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-23 9:28 [PATCH v2] dt-bindings: dma: convert atmel-dma.txt to YAML Charan Pedumuru
2025-01-23 11:15 ` kernel test robot
2025-01-23 18:46 ` Conor Dooley
2025-01-24 7:29 ` Tudor Ambarus
2025-01-27 4:08 ` Charan.Pedumuru
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).