|
|
Subscribe / Log in / New account

Add support for MIPID02 CSI-2 to PARALLEL bridge I2C device

From:  Mickael Guene <mickael.guene-AT-st.com>
To:  <linux-media-AT-vger.kernel.org>
Subject:  [PATCH v5 0/3] Add support for MIPID02 CSI-2 to PARALLEL bridge I2C device
Date:  Tue, 9 Apr 2019 08:15:46 +0200
Message-ID:  <1554790549-795-1-git-send-email-mickael.guene@st.com>
Cc:  <hugues.fruchet-AT-st.com>, Mickael Guene <mickael.guene-AT-st.com>, "Mauro Carvalho Chehab" <mchehab-AT-kernel.org>, Matt Ranostay <matt.ranostay-AT-konsulko.com>, <devicetree-AT-vger.kernel.org>, Akinobu Mita <akinobu.mita-AT-gmail.com>, Philipp Zabel <p.zabel-AT-pengutronix.de>, <linux-kernel-AT-vger.kernel.org>, Nicolas Ferre <nicolas.ferre-AT-microchip.com>, "David S. Miller" <davem-AT-davemloft.net>, Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, Todor Tomov <todor.tomov-AT-linaro.org>, "Sakari Ailus" <sakari.ailus-AT-linux.intel.com>, Tianshu Qiu <tian.shu.qiu-AT-intel.com>, Rui Miguel Silva <rui.silva-AT-linaro.org>, Rob Herring <robh+dt-AT-kernel.org>, Hans Verkuil <hverkuil-AT-xs4all.nl>, Mark Rutland <mark.rutland-AT-arm.com>, Jacopo Mondi <jacopo+renesas-AT-jmondi.org>, Hans Verkuil <hans.verkuil-AT-cisco.com>, Bingbu Cao <bingbu.cao-AT-intel.com>
Archive-link:  Article

Hi,

This is the v5 of my MIPID02 series which introduces support of
STMicroelectronics MIPID02 CSI-2 to PARALLEL I2C bridge. It allows using a CSI-2
sensor with a PARALLEL interface. Current driver implementation doesn't support
CSI-2 second input port usage. It doesn't support also YUV420, RGB565 and RGB444
input formats.

Thanks to Sakari for review.

Changes in v5:
- Typo
- Remove useless MEDIA_CONTROLLER from Kconfig
- Replace v4l2_fwnode_endpoint_alloc_parse usage by v4l2_fwnode_endpoint_parse
  since not more variable size data usage
- Add missing mutex_destroy calls
- Switch to probe_new since I²C ID table is not used
- Add new patch to add MEDIA_BUS_FMT_BGR888_3X8 needed output format
- Add MEDIA_BUS_FMT_BGR888_3X8 usage in serial_to_parallel_code

Changes in v4:
- Fix and clarify endpoints properties documentation
- Add support of enum_mbus_code
- Only use V4L2_CID_PIXEL_RATE to compute link speed
- Use MEDIA_BUS_FMT_UYVY8_1X16 instead of MEDIA_BUS_FMT_UYVY8_2X8 for CSI-2 link
- Fix miscellaneous typos
- Fix wrong code behavior for set_fmt and get_fmt

Changes in v3:
- Fix potential wrong error code for mipid02_stream_disable and mipid02_stream_enable
- Remove useless memset for ep in mipid02_parse_rx_ep and mipid02_parse_tx_ep
- Add second CSI-2 input pad even if it's not yet supported
- Add support of get_fmt, set_fmt and link_validate and only access subdev connected to mipid02

Changes in v2:
- Add precision about first CSI-2 port data rate
- Document endpoints supported properties
- Rename 'mipid02@14' into generic 'csi2rx@14' in example
- Merge MAINTAINERS patch 3 into patch 1 and 2
- Fix line too long in Kconfig
- Add missing delay after reset release
- Various style fixes
- Fix mipid02_stream_enable returning no error when mipid02_find_sensor failed

Mickael Guene (3):
  media: uapi: Add MEDIA_BUS_FMT_BGR888_3X8 media bus format
  dt-bindings: Document MIPID02 bindings
  media: st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver

 .../bindings/media/i2c/st,st-mipid02.txt           |   82 ++
 Documentation/media/uapi/v4l/subdev-formats.rst    |  107 ++
 MAINTAINERS                                        |    8 +
 drivers/media/i2c/Kconfig                          |   13 +
 drivers/media/i2c/Makefile                         |    1 +
 drivers/media/i2c/st-mipid02.c                     | 1033 ++++++++++++++++++++
 include/uapi/linux/media-bus-format.h              |    3 +-
 7 files changed, 1246 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/st,st-mipid02.txt
 create mode 100644 drivers/media/i2c/st-mipid02.c

-- 
2.7.4



Copyright © 2019, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds