forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 119
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
arm64: dts: qcom: msm8916-longcheer-l8910: add rear camera support #366
Open
a-andre
wants to merge
16
commits into
msm8916-mainline:wip/msm8916/6.11-rc5
Choose a base branch
from
a-andre:bqx5_cam_rear
base: wip/msm8916/6.11-rc5
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
arm64: dts: qcom: msm8916-longcheer-l8910: add rear camera support #366
a-andre
wants to merge
16
commits into
msm8916-mainline:wip/msm8916/6.11-rc5
from
a-andre:bqx5_cam_rear
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a-andre
force-pushed
the
bqx5_cam_rear
branch
5 times, most recently
from
August 28, 2024 20:52
389c263
to
d897b4c
Compare
This reverts commit 22e4e43. Signed-off-by: André Apitzsch <[email protected]>
Port the imx214 sensor driver to use the subdev active state. Move all the format configuration to the subdevice state and simplify the format handling, locking and initialization. Signed-off-by: André Apitzsch <[email protected]>
Simplify the imx214_start_streaming() by removing unneeded goto statements, and the corresponding error label. Signed-off-by: André Apitzsch <[email protected]>
Error handling in probe() can be a bit simpler with dev_err_probe(). Signed-off-by: André Apitzsch <[email protected]>
Use the new common CCI register access helpers to replace the private register access helpers in the imx214 driver. This simplifies the driver by reducing the amount of code. Signed-off-by: André Apitzsch <[email protected]>
Define macros for all the known registers used in the register arrays, and use them to replace the numerical addresses. This improves readability. Signed-off-by: André Apitzsch <[email protected]>
The IMX214_REG_EXPOSURE is configured twice, once with a hardcoded value in the mode_<res> registers arrays, and once via v4l2_ctrl_ops. The latter is enough, drop the former. Signed-off-by: André Apitzsch <[email protected]>
The imx214 camera is capable of either two-lane or four-lane operation. Currently only the four-lane mode is supported, as proper pixel rates and link frequences for the two-lane mode are unknown. Signed-off-by: André Apitzsch <[email protected]>
Add vblank control to allow changing the framerate / higher exposure values. The vblank and hblank controls are needed for libcamera support. While at it, fix the minimal exposure time according to the datasheet. Signed-off-by: André Apitzsch <[email protected]>
Remove format and crop settings from register sequences and set them programmatically. Signed-off-by: André Apitzsch <[email protected]>
The imx214 sensor supports horizontal and vertical flipping. Add appropriate controls to the driver. Signed-off-by: André Apitzsch <[email protected]>
The imx214 sensor supports analogue gain up to 8x and digital gain up to 16x. Implement the corresponding controls in the driver. Default gain values are not modified by this patch. Signed-off-by: André Apitzsch <[email protected]>
Check the chip ID and stop probing if it is no imx214 sensor. Signed-off-by: André Apitzsch <[email protected]>
This adds V4L2_CID_TEST_PATTERN control support. Signed-off-by: André Apitzsch <[email protected]>
a-andre
changed the base branch from
wip/msm8916/6.11-rc3
to
wip/msm8916/6.11-rc5
August 28, 2024 20:53
TravMurav
reviewed
Aug 29, 2024
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.
Amazing work! Are you planning to send these changes upstream?
Add rear camera support, using imx214 sensor. Signed-off-by: André Apitzsch <[email protected]>
CONFIG_CMA_SIZE_MBYTES=256 CONFIG_VIDEO_IMX214=m Signed-off-by: André Apitzsch <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The camera should work out of the box with snapshot.
For megapixels the config file
~/.config/megapixels/config/longcheer,l8910.ini
needs to be created:1920
and1080
can also be replaced4096
and2304
, respectively.