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: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Rob 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: Laurent 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: Naushir 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: Naushir 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: Naushir 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: Naushir 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: Naushir 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: Naushir 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: Naushir Patuck <naush@raspberrypi.com>
Please register or sign in to comment