-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Modify NXP's CSI driver to support both rt11xx and rt10xx #72420
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
Modify NXP's CSI driver to support both rt11xx and rt10xx #72420
Conversation
@loicpoulain : Please ... :-). We need this feature and it has been there for quite a while. |
The CI is failed because of the dependency on this PR |
return -ENOTSUP; | ||
} | ||
video_pix_fmt_convert(&format, false); | ||
data->csi_config.dataBus = kCSI_DataBus24Bit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead of making this dependent on Kconfig we should move the dataBus
configuration to devicetree? Not sure if all cameras are 8bit bus width, or if some would use more pins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't make this configurable in devicetree. The databus is either 8 bits or 24 bits depending on the path of image data. If it passes by mipi csi2rx, data are implicitly converted to 32-bit format and 24 bits need to be set for it to work.
include/zephyr/drivers/video.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the change to this generic file into a separate commit from the one adding support for the CSI2RX to the CSI driver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Done
67c1a19
to
1ebeaa9
Compare
@ngphibang please take a look at CI failures |
@danieldegrasse Yes, CI failures are just because of dependencies on other PRs. We can wait for them to be merged first then I will update this. |
1ebeaa9
to
c6dffdc
Compare
Rebased because #72623 is now merged. |
You have a Kconfig compliance check error to address |
Add XYUV32 pixel format Signed-off-by: Phi Bang Nguyen <[email protected]>
On i.MX RT11XX which has MIPI CSI-2 Rx, image data from the camera sensor after passing through the camera pipeline (MIPI CSI-2 Rx --> Video Mux --> CSI) will be implicitly converted to a 32-bits pixel formats. For example, an input in RGB565 / YUYV (2-bytes format) will become an XRGB32 / XYUV32 (4-bytes format), respectively. Make changes to support this. Signed-off-by: Phi Bang Nguyen <[email protected]>
c6dffdc
to
668b5c6
Compare
#71859 dependency is now merged. The CI failures are not due to my changes, I think.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will rekick CI once things are working again, the failures do not seem to be related to this PR
This PR modify the NXP's CSI driver to support both rt11xx and rt10xx. This depends on this PR
It is split from #69810 as required by @loicpoulain to ease the review process.
It already got reviewed by @danieldegrasse.
The PR depends on #71859