Skip to content

drivers: video: Migrate ov7670 and smartdma to use video interfaces binding #88323

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

Merged
merged 4 commits into from
Apr 26, 2025

Conversation

ngphibang
Copy link
Collaborator

@ngphibang ngphibang commented Apr 8, 2025

This PR

josuah
josuah previously approved these changes Apr 9, 2025
@dleach02
Copy link
Member

@ngphibang is there a particular sequence of PRs we should be working to merge here?

@ngphibang
Copy link
Collaborator Author

ngphibang commented Apr 21, 2025

@dleach02 : No dependency, but I would like to have #82158 get merged first to avoid unnecessary conflict to resolve on that PR.

@dleach02
Copy link
Member

#82158 merged... resolve the merge conflict and we can likely get this merged soon

@ngphibang ngphibang force-pushed the ov7670_sdma_migration branch from 0c36711 to 2d3a98d Compare April 23, 2025 09:46
@ngphibang ngphibang force-pushed the ov7670_sdma_migration branch from 2d3a98d to 513b0dc Compare April 23, 2025 10:06
@ngphibang
Copy link
Collaborator Author

Just a simple rebase as #88890 was merged yesterday.

Fix a typo so that it won't break the build.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
Have ov7670 and video smartdma use video interfaces binding. With
this, we can fix the chicken-egg issue in init priority and don't need
the workaround anymore.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
@ngphibang ngphibang force-pushed the ov7670_sdma_migration branch from 4fbe7d1 to 72394c7 Compare April 23, 2025 15:04
@ngphibang
Copy link
Collaborator Author

@josuah @dleach02 Could you revisit (there's now a typo fix affecting the smartdcma driver build #88890 (comment)) ?

Copy link
Collaborator

@josuah josuah left a comment

Choose a reason for hiding this comment

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

Could you confirm that tests/drivers/build_all/video/frdm_mcxn947_mcxn947_cpu0.overlay is being used by twister? I have the impression it is not selected.

The rest is minor bikeshedding.

Thank you for the bugfixes and adding more boards to twister!

Add built-only test case for smartdma driver

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
Move board-specific overlays to boards folder

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
@ngphibang ngphibang force-pushed the ov7670_sdma_migration branch from 72394c7 to 9603a8c Compare April 24, 2025 11:56
@ngphibang
Copy link
Collaborator Author

ngphibang commented Apr 24, 2025

Could you confirm that tests/drivers/build_all/video/frdm_mcxn947_mcxn947_cpu0.overlay is being used by twister? I have the impression it is not selected.

It is selected and used by twister. You can try something wrong in the overlay and run:

west twister -i -T tests/drivers/build_all/video

or (to save time):

west build -p -b frdm_mcxn947/mcxn947/cpu0 tests/drivers/build_all/video -T drivers.video.mcux_smartdma.build

You will see it complains. It took me some time to make it pass CI correctly :-)

Copy link
Collaborator

@josuah josuah left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

[EDIT: that helped a lot getting UVC working on FRDM-MCXN947! UVC support might come for it as soon as the UVC PR is merged]

@dleach02 dleach02 closed this Apr 25, 2025
@dleach02 dleach02 reopened this Apr 25, 2025
@dleach02
Copy link
Member

closed/open to rekick CI

@nashif nashif merged commit cf6f9e3 into zephyrproject-rtos:main Apr 26, 2025
31 checks passed
@ngphibang ngphibang deleted the ov7670_sdma_migration branch June 24, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples area: Video Video subsystem platform: NXP Drivers NXP Semiconductors, drivers platform: NXP NXP
Projects
None yet
5 participants