Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2726352ybl; Thu, 19 Dec 2019 19:52:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyTkX65V54C77sDXo8X7fk1t42/aco82T2BE2m5WpvcBf6tMnSwyTKJUz0kUzzLU/UnXqSO X-Received: by 2002:a9d:5c1:: with SMTP id 59mr12728173otd.192.1576813946562; Thu, 19 Dec 2019 19:52:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576813946; cv=none; d=google.com; s=arc-20160816; b=ZV58a9S3DSdThq46ANkWxEM/qjwBYo+P5hiz61GV2LPgNjMFltDv2raqTRolaal66F 8jGnr/lm9CEGk+jwn3D1DuU5Thg7KThoQYblNHUtxHjuRnuZ3H+dw++nqAaWE8Yyg/Si TlEW+K5hluJo5Zcf05HLf3iRcMtVTSjGgQcJ/8Z4sIA8OHKeKfR/Zb+c/dRYsKVFe9pF 2edrdZqnM3fEFANOjsZ01x7ZNzsS/AjIsOtYQ0Ke/mbRpbIYnqxi+S5RQMY+4k9N71SV NUfD9ndLDKKANYi4AD7xKZSkco9+nrK/S8uw9wVQ88PXhQErtt0RzOi5m0byswNaP2A0 qqkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6r/8NIk3RYdI6wFY0dB/seZoz3Q74hZA4zM4nK3WDAo=; b=lJDST1pPjlh0rOJJ+DF/PorEqU4npw8oWajxhKsFcY3PlAF925siwEr+sLDP3DL5Vr 7L+Fq+xbH7/ix3FuESqFfSf8RtIl+1d86pgS95lNbE5KdX+vqHAUWE4aMvpzn9uYgvu6 afpe2unTqe3/u6H12oU6I4XTeii9sfP1qov3zRdu5LVnQOKBLpJFcsjQqKtUn/rYBvKn H91wwDZUz3RMr/rey1gVuXA/vbBwK1kHQnHxmxbR1F991oOrpTxKcP3tLeDR4fLv3t/Z +h8cs1PnEctZ7t9OHkKUOyLtghi76AjkX4+Mu64HQi7/uT92Ag6Z8HNy3iyg90jo8nkY kDCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JJtfIKZ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si5285090otg.248.2019.12.19.19.52.15; Thu, 19 Dec 2019 19:52:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JJtfIKZ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727148AbfLTDvg (ORCPT + 99 others); Thu, 19 Dec 2019 22:51:36 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:34954 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbfLTDvg (ORCPT ); Thu, 19 Dec 2019 22:51:36 -0500 Received: by mail-il1-f196.google.com with SMTP id g12so6794591ild.2 for ; Thu, 19 Dec 2019 19:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6r/8NIk3RYdI6wFY0dB/seZoz3Q74hZA4zM4nK3WDAo=; b=JJtfIKZ6x/JIgDR5/VOL2xi9eryZpZ3n8J+MQt9kquUUhFoqUm+r5CrtZlMdpJ/FXD yzcNGtFI5asTB3gRXgoea+0JTHZydQYywtTjAa5gneKcM9z78vYFIu0dIRfto9WEi4U5 fu4iXF/1vyRYlSjH6UEr0B9THzWR0RgYdMBEs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6r/8NIk3RYdI6wFY0dB/seZoz3Q74hZA4zM4nK3WDAo=; b=KSYvjTBWE0syvARgvXGlLIeYxb3t7hH8vAaGrS7YDtnhl1sbPrpyBrkWmSRLXzGvHB 0ARDmeopTlCCJcyzdjICIVyP2C9NTPWQGlm6aMNP8YfdvoCCWlXDdhOpZhArq1LPqgxG x8gW2CTSB4RwDMtdQhAnqFwpQbXR5oDridYfDB526Ikr/hPWK7Et9MhrDPgdo47OfS8D FTJZMKrSuXCzKuC6PMJVWUBQiTqVW9tlaKDcDZ8ILzcY55/aTs6ZXdz/10rERsolPDt9 DfV/wc6KHFHZK/YA5MCv9d5HmsIFQ+0GennRb/i7e5DnAWUu2C7GnUrKbaNaDtR4dKtZ qSVw== X-Gm-Message-State: APjAAAWUspb6VMew67z25uj4618iygCzQFId/V29ODc+m6LDTcLfGFMP EFEdXywYeS8ugqlZYgH3u0YYi6N6gNGfh3XhjFj36g== X-Received: by 2002:a92:d610:: with SMTP id w16mr10176825ilm.283.1576813895178; Thu, 19 Dec 2019 19:51:35 -0800 (PST) MIME-Version: 1.0 References: <20191211061911.238393-1-hsinyi@chromium.org> <20191211061911.238393-2-hsinyi@chromium.org> <20191219204524.GA7841@bogus> <20191220032238.GA5342@pendragon.ideasonboard.com> In-Reply-To: <20191220032238.GA5342@pendragon.ideasonboard.com> From: Hsin-Yi Wang Date: Fri, 20 Dec 2019 11:51:09 +0800 Message-ID: Subject: Re: [PATCH RESEND 1/4] dt-bindings: drm/bridge: analogix-anx7688: Add ANX7688 transmitter binding To: Laurent Pinchart Cc: Rob Herring , dri-devel , David Airlie , Daniel Vetter , Mark Rutland , Nicolas Boichat , Devicetree List , lkml , Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Philipp Zabel , Enric Balletbo i Serra , Matthias Brugger , Russell King Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 20, 2019 at 11:22 AM Laurent Pinchart wrote: > > Hi Hsin-Yi, > > On Fri, Dec 20, 2019 at 11:20:13AM +0800, Hsin-Yi Wang wrote: > > On Fri, Dec 20, 2019 at 4:45 AM Rob Herring wrote: > > > On Wed, Dec 11, 2019 at 02:19:08PM +0800, Hsin-Yi Wang wrote: > > > > From: Nicolas Boichat > > > > > > > > Add support for analogix,anx7688 > > > > > > > > Signed-off-by: Nicolas Boichat > > > > Signed-off-by: Hsin-Yi Wang > > > > --- > > > > Change from RFC to v1: > > > > - txt to yaml > > > > --- > > > > .../bindings/display/bridge/anx7688.yaml | 60 +++++++++++++++++++ > > > > 1 file changed, 60 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/display/bridge/anx7688.yaml > > > > > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/anx7688.yaml b/Documentation/devicetree/bindings/display/bridge/anx7688.yaml > > > > new file mode 100644 > > > > index 000000000000..cf79f7cf8fdf > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/display/bridge/anx7688.yaml > > > > @@ -0,0 +1,60 @@ > > > > +# SPDX-License-Identifier: GPL-2.0 > > > > +%YAML 1.2 > > > > +--- > > > > +$id: http://devicetree.org/schemas/display/bridge/anx7688.yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > + > > > > +title: Analogix ANX7688 SlimPort (Single-Chip Transmitter for DP over USB-C) > > > > + > > > > +maintainers: > > > > + - Nicolas Boichat > > > > + > > > > +description: | > > > > + The ANX7688 is a single-chip mobile transmitter to support 4K 60 frames per > > > > + second (4096x2160p60) or FHD 120 frames per second (1920x1080p120) video > > > > + resolution from a smartphone or tablet with full function USB-C. > > > > + > > > > + This binding only describes the HDMI to DP display bridge. > > > > + > > > > +properties: > > > > + compatible: > > > > + const: analogix,anx7688 > > > > + > > > > + reg: > > > > + maxItems: 1 > > > > + description: I2C address of the device > > > > + > > > > + ports: > > > > + type: object > > > > + > > > > + properties: > > > > + port@0: > > > > + type: object > > > > + description: | > > > > + Video port for HDMI input > > > > + > > > > + port@1: > > > > + type: object > > > > + description: | > > > > + Video port for eDP output > > > > + > > > > + required: > > > > + - port@0 > > > > > > Sometimes you have no output? > > > > Yes, only input is required. > > But what happens in that case ? What's the use of a bridge with a > non-connected output ? :-) > There's output connected, but doesn't need a driver. For example, in our use case it's connected to a usb-c connector. We don't need to state it in dts. I also checked https://elixir.bootlin.com/linux/v5.5-rc2/source/Documentation/devicetree/bindings/display/bridge/anx6345.yaml and thought that output could be optional. Also https://elixir.bootlin.com/linux/v5.5-rc2/source/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts#L116 Or maybe we can add output in example as anx6345? > > > > + > > > > +required: > > > > + - compatible > > > > + - reg > > > > + - ports > > > > > > The example will have errors because it is missing 'ports'. Run 'make > > > dt_binding_check'. > > > > > > Add: > > > > > > additionalProperties: false > > > > > > > Ack, will fix this. Thanks > > > > > > + > > > > +examples: > > > > + - | > > > > + anx7688: anx7688@2c { > > > > + compatible = "analogix,anx7688"; > > > > + reg = <0x2c>; > > > > + > > > > + port { > > > > + anx7688_in: endpoint { > > > > + remote-endpoint = <&hdmi0_out>; > > > > + }; > > > > + }; > > > > + }; > > -- > Regards, > > Laurent Pinchart