[PATCHv3 2/8] [media] v4l2: add new V4L2_PIX_FMT_RGB666 pixel format.

2013-11-12 Thread Denis Carikli
That new macro is needed by the imx_drm staging driver
  for supporting the QVGA display of the eukrea-cpuimx51 board.

Cc: Rob Herring rob.herr...@calxeda.com
Cc: Pawel Moll pawel.m...@arm.com
Cc: Mark Rutland mark.rutl...@arm.com
Cc: Stephen Warren swar...@wwwdotorg.org
Cc: Ian Campbell ijc+devicet...@hellion.org.uk
Cc: devicet...@vger.kernel.org
Cc: Greg Kroah-Hartman gre...@linuxfoundation.org
Cc: driverdev-de...@linuxdriverproject.org
Cc: David Airlie airl...@linux.ie
Cc: dri-de...@lists.freedesktop.org
Cc: Mauro Carvalho Chehab m.che...@samsung.com
Cc: Laurent Pinchart laurent.pinch...@ideasonboard.com
Cc: linux-media@vger.kernel.org
Cc: Sascha Hauer ker...@pengutronix.de
Cc: Shawn Guo shawn@linaro.org
Cc: linux-arm-ker...@lists.infradead.org
Cc: Eric Bénard e...@eukrea.com
Signed-off-by: Denis Carikli de...@eukrea.com
Acked-by: Mauro Carvalho Chehab m.che...@samsung.com
---
ChangeLog v2-v3:
- Added some interested people in the Cc list.
- Added Mauro Carvalho Chehab's Ack.
- Added documentation.
---
 .../DocBook/media/v4l/pixfmt-packed-rgb.xml|   78 
 include/uapi/linux/videodev2.h |1 +
 2 files changed, 79 insertions(+)

diff --git a/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml 
b/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml
index 166c8d6..f6a3e84 100644
--- a/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml
+++ b/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml
@@ -279,6 +279,45 @@ colorspace 
constantV4L2_COLORSPACE_SRGB/constant./para
entry/entry
entry/entry
  /row
+ row id=V4L2-PIX-FMT-RGB666
+   entryconstantV4L2_PIX_FMT_RGB666/constant/entry
+   entry'RGBH'/entry
+   entry/entry
+   entryrsubscript5/subscript/entry
+   entryrsubscript4/subscript/entry
+   entryrsubscript3/subscript/entry
+   entryrsubscript2/subscript/entry
+   entryrsubscript1/subscript/entry
+   entryrsubscript0/subscript/entry
+   entrygsubscript5/subscript/entry
+   entrygsubscript4/subscript/entry
+   entry/entry
+   entrygsubscript3/subscript/entry
+   entrygsubscript2/subscript/entry
+   entrygsubscript1/subscript/entry
+   entrygsubscript0/subscript/entry
+   entrybsubscript5/subscript/entry
+   entrybsubscript4/subscript/entry
+   entrybsubscript3/subscript/entry
+   entrybsubscript2/subscript/entry
+   entry/entry
+   entrybsubscript1/subscript/entry
+   entrybsubscript0/subscript/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+ /row
  row id=V4L2-PIX-FMT-BGR24
entryconstantV4L2_PIX_FMT_BGR24/constant/entry
entry'BGR3'/entry
@@ -781,6 +820,45 @@ defined in error. Drivers may interpret them as in xref
entry/entry
entry/entry
  /row
+ row!-- id=V4L2-PIX-FMT-RGB666 --
+   entryconstantV4L2_PIX_FMT_RGB666/constant/entry
+   entry'RGBH'/entry
+   entry/entry
+   entryrsubscript5/subscript/entry
+   entryrsubscript4/subscript/entry
+   entryrsubscript3/subscript/entry
+   entryrsubscript2/subscript/entry
+   entryrsubscript1/subscript/entry
+   entryrsubscript0/subscript/entry
+   entrygsubscript5/subscript/entry
+   entrygsubscript4/subscript/entry
+   entry/entry
+   entrygsubscript3/subscript/entry
+   entrygsubscript2/subscript/entry
+   entrygsubscript1/subscript/entry
+   entrygsubscript0/subscript/entry
+   entrybsubscript5/subscript/entry
+   entrybsubscript4/subscript/entry
+   entrybsubscript3/subscript/entry
+   entrybsubscript2/subscript/entry
+   entry/entry
+   entrybsubscript1/subscript/entry
+   entrybsubscript0/subscript/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+   entry/entry
+ /row
  row!-- id=V4L2-PIX-FMT-BGR24 --
entryconstantV4L2_PIX_FMT_BGR24/constant/entry
entry'BGR3'/entry
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 437f1b0..e8ff410 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -294,6 +294,7 @@ struct v4l2_pix_format {
 #define V4L2_PIX_FMT_RGB555X 

Re: [PATCHv3 2/8] [media] v4l2: add new V4L2_PIX_FMT_RGB666 pixel format.

2013-11-12 Thread Laurent Pinchart
Hi Denis,

(Dropping the DT reviewers from the CC list to avoid spamming them)

Thank you for the patch.

On Tuesday 12 November 2013 17:49:19 Denis Carikli wrote:
 That new macro is needed by the imx_drm staging driver
   for supporting the QVGA display of the eukrea-cpuimx51 board.
 
 Cc: Rob Herring rob.herr...@calxeda.com
 Cc: Pawel Moll pawel.m...@arm.com
 Cc: Mark Rutland mark.rutl...@arm.com
 Cc: Stephen Warren swar...@wwwdotorg.org
 Cc: Ian Campbell ijc+devicet...@hellion.org.uk
 Cc: devicet...@vger.kernel.org
 Cc: Greg Kroah-Hartman gre...@linuxfoundation.org
 Cc: driverdev-de...@linuxdriverproject.org
 Cc: David Airlie airl...@linux.ie
 Cc: dri-de...@lists.freedesktop.org
 Cc: Mauro Carvalho Chehab m.che...@samsung.com
 Cc: Laurent Pinchart laurent.pinch...@ideasonboard.com
 Cc: linux-media@vger.kernel.org
 Cc: Sascha Hauer ker...@pengutronix.de
 Cc: Shawn Guo shawn@linaro.org
 Cc: linux-arm-ker...@lists.infradead.org
 Cc: Eric Bénard e...@eukrea.com
 Signed-off-by: Denis Carikli de...@eukrea.com
 Acked-by: Mauro Carvalho Chehab m.che...@samsung.com

Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com

 ---
 ChangeLog v2-v3:
 - Added some interested people in the Cc list.
 - Added Mauro Carvalho Chehab's Ack.
 - Added documentation.
 ---
  .../DocBook/media/v4l/pixfmt-packed-rgb.xml|   78
  include/uapi/linux/videodev2.h |  
  1 +
  2 files changed, 79 insertions(+)
 
 diff --git a/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml
 b/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml index
 166c8d6..f6a3e84 100644
 --- a/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml
 +++ b/Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml
 @@ -279,6 +279,45 @@ colorspace
 constantV4L2_COLORSPACE_SRGB/constant./para entry/entry
   entry/entry
 /row
 +   row id=V4L2-PIX-FMT-RGB666
 + entryconstantV4L2_PIX_FMT_RGB666/constant/entry
 + entry'RGBH'/entry
 + entry/entry
 + entryrsubscript5/subscript/entry
 + entryrsubscript4/subscript/entry
 + entryrsubscript3/subscript/entry
 + entryrsubscript2/subscript/entry
 + entryrsubscript1/subscript/entry
 + entryrsubscript0/subscript/entry
 + entrygsubscript5/subscript/entry
 + entrygsubscript4/subscript/entry
 + entry/entry
 + entrygsubscript3/subscript/entry
 + entrygsubscript2/subscript/entry
 + entrygsubscript1/subscript/entry
 + entrygsubscript0/subscript/entry
 + entrybsubscript5/subscript/entry
 + entrybsubscript4/subscript/entry
 + entrybsubscript3/subscript/entry
 + entrybsubscript2/subscript/entry
 + entry/entry
 + entrybsubscript1/subscript/entry
 + entrybsubscript0/subscript/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 +   /row
 row id=V4L2-PIX-FMT-BGR24
   entryconstantV4L2_PIX_FMT_BGR24/constant/entry
   entry'BGR3'/entry
 @@ -781,6 +820,45 @@ defined in error. Drivers may interpret them as in
 xref entry/entry
   entry/entry
 /row
 +   row!-- id=V4L2-PIX-FMT-RGB666 --
 + entryconstantV4L2_PIX_FMT_RGB666/constant/entry
 + entry'RGBH'/entry
 + entry/entry
 + entryrsubscript5/subscript/entry
 + entryrsubscript4/subscript/entry
 + entryrsubscript3/subscript/entry
 + entryrsubscript2/subscript/entry
 + entryrsubscript1/subscript/entry
 + entryrsubscript0/subscript/entry
 + entrygsubscript5/subscript/entry
 + entrygsubscript4/subscript/entry
 + entry/entry
 + entrygsubscript3/subscript/entry
 + entrygsubscript2/subscript/entry
 + entrygsubscript1/subscript/entry
 + entrygsubscript0/subscript/entry
 + entrybsubscript5/subscript/entry
 + entrybsubscript4/subscript/entry
 + entrybsubscript3/subscript/entry
 + entrybsubscript2/subscript/entry
 + entry/entry
 + entrybsubscript1/subscript/entry
 + entrybsubscript0/subscript/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 + entry/entry
 +   /row
 row!-- id=V4L2-PIX-FMT-BGR24 --
   entryconstantV4L2_PIX_FMT_BGR24/constant/entry
   entry'BGR3'/entry
 diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
 index 437f1b0..e8ff410