* [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description
2026-02-11 9:28 [PATCH v4 0/3] Reserve eDMA channels 0-1 for V2X Joy Zou
@ 2026-02-11 9:28 ` Joy Zou
2026-02-11 15:34 ` Frank Li
` (2 more replies)
2026-02-11 9:28 ` [PATCH v4 2/3] arm64: dts: imx95: Reserve eDMA channels 0-1 for V2X Joy Zou
` (2 subsequent siblings)
3 siblings, 3 replies; 9+ messages in thread
From: Joy Zou @ 2026-02-11 9:28 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Frank Li,
Peng Fan, Ye Li
Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Joy Zou
Add documentation for the dma-channel-mask property in the fsl-edma
binding. This property uses an inverted bit definition: bit value 0
indicates the channel is available, while bit value 1 indicates
unavailable.
That was already used widely for i.MX8, i.MX9. Correcting the definition
will break backward compatibility. This reversal only impacts the eDMA
dts node and driver, and doesn't impact DMA consumer. Therefore,
keep the inverted definition.
Also add a note at the top of the binding to highlight this inverted
definition to prevent confusion.
Signed-off-by: Joy Zou <joy.zou@nxp.com>
---
Documentation/devicetree/bindings/dma/fsl,edma.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
index fa4248e2f1b9cecd00f1535744bfe6d9ecdba613..f609038e35ae1836b89c5b4d8a095b15a882fb87 100644
--- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
+++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
@@ -12,6 +12,9 @@ description: |
DMAMUX0 and DMAMUX1, specific DMA request source can only be multiplexed
by any channel of certain group, DMAMUX0 or DMAMUX1, but not both.
+ This binding has an inverted dma-channel-mask definition compared to
+ the common DMA binding for historical reasons.
+
maintainers:
- Peng Fan <peng.fan@nxp.com>
@@ -95,6 +98,12 @@ properties:
eDMA are implemented in big endian mode, otherwise in little mode.
type: boolean
+ dma-channel-mask:
+ description: |
+ Bitmask of available DMA channels (inverted definition).
+ Bit semantics: 0 means channel available, 1 means channel unavailable
+ default: 0
+
required:
- "#dma-cells"
- compatible
--
2.37.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description
2026-02-11 9:28 ` [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description Joy Zou
@ 2026-02-11 15:34 ` Frank Li
2026-02-11 22:06 ` Rob Herring (Arm)
2026-06-05 10:44 ` Laurentiu Mihalcea
2 siblings, 0 replies; 9+ messages in thread
From: Frank Li @ 2026-02-11 15:34 UTC (permalink / raw)
To: Joy Zou
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Peng Fan,
Ye Li, devicetree, imx, linux-arm-kernel, linux-kernel
On Wed, Feb 11, 2026 at 05:28:24PM +0800, Joy Zou wrote:
> Add documentation for the dma-channel-mask property in the fsl-edma
> binding. This property uses an inverted bit definition: bit value 0
> indicates the channel is available, while bit value 1 indicates
> unavailable.
>
> That was already used widely for i.MX8, i.MX9. Correcting the definition
> will break backward compatibility. This reversal only impacts the eDMA
> dts node and driver, and doesn't impact DMA consumer. Therefore,
> keep the inverted definition.
>
> Also add a note at the top of the binding to highlight this inverted
> definition to prevent confusion.
>
> Signed-off-by: Joy Zou <joy.zou@nxp.com>
> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> Documentation/devicetree/bindings/dma/fsl,edma.yaml | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> index fa4248e2f1b9cecd00f1535744bfe6d9ecdba613..f609038e35ae1836b89c5b4d8a095b15a882fb87 100644
> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> @@ -12,6 +12,9 @@ description: |
> DMAMUX0 and DMAMUX1, specific DMA request source can only be multiplexed
> by any channel of certain group, DMAMUX0 or DMAMUX1, but not both.
>
> + This binding has an inverted dma-channel-mask definition compared to
> + the common DMA binding for historical reasons.
> +
> maintainers:
> - Peng Fan <peng.fan@nxp.com>
>
> @@ -95,6 +98,12 @@ properties:
> eDMA are implemented in big endian mode, otherwise in little mode.
> type: boolean
>
> + dma-channel-mask:
> + description: |
> + Bitmask of available DMA channels (inverted definition).
> + Bit semantics: 0 means channel available, 1 means channel unavailable
> + default: 0
> +
> required:
> - "#dma-cells"
> - compatible
>
> --
> 2.37.1
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description
2026-02-11 9:28 ` [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description Joy Zou
2026-02-11 15:34 ` Frank Li
@ 2026-02-11 22:06 ` Rob Herring (Arm)
2026-06-05 10:44 ` Laurentiu Mihalcea
2 siblings, 0 replies; 9+ messages in thread
From: Rob Herring (Arm) @ 2026-02-11 22:06 UTC (permalink / raw)
To: Joy Zou
Cc: Peng Fan, Ye Li, imx, Shawn Guo, linux-arm-kernel,
Pengutronix Kernel Team, Frank Li, devicetree, Fabio Estevam,
linux-kernel, Sascha Hauer, Conor Dooley, Krzysztof Kozlowski
On Wed, 11 Feb 2026 17:28:24 +0800, Joy Zou wrote:
> Add documentation for the dma-channel-mask property in the fsl-edma
> binding. This property uses an inverted bit definition: bit value 0
> indicates the channel is available, while bit value 1 indicates
> unavailable.
>
> That was already used widely for i.MX8, i.MX9. Correcting the definition
> will break backward compatibility. This reversal only impacts the eDMA
> dts node and driver, and doesn't impact DMA consumer. Therefore,
> keep the inverted definition.
>
> Also add a note at the top of the binding to highlight this inverted
> definition to prevent confusion.
>
> Signed-off-by: Joy Zou <joy.zou@nxp.com>
> ---
> Documentation/devicetree/bindings/dma/fsl,edma.yaml | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description
2026-02-11 9:28 ` [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description Joy Zou
2026-02-11 15:34 ` Frank Li
2026-02-11 22:06 ` Rob Herring (Arm)
@ 2026-06-05 10:44 ` Laurentiu Mihalcea
2026-06-05 15:32 ` Frank Li
2 siblings, 1 reply; 9+ messages in thread
From: Laurentiu Mihalcea @ 2026-06-05 10:44 UTC (permalink / raw)
To: Joy Zou, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Frank Li, Peng Fan, Ye Li
Cc: devicetree, imx, linux-arm-kernel, linux-kernel
On 2/11/2026 1:28 AM, Joy Zou wrote:
> Add documentation for the dma-channel-mask property in the fsl-edma
> binding. This property uses an inverted bit definition: bit value 0
> indicates the channel is available, while bit value 1 indicates
> unavailable.
>
> That was already used widely for i.MX8, i.MX9. Correcting the definition
> will break backward compatibility. This reversal only impacts the eDMA
> dts node and driver, and doesn't impact DMA consumer. Therefore,
> keep the inverted definition.
>
> Also add a note at the top of the binding to highlight this inverted
> definition to prevent confusion.
>
> Signed-off-by: Joy Zou <joy.zou@nxp.com>
Hi,
I believe this patch hasn't been picked up yet even though it's been ACK'd by one of the
DT binding maintainers.
Frank Li, can you please take it into your tree?
Thanks,
Laurentiu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description
2026-06-05 10:44 ` Laurentiu Mihalcea
@ 2026-06-05 15:32 ` Frank Li
0 siblings, 0 replies; 9+ messages in thread
From: Frank Li @ 2026-06-05 15:32 UTC (permalink / raw)
To: Laurentiu Mihalcea
Cc: Joy Zou, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Peng Fan, Ye Li, devicetree, imx, linux-arm-kernel, linux-kernel
On Fri, Jun 05, 2026 at 03:44:23AM -0700, Laurentiu Mihalcea wrote:
>
>
> On 2/11/2026 1:28 AM, Joy Zou wrote:
> > Add documentation for the dma-channel-mask property in the fsl-edma
> > binding. This property uses an inverted bit definition: bit value 0
> > indicates the channel is available, while bit value 1 indicates
> > unavailable.
> >
> > That was already used widely for i.MX8, i.MX9. Correcting the definition
> > will break backward compatibility. This reversal only impacts the eDMA
> > dts node and driver, and doesn't impact DMA consumer. Therefore,
> > keep the inverted definition.
> >
> > Also add a note at the top of the binding to highlight this inverted
> > definition to prevent confusion.
> >
> > Signed-off-by: Joy Zou <joy.zou@nxp.com>
> Hi,
>
> I believe this patch hasn't been picked up yet even though it's been ACK'd by one of the
> DT binding maintainers.
>
> Frank Li, can you please take it into your tree?
I ping vnod in irc yesterday, let wait for few days, if he don't pick, I
will pick it.
Frank
>
>
> Thanks,
> Laurentiu
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v4 2/3] arm64: dts: imx95: Reserve eDMA channels 0-1 for V2X
2026-02-11 9:28 [PATCH v4 0/3] Reserve eDMA channels 0-1 for V2X Joy Zou
2026-02-11 9:28 ` [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description Joy Zou
@ 2026-02-11 9:28 ` Joy Zou
2026-02-11 9:28 ` [PATCH v4 3/3] arm64: dts: imx95-evk: update the dma-channel-mask property Joy Zou
2026-02-24 20:32 ` (subset) [PATCH v4 0/3] Reserve eDMA channels 0-1 for V2X Frank Li
3 siblings, 0 replies; 9+ messages in thread
From: Joy Zou @ 2026-02-11 9:28 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Frank Li,
Peng Fan, Ye Li
Cc: devicetree, imx, linux-arm-kernel, linux-kernel,
Laurentiu Mihalcea, Joy Zou
Reserve eDMA channels 0 and 1 on the AXI eDMA controller for exclusive
use by V2X (Vehicle-to-Everything) fast hash operations.
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Tested-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Signed-off-by: Joy Zou <joy.zou@nxp.com>
---
arch/arm64/boot/dts/freescale/imx95.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index 55e2da094c889fc7c1096d0e36f31ae118d2a982..9ac82da2ff440e08ae8378d7ff830a568d50a354 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -631,6 +631,8 @@ edma2: dma-controller@42000000 {
reg = <0x42000000 0x210000>;
#dma-cells = <3>;
dma-channels = <64>;
+ /* channels 0 and 1 reserved for V2X fast hash */
+ dma-channel-mask = <0x3>;
interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
--
2.37.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v4 3/3] arm64: dts: imx95-evk: update the dma-channel-mask property
2026-02-11 9:28 [PATCH v4 0/3] Reserve eDMA channels 0-1 for V2X Joy Zou
2026-02-11 9:28 ` [PATCH v4 1/3] dt-bindings: dma: fsl-edma: add dma-channel-mask property description Joy Zou
2026-02-11 9:28 ` [PATCH v4 2/3] arm64: dts: imx95: Reserve eDMA channels 0-1 for V2X Joy Zou
@ 2026-02-11 9:28 ` Joy Zou
2026-02-24 20:32 ` (subset) [PATCH v4 0/3] Reserve eDMA channels 0-1 for V2X Frank Li
3 siblings, 0 replies; 9+ messages in thread
From: Joy Zou @ 2026-02-11 9:28 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Frank Li,
Peng Fan, Ye Li
Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Joy Zou
Have reserved eDMA2 channels 0 and 1 for V2X fast hash in imx95.dtsi.
So update the dma-channel-mask from 0xc0000000 to 0xc0000003 to mark
channels 0, 1, 30, and 31 as reserved.
Signed-off-by: Joy Zou <joy.zou@nxp.com>
---
arch/arm64/boot/dts/freescale/imx95-19x19-evk-sof.dts | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk-sof.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk-sof.dts
index 808a9fe3ebb2b9557be9e428583e76c32517de08..264703f6eef64813d64fe07713cf92fd02fa0778 100644
--- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk-sof.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk-sof.dts
@@ -55,8 +55,11 @@ sound-wm8962 {
};
&edma2 {
- /* channels 30 and 31 reserved for FW usage */
- dma-channel-mask = <0xc0000000>, <0x0>;
+ /*
+ * channels 0 and 1 reserved for V2X fast hash,
+ * channels 30 and 31 reserved for FW usage
+ */
+ dma-channel-mask = <0xc0000003>, <0x0>;
};
&sai3 {
--
2.37.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: (subset) [PATCH v4 0/3] Reserve eDMA channels 0-1 for V2X
2026-02-11 9:28 [PATCH v4 0/3] Reserve eDMA channels 0-1 for V2X Joy Zou
` (2 preceding siblings ...)
2026-02-11 9:28 ` [PATCH v4 3/3] arm64: dts: imx95-evk: update the dma-channel-mask property Joy Zou
@ 2026-02-24 20:32 ` Frank Li
3 siblings, 0 replies; 9+ messages in thread
From: Frank Li @ 2026-02-24 20:32 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Peng Fan,
Ye Li, Joy Zou
Cc: Frank Li, devicetree, imx, linux-arm-kernel, linux-kernel,
Laurentiu Mihalcea
On Wed, 11 Feb 2026 17:28:23 +0800, Joy Zou wrote:
>
>
Applied, thanks!
[2/3] arm64: dts: imx95: Reserve eDMA channels 0-1 for V2X
(no commit info)
[3/3] arm64: dts: imx95-evk: update the dma-channel-mask property
(no commit info)
Best regards,
--
Frank Li <Frank.Li@nxp.com>
^ permalink raw reply [flat|nested] 9+ messages in thread