Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6116938ybf; Thu, 5 Mar 2020 13:29:48 -0800 (PST) X-Google-Smtp-Source: ADFU+vukqHemWQUNvZkTY3+izIJSu71syibY8U8ydms6kx0mXWjDPrZCzqnimt+KWcwl/uFixc+W X-Received: by 2002:a9d:3f8:: with SMTP id f111mr449324otf.204.1583443788509; Thu, 05 Mar 2020 13:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583443788; cv=none; d=google.com; s=arc-20160816; b=KVipDMtXqkQvL0BQYKHEPUabVOii0ARWtd1XgJmZYSQoHJpRHjRUj4fI/lcc7lnuW6 RHpkct/VaOxwvDQytHns7QV38hX4bOf41QEdyvLk1EFv/WanOGNNyA24ZeTUde3SRk4/ xPiuvmq7Tc7oC+tfSQ0yyEGCnd0lrdkiw254Bd6lhrROdjcGUuDDLyQZGiJ/T1Sa8NYf lYar8xDyHY0/FSAXwxf6GRoQs7XZXdSgmWdTWf+HgAPlHePRNHE1FUYKzHOkgm0ADqGP 6nacX0CR+DY/U9wYrh1Jk4bO6RKiKood9UQyj35vQg+XRnfiUy/Vj3I6ay5CGathnILe hkmA== 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=kiyOiY8L43L1PTzxI8mT5mscgDkdosUXSVseUyk+R6E=; b=iE3SK/TBEdbktMF46uWfEDtEeTUnskQBk7z18dRzJWVLSt77S1e1DJvEP048S7LMEY h/JTokDV6ZB9GRPzCuch/BpYesl07uZSldhO6jD5em47yA8WbMQ1hmYoMjtjwvolJVeB gX8jdDvsvXnWI3tCaHMYOgp5hFE3C9OJDXZ45g7E23FeHdeBv7i1AjFCxjCu6dH3KJTU wPfHcLgPkSB4tsEIYUIQzLqGyp2IBjte2H3HKE9rhz1/zM7tmBBs5rFDYuhbYvgmSyBU W/4VnBXWL9pfLe1TwsKquGszXomd872AR0iT9MZ/hhMUjme9Z2VSJ6Nl3Sv8Ulb8/L6C tFXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ShPPP/LC"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p184si143303oic.39.2020.03.05.13.29.37; Thu, 05 Mar 2020 13:29:48 -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=@kernel.org header.s=default header.b="ShPPP/LC"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726191AbgCEV3P (ORCPT + 99 others); Thu, 5 Mar 2020 16:29:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:38958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgCEV3O (ORCPT ); Thu, 5 Mar 2020 16:29:14 -0500 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8060320728; Thu, 5 Mar 2020 21:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583443753; bh=oh2OwQ/0TeiUDxPSSCXzSpj5KXTo4xNzQh97uu6obDw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ShPPP/LC/9bbpx0NGMJcdAFDkRwBAzI7UfIQOCBK8FtcyFOSbnL/mhxhTlVpfidtd EvjOk7ZmKbTjpeiu0mssyqZbGbuNOyuZOarr3k45UTaN8MfINS7v78/9gFpPJjxGIp 9halWgIRS2l82IX8m+dus45MdaiO013SnmlnTbag= Received: by mail-qk1-f169.google.com with SMTP id j7so333177qkd.5; Thu, 05 Mar 2020 13:29:13 -0800 (PST) X-Gm-Message-State: ANhLgQ37JJZhXZ8aPh05YSSI7QTZb/FNSLF6I/rIAiKMDjHF/vNC9g1K fo/I5zEjrJxrXmo7uxss0Mhfb+/18UR8nlBJIQ== X-Received: by 2002:a37:393:: with SMTP id 141mr9930qkd.393.1583443752527; Thu, 05 Mar 2020 13:29:12 -0800 (PST) MIME-Version: 1.0 References: <20200305030135.210675-1-pmalani@chromium.org> In-Reply-To: <20200305030135.210675-1-pmalani@chromium.org> From: Rob Herring Date: Thu, 5 Mar 2020 15:29:00 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] dt-bindings: Convert usb-connector to YAML format. To: Prashant Malani Cc: devicetree@vger.kernel.org, Benson Leung , Stephen Boyd , Heikki Krogerus , Enric Balletbo i Serra , "Bryan O'Donoghue" , Chunfeng Yun , Greg Kroah-Hartman , Linus Walleij , "moderated list:ARM/Mediatek SoC support" , open list , "moderated list:ARM/Mediatek SoC support" , "open list:USB SUBSYSTEM" , Mark Rutland , Matthias Brugger , Miquel Raynal 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 Wed, Mar 4, 2020 at 9:01 PM Prashant Malani wrote: > > Convert the usb-connector.txt bindings file to YAML format. This allows > it to be used in dt_bindings_check verification. This patch was > born out of a patch series for the addition of a Type C connector > class port driver[1]. > > An attempt has been made to maintain the same documentation text and > example structure as was in the .txt file, but wherever needed > modifications have been made to satisfy dt_bindings_check. > > Also, update all references to usb-connector.txt to now use > usb-connector.yaml. > > [1]: https://lkml.org/lkml/2020/2/19/1232 > > Signed-off-by: Prashant Malani > --- > > Changes in v2: > - Added type references for some properties. > - Removed pinctrl properties. > - Updated power-role, try-power-role and data-role properties to be in > valid schema format. > - Added OF graph data bus binding property according to reviewer > suggestions. > > .../connector/samsung,usb-connector-11pin.txt | 2 +- > .../bindings/connector/usb-connector.txt | 135 ------------ > .../bindings/connector/usb-connector.yaml | 203 ++++++++++++++++++ > .../devicetree/bindings/usb/fcs,fusb302.txt | 2 +- > .../devicetree/bindings/usb/generic.txt | 2 +- > .../devicetree/bindings/usb/mediatek,mtu3.txt | 2 +- > .../devicetree/bindings/usb/mediatek,musb.txt | 2 +- > .../bindings/usb/richtek,rt1711h.txt | 2 +- > .../devicetree/bindings/usb/ti,hd3ss3220.txt | 2 +- > .../devicetree/bindings/usb/typec-tcpci.txt | 2 +- > .../devicetree/bindings/usb/usb-conn-gpio.txt | 4 +- > 11 files changed, 213 insertions(+), 145 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/connector/usb-connector.txt > create mode 100644 Documentation/devicetree/bindings/connector/usb-connector.yaml > diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml > new file mode 100644 > index 0000000000000..b386e2880405c > --- /dev/null > +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml > @@ -0,0 +1,203 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/connector/usb-connector.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: USB Connector > + > +maintainers: > + - linux-usb@vger.kernel.org Person please. You can put me if no one else. > +description: > + A USB connector node represents a physical USB connector. It should be a child > + of a USB interface controller. > + > +properties: > + compatible: > + enum: > + - usb-a-connector > + - usb-b-connector > + - usb-c-connector > + > + label: > + description: Symbolic name for the connector. > + > + type: > + description: Size of the connector, should be specified in case of USB-A, > + USB-B non-fullsize connectors. > + $ref: /schemas/types.yaml#definitions/string Needs to be under an 'allOf' or the enum is ignored. Rob