Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp416944ybk; Sat, 9 May 2020 06:49:07 -0700 (PDT) X-Google-Smtp-Source: APiQypLdF/oZ+z7bbcTiruShEdPHe5LCbXcuIjCWFy2i700OSTGMBdtcvZbIh3gp6ld6cS2G+lfk X-Received: by 2002:a17:906:4e02:: with SMTP id z2mr6047820eju.212.1589032147013; Sat, 09 May 2020 06:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589032147; cv=none; d=google.com; s=arc-20160816; b=oMecOUUmPYuOmn+EFJ72YQgClDTVFokVVw9JohxLY+rbuMXl9xtjZzpxVqIBc0K2v9 P8F1oQtlADj7Wn/DtHiqlsLlNXu0qWeIfdh7togjuoiaaY4HV9Zea+WiwQTK4jQLsTmO HI6V/QYO0fhgbxc3XOmVLcGE+5HOjLSksRh7hGOY+Rtex1PjZ/q1EPhAgC4miVKuvjxZ GYyOwqwzkPoi4gtUljxn1uUgDvVy+Q3pelDm6xSh/snGktFw/WrYZPvIG9QssSAClkU2 p6p18FMDJv5epN7xu2NLF51sbtEmjb5cY3RXoay5S8h4ogWSWtp1R1hBYCMY0Amz3SEo NufA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JT/LKprnbS5ZR4YAtt+hkTTsXBduO86k0n0wMnRAeLA=; b=jgIGRbN2Bj+RbxSm4NTVaDs4a9DOqHDTMwQWOktzBJme5NmURz+CGHsSdQS8Z/9BL4 OJOcxt6XayhUPj5THWo4FP7vW/drCX9vlWle94MgHmpcgItt9Bpo/JWaS/2EJMb1yIYk Mk41NlvTASd+2buVFJ3laeadPDtYwW6ITcEnIRgb/CwNfOMDjyzhv0/0LWz/ndKC+jk4 yiwjROdLNIhZ5f5rzTHPm2YIoUNthEyaogZu/Urpu/cW9PCV3f0EHxRig6GP+/ommdEp wqeczprG1kDDLVR4WazizHig4f1bLgSWQGbytp9YwLZZn7uzu3e3QSvUqpo6ys5tPoWn j8lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=fMcZW0Xd; 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 l20si2689804ejr.179.2020.05.09.06.48.43; Sat, 09 May 2020 06:49:07 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=fMcZW0Xd; 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 S1727940AbgEINoV (ORCPT + 99 others); Sat, 9 May 2020 09:44:21 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:59244 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbgEINoV (ORCPT ); Sat, 9 May 2020 09:44:21 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 26CF130D; Sat, 9 May 2020 15:44:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589031858; bh=7ujcB1XiyYpi6kSKrCO4PkwZ8y4r1hWPfytMfvnyY4U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fMcZW0Xdwz+2i/Y1YD/XzxevPo9t5tFUqBQrZl8MQUQquRHgWOpZHE1KoxEhfQMxT FoG0ZMRMprkb2BVaQaMm0+f0BY5fuTPWYbRY3wuJxBg+KQCMzAR8FH+i20YZaCz/Vv k83pJTzCERFtUCglPJMmGagn3gFxbRHKpSakbFFo= Date: Sat, 9 May 2020 16:44:10 +0300 From: Laurent Pinchart To: srk@48.io Cc: Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Lubomir Rintel , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Vasut , Sean Cross Subject: Re: [PATCH 1/2] dt-bindings: it6251: add bindings for IT6251 LVDS-to-eDP bridge Message-ID: <20200509134410.GA5946@pendragon.ideasonboard.com> References: <20200509111732.26102-1-srk@48.io> <20200509111732.26102-2-srk@48.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200509111732.26102-2-srk@48.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, Thank you for the patch. 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. > > 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. You could reflow this to the 80 columns limit. It also sounds like marketing material copied from the datasheet, with "by conversion function" likely a bad translation. > + > +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@1: > + type: object > + description: | > + Video port for LVDS input. We traditionally use port 0 for the input and port 1 for the output. I'd rather do the same here to remain consistent, and allow generic code to operate on this device. > + > + required: > + - port@0 > + - port@1 > + > + additionalProperties: false > + > + power-supply: true There are multiple power supplies for the chip, shouldn't we have multiple properties ? I would also name the properties according to the supply name. The chip has an HPD input. I would recommend already documenting an optional boolean no-hpd property to report when the HPD input is not connected. > + > +required: > + - compatible > + - reg > + - reg-names > + - power-supply > + - ports > + > +additionalProperties: false > + > +examples: > + - | > + it6251@5c { > + 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>; > + }; > + }; > + }; > + }; -- Regards, Laurent Pinchart