Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp829369pxu; Wed, 7 Oct 2020 17:52:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxywuzjN3CtmE0ccVJM3gkx/0k/E99uCionW9lo4p9ZLOcjBJioesel1pkvzwwdXr+AHsYq X-Received: by 2002:a17:906:6d92:: with SMTP id h18mr5857538ejt.405.1602118349569; Wed, 07 Oct 2020 17:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602118349; cv=none; d=google.com; s=arc-20160816; b=UUbjFI8Q9xIalgKKSdDjBSH0d/I5Nf4lFygEHaNUG8hhBDG4nESLAph8obFSHZwezo Z+msg+uhcyIoD7ZTY7gzHT+kYbJfm4KLZkiHeNJrRXMNks6XDjz1g1+7jRndltuIKqhf M7kNEhDbfBEqz1solLz+rJOQ2KjaLt1qLiu8hL4EdoN1j3heaQ8RVs7l1IYKKUhpgylm ZFzOHQLHpJn74ccYXOn4gTe7a5zA/IFJWLtq7X/nm0NOppCF+6S3FRU9jMpNF9ctgE8z A3UA+jVaIAokLaYAIGEAIT6kSOeeU0o7hSXvVl73wUNdPxzTG58JWGloQiglaHCkintZ 1Ayg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=s1vFaQwEYAj+kfpG7wmgAvUX+m94PjPvEEFq0pb+beU=; b=Ulqhgpc55JIndlej6H2WB4/7KdrYKxGRgWmfTKMeKl3Q5vt+axw5nqTbVRafUUllXl WJnfpgazDULdQDqL8V3EVm0lYOsFnalt+6IL2UryYCrMhrYV5Mveebr5BSY755r4gdZY 2+kyE6W5J10IY8c3uumnPfFHswUHdxOHzfAFJCo8ECizzbRpJPw65Oj5Tk8vAZ4TgMWm QJgUmMRJ2NnPEuAfVY1j9kk+CDRWBJnsV+knX/apoIaBRz8eEepLNsAiB9UTBf8Hohb8 ePACQ5xYkUdyQU0ZO+6cnrWkmj79TQNqh9GtdgSAexXufjelptTxBcWhPqLZAFWYqXeI qgYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Wp5sVtYz; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si2584653ejp.465.2020.10.07.17.52.06; Wed, 07 Oct 2020 17:52:29 -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 header.i=@google.com header.s=20161025 header.b=Wp5sVtYz; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727814AbgJHAne (ORCPT + 99 others); Wed, 7 Oct 2020 20:43:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727732AbgJHAne (ORCPT ); Wed, 7 Oct 2020 20:43:34 -0400 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2F3C0613D3 for ; Wed, 7 Oct 2020 17:43:34 -0700 (PDT) Received: by mail-vs1-xe42.google.com with SMTP id u7so2133414vsq.11 for ; Wed, 07 Oct 2020 17:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s1vFaQwEYAj+kfpG7wmgAvUX+m94PjPvEEFq0pb+beU=; b=Wp5sVtYz9RFuTf8HwWQcjRqk2whZSdWTSRmHelxkoLivWhEMRrU80IIg0ORfASmxcF Ds2gAwd6GPVZHTi/jSu3NlpIeC4hjGoeQIyn5acmCD0zUs8scF+bGfKwqLd2r3XhPu1M ogURv6eN7z1wFOaBtykUW+a7yfiKds6xXU3Y3C1Ao18Q1zmYxBy6YSU06qV996aDEVBU nzriS/au8lNLN/M3eaZWcLp9AMuLe8B/V4YNR3PGTIEQXYIU0XQrTnB3qmBuAZEzch8D i+qDFMouMGrrxDkWn8dGpbnf8TguzX5KTzBv7yTMa81v5/14Ac4UNNCXox5W8DI/tEMA XEyg== 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=s1vFaQwEYAj+kfpG7wmgAvUX+m94PjPvEEFq0pb+beU=; b=pDw1HmOMutgGGOL3QpcBBsXze1yJ6Skqb5rOVC+IgUfelORVyxBnQyfQ0hXS+PBV62 e3c1nCrWMWbpio/MvxkARvuLk4DTDhafayyiI5a/sY4prHTkAdUYg+jZH3fkd5ObxZd2 9oaTotBjo7CY18x02lTPEzNovBDQ+4lQkI4Sqw2AQ0nABEyojDgtHS5j6BR5tSViTih0 3GWrqQqNMJnyWvvDwO/UN5Xti/ITOLoCLkt2N3OZDdB067FrkjKfagzVl761jmEGh2in uSNEZqbWqRRMV5jRf6HWAnIvZoCVQYaN1so0i567uiW4GgYLGG3dWvxZY8DSDx9Vb5xQ IJ3w== X-Gm-Message-State: AOAM532jS344khdkcxXVE1XF8juCBWGFPqNTzYuoPGz2Z2Zfo5h02r1I +wOs6Sqow+L7nBvApgRO7rUXZ9lTF82/Px3rMX0KvA== X-Received: by 2002:a67:ee1a:: with SMTP id f26mr3620209vsp.48.1602117813213; Wed, 07 Oct 2020 17:43:33 -0700 (PDT) MIME-Version: 1.0 References: <20200929024004.244992-1-badhri@google.com> <20200929024004.244992-4-badhri@google.com> <20201005144618.GA154206@bogus> In-Reply-To: <20201005144618.GA154206@bogus> From: Badhri Jagan Sridharan Date: Wed, 7 Oct 2020 17:42:57 -0700 Message-ID: Subject: Re: [PATCH v9 03/15] dt-bindings: usb: Maxim type-c controller device tree binding document To: Rob Herring Cc: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , Lee Jones , Mark Brown , Maxime Ripard , Alexandre Belloni , Thierry Reding , Prashant Malani , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , USB Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robb, Thanks for the reviews ! Responses inline. Regards, Badhri On Mon, Oct 5, 2020 at 7:46 AM Rob Herring wrote: > > On Mon, Sep 28, 2020 at 07:39:52PM -0700, Badhri Jagan Sridharan wrote: > > Add device tree binding document for Maxim TCPCI based Type-C chip driver > > > > Signed-off-by: Badhri Jagan Sridharan > > --- > > Changes since v1: > > - Changing patch version to v6 to fix version number confusion. > > > > Changes since v6: > > - Migrated to yaml format. > > > > Changes since v7: > > - Rebase on usb-next > > > > Changes since v8: > > - Fix errors from make dt_binding_check as suggested by > > Rob Herring. > > --- > > .../devicetree/bindings/usb/maxim,tcpci.yaml | 68 +++++++++++++++++++ > > 1 file changed, 68 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/usb/maxim,tcpci.yaml > > > > diff --git a/Documentation/devicetree/bindings/usb/maxim,tcpci.yaml b/Documentation/devicetree/bindings/usb/maxim,tcpci.yaml > > new file mode 100644 > > index 000000000000..f4b5f1a09b98 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/usb/maxim,tcpci.yaml > > @@ -0,0 +1,68 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: "http://devicetree.org/schemas/usb/maxim,tcpci.yaml#" > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > + > > +title: Maxim TCPCI Type-C PD controller DT bindings > > + > > +maintainers: > > + - Badhri Jagan Sridharan > > + > > +description: Maxim TCPCI Type-C PD controller > > + > > +properties: > > + compatible: > > + enum: > > + - maxim,tcpci > > Is there a datasheet for this? Searching for 'tcpci' doesn't really come > up with anything other than this patch. Only chip I found is MAX77958. > Bindings are for specific h/w devices. Unfortunately the datasheet cannot be made public yet. Has the datasheet have to be made public before sending the bindings ? > > > + > > + interrupts: > > + maxItems: 1 > > + > > + connector: > > + type: object > > + $ref: ../connector/usb-connector.yaml# > > + description: > > + Properties for usb c connector. > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > additionalProperties: false ACK. Adding to the next version of the patch. > > > + > > +examples: > > + - | > > + #include > > + #include > > + i2c0 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + maxtcpc@25 { > > + compatible = "maxim,tcpc"; > > + reg = <0x25>; > > + interrupt-parent = <&gpa8>; > > + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; > > + > > + connector { > > + compatible = "usb-c-connector"; > > + label = "USB-C"; > > + data-role = "dual"; > > + power-role = "dual"; > > + try-power-role = "sink"; > > + self-powered; > > + op-sink-microwatt = <2600000>; > > + source-pdos = > + PDO_FIXED_SUSPEND | > > + PDO_FIXED_USB_COMM | > > + PDO_FIXED_DATA_SWAP | > > + PDO_FIXED_DUAL_ROLE)>; > > + sink-pdos = > + PDO_FIXED_USB_COMM | > > + PDO_FIXED_DATA_SWAP | > > + PDO_FIXED_DUAL_ROLE) > > + PDO_FIXED(9000, 2000, 0)>; > > + }; > > + }; > > + }; > > +... > > -- > > 2.28.0.709.gb0816b6eb0-goog > >