public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Jan Luebbe <jlu@pengutronix.de>
Cc: linux-media@vger.kernel.org, kernel@pengutronix.de,
	devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] media: dt-bindings: add binding for TI SCAN921226H video deserializer
Date: Tue, 8 May 2018 11:06:54 -0500	[thread overview]
Message-ID: <20180508160654.GA5752@rob-hp-laptop> (raw)
In-Reply-To: <20180504124903.6276-2-jlu@pengutronix.de>

On Fri, May 04, 2018 at 02:49:02PM +0200, Jan Luebbe wrote:
> This deserializer can be used with sensors that directly produce a
> 10-bit LVDS stream and converts it to a parallel bus.
> 
> Controlling it via the optional GPIOs is mainly useful for avoiding
> conflicts when another parallel sensor is connected to the same data bus
> as the deserializer.
> 
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
> ---
>  .../bindings/media/ti,scan921226h.txt         | 59 +++++++++++++++++++
>  1 file changed, 59 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/media/ti,scan921226h.txt
> 
> diff --git a/Documentation/devicetree/bindings/media/ti,scan921226h.txt b/Documentation/devicetree/bindings/media/ti,scan921226h.txt
> new file mode 100644
> index 000000000000..4e475672d7bf
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/ti,scan921226h.txt
> @@ -0,0 +1,59 @@
> +TI SCAN921226H Video Deserializer
> +---------------------------------
> +
> +The SCAN921226H receives a LVDS serial data stream with embedded clock and
> +converts it to a 10-bit wide parallel data bus and recovers parallel clock.
> +Some CMOS sensors such as the ON Semiconductor MT9V024 produce a LVDS signal
> +compatible with this deserializer.
> +
> +Required properties:
> +- compatible : should be "ti,scan921226h"
> +- #address-cells: should be <1>
> +- #size-cells: should be <0>
> +- port@0: serial (LVDS) input
> +- port@1: parallel output
> +
> +The device node should contain two 'port' child nodes (one each for input and
> +output), in accordance with the video interface bindings defined in
> +Documentation/devicetree/bindings/media/video-interfaces.txt.
> +
> +Optional Properties:
> +- enable-gpios: reference to the GPIO connected to the REN (output enable) pin,
> +  if any.
> +- npwrdn-gpios: reference to the GPIO connected to the nPWRDN pin, if any.

Use the standard powerdown-gpios here.

Both should state the active level.

> +
> +Optionally, #address-cells, #size-cells, and port nodes can be grouped under a
> +ports node as described in Documentation/devicetree/bindings/graph.txt.
> +
> +Example:
> +
> +      csi0_deserializer: csi0_deserializer {

Don't use '_' in node names.

> +              compatible = "ti,scan921226h";
> +
> +              enable-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>;
> +              npwrdn-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
> +
> +              #address-cells = <1>;
> +              #size-cells = <0>;
> +
> +              /* serial sink interface */
> +              port@0 {
> +                      reg = <0>;
> +
> +                      des0_in: endpoint {
> +                              remote-endpoint = <&mt9v024_0_out>;
> +                      };
> +              };
> +
> +              /* parallel source interface */
> +              port@1 {
> +                      reg = <1>;
> +
> +                      des0_out: endpoint {
> +                              remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
> +                              bus-width = <8>;
> +                              hsync-active = <1>;
> +                              vsync-active = <1>;
> +                      };
> +              };
> +      };
> -- 
> 2.17.0
> 
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2018-05-08 16:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-04 12:49 [PATCH 0/2] add support for TI SCAN921226H video deserializer Jan Luebbe
2018-05-04 12:49 ` [PATCH 1/2] media: dt-bindings: add binding " Jan Luebbe
2018-05-08 16:06   ` Rob Herring [this message]
2018-05-04 12:49 ` [PATCH 2/2] media: platform: add driver " Jan Luebbe
2018-05-23  9:39   ` Philipp Zabel

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=20180508160654.GA5752@rob-hp-laptop \
    --to=robh@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jlu@pengutronix.de \
    --cc=kernel@pengutronix.de \
    --cc=linux-media@vger.kernel.org \
    /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