[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200511101508.GA7971@ravnborg.org>
Date: Mon, 11 May 2020 12:15:08 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: srk@...io
Cc: Andrzej Hajda <a.hajda@...sung.com>, Marek Vasut <marex@...x.de>,
devicetree@...r.kernel.org,
Jernej Skrabec <jernej.skrabec@...l.net>,
Jonas Karlman <jonas@...boo.se>,
David Airlie <airlied@...ux.ie>,
Neil Armstrong <narmstrong@...libre.com>,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
Lubomir Rintel <lkundrak@...sk>,
Rob Herring <robh+dt@...nel.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Sean Cross <xobs@...agi.com>
Subject: Re: [PATCH 1/2] dt-bindings: it6251: add bindings for IT6251
LVDS-to-eDP bridge
Hi Richard/Marek.
On Sat, May 09, 2020 at 01:17:31PM +0200, srk@...io wrote:
> From: Marek Vasut <marex@...x.de>
>
> Add DT bindings for ITE IT6251 LVDS-to-eDP bridge.
Looks good, just a few comments in the following.
Sam
>
> Signed-off-by: Marek Vasut <marex@...x.de>
> Signed-off-by: Richard Marko <srk@...io>
> Cc: Daniel Vetter <daniel@...ll.ch>
> Cc: Rob Herring <robh+dt@...nel.org>
> Cc: Sean Cross <xobs@...agi.com>
> Cc: devicetree@...r.kernel.org
> To: dri-devel@...ts.freedesktop.org
> ---
> .../bindings/display/bridge/ite,it6251.yaml | 97 +++++++++++++++++++
> 1 file changed, 97 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it6251.yaml
>
> diff --git a/Documentation/devicetree/bindings/display/bridge/ite,it6251.yaml b/Documentation/devicetree/bindings/display/bridge/ite,it6251.yaml
> new file mode 100644
> index 000000000000..8daa44a30fa1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/bridge/ite,it6251.yaml
> @@ -0,0 +1,97 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/bridge/ite,it6251.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ITE IT6251 LVDS-to-eDP bridge bindings
> +
> +maintainers:
> + - Marek Vasut <marex@...x.de>
> + - Richard Marko <srk@...io>
> +
> +description: |
> + The IT6251 is a high-performance single-chip
> + De-SSC LVDS to DisplayPort converter.
> + Combined with LVDS receiver and DisplayPort Transmitter,
> + the IT6251 supports LVDS input and DisplayPort 1.1a
> + output by conversion function.
> +
> +properties:
> + compatible:
> + const: ite,it6251
> +
> + reg:
> + items:
> + - description: I2C address of the bridge
> + - description: I2C address of the LVDS part
> +
> + reg-names:
> + items:
> + - const: bridge
> + - const: lvds
> +
> + ports:
> + type: object
> +
> + properties:
> + "#address-cells":
> + const: 1
> +
> + "#size-cells":
> + const: 0
> +
> + port@0:
> + type: object
> + description: |
> + Video port for eDP output (typically panel).
port@0 is in most (all?) cases input today.
Take for example a look at: toshiba,tc358768.yaml
Could we do the same here?
> +
> + port@1:
> + type: object
> + description: |
> + Video port for LVDS input.
> +
> + required:
> + - port@0
> + - port@1
> +
> + additionalProperties: false
> +
> + power-supply: true
> +
> +required:
> + - compatible
> + - reg
> + - reg-names
> + - power-supply
> + - ports
> +
> +additionalProperties: false
> +
> +examples:
> + - |
Add an extra level named "i2c" like we do in other bridge examples.
> + it6251@5c {
My personal preference is 4 spaces for indent.
But 2 spaces is also fine.
> + compatible = "ite,it6251";
> + reg = <0x5c>, <0x5e>;
> + reg-names = "bridge", "lvds";
> + power-supply = <®_display>;
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + bridge_out_edp0: endpoint {
> + remote-endpoint = <&panel_in_edp0>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + bridge_in_lvds0: endpoint {
> + remote-endpoint = <&lvds0_out>;
> + };
> + };
> + };
> + };
End with a line containing only "..."
This is an optional end-marker.
See lvds-codec.yaml for an example.
Sam
Powered by blists - more mailing lists