]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: v4l2: i2c: ov7670: Implement OF mbus configuration
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Wed, 24 Jan 2018 09:30:50 +0000 (04:30 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 08:05:51 +0000 (03:05 -0500)
commit01b8444828fc04b27b90bfebb50006219e930433
tree758eed849bf4dac4ba09a4bc36d451c5d20f0fec
parent622b2d10fc28616add3e253ed80010136f272235
media: v4l2: i2c: ov7670: Implement OF mbus configuration

ov7670 driver supports two optional properties supplied through platform
data, but currently does not support any standard video interface
property.

Add support through OF parsing for 2 generic properties (vsync and hsync
polarities) and for one custom property already supported through
platform data to suppress pixel clock output during horizontal
blanking.

While at there, check return value of register writes in set_fmt
function and rationalize spacings.

Signal polarities and pixel clock blanking verified through scope and
image capture.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/Kconfig
drivers/media/i2c/ov7670.c