Skip to content

Conversation

ZhaoxiangJin
Copy link
Contributor

  1. Added description for dma-requests and dma-channels in dts/bindings/dma/nxp,mcux-edma.yaml.

  2. Fixed dma-requests value in dts/arm/nxp/nxp_mcxn23x_common.dtsi and dts/arm/nxp/nxp_mcxnx4x_common.dtsi. The 'dma-requests' indicates the maximum value of the DMA request sources (slots) index supported by DMAMUX rather than the number of request sources.


edma0: dma-controller@80000 {
#dma-cells = <2>;
compatible = "nxp,mcux-edma";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR LGTM, but it should be split in 2 commits:
commit 1 - adds description for dma-requests and dma-channels;
commit 2 - fixes dma-req values, which should also have a Fixes tag since those values were incorrect.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @iuliana-prodan, thanks for your suggestion, I have updated, please review, thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the commit message, I understand that you've changed the meaning of dma-requests. However, you've only updated the values in nxp_mcxn23x_common.dtsi and nxp_mcxnx4x_common.dtsi.
The dma-requests property is used in multiple .dtsi files for NXP platforms:

dts/arm/nxp/nxp_rt11xx.dtsi:1042:			dma-requests = <208>;
dts/arm/nxp/nxp_rt11xx.dtsi:1061:			dma-requests = <208>;
dts/arm/nxp/nxp_rt118x.dtsi:1260:		dma-requests = <39>;
dts/arm/nxp/nxp_rt118x.dtsi:1279:		dma-requests = <222>;
dts/arm/nxp/nxp_rt7xx_cm33_cpu0.dtsi:172:		dma-requests = <105>;
dts/arm/nxp/nxp_rt7xx_cm33_cpu0.dtsi:187:		dma-requests = <105>;
dts/arm/nxp/nxp_s32z27x_r52.dtsi:1154:			dma-requests = <64>;
dts/arm/nxp/nxp_s32z27x_r52.dtsi:1199:			dma-requests = <64>;
dts/arm/nxp/nxp_s32z27x_r52.dtsi:1228:			dma-requests = <64>;
dts/arm/nxp/nxp_s32z27x_r52.dtsi:1257:			dma-requests = <64>;
dts/arm/nxp/nxp_mcxn23x_common.dtsi:501:		dma-requests = <94>;
dts/arm/nxp/nxp_mcxn23x_common.dtsi:517:		dma-requests = <94>;
dts/arm/nxp/nxp_mcxnx4x_common.dtsi:598:		dma-requests = <117>;
dts/arm/nxp/nxp_mcxnx4x_common.dtsi:614:		dma-requests = <117>;
dts/arm/nxp/nxp_mcxw7x_common.dtsi:400:		dma-requests = <64>;
dts/arm/nxp/nxp_s32k344_m7.dtsi:665:			dma-requests = <64>;
dts/arm/nxp/nxp_imx95_m7.dtsi:178:			dma-requests = <92>;
dts/arm/nxp/nxp_mcxaxx6_common.dtsi:291:			dma-requests = <131>;
dts/arm/nxp/nxp_mcxa156.dtsi:253:			dma-requests = <86>;
dts/arm/nxp/nxp_k8x.dtsi:432:			dma-requests = <64>;
dts/arm/nxp/nxp_ke1xf.dtsi:104:			dma-requests = <64>;
dts/arm/nxp/nxp_rt10xx.dtsi:952:			dma-requests = <128>;
dts/arm/nxp/nxp_ke1xz.dtsi:497:			dma-requests = <64>;
dts/arm/nxp/nxp_k6x.dtsi:529:			dma-requests = <64>;
dts/arm/nxp/nxp_mcxa153.dtsi:79:			dma-requests = <66>;
dts/xtensa/nxp/nxp_imxrt700_hifi4.dtsi:232:		dma-requests = <105>;

So, this change is a bit confusing.

If the previous values were incorrect only in these two files, then this should be treated as a fix, and a Fixes tag should be added.
Otherwise, if the meaning of dma-requests has changed globally (e.g., now representing the maximum number of DMA request sources), then all relevant .dtsi files should be reviewed and updated accordingly to ensure consistency.

Copy link
Contributor Author

@ZhaoxiangJin ZhaoxiangJin Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I did not changed 'dma-requests' meaning globally. I just add description for it.
  2. I fixed incorrect 'dma-requests' value in dts/arm/nxp/nxp_mcxn23x_common.dtsi and dts/arm/nxp/nxp_mcxnx4x_common.dtsi. I wrongly changed these values in correct mcxn23x and mcxnx4x edma properties information #97389.
  3. Only these two .dtsi files need to be fixed.

Added description for 'dma-requests' and 'dma-channels' in
dts/bindings/dma/nxp,mcux-edma.yaml.

Signed-off-by: Zhaoxiang Jin <[email protected]>
@ZhaoxiangJin ZhaoxiangJin force-pushed the fix-dma-request-issue branch from bd9fe4f to 7b24c47 Compare October 17, 2025 08:52
@ZhaoxiangJin ZhaoxiangJin added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Oct 17, 2025
@ZhaoxiangJin ZhaoxiangJin force-pushed the fix-dma-request-issue branch from 7b24c47 to 3e7647c Compare October 20, 2025 16:09
Fixes incorrect 'dma-requests' value in
dts/arm/nxp/nxp_mcxn23x_common.dtsi and
dts/arm/nxp/nxp_mcxnx4x_common.dtsi. The
'dma-requests' indicates the maximum value of
the DMA request sources (slots) index supported
by DMAMUX rather than the number of request sources.

Fixes: zephyrproject-rtos#97389 (which introduced the incorrect values)

Signed-off-by: Zhaoxiang Jin <[email protected]>
@ZhaoxiangJin ZhaoxiangJin force-pushed the fix-dma-request-issue branch from 3e7647c to 39e0648 Compare October 20, 2025 16:24
Copy link

@cfriedt cfriedt merged commit 18d037f into zephyrproject-rtos:main Oct 20, 2025
26 checks passed
@ZhaoxiangJin ZhaoxiangJin deleted the fix-dma-request-issue branch October 21, 2025 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards/SoCs area: Devicetree Bindings area: DMA Direct Memory Access platform: NXP MCU platform: NXP NXP Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants