Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1446812 > unrolled thread
| Started by | Steve Longerbeam <slongerbeam@gmail.com> |
|---|---|
| First post | 2016-07-20 02:10 +0200 |
| Last post | 2016-07-20 19:20 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[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
| From | Steve Longerbeam <slongerbeam@gmail.com> |
|---|---|
| Date | 2016-07-20 02:10 +0200 |
| Subject | [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs |
| Message-ID | <rWNfj-2pz-13@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Hans Verkuil <hverkuil@xs4all.nl> |
|---|---|
| Date | 2016-07-20 09:40 +0200 |
| Subject | Re: [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs |
| Message-ID | <rWUgO-6SN-25@gated-at.bofh.it> |
| In reply to | #1446812 |
On 07/20/2016 02:03 AM, Steve Longerbeam wrote: > 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. This property is adv7180 specific and does not belong here. Add this to Documentation/devicetree/bindings/media/i2c/adv7180.txt instead. Nacked-by: Hans Verkuil <hans.verkuil@cisco.com> Regards, Hans > - 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 */ >
[toc] | [prev] | [next] | [standalone]
| From | Steve Longerbeam <steve_longerbeam@mentor.com> |
|---|---|
| Date | 2016-07-20 19:20 +0200 |
| Subject | Re: [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs |
| Message-ID | <rX3k5-4j6-3@gated-at.bofh.it> |
| In reply to | #1447045 |
On 07/20/2016 12:37 AM, Hans Verkuil wrote: > On 07/20/2016 02:03 AM, Steve Longerbeam wrote: >> 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. > This property is adv7180 specific and does not belong here. Hi Hans, yes that was my initial reaction to this idea as well, but you didn't respond to my first request for comment. > > Add this to Documentation/devicetree/bindings/media/i2c/adv7180.txt instead. Yes, I'll move this property into adv7180. Steve
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web