* [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values
@ 2024-12-06 11:50 Ken Sloat
2024-12-06 16:35 ` Conor Dooley
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ken Sloat @ 2024-12-06 11:50 UTC (permalink / raw)
Cc: Ken Sloat, Amélie Delaunay, Vinod Koul, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue, dmaengine, linux-stm32, devicetree,
linux-arm-kernel, linux-kernel
The dma-cell values for the stm32-dmamux are used to craft the DMA spec
for the actual controller. These values are currently undocumented
leaving the user to reverse engineer the driver in order to determine
their meaning. Add a basic description, while avoiding duplicating
information by pointing the user to the associated DMA docs that
describe the fields in depth.
Signed-off-by: Ken Sloat <ksloat@cornersoftsolutions.com>
---
Changes in v2:
- Remove redundant comment regarding dma-cells val
- Reference bindings doc for DMA controller
.../devicetree/bindings/dma/stm32/st,stm32-dmamux.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/stm32/st,stm32-dmamux.yaml b/Documentation/devicetree/bindings/dma/stm32/st,stm32-dmamux.yaml
index f26c914a3a9a..b7bca1a83769 100644
--- a/Documentation/devicetree/bindings/dma/stm32/st,stm32-dmamux.yaml
+++ b/Documentation/devicetree/bindings/dma/stm32/st,stm32-dmamux.yaml
@@ -15,6 +15,16 @@ allOf:
properties:
"#dma-cells":
const: 3
+ description: |
+ Each cell represents the following:
+ 1. The mux input number/line for the request
+ 2. Bitfield representing DMA channel configuration that is passed
+ to the real DMA controller
+ 3. Bitfield representing device dependent DMA features passed to
+ the real DMA controller
+
+ For bitfield definitions of cells 2 and 3, see the associated
+ bindings doc for the actual DMA controller in st,stm32-dma.yaml.
compatible:
const: st,stm32h7-dmamux
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values
2024-12-06 11:50 [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values Ken Sloat
@ 2024-12-06 16:35 ` Conor Dooley
2024-12-09 8:58 ` Amelie Delaunay
2024-12-24 10:42 ` Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2024-12-06 16:35 UTC (permalink / raw)
To: Ken Sloat
Cc: Amélie Delaunay, Vinod Koul, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue, dmaengine, linux-stm32, devicetree,
linux-arm-kernel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
On Fri, Dec 06, 2024 at 06:50:18AM -0500, Ken Sloat wrote:
> The dma-cell values for the stm32-dmamux are used to craft the DMA spec
> for the actual controller. These values are currently undocumented
> leaving the user to reverse engineer the driver in order to determine
> their meaning. Add a basic description, while avoiding duplicating
> information by pointing the user to the associated DMA docs that
> describe the fields in depth.
>
> Signed-off-by: Ken Sloat <ksloat@cornersoftsolutions.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values
2024-12-06 11:50 [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values Ken Sloat
2024-12-06 16:35 ` Conor Dooley
@ 2024-12-09 8:58 ` Amelie Delaunay
2024-12-24 10:42 ` Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Amelie Delaunay @ 2024-12-09 8:58 UTC (permalink / raw)
To: Ken Sloat
Cc: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, dmaengine, linux-stm32,
devicetree, linux-arm-kernel, linux-kernel
On 12/6/24 12:50, Ken Sloat wrote:
> The dma-cell values for the stm32-dmamux are used to craft the DMA spec
> for the actual controller. These values are currently undocumented
> leaving the user to reverse engineer the driver in order to determine
> their meaning. Add a basic description, while avoiding duplicating
> information by pointing the user to the associated DMA docs that
> describe the fields in depth.
>
> Signed-off-by: Ken Sloat<ksloat@cornersoftsolutions.com>
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values
2024-12-06 11:50 [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values Ken Sloat
2024-12-06 16:35 ` Conor Dooley
2024-12-09 8:58 ` Amelie Delaunay
@ 2024-12-24 10:42 ` Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2024-12-24 10:42 UTC (permalink / raw)
To: Ken Sloat
Cc: Amélie Delaunay, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Maxime Coquelin, Alexandre Torgue, dmaengine,
linux-stm32, devicetree, linux-arm-kernel, linux-kernel
On Fri, 06 Dec 2024 06:50:18 -0500, Ken Sloat wrote:
> The dma-cell values for the stm32-dmamux are used to craft the DMA spec
> for the actual controller. These values are currently undocumented
> leaving the user to reverse engineer the driver in order to determine
> their meaning. Add a basic description, while avoiding duplicating
> information by pointing the user to the associated DMA docs that
> describe the fields in depth.
>
> [...]
Applied, thanks!
[1/1] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values
commit: 54e09c8e2d3b0b7d603a64368fa49fe2a8031dd1
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-24 10:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06 11:50 [PATCH v2] dt-bindings: dma: st-stm32-dmamux: Add description for dma-cell values Ken Sloat
2024-12-06 16:35 ` Conor Dooley
2024-12-09 8:58 ` Amelie Delaunay
2024-12-24 10:42 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox