Re: [PATCH v6 0/2] Pinefeat cef168 lens control board driver
From: Aliaksandr Smirnou
Date: Tue May 26 2026 - 16:36:05 EST
On Tue, 26 May 2026 16:54:37 +0100, Alen Karnil wrote:
> I've been asked by Kieran Bingham to review your patches, I've
> reproduced your work on setup with a Pi 5 with a 6.18 kernel and
> I got a few questions
Hi Alen,
Thank you for resuming the work on the patch.
> I built the calibration application but it would not work out the
> box, I can see that CEF168_V4L2_CID_CUSTOM is different between that
> is in the patch and in the application? Which is the correct one,
> does the patch need updating?
The CEF168_V4L2_CID_CUSTOM value used in the patch is the correct one.
Although the repository currently defines it with a different value,
this does not cause any issues for users because the driver is built
and installed locally together with the calibration tool.
I can update the value in the cef168 repository at any time, so as long
as users pull the latest version of the repository, everything will work
correctly.
If the driver is eventually merged into the Linux kernel source tree,
the repository will need to be updated accordingly anyway, because there
will be no need to build the driver locally.
> The tool to modify the device tree also did not work with the
> IMX477, I needed to manually modify my device tree to get the dtbo
> to build,
I just double-checked the setup on a Raspberry Pi 5 running the latest
6.18 kernel from the stock Raspberry Pi OS, and everything works
correctly. Are you using a customized Linux distribution?
Could you provide the build error logs and the overlay files generated
by the tool before you modified them?
The modifications applied by the tool are shown in this diff:
https://gist.github.com/pinefeat/1b3a258a193754f073e171b1ed33a0cc
Were the generated files different in your setup?
> there needs to be some further discussions on how we could
> improve the user experience when it comes to enabling the vcm with
> camera sensors.
I agree. I started the discussion on the Raspberry Pi forum, but the
driver needs to be merged first before moving forward with that.
https://forums.raspberrypi.com/viewtopic.php?p=2318070#p2318070