Skip to content

Conversation

a-andre
Copy link

@a-andre a-andre commented Aug 26, 2024

The camera should work out of the box with snapshot. (It might be necessary to install gst-plugins-good and libcamera-* manually.)

For megapixels the config file ~/.config/megapixels/config/longcheer,l8910.ini needs to be created:

[device]
make=BQ
model=X5

[rear]
driver=imx214
media-driver=qcom-camss
capture-width=1920
capture-height=1080
capture-rate=30
capture-fmt=RGGB10P
preview-width=1920
preview-height=1080
preview-rate=30
preview-fmt=RGGB10P
rotate=0
media-links=imx214:0->msm_csiphy0:0,msm_csiphy0:1->msm_csid0:0,msm_csid0:1->msm_ispif0:0,msm_ispif0:1->msm_vfe0_rdi0:0
mirrored=false

1920 and 1080 can also be replaced 4096 and 2304, respectively.

@a-andre a-andre force-pushed the bqx5_cam_rear branch 5 times, most recently from 389c263 to d897b4c Compare August 28, 2024 20:52
@a-andre a-andre changed the base branch from wip/msm8916/6.11-rc3 to wip/msm8916/6.11-rc5 August 28, 2024 20:53
@a-andre a-andre marked this pull request as ready for review August 28, 2024 20:53
Copy link
Member

@TravMurav TravMurav left a 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?

@a-andre a-andre changed the base branch from wip/msm8916/6.11-rc5 to wip/msm8916/6.12-rc3 October 20, 2024 22:23
@a-andre a-andre changed the base branch from wip/msm8916/6.12-rc3 to wip/msm8916/6.13-rc2 December 16, 2024 21:34
@a-andre a-andre changed the base branch from wip/msm8916/6.13-rc2 to wip/msm8916/6.13-rc7 January 26, 2025 21:46
@a-andre a-andre force-pushed the bqx5_cam_rear branch 2 times, most recently from 1711412 to 96e2b64 Compare February 5, 2025 22:08
@a-andre a-andre changed the base branch from wip/msm8916/6.13-rc7 to wip/msm8916/6.14-rc2 February 15, 2025 15:18
@a-andre a-andre force-pushed the bqx5_cam_rear branch 3 times, most recently from 29994a7 to dc90267 Compare February 16, 2025 17:55
@a-andre a-andre changed the base branch from wip/msm8916/6.14-rc2 to wip/msm8916/6.14-rc7 April 16, 2025 18:25
@a-andre a-andre changed the base branch from wip/msm8916/6.14-rc7 to wip/msm8916/v6.16-rc4 July 3, 2025 06:35
@a-andre
Copy link
Author

a-andre commented Jul 3, 2025

There is still an issue with the clock frequency, the clock frequency we set is not the clock frequency we get.

minecrell:

hm yeah now mclk is broken again
one would think that clk_set_rate(..., 23880597) results in 23880597 but nope!
clk_set_rate(..., 23880000) -> 23880597
clk_set_rate(..., 23880597) -> 66666666
clock-frequency = 23880000 + link-frequency 597014925 works, woo

Not sure, I think it would be good practice to use the actual value of clk_get_rate(), clk_set_rate() isn't guaranteed to set the requested rate exactly
so I guess we should either fix clk_set_rate(..., 23880597) to actually set 23880597
or just live with the slight confusion of clock-frequency vs link-frequency
probably former

André Apitzsch added 2 commits September 23, 2025 21:54
Add rear camera support, using imx214 sensor.

Signed-off-by: André Apitzsch <[email protected]>
CONFIG_VIDEO_IMX214=m

Signed-off-by: André Apitzsch <[email protected]>
@a-andre a-andre changed the base branch from wip/msm8916/v6.16-rc4 to msm8916/6.17-rc6 September 23, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants