Skip to content
Commit 7f14666d authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Dom Cobley
Browse files

media: i2c: imx296: Support for the Sony IMX296 sensor



dt-bindings: media: i2c: Add IMX296 CMOS sensor binding

Add YAML devicetree binding for IMX296 CMOS image sensor. Let's also
add MAINTAINERS entry for the binding and driver.

Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>

media: i2c: IMX296 camera sensor driver

The IMX296LLR is a monochrome 1.60MP CMOS sensor from Sony. The driver
supports cropping and binning (but not both at the same time due to
hardware limitations) and exposure, gain, vertical blanking and test
pattern controls.

Preliminary support is also included for the color IMX296LQR sensor.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>

media: imx296: Fix Bayer order

Switch the Bayer ordering advertised by the device driver from BGGR to RGGB.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>

media: imx296: Add standby and stream on/off delays

Add a 1.5ms delay after coming out of standby.
Add a 2ms delay after going into or coming out of streaming state.

All delay values have been deduced from the sensor datasheet.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>

media: imx296: Only advertise the full resolution mode

The 1/4 resolution derived mode does not stream correctly, so remove it from
the advertised mode list.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>

media: imx296: Add horizontal and vertical flips support

Add support for hflip and vflip controls. Adjust the mbus_code value reported
based on the currently programmed flips.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>

media: imx296: Adjust exposure limits on vblank changes

The exposure lines control limits are adjusted appropriately during any change
to the vblank control. This allows accurate framerate and exposure adjustments
from userland.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>

media: imx296: Set gain delay to 1 frame

In order to behave in a similar manner to the rolling shutter sensors, set the
gain delay to 1 frame. This simplifies userland control of the gain value.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>

media: imx296: Add the link frequency control

Add the V4L2_CID_LINK_FREQ menu control for the imx296. Report a single value
of 1188 Mhz for the link frequency.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
parent bbc5afb3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment