Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1745736ybk; Mon, 11 May 2020 03:17:25 -0700 (PDT) X-Google-Smtp-Source: APiQypL7BIdTDwXeRREna73zL8vepieAB13e1MIPCRcE0OBAlCpRozl2cOBetDG/u5R77GSQErtK X-Received: by 2002:a17:906:7d1:: with SMTP id m17mr12268491ejc.247.1589192245754; Mon, 11 May 2020 03:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589192245; cv=none; d=google.com; s=arc-20160816; b=QbaE6jJE3BKfNfpACVKQClZyHNb4rFkKeBXzveD3cY1m2xsHBMb0tgs7E5pS0lFjCK Riw7mtrcLb6FWsmWAim/+jOJN8xcMNFg/cdT9roKhikw9c91ELcuvM8V/0u4i+3xVt27 O5vqGveQmOY8oXnYkqHvUgZP3VltFHrJE1MElqgOHDr6SReydGxbWL89c/4G8hkh+XHf ZLOa6f7a7tEM/ivMMrkGILWaohlL5BZDMQFtGHH+8q6Ct6jxRYrOaKopv2S0Ka9ZaMBc RNNadKN6fHPdKE/mMrHN4wFW8jysYNv2Ut93w/9ArqEEFMFajqriFRjZYQwLEXG3XV1X B50w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MkphCTARJF/ixfP20i7TvJ45Z7wcl/JiPvbZ8HVKer4=; b=KkkreVPvrLX4BBO5QFGzX5sGgK90xhAcc6I7vgu/dX+l+mumTO0jVRJ/vSX/cZcRU1 UqiJ/L44mzonxcUvG/wbdQPoGMJEtpvZjYRpKNwkSmH2g/UVCZ4hLXdt4BjFGU+wHWpx KmUaAhXHHEaw+9JRyuzM6QhLsurETOyu5t5hB8xAVDV6d35R2VE9xw9J3SbV+EPOShUa QXXIrQIIPnn1syWF/MO6aAjJg8AeNHTUsaD8gtOXCSIf4p3Zcqq4FEb0pJI4ZtlWiUHW 8RASSPUr+iVjPvw0YY4FAShSN4zeYxsQrXnKc3c+nIYrKFr8ZXw1TvimptlqyhpEeY97 92Yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si1871416ejw.152.2020.05.11.03.17.03; Mon, 11 May 2020 03:17:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729022AbgEKKPP (ORCPT + 99 others); Mon, 11 May 2020 06:15:15 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:41358 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbgEKKPP (ORCPT ); Mon, 11 May 2020 06:15:15 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 5D1762001E; Mon, 11 May 2020 12:15:09 +0200 (CEST) Date: Mon, 11 May 2020 12:15:08 +0200 From: Sam Ravnborg To: srk@48.io Cc: Andrzej Hajda , Marek Vasut , devicetree@vger.kernel.org, Jernej Skrabec , Jonas Karlman , David Airlie , Neil Armstrong , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Lubomir Rintel , Rob Herring , Laurent Pinchart , Sean Cross Subject: Re: [PATCH 1/2] dt-bindings: it6251: add bindings for IT6251 LVDS-to-eDP bridge Message-ID: <20200511101508.GA7971@ravnborg.org> References: <20200509111732.26102-1-srk@48.io> <20200509111732.26102-2-srk@48.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200509111732.26102-2-srk@48.io> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=ULXz4hXy c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=VwQbUJbxAAAA:8 a=YpGV6msqAAAA:8 a=e5mUnYsNAAAA:8 a=gEfo2CItAAAA:8 a=_yH9q9Z6AjBviL3TOqQA:9 a=rbfOVJjzkGrPOjLs:21 a=2oGGWDTR31z2Z5qq:21 a=CjuIK1q_8ugA:10 a=AjGcO6oz07-iQ99wixmX:22 a=7Sa5D-Tva0wx0rmpRu8Y:22 a=Vxmtnl_E_bksehYqCbjh:22 a=sptkURWiP4Gy88Gu7hUp:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard/Marek. On Sat, May 09, 2020 at 01:17:31PM +0200, srk@48.io wrote: > From: Marek Vasut > > 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 > Signed-off-by: Richard Marko > Cc: Daniel Vetter > Cc: Rob Herring > Cc: Sean Cross > Cc: devicetree@vger.kernel.org > To: dri-devel@lists.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 > + - Richard Marko > + > +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