Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1446812

[PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs

Path csiph.com!news.freedyn.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Steve Longerbeam <slongerbeam@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs
Date Wed, 20 Jul 2016 02:10:01 +0200
Message-ID <rWNfj-2pz-13@gated-at.bofh.it> (permalink)
References <rWNfj-2pz-7@gated-at.bofh.it> <rWNfj-2pz-9@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cGHShpXMJpHoAy3jRY8y4j1Ebos2JgBSvnVmtz1BK7g=; b=AdK4zjkJF/f+LfBpXyJwdIIRQiKgHVy78lKWwas3cpQD4hafs5teU6/DrR03u+LxXq SLWYZXYDcoiIqn+205Q4uCc/FZG0Gp9/oLG0zi+gNpndW0l2D83Y4jTM2JTVfE/PnBFl pdmtMq+v+JFvPY+KdJta4Zg8a2h8PqFizMnaSCTRObli+ULloV0OGL/RFqoPhkhQh1s+ Nx8IGDmPG97Qcc5vmVflmk+fnE39WdOwXOE7nQzYjMbzdt8BIRrKZBp1xMF80o8JtLh3 hRcR0RjbMkSE/E0NNCHT1H/yvBHO6rjvGvRWm6TFkMI5KyFb7BnYVSX/ms8D8hZFtiwL QdAA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cGHShpXMJpHoAy3jRY8y4j1Ebos2JgBSvnVmtz1BK7g=; b=ju1AMtLlO1r+OZkNqhvFKnHRaefCNudsFEizwNmCucIvXPX9BMnPYGEg4iutlzp53K oK+MZuTlgkmP5+5Ul72D1Y9jq5Q+LO9LCnaZiDFdHfjIslwFwWgzpX8s+pZwp2w/QaNi 6gGJIhBCLnNN8eW8Gv4YuhZhJwL8uTfaBwxZ3RoHD/00SaPmS9rkybiJbKhpFe1r/hx0 MxLEwiO57t/5lqsym7kCHNKQOMNsniYqA01gB2kQ/BD8G6C/t9dlUqI0eb/7nr+/eDTG eC4a7rOiZrXp0wE15iI6oTAknWIP3E92qd/FZnhHKTlEU4xqHa9pgt0KzvOFHghOyS3+ vi/w==
X-Gm-Message-State ALyK8tL1cduvB+WcPjcOAywUltjLCNYtlA/lgkPH0ZsE0omJS87vPz2NAJPZxqPC9w3azg==
X-Received by 10.98.55.5 with SMTP id e5mr17390318pfa.120.1468973039339; Tue, 19 Jul 2016 17:03:59 -0700 (PDT)
X-Google-Original-From Steve Longerbeam <steve_longerbeam@mentor.com>
X-Mailer git-send-email 1.9.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 61
Organization linux.* mail to news gateway
X-Original-Cc linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Steve Longerbeam <steve_longerbeam@mentor.com>, Mauro Carvalho Chehab <mchehab@osg.samsung.com>, Javier Martinez Canillas <javier@osg.samsung.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Sakari Ailus <sakari.ailus@linux.intel.com>
X-Original-Date Tue, 19 Jul 2016 17:03:28 -0700
X-Original-Message-ID <1468973017-17647-2-git-send-email-steve_longerbeam@mentor.com>
X-Original-References <1467846004-12731-1-git-send-email-steve_longerbeam@mentor.com> <1468973017-17647-1-git-send-email-steve_longerbeam@mentor.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1446812

Show key headers only | View raw


This patch adds a "newavmode" boolean property as part of the v4l2 endpoint
properties. This indicates an Analog Devices decoder is generating EAV/SAV
codes to suit Analog Devices encoders.

Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 Documentation/devicetree/bindings/media/video-interfaces.txt | 2 ++
 drivers/media/v4l2-core/v4l2-of.c                            | 4 ++++
 include/media/v4l2-mediabus.h                                | 5 +++++
 3 files changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt
index 9cd2a36..6f2df51 100644
--- a/Documentation/devicetree/bindings/media/video-interfaces.txt
+++ b/Documentation/devicetree/bindings/media/video-interfaces.txt
@@ -88,6 +88,8 @@ Optional endpoint properties
 - field-even-active: field signal level during the even field data transmission.
 - pclk-sample: sample data on rising (1) or falling (0) edge of the pixel clock
   signal.
+- newavmode: a boolean property to indicate an Analog Devices decoder is
+  operating in NEWAVMODE. Valid for BT.656 busses only.
 - sync-on-green-active: active state of Sync-on-green (SoG) signal, 0/1 for
   LOW/HIGH respectively.
 - data-lanes: an array of physical data lane indexes. Position of an entry
diff --git a/drivers/media/v4l2-core/v4l2-of.c b/drivers/media/v4l2-core/v4l2-of.c
index 93b3368..719a7d1 100644
--- a/drivers/media/v4l2-core/v4l2-of.c
+++ b/drivers/media/v4l2-core/v4l2-of.c
@@ -109,6 +109,10 @@ static void v4l2_of_parse_parallel_bus(const struct device_node *node,
 		flags |= v ? V4L2_MBUS_DATA_ACTIVE_HIGH :
 			V4L2_MBUS_DATA_ACTIVE_LOW;
 
+	if (endpoint->bus_type == V4L2_MBUS_BT656 &&
+	    of_get_property(node, "newavmode", &v))
+		flags |= V4L2_MBUS_NEWAVMODE;
+
 	if (of_get_property(node, "slave-mode", &v))
 		flags |= V4L2_MBUS_SLAVE;
 	else
diff --git a/include/media/v4l2-mediabus.h b/include/media/v4l2-mediabus.h
index 34cc99e..0bd5f0e 100644
--- a/include/media/v4l2-mediabus.h
+++ b/include/media/v4l2-mediabus.h
@@ -43,6 +43,11 @@
 /* Active state of Sync-on-green (SoG) signal, 0/1 for LOW/HIGH respectively. */
 #define V4L2_MBUS_VIDEO_SOG_ACTIVE_HIGH	(1 << 12)
 #define V4L2_MBUS_VIDEO_SOG_ACTIVE_LOW		(1 << 13)
+/*
+ * BT.656 specific flags
+ */
+/* Analog Device's NEWAVMODE */
+#define V4L2_MBUS_NEWAVMODE			(1 << 14)
 
 /* Serial flags */
 /* How many lanes the client can use */
-- 
1.9.1

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs Steve Longerbeam <slongerbeam@gmail.com> - 2016-07-20 02:10 +0200
  Re: [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog  Devices codecs Hans Verkuil <hverkuil@xs4all.nl> - 2016-07-20 09:40 +0200
    Re: [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog  Devices codecs Steve Longerbeam <steve_longerbeam@mentor.com> - 2016-07-20 19:20 +0200

csiph-web