[0/5] TV norms limit and TVP5150 implementation
mbox series

Message ID 20190202121004.9014-1-m.felsch@pengutronix.de
Headers show
Series
  • TV norms limit and TVP5150 implementation
Related show

Message

Marco Felsch Feb. 2, 2019, 12:09 p.m. UTC
Hi,

in short this series adds the support to limit the tv norms on an
analog-connector.

I recognized that all drivers dealing with connectors implemented
their own parsing routine due to the lack of a generic one. A generic
parsing routine needs a connector container which contain common
data and connector specific data. This series implements the connector
container struct and the generic parsing routine. At the moment only
analog-connectors are fully supported but adding the others should
be simple.

Finally the TVP5150 driver is converted to the generic connector and
make use of the new 'tv norms limiting' feature.

I'm not sure if the series applies cleanly without [1].

Regards,
Marco

[1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg143925.html

Marco Felsch (5):
  dt-bindings: connector: analog: add tv norms property
  media: v4l2-fwnode: add v4l2_fwnode_connector
  media: v4l2-fwnode: add initial connector parsing support
  media: tvp5150: make use of generic connector parsing
  media: tvp5150: add support to limit tv norms on connector

 .../display/connector/analog-tv-connector.txt |   4 +
 drivers/media/i2c/tvp5150.c                   | 116 +++++++++---------
 drivers/media/v4l2-core/v4l2-fwnode.c         | 113 +++++++++++++++++
 include/dt-bindings/media/tvnorms.h           |  42 +++++++
 include/media/v4l2-connector.h                |  34 +++++
 include/media/v4l2-fwnode.h                   |  49 ++++++++
 6 files changed, 302 insertions(+), 56 deletions(-)
 create mode 100644 include/dt-bindings/media/tvnorms.h
 create mode 100644 include/media/v4l2-connector.h