-
Notifications
You must be signed in to change notification settings - Fork 5k
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
IMX708 link frequency changes #5381
Conversation
3aa05ac
to
b6ed68a
Compare
Slight change of plans. Will use a overlay parameter instead of a v4l2 ctrl. |
Unrelated but just noticed in reviewing.
in
in |
I'll fix these up in a separate commt. |
Updated PR with the changes. I've had to remove the 444Mhz link frequency as it does not work correctly, even with a lower fps. The next link frequency available 445.5Mhz doesn't work either. I've added an option for 453Mhz instead, which does seem to be stable. I've also added a 3rd patch to this PR to address the upstream review feedback comments. I'll send upstream a new revision of the patch including all these changes once they are merged into our tree. |
Patches look good. Didn't upstream want the regulator names to be in lower case? I seem to recall updating the bindings based on that. Again for upstream, I thought I'd seen a comment over using a v4l2_ctrl cluster for HFLIP & VFLIP so that the s_ctrl only gets called the once instead of twice. It may have been with regard a different driver, but it does apply here too. |
I don't recall those specific comments. I'm following patchworks here. But I can fix them up as well. |
Case of regulator names is on the dtbindings patch - https://patchwork.linuxtv.org/project/linux-media/patch/20230124150546.12876-2-naush@raspberrypi.com/#143941 Clusters was a comment from Laurent on imx290 - https://patchwork.linuxtv.org/project/linux-media/patch/20230131192016.3476937-12-dave.stevenson@raspberrypi.com/#144338 |
Added 3 new patches on top for the dtb changes and h/v flip cluster control change. |
LGTM, and hopefully in reasonable shape for a v2 to mainline. |
Let me know when you've made whatever changes you are going to and I'll merge it. |
Add support for three different usable link frequencies (default 450Mhz, 447Mhz, and 453MHz) for the IMX708 camera sensor. The choice of frequency is handled thorugh the "link-frequency" overlay parameter. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Add a parameter to change the sensor device CSI-2 link frequency to one of the following values: 450Mhz (default), 447Mhz, or 453Mhz. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Remove unused and redundant control fields from the state structure. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
This commit addresses vaious tidy-ups requesed for upstreaming the IMX708 driver. Notably: - Remove #define IMX708_NUM_SUPPLIES and use ARRAY_SIZE() directly - Use dev_err_probe where possible in imx708_probe() - Fix error handling paths in imx708_probe() Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
…file Replace the existing imx708.yaml file with sony,imx708.yaml that follows the latest devicetree conventions for camera sensors. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Switch the system clock name from "xclk" to "inclk". Use lower case lables for all regulator names. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Switch the system clock name from "xclk" to "inclk". Use lower case lables for all regulator names. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Create a cluster for the HVLIP and VFLIP controls so they are treated as a single composite control. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
I think that should cover it all. Let me know if I've missed anything! |
See: raspberrypi/linux#5416 kernel: media: bcm2835-unicam: Start and stop media_pipeline with same node See: raspberrypi/linux#5409 kernel: IMX708 link frequency changes See: raspberrypi/linux#5381
See: raspberrypi/linux#5416 kernel: media: bcm2835-unicam: Start and stop media_pipeline with same node See: raspberrypi/linux#5409 kernel: IMX708 link frequency changes See: raspberrypi/linux#5381
This is to assist with raspberrypi/libcamera#43.Now ready for review.