Skip to contentSkip to conversation

cmd/dma: documentation

PATCH In review Brian Sune 2 participants 4 messages Oct 8, 2025

lore
Share & tools
lore

Brian Sune

author
#0 lore raw

PATCH v2 1/1 cmd/dma: documentation

This explains how
to use the new U-Boot command 'dmareset'.

---
 doc/usage/cmd/dmareset.rst | 55 ++++++++++++++++++++++++++++++++++++++
 doc/usage/index.rst        |  1 +
 2 files changed, 56 insertions(+)
 create mode 100644 doc/usage/cmd/dmareset.rst
doc/usage/cmd/dmareset.rst new file +55 -0
new file mode 100644
index 00000000000..d30f1d3e8d4
@@ -0,0 +1,55 @@
+.. SPDX-License-Identifier: GPL-2.0+:
+
+.. index::
+   single: dmareset (command)
+
+dmareset command
+================
+
+Synopsis
+--------
+
+::
+
+    Usage: dmareset <channel 0-7> [<channel 0-7> ...]
+    dmareset - Release PL330 DMA channel reset(s) for SoCFPGA
+
+    Usage:
+    dmareset <channel 0-7> [<channel 0-7> ...]  - release reset for one or more DMA channels
+
+dmareset channel
+----------------
+
+Release the DMA channel reset *channel*.
+
+Parameters
+----------
+
+channel
+    DMA channel number
+
+Example
+-------
+
+Release DMA channel(s)::
+
+    => dmareset 0
+    PL330 DMA channel 0 reset released
+    => dmareset 1
+    PL330 DMA channel 1 reset released
+    => dmareset 0 1
+    PL330 DMA channel 0 reset released
+    PL330 DMA channel 1 reset released
+
+
+Configuration
+-------------
+
+The dmareset command is only available if CONFIG_CMD_C5_PL330_DMA=y in
+"Shell scripting commands".
+
+Return value
+------------
+
+If the command succeds the return PL330 DMA channel $? reset released.
+If an error occurs, the return Error: channel must be 0-7.
doc/usage/index.rst +1 -0
index 3a48521d5d5..809bf31b2ac 100644
@@ -57,6 +57,7 @@ Shell commands
    cmd/cpu
    cmd/cpuid
    cmd/cyclic
+   cmd/dmareset
    cmd/dm
    cmd/ebtupdate
    cmd/echo
Signature · 1 line
2.47.1.windows.1
author
#3 lore raw
Quoted 3 lines

Aaaaaa, no idea why my env no good.
But at least you checked.
Thank you.

I debugged the caused.
The previous warnings are all introduced due to disk access right. And possible share driver thing that block some tools to run properly. I can also built in in local trunk.
Learnt s.t. =]