From: Marco Felsch <m.felsch@pengutronix.de>
To: Rob Herring <robh@kernel.org>
Cc: mchehab@kernel.org, mark.rutland@arm.com, p.zabel@pengutronix.de,
afshin.nasser@gmail.com, javierm@redhat.com,
sakari.ailus@linux.intel.com, laurent.pinchart@ideasonboard.com,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
kernel@pengutronix.de
Subject: Re: [PATCH 20/22] [media] tvp5150: Add input port connectors DT bindings
Date: Fri, 3 Aug 2018 09:29:53 +0200 [thread overview]
Message-ID: <20180803072953.gwla7i6pcw2s3zo7@pengutronix.de> (raw)
In-Reply-To: <20180703232320.GA18319@rob-hp-laptop>
Hi Rob,
first of all, thanks for the review. After some discussion with the
media guys I have a question about the dt-bindings.
On 18-07-03 17:23, Rob Herring wrote:
> On Thu, Jun 28, 2018 at 06:20:52PM +0200, Marco Felsch wrote:
> > The TVP5150/1 decoders support different video input sources to their
> > AIP1A/B pins.
> >
> > Possible configurations are as follows:
> > - Analog Composite signal connected to AIP1A.
> > - Analog Composite signal connected to AIP1B.
> > - Analog S-Video Y (luminance) and C (chrominance)
> > signals connected to AIP1A and AIP1B respectively.
> >
> > This patch extends the device tree bindings documentation to describe
> > how the input connectors for these devices should be defined in a DT.
> >
> > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > ---
> > .../devicetree/bindings/media/i2c/tvp5150.txt | 118 +++++++++++++++++-
> > 1 file changed, 113 insertions(+), 5 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/media/i2c/tvp5150.txt b/Documentation/devicetree/bindings/media/i2c/tvp5150.txt
> > index 8c0fc1a26bf0..feed8c911c5e 100644
> > --- a/Documentation/devicetree/bindings/media/i2c/tvp5150.txt
> > +++ b/Documentation/devicetree/bindings/media/i2c/tvp5150.txt
> > @@ -12,11 +12,23 @@ Optional Properties:
> > - pdn-gpios: phandle for the GPIO connected to the PDN pin, if any.
> > - reset-gpios: phandle for the GPIO connected to the RESETB pin, if any.
> >
> > -The device node must contain one 'port' child node for its digital output
> > -video port, in accordance with the video interface bindings defined in
> > -Documentation/devicetree/bindings/media/video-interfaces.txt.
> > +The device node must contain one 'port' child node per device input and output
> > +port, in accordance with the video interface bindings defined in
> > +Documentation/devicetree/bindings/media/video-interfaces.txt. The port nodes
> > +are numbered as follows
> >
> > -Required Endpoint Properties for parallel synchronization:
> > + Name Type Port
> > + --------------------------------------
> > + AIP1A sink 0
> > + AIP1B sink 1
> > + S-VIDEO sink 2
> > + Y-OUT src 3
Do you think it's correct to have a seperate port for each binding?
Since the S-Video port is a combination of AIP1A and AIP1B. After a
discussion with Mauro [1] the TVP5150 should have only 3 pads. Since the
pads are directly mappped to the dt-ports this will correspond to three
ports (2 in, 1 out). Now the svideo connector will be mapped to a second
endpoint in each port:
port@0
endpoint@0 -----------> Comp0-Con
endpoint@1 -----+-----> Svideo-Con
port@1 |
endpoint@0 -----|-----> Comp1-Con
endpoint@1 -----+
port@2
endpoint
I don't like that solution that much, since the mapping is now signal
based. We also don't map each line of a parallel port.
A quick grep shows that currently each device using a svideo connector
seperates them in a own port as I did. IMHO this is a uncomplicate
solution, but don't abstract the HW correctly. What is your opinion
about that? Is it correct to have seperate (virtual) port or should I
map the svideo connector as shown above?
[1] https://www.spinics.net/lists/devicetree/msg242825.html
Regards,
Marco
> > +
> > +The device node must contain at least the Y-OUT port. Each input port must be
> > +linked to an endpoint defined in
> > +Documentation/devicetree/bindings/display/connector/analog-tv-connector.txt.
> > +
> > +Required Endpoint Properties for parallel synchronization on output port:
> >
> > - hsync-active: active state of the HSYNC signal. Must be <1> (HIGH).
> > - vsync-active: active state of the VSYNC signal. Must be <1> (HIGH).
> > @@ -26,7 +38,9 @@ Required Endpoint Properties for parallel synchronization:
> > If none of hsync-active, vsync-active and field-even-active is specified,
> > the endpoint is assumed to use embedded BT.656 synchronization.
> >
> > -Example:
> > +Examples:
> > +
> > +Only Output:
> >
> > &i2c2 {
> > ...
> > @@ -37,6 +51,100 @@ Example:
> > reset-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
> >
> > port {
> > + reg = <3>;
> > + tvp5150_1: endpoint {
> > + remote-endpoint = <&ccdc_ep>;
> > + };
> > + };
> > + };
> > +};
> > +
> > +One Input:
> > +
> > +connector@0 {
>
> Drop the unit-address as there is no reg property.
>
> > + compatible = "composite-video-connector";
> > + label = "Composite0";
> > +
> > + port {
> > + comp0_out: endpoint {
> > + remote-endpoint = <&tvp5150_comp0_in>;
> > + };
> > + };
> > +};
> > +
> > +&i2c2 {
> > + ...
> > + tvp5150@5c {
> > + compatible = "ti,tvp5150";
> > + reg = <0x5c>;
> > + pdn-gpios = <&gpio4 30 GPIO_ACTIVE_LOW>;
> > + reset-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
> > +
> > + port@0 {
> > + reg = <0>;
> > + tvp5150_comp0_in: endpoint {
> > + remote-endpoint = <&comp0_out>;
> > + };
> > + };
> > +
> > + port@3 {
> > + reg = <3>;
> > + tvp5150_1: endpoint {
> > + remote-endpoint = <&ccdc_ep>;
> > + };
> > + };
> > + };
> > +};
> > +
> > +
> > +Two Inputs, different connector 12 on input AIP1A:
> > +
> > +connector@1 {
>
> ditto
>
> > + compatible = "svideo-connector";
> > + label = "S-Video";
> > +
> > + port {
> > + svideo_out: endpoint {
> > + remote-endpoint = <&tvp5150_svideo_in>;
> > + };
> > + };
> > +};
> > +
> > +connector@12 {
>
> ditto
>
> > + compatible = "composite-video-connector";
> > + label = "Composite12";
> > +
> > + port {
> > + comp12_out: endpoint {
> > + remote-endpoint = <&tvp5150_comp12_in>;
> > + };
> > + };
> > +};
> > +
> > +&i2c2 {
> > + ...
> > + tvp5150@5c {
> > + compatible = "ti,tvp5150";
> > + reg = <0x5c>;
> > + pdn-gpios = <&gpio4 30 GPIO_ACTIVE_LOW>;
> > + reset-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
> > +
> > + port@0 {
> > + reg = <0>;
> > + tvp5150_comp12_in: endpoint {
> > + remote-endpoint = <&comp12_out>;
> > + };
> > + };
> > +
> > + port@2 {
> > + reg = <2>;
> > + tvp5150_svideo_in: endpoint {
> > + remote-endpoint = <&svideo_out>;
> > + };
> > + };
> > +
> > + port@3 {
> > + reg = <3>;
> > tvp5150_1: endpoint {
> > remote-endpoint = <&ccdc_ep>;
> > };
> > --
> > 2.17.1
> >
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5082 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2018-08-03 7:29 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-28 16:20 [PATCH 00/21] TVP5150 fixes and new features Marco Felsch
2018-06-28 16:20 ` [PATCH 01/22] [media] tvp5150: fix width alignment during set_selection() Marco Felsch
2018-06-28 16:20 ` [PATCH 02/22] [media] tvp5150: fix switch exit in set control handler Marco Felsch
2018-06-28 16:20 ` [PATCH 03/22] [media] tvp5150: convert register access to regmap Marco Felsch
2018-06-28 16:20 ` [PATCH 04/22] [media] tvp5150: make use of regmap_update_bits Marco Felsch
2018-06-28 16:20 ` [PATCH 05/22] [media] v4l2-rect.h: add position and equal helpers Marco Felsch
2018-06-29 14:12 ` Sakari Ailus
2018-06-28 16:20 ` [PATCH 06/22] [media] tvp5150: add FORMAT_TRY support for get/set selection handlers Marco Felsch
2018-07-31 0:01 ` Mauro Carvalho Chehab
2018-06-28 16:20 ` [PATCH 07/22] [media] tvp5150: add default format helper Marco Felsch
2018-06-28 16:20 ` [PATCH 08/22] [media] tvp5150: trigger autodetection on subdev open to reset cropping Marco Felsch
2018-06-28 16:20 ` [PATCH 09/22] [media] tvp5150: fix standard autodetection Marco Felsch
2018-06-28 16:20 ` [PATCH 10/22] [media] tvp5150: split reset/enable routine Marco Felsch
2018-06-28 16:20 ` [PATCH 11/22] [media] tvp5150: remove pin configuration from initialization tables Marco Felsch
2018-06-28 16:20 ` [PATCH 12/22] [media] tvp5150: Add sync lock interrupt handling Marco Felsch
2018-06-28 16:20 ` [PATCH 13/22] [media] tvp5150: disable output while signal not locked Marco Felsch
2018-07-30 18:00 ` Mauro Carvalho Chehab
2018-07-30 18:06 ` Mauro Carvalho Chehab
2018-07-31 6:02 ` Marco Felsch
2018-06-28 16:20 ` [PATCH 14/22] [media] tvp5150: issue source change events Marco Felsch
2018-06-28 16:20 ` [PATCH 15/22] [media] tvp5150: add sync lock/loss signal debug messages Marco Felsch
2018-06-28 16:20 ` [PATCH 16/22] [media] tvp5150: add querystd Marco Felsch
2018-07-30 18:09 ` Mauro Carvalho Chehab
2018-08-01 13:21 ` Marco Felsch
2018-08-01 14:22 ` Mauro Carvalho Chehab
2018-08-01 14:49 ` Marco Felsch
2018-08-01 15:50 ` Mauro Carvalho Chehab
2018-08-02 8:01 ` Marco Felsch
2018-08-02 9:49 ` Mauro Carvalho Chehab
2018-08-02 10:16 ` Marco Felsch
2018-08-02 14:38 ` Mauro Carvalho Chehab
2018-08-02 10:54 ` Ian Arkver
2018-08-02 11:58 ` Marco Felsch
2018-06-28 16:20 ` [PATCH 17/22] [media] tvp5150: add g_std callback Marco Felsch
2018-06-28 16:20 ` [PATCH 18/22] partial revert of "[media] tvp5150: add HW input connectors support" Marco Felsch
2018-07-03 23:19 ` Rob Herring
2018-07-30 18:18 ` Mauro Carvalho Chehab
2018-07-31 7:01 ` Marco Felsch
2018-07-31 8:52 ` Javier Martinez Canillas
2018-07-31 10:06 ` Mauro Carvalho Chehab
2018-07-31 11:26 ` Javier Martinez Canillas
2018-07-31 12:36 ` Marco Felsch
2018-07-31 12:52 ` Javier Martinez Canillas
2018-07-31 13:30 ` Marco Felsch
2018-07-31 19:56 ` Mauro Carvalho Chehab
2018-08-01 12:10 ` Marco Felsch
2018-08-01 13:32 ` Mauro Carvalho Chehab
2018-08-01 15:49 ` Marco Felsch
2018-08-01 16:23 ` Javier Martinez Canillas
2018-07-31 13:01 ` Mauro Carvalho Chehab
2018-07-31 13:22 ` Mauro Carvalho Chehab
2018-06-28 16:20 ` [PATCH 19/22] [media] tvp5150: add input source selection of_graph support Marco Felsch
2018-07-30 18:29 ` Mauro Carvalho Chehab
2018-08-08 15:29 ` Marco Felsch
2018-08-08 18:52 ` Mauro Carvalho Chehab
2018-08-09 12:55 ` Marco Felsch
2018-08-09 13:36 ` Mauro Carvalho Chehab
2018-08-09 14:35 ` Marco Felsch
2018-08-09 16:04 ` Mauro Carvalho Chehab
2018-08-09 16:34 ` Marco Felsch
2018-06-28 16:20 ` [PATCH 20/22] [media] tvp5150: Add input port connectors DT bindings Marco Felsch
2018-07-03 23:23 ` Rob Herring
2018-07-11 8:50 ` Marco Felsch
2018-08-03 7:29 ` Marco Felsch [this message]
2018-08-03 17:30 ` Mauro Carvalho Chehab
2018-08-04 9:04 ` Marco Felsch
2018-06-28 16:20 ` [PATCH 21/22] [media] tvp5150: initialize subdev before parsing device tree Marco Felsch
2018-06-28 16:20 ` [PATCH 22/22] [media] tvp5150: Change default input source selection behaviour Marco Felsch
2018-06-28 20:57 ` [PATCH 00/21] TVP5150 fixes and new features Javier Martinez Canillas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180803072953.gwla7i6pcw2s3zo7@pengutronix.de \
--to=m.felsch@pengutronix.de \
--cc=afshin.nasser@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=javierm@redhat.com \
--cc=kernel@pengutronix.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mchehab@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).