[libcamera-devel,1/3] libcamera: camera_sensor: Add OV64A40 sensor properties
diff mbox series

Message ID 20231114102122.19712-2-jacopo.mondi@ideasonboard.com
State Superseded
Headers show
Series
  • ipa: rpi: vc4: Add support for Arducam OV64A40
Related show

Commit Message

Jacopo Mondi Nov. 14, 2023, 10:21 a.m. UTC
From: Kieran Bingham <kieran.bingham@ideasonboard.com>

Add an entry for the Omnivision OV64A40 Sensor which has a square pixel
size of 1.008µm.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 src/libcamera/camera_sensor_properties.cpp | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Laurent Pinchart Nov. 28, 2023, 4:34 p.m. UTC | #1
Hi Jacopo and Kieran,

Thank you for the patch.

On Tue, Nov 14, 2023 at 11:21:20AM +0100, Jacopo Mondi via libcamera-devel wrote:
> From: Kieran Bingham <kieran.bingham@ideasonboard.com>
> 
> Add an entry for the Omnivision OV64A40 Sensor which has a square pixel
> size of 1.008µm.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  src/libcamera/camera_sensor_properties.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> index 27d6799a2686..2ba2d9818c7f 100644
> --- a/src/libcamera/camera_sensor_properties.cpp
> +++ b/src/libcamera/camera_sensor_properties.cpp
> @@ -208,6 +208,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
>  				 */
>  			},
>  		} },
> +		{ "ov64a40", {
> +			.unitCellSize = { 1008, 1008 },

Very precise :-)

> +			.testPatternModes = {},

The latest version of the drivers posted to the linux-media mailing list
doesn't implement the test pattern control, so this is right.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

My understanding is that the sensor supports test patterns, and it seems
easy to implement. It's a very valuable feature, so when time permits,
it would be nice to add it.

> +		} },
>  		{ "ov8858", {
>  			.unitCellSize = { 1120, 1120 },
>  			.testPatternModes = {
Jacopo Mondi Dec. 4, 2023, 9:06 a.m. UTC | #2
Hi Laurent

On Tue, Nov 28, 2023 at 06:34:16PM +0200, Laurent Pinchart via libcamera-devel wrote:
> Hi Jacopo and Kieran,
>
> Thank you for the patch.
>
> On Tue, Nov 14, 2023 at 11:21:20AM +0100, Jacopo Mondi via libcamera-devel wrote:
> > From: Kieran Bingham <kieran.bingham@ideasonboard.com>
> >
> > Add an entry for the Omnivision OV64A40 Sensor which has a square pixel
> > size of 1.008µm.
> >
> > Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> > Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> > ---
> >  src/libcamera/camera_sensor_properties.cpp | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> > index 27d6799a2686..2ba2d9818c7f 100644
> > --- a/src/libcamera/camera_sensor_properties.cpp
> > +++ b/src/libcamera/camera_sensor_properties.cpp
> > @@ -208,6 +208,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
> >  				 */
> >  			},
> >  		} },
> > +		{ "ov64a40", {
> > +			.unitCellSize = { 1008, 1008 },
>
> Very precise :-)
>
> > +			.testPatternModes = {},
>
> The latest version of the drivers posted to the linux-media mailing list
> doesn't implement the test pattern control, so this is right.
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> My understanding is that the sensor supports test patterns, and it seems
> easy to implement. It's a very valuable feature, so when time permits,
> it would be nice to add it.
>

It would be indeed!

I have cooked up a patch for this, but things do not work as intended.
I sent a request back to the camera module vendor for validation, but
in the meantime I would prefere not to delay this one. WE can always
add test patterns on top once clarified

Thanks
  j

> > +		} },
> >  		{ "ov8858", {
> >  			.unitCellSize = { 1120, 1120 },
> >  			.testPatternModes = {
>
> --
> Regards,
>
> Laurent Pinchart
Laurent Pinchart Dec. 4, 2023, 9:15 a.m. UTC | #3
Hi Jacopo,

On Mon, Dec 04, 2023 at 10:06:35AM +0100, Jacopo Mondi wrote:
> On Tue, Nov 28, 2023 at 06:34:16PM +0200, Laurent Pinchart via libcamera-devel wrote:
> > On Tue, Nov 14, 2023 at 11:21:20AM +0100, Jacopo Mondi via libcamera-devel wrote:
> > > From: Kieran Bingham <kieran.bingham@ideasonboard.com>
> > >
> > > Add an entry for the Omnivision OV64A40 Sensor which has a square pixel
> > > size of 1.008µm.
> > >
> > > Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> > > Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> > > ---
> > >  src/libcamera/camera_sensor_properties.cpp | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > >
> > > diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> > > index 27d6799a2686..2ba2d9818c7f 100644
> > > --- a/src/libcamera/camera_sensor_properties.cpp
> > > +++ b/src/libcamera/camera_sensor_properties.cpp
> > > @@ -208,6 +208,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
> > >  				 */
> > >  			},
> > >  		} },
> > > +		{ "ov64a40", {
> > > +			.unitCellSize = { 1008, 1008 },
> >
> > Very precise :-)
> >
> > > +			.testPatternModes = {},
> >
> > The latest version of the drivers posted to the linux-media mailing list
> > doesn't implement the test pattern control, so this is right.
> >
> > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >
> > My understanding is that the sensor supports test patterns, and it seems
> > easy to implement. It's a very valuable feature, so when time permits,
> > it would be nice to add it.
> >
> 
> It would be indeed!
> 
> I have cooked up a patch for this, but things do not work as intended.
> I sent a request back to the camera module vendor for validation, but
> in the meantime I would prefere not to delay this one. WE can always
> add test patterns on top once clarified

That's fine with me. If you could add a /* TODO */ comment here (and if
possible also in the kernel driver) to record this, it would be great.

> > > +		} },
> > >  		{ "ov8858", {
> > >  			.unitCellSize = { 1120, 1120 },
> > >  			.testPatternModes = {

Patch
diff mbox series

diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index 27d6799a2686..2ba2d9818c7f 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -208,6 +208,10 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 				 */
 			},
 		} },
+		{ "ov64a40", {
+			.unitCellSize = { 1008, 1008 },
+			.testPatternModes = {},
+		} },
 		{ "ov8858", {
 			.unitCellSize = { 1120, 1120 },
 			.testPatternModes = {