From: jacopo mondi <jacopo@jmondi.org>
To: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
Cc: Jacopo Mondi <jacopo+renesas@jmondi.org>,
laurent.pinchart@ideasonboard.com, horms@verge.net.au,
geert@glider.be, mchehab@kernel.org,
sakari.ailus@linux.intel.com, hans.verkuil@cisco.com,
robh+dt@kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v3 6/8] dt-bindings: rcar-vin: Add 'hsync-as-de' custom prop
Date: Tue, 12 Jun 2018 15:29:49 +0200 [thread overview]
Message-ID: <20180612132949.GB4952@w540> (raw)
In-Reply-To: <20180604121933.GG19674@bigcity.dyn.berto.se>
[-- Attachment #1: Type: text/plain, Size: 3397 bytes --]
Hi Niklas,
On Mon, Jun 04, 2018 at 02:19:33PM +0200, Niklas Söderlund wrote:
> Hi Jacopo,
>
> Thanks for your work.
>
> On 2018-05-29 17:05:57 +0200, Jacopo Mondi wrote:
> > Document the boolean custom property 'renesas,hsync-as-de' that indicates
> > that the HSYNC signal is internally used as data-enable, when the
> > CLKENB signal is not connected.
> >
> > As this is a VIN specificity create a custom property specific to the R-Car
> > VIN driver.
> >
> > Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
> > ---
> > v3:
> > - new patch
> > ---
> > Documentation/devicetree/bindings/media/rcar_vin.txt | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/media/rcar_vin.txt b/Documentation/devicetree/bindings/media/rcar_vin.txt
> > index ff53226..024c109 100644
> > --- a/Documentation/devicetree/bindings/media/rcar_vin.txt
> > +++ b/Documentation/devicetree/bindings/media/rcar_vin.txt
> > @@ -60,6 +60,9 @@ from local SoC CSI-2 receivers (port1) depending on SoC.
> > - vsync-active: see [1] for description. Default is active high.
> > - data-enable-active: polarity of CLKENB signal, see [1] for
> > description. Default is active high.
> > + - renesas,hsync-as-de: a boolean property to indicate that HSYNC signal
> > + is internally used as data-enable when the CLKENB signal is
> > + not available.
>
> I'm not sure I like this, is there really a need to add a custom
> property for this? The datasheet states that when the CLKENB pin is not
> connected the driver should enable 'Clock Enable Hsync Select (CHS)'.
> With the new generic property 'data-enable-active' which describes the
> polarity of the CLKENB pin we also gain the knowledge if the CLKENB pin
> is connected or not.
That was my first proposal, we discussed that in
Re: [PATCH 3/6] media: rcar-vin: Handle data-active property
Re: [PATCH 2/6] dt-bindings: media: rcar-vin: Document data-active
Let's sum it up in this way:
Instead of having to deal again with the "what happens if there is no
data-enable-active and we're running on BT.656 where there is no HSYNC signal"[1]
I decided to go with a custom property.
>
> I propose we drop this custom property and instead let the driver check
> if the CLKENB polarity is described or not and use that to determine if
> CHS bit should be set or not. IMHO that is much simpler then having two
> properties describing the same pin.
>
It is my understanding that both Gen2 and Gen3 boards CVBS input are
BT.656 and none of them has CLKENB input. So 'data-enable-active' is
never there but in this case we should not set CHS. So the absence of
'data-enable-active' has different consequences if we're running on
parallel or BT.656 bus, and that feels confusing to me, so I decided
to make it an explicit property.
Also, as the interface manual describes the "use HSYNC in place of CLKENB"
when on parallel bus as a design choice, that should imo be documented.
Again, this is very minor stuff. I'll leave this out from next
version, maybe we can talk about this f2f next week.
Thanks
j
> >
> > If both HSYNC and VSYNC polarities are not specified, embedded
> > synchronization is selected.
> > --
> > 2.7.4
> >
>
> --
> Regards,
> Niklas Söderlund
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: jacopo@jmondi.org (jacopo mondi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 6/8] dt-bindings: rcar-vin: Add 'hsync-as-de' custom prop
Date: Tue, 12 Jun 2018 15:29:49 +0200 [thread overview]
Message-ID: <20180612132949.GB4952@w540> (raw)
In-Reply-To: <20180604121933.GG19674@bigcity.dyn.berto.se>
Hi Niklas,
On Mon, Jun 04, 2018 at 02:19:33PM +0200, Niklas S?derlund wrote:
> Hi Jacopo,
>
> Thanks for your work.
>
> On 2018-05-29 17:05:57 +0200, Jacopo Mondi wrote:
> > Document the boolean custom property 'renesas,hsync-as-de' that indicates
> > that the HSYNC signal is internally used as data-enable, when the
> > CLKENB signal is not connected.
> >
> > As this is a VIN specificity create a custom property specific to the R-Car
> > VIN driver.
> >
> > Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
> > ---
> > v3:
> > - new patch
> > ---
> > Documentation/devicetree/bindings/media/rcar_vin.txt | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/media/rcar_vin.txt b/Documentation/devicetree/bindings/media/rcar_vin.txt
> > index ff53226..024c109 100644
> > --- a/Documentation/devicetree/bindings/media/rcar_vin.txt
> > +++ b/Documentation/devicetree/bindings/media/rcar_vin.txt
> > @@ -60,6 +60,9 @@ from local SoC CSI-2 receivers (port1) depending on SoC.
> > - vsync-active: see [1] for description. Default is active high.
> > - data-enable-active: polarity of CLKENB signal, see [1] for
> > description. Default is active high.
> > + - renesas,hsync-as-de: a boolean property to indicate that HSYNC signal
> > + is internally used as data-enable when the CLKENB signal is
> > + not available.
>
> I'm not sure I like this, is there really a need to add a custom
> property for this? The datasheet states that when the CLKENB pin is not
> connected the driver should enable 'Clock Enable Hsync Select (CHS)'.
> With the new generic property 'data-enable-active' which describes the
> polarity of the CLKENB pin we also gain the knowledge if the CLKENB pin
> is connected or not.
That was my first proposal, we discussed that in
Re: [PATCH 3/6] media: rcar-vin: Handle data-active property
Re: [PATCH 2/6] dt-bindings: media: rcar-vin: Document data-active
Let's sum it up in this way:
Instead of having to deal again with the "what happens if there is no
data-enable-active and we're running on BT.656 where there is no HSYNC signal"[1]
I decided to go with a custom property.
>
> I propose we drop this custom property and instead let the driver check
> if the CLKENB polarity is described or not and use that to determine if
> CHS bit should be set or not. IMHO that is much simpler then having two
> properties describing the same pin.
>
It is my understanding that both Gen2 and Gen3 boards CVBS input are
BT.656 and none of them has CLKENB input. So 'data-enable-active' is
never there but in this case we should not set CHS. So the absence of
'data-enable-active' has different consequences if we're running on
parallel or BT.656 bus, and that feels confusing to me, so I decided
to make it an explicit property.
Also, as the interface manual describes the "use HSYNC in place of CLKENB"
when on parallel bus as a design choice, that should imo be documented.
Again, this is very minor stuff. I'll leave this out from next
version, maybe we can talk about this f2f next week.
Thanks
j
> >
> > If both HSYNC and VSYNC polarities are not specified, embedded
> > synchronization is selected.
> > --
> > 2.7.4
> >
>
> --
> Regards,
> Niklas S?derlund
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180612/d1d7273b/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: jacopo mondi <jacopo@jmondi.org>
To: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
Cc: devicetree@vger.kernel.org, robh+dt@kernel.org,
linux-renesas-soc@vger.kernel.org, horms@verge.net.au,
geert@glider.be, laurent.pinchart@ideasonboard.com,
sakari.ailus@linux.intel.com,
Jacopo Mondi <jacopo+renesas@jmondi.org>,
mchehab@kernel.org, hans.verkuil@cisco.com,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org
Subject: Re: [PATCH v3 6/8] dt-bindings: rcar-vin: Add 'hsync-as-de' custom prop
Date: Tue, 12 Jun 2018 15:29:49 +0200 [thread overview]
Message-ID: <20180612132949.GB4952@w540> (raw)
In-Reply-To: <20180604121933.GG19674@bigcity.dyn.berto.se>
[-- Attachment #1.1: Type: text/plain, Size: 3397 bytes --]
Hi Niklas,
On Mon, Jun 04, 2018 at 02:19:33PM +0200, Niklas Söderlund wrote:
> Hi Jacopo,
>
> Thanks for your work.
>
> On 2018-05-29 17:05:57 +0200, Jacopo Mondi wrote:
> > Document the boolean custom property 'renesas,hsync-as-de' that indicates
> > that the HSYNC signal is internally used as data-enable, when the
> > CLKENB signal is not connected.
> >
> > As this is a VIN specificity create a custom property specific to the R-Car
> > VIN driver.
> >
> > Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
> > ---
> > v3:
> > - new patch
> > ---
> > Documentation/devicetree/bindings/media/rcar_vin.txt | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/media/rcar_vin.txt b/Documentation/devicetree/bindings/media/rcar_vin.txt
> > index ff53226..024c109 100644
> > --- a/Documentation/devicetree/bindings/media/rcar_vin.txt
> > +++ b/Documentation/devicetree/bindings/media/rcar_vin.txt
> > @@ -60,6 +60,9 @@ from local SoC CSI-2 receivers (port1) depending on SoC.
> > - vsync-active: see [1] for description. Default is active high.
> > - data-enable-active: polarity of CLKENB signal, see [1] for
> > description. Default is active high.
> > + - renesas,hsync-as-de: a boolean property to indicate that HSYNC signal
> > + is internally used as data-enable when the CLKENB signal is
> > + not available.
>
> I'm not sure I like this, is there really a need to add a custom
> property for this? The datasheet states that when the CLKENB pin is not
> connected the driver should enable 'Clock Enable Hsync Select (CHS)'.
> With the new generic property 'data-enable-active' which describes the
> polarity of the CLKENB pin we also gain the knowledge if the CLKENB pin
> is connected or not.
That was my first proposal, we discussed that in
Re: [PATCH 3/6] media: rcar-vin: Handle data-active property
Re: [PATCH 2/6] dt-bindings: media: rcar-vin: Document data-active
Let's sum it up in this way:
Instead of having to deal again with the "what happens if there is no
data-enable-active and we're running on BT.656 where there is no HSYNC signal"[1]
I decided to go with a custom property.
>
> I propose we drop this custom property and instead let the driver check
> if the CLKENB polarity is described or not and use that to determine if
> CHS bit should be set or not. IMHO that is much simpler then having two
> properties describing the same pin.
>
It is my understanding that both Gen2 and Gen3 boards CVBS input are
BT.656 and none of them has CLKENB input. So 'data-enable-active' is
never there but in this case we should not set CHS. So the absence of
'data-enable-active' has different consequences if we're running on
parallel or BT.656 bus, and that feels confusing to me, so I decided
to make it an explicit property.
Also, as the interface manual describes the "use HSYNC in place of CLKENB"
when on parallel bus as a design choice, that should imo be documented.
Again, this is very minor stuff. I'll leave this out from next
version, maybe we can talk about this f2f next week.
Thanks
j
> >
> > If both HSYNC and VSYNC polarities are not specified, embedded
> > synchronization is selected.
> > --
> > 2.7.4
> >
>
> --
> Regards,
> Niklas Söderlund
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2018-06-12 13:29 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-29 15:05 [PATCH v3 0/8] media: rcar-vin: Brush endpoint properties Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` [PATCH v3 1/8] dt-bindings: media: rcar-vin: Describe optional ep properties Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-31 3:13 ` Rob Herring
2018-05-31 3:13 ` Rob Herring
2018-05-31 3:13 ` Rob Herring
2018-05-31 3:13 ` Rob Herring
2018-05-29 15:05 ` [PATCH v3 2/8] dt-bindings: media: Document data-enable-active property Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-31 3:14 ` Rob Herring
2018-05-31 3:14 ` Rob Herring
2018-05-31 3:14 ` Rob Herring
2018-06-01 10:29 ` Sakari Ailus
2018-06-01 10:29 ` Sakari Ailus
2018-06-01 10:29 ` Sakari Ailus
2018-06-01 14:58 ` jacopo mondi
2018-06-01 14:58 ` jacopo mondi
2018-06-01 14:58 ` jacopo mondi
2018-06-01 22:35 ` Sakari Ailus
2018-06-01 22:35 ` Sakari Ailus
2018-06-01 22:35 ` Sakari Ailus
2018-05-29 15:05 ` [PATCH v3 3/8] media: v4l2-fwnode: parse 'data-enable-active' prop Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-06-04 12:08 ` Niklas Söderlund
2018-06-04 12:08 ` Niklas Söderlund
2018-06-04 12:08 ` Niklas Söderlund
2018-06-04 12:08 ` Niklas Söderlund
2018-05-29 15:05 ` [PATCH v3 4/8] dt-bindings: media: rcar-vin: Add 'data-enable-active' Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-31 3:16 ` Rob Herring
2018-05-31 3:16 ` Rob Herring
2018-05-31 3:16 ` Rob Herring
2018-06-04 12:10 ` Niklas Söderlund
2018-06-04 12:10 ` Niklas Söderlund
2018-06-04 12:10 ` Niklas Söderlund
2018-06-04 12:10 ` Niklas Söderlund
2018-05-29 15:05 ` [PATCH v3 5/8] media: rcar-vin: Handle data-enable polarity Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-06-04 12:13 ` Niklas Söderlund
2018-06-04 12:13 ` Niklas Söderlund
2018-06-04 12:13 ` Niklas Söderlund
2018-06-04 12:13 ` Niklas Söderlund
2018-05-29 15:05 ` [PATCH v3 6/8] dt-bindings: rcar-vin: Add 'hsync-as-de' custom prop Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-31 3:17 ` Rob Herring
2018-05-31 3:17 ` Rob Herring
2018-05-31 3:17 ` Rob Herring
2018-06-04 12:19 ` Niklas Söderlund
2018-06-04 12:19 ` Niklas Söderlund
2018-06-04 12:19 ` Niklas Söderlund
2018-06-04 12:19 ` Niklas Söderlund
2018-06-12 13:29 ` jacopo mondi [this message]
2018-06-12 13:29 ` jacopo mondi
2018-06-12 13:29 ` jacopo mondi
2018-05-29 15:05 ` [PATCH v3 7/8] media: rcar-vin: Handle 'hsync-as-de' property Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` [PATCH v3 8/8] ARM: dts: rcar-gen2: Remove unused VIN properties Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-29 15:05 ` Jacopo Mondi
2018-05-31 3:17 ` Rob Herring
2018-05-31 3:17 ` Rob Herring
2018-05-31 3:17 ` Rob Herring
2018-06-04 12:23 ` Niklas Söderlund
2018-06-04 12:23 ` Niklas Söderlund
2018-06-04 12:23 ` Niklas Söderlund
2018-06-04 12:23 ` Niklas Söderlund
2018-06-05 7:49 ` Simon Horman
2018-06-05 7:49 ` Simon Horman
2018-06-05 7:49 ` Simon Horman
2018-06-05 8:12 ` jacopo mondi
2018-06-05 8:12 ` jacopo mondi
2018-06-05 8:12 ` jacopo mondi
2018-06-05 8:23 ` Geert Uytterhoeven
2018-06-05 8:23 ` Geert Uytterhoeven
2018-06-05 8:23 ` Geert Uytterhoeven
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=20180612132949.GB4952@w540 \
--to=jacopo@jmondi.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@glider.be \
--cc=hans.verkuil@cisco.com \
--cc=horms@verge.net.au \
--cc=jacopo+renesas@jmondi.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=niklas.soderlund@ragnatech.se \
--cc=robh+dt@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.