Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nxp: imx8mp: support SDMA3 and SAI3 bus clock management #84972

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

LaurentiuM1234
Copy link
Collaborator

Add support for managing SAI3 and SDMA3 bus clocks. This means:

  1. Adding support for these clocks in clock_control_mcux_ccm.c
  2. Adding these clocks inside the DTS
  3. Adding support for PM runtime operations in SDMA driver.
  4. Adding support for multiple, different clock controllers in SAI driver.

Pull in the following patches:

devices: MIMX8ML8: fsl_clock: fix root clock gating/ungating
devices: MIMX8ML8: fsl_clock: change root clock ID for SAI3

Signed-off-by: Laurentiu Mihalcea <[email protected]>
@zephyrbot
Copy link
Collaborator

zephyrbot commented Jan 31, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@49ff7e3 (master) zephyrproject-rtos/hal_nxp#503 zephyrproject-rtos/hal_nxp#503/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

iuliana-prodan
iuliana-prodan previously approved these changes Feb 3, 2025
@fabiobaltieri fabiobaltieri added DNM (manifest) This PR should not be merged (controlled by action-manifest) and removed DNM This PR should not be merged (Do Not Merge) labels Feb 4, 2025
Current SAI code only supports clocks from a single provider. As such,
add support for having clocks from multiple, different providers.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Add SAI1-3 and SDMA1-3 bus clocks for imx8mp.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Add SAI3 and SDMA3 bus clocks.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Add support for PM runtime operations.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
@LaurentiuM1234
Copy link
Collaborator Author

V2 changes:

  • _SAI_GET_CLOCK_CONTROLLERS now returns { } instead of NULL if no clocks are specified. This is needed because of the cast to array type: "const struct device *[]".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Clock Control area: DAI area: DMA Direct Memory Access area: Xtensa Xtensa Architecture DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_nxp platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants