linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v10 00/13] media: report camera properties
@ 2020-05-08 10:01 Jacopo Mondi
  2020-05-08 10:01 ` [PATCH v10 01/13] dt-bindings: video-interfaces: Document 'orientation' property Jacopo Mondi
                   ` (12 more replies)
  0 siblings, 13 replies; 21+ messages in thread
From: Jacopo Mondi @ 2020-05-08 10:01 UTC (permalink / raw)
  To: open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB),
	libcamera-devel, Mauro Carvalho Chehab, Hans Verkuil,
	Sakari Ailus, Laurent Pinchart
  Cc: Jacopo Mondi, tfiga, pavel

Hello,
   this v10 is not just a rename s/location/orientation as the documentation
around the property has changed slightly as well and should probably be re-read.

Anyway, most notable change is indeed the usa of 'orientation' in place of
location, so that we have an 'orientation' DT property, a
V4L2_CID_CAMERA_ORIENTATION control id and V4L2_ORIENTATION_* control values.

A new patch 'dt-bindings: Add media properties' add an header to help DT users
by providing macros for the currently supported locations.

I've added a patch for a new sensor driver I have used for testing (imx219) and
made the V4L2_CID_CAMERA_ORIENTATION a menu control as it was meant to be.

I know the additional DT header could slow the series inclusion, I'm fine
leaving it out if it proves controversial.

The result of the two new controls inspected with v4l2-ctl -L for a camera
with EXTERNAL orientation and 180 degrees rotation is the following:

------------------------------------------------------------------------------------------------------------------
Camera Controls

             camera_orientation 0x009a0922 (menu)   : min=0 max=2 default=2 value=2 flags=read-only
				0: Front Camera
				1: Back Camera
				2: External Camera
         camera_sensor_rotation 0x009a0923 (int)    : min=180 max=180 step=1 default=180 value=180 flags=read-only
------------------------------------------------------------------------------------------------------------------

Thanks
   j

v9->v10:
- s/location/orientation and documentation update
- Add DT bindings header for media properties
- Make V4L2_CID_CAMERA_ORIENTATION a TYPE_MENU control
- Add patch for imx219

v8->v9:
- Rebased on media master which has moved media documentation

v7->v8:
- Add Rob's ack to 03/11
- Address Hans typographical comments in 03/11

Jacopo Mondi (13):
  dt-bindings: video-interfaces: Document 'orientation' property
  dt-bindings: video-interface: Replace 'rotation' description
  dt-bindings: Add media properties
  media: v4l2-ctrl: Document V4L2_CID_CAMERA_ORIENTATION
  media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_ROTATION
  media: v4l2-ctrls: Add camera orientation and rotation
  media: v4l2-fwnode: Add helper to parse device properties
  include: v4l2-ctrl: Sort forward declarations
  media: v4l2-ctrls: Sort includes alphabetically
  media: v4l2-ctrls: Add helper to register properties
  media: i2c: ov5670: Parse and register properties
  media: i2c: ov13858: Parse and register properties
  media: i2c: imx219: Parse and register properties

 .../bindings/media/video-interfaces.txt       | 372 +++++++++++++++++-
 .../media/v4l/ext-ctrls-camera.rst            | 151 +++++++
 drivers/media/i2c/imx219.c                    |  12 +-
 drivers/media/i2c/ov13858.c                   |  13 +-
 drivers/media/i2c/ov5670.c                    |  14 +-
 drivers/media/v4l2-core/v4l2-ctrls.c          |  63 ++-
 drivers/media/v4l2-core/v4l2-fwnode.c         |  42 ++
 include/dt-bindings/media/video-interfaces.h  |  15 +
 include/media/v4l2-ctrls.h                    |  34 +-
 include/media/v4l2-fwnode.h                   |  47 +++
 include/uapi/linux/v4l2-controls.h            |   7 +
 11 files changed, 755 insertions(+), 15 deletions(-)
 create mode 100644 include/dt-bindings/media/video-interfaces.h

--
2.26.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2020-05-12  7:18 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 10:01 [PATCH v10 00/13] media: report camera properties Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 01/13] dt-bindings: video-interfaces: Document 'orientation' property Jacopo Mondi
2020-05-11 17:20   ` Rob Herring
2020-05-12  7:21     ` Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 02/13] dt-bindings: video-interface: Replace 'rotation' description Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 03/13] dt-bindings: Add media properties Jacopo Mondi
2020-05-08 11:04   ` Hans Verkuil
2020-05-09  8:21     ` Jacopo Mondi
2020-05-11  7:21       ` Sakari Ailus
2020-05-08 10:01 ` [PATCH v10 04/13] media: v4l2-ctrl: Document V4L2_CID_CAMERA_ORIENTATION Jacopo Mondi
2020-05-08 11:02   ` Hans Verkuil
2020-05-08 10:01 ` [PATCH v10 05/13] media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_ROTATION Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 06/13] media: v4l2-ctrls: Add camera orientation and rotation Jacopo Mondi
2020-05-08 11:09   ` Hans Verkuil
2020-05-08 10:01 ` [PATCH v10 07/13] media: v4l2-fwnode: Add helper to parse device properties Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 08/13] include: v4l2-ctrl: Sort forward declarations Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 09/13] media: v4l2-ctrls: Sort includes alphabetically Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 10/13] media: v4l2-ctrls: Add helper to register properties Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 11/13] media: i2c: ov5670: Parse and " Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 12/13] media: i2c: ov13858: " Jacopo Mondi
2020-05-08 10:01 ` [PATCH v10 13/13] media: i2c: imx219: " Jacopo Mondi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).