Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6147077ybf; Thu, 5 Mar 2020 14:11:03 -0800 (PST) X-Google-Smtp-Source: ADFU+vtRSybvNlNU31vQstfYyTuFCnsIJvnInNUC4Mvqfz9FOXIyYxj/8efUFpJCoHWAhIkiXU5+ X-Received: by 2002:a9d:6a43:: with SMTP id h3mr47060otn.55.1583446263690; Thu, 05 Mar 2020 14:11:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583446263; cv=none; d=google.com; s=arc-20160816; b=adq4rPkRxTN7/pCpZLXV7Y8cGybp20CMz7s/jolM/AsNR4tUTkzoSrOkQSDmijFtFi vSumeWS874QAczGzADsTSyEZ8lO62uBj/OskqvrfkH045wHIzIbXo7E21BWHmpiwOrP6 E2o0zLah7IS1QFrQzxrIkNloJ4a7YZQaFGjOJ73XxtUWOibYJE1C9uCT/H3rZ33anAs+ FTrTqP9GxhqoSi1yTNMxnpa0F+QJMyF3UiSn8K09nl583pUHjjoXtQrH69wx42UciQML yHyX8fAFuT3VvQNSgaMbx1bnlh5sDXZFuibp2bHprO3auKNhKJ5i/vqQXGb6WfbQKUvE CyHg== 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:dkim-signature; bh=wP8ZLcoVfjRLy2wd1F6p7whOnIttnSe9o981shhqduQ=; b=MAfty+Xzb7jZaQ0M4bRR5fnIMIufSldRYzJy4gZY3ABssLv+6xwjBbHnFAxo6pStfe XRzZ6OPYTusy3qviUt71kxtOUm2M9Olr0BLYSNroorPt2nhFoxhHlDwto/gv8NZNUgon MBQ8HIqVZCKSjUy0m3KVyTySidd1PahV3LwfgIk+6Y7EOS4xvUOVzouvatW6Rg47U/43 GDakIzpFHYVq085bn1pYOgaM8X5wOt6acrAZH4ri0rBeJIIyoBwnV50gbwQ4LAuV63wk nmBUF+qPpx/Ldl6RIVlzkLDsYPIdW1rRD61LmLV9MBlXL1Unrbeb9kRr0ioMzgrq21es +oBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EW642PHI; 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 j9si165122oiw.133.2020.03.05.14.10.51; Thu, 05 Mar 2020 14:11:03 -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=EW642PHI; 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 S1726173AbgCEWKT (ORCPT + 99 others); Thu, 5 Mar 2020 17:10:19 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40639 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbgCEWKT (ORCPT ); Thu, 5 Mar 2020 17:10:19 -0500 Received: by mail-pl1-f196.google.com with SMTP id y1so3221957plp.7 for ; Thu, 05 Mar 2020 14:10:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wP8ZLcoVfjRLy2wd1F6p7whOnIttnSe9o981shhqduQ=; b=EW642PHINIK0QQBXUVu9+0zYb98h6yXBQ6W1ECVmuPNBpv+xTNekh/mPEorDGkXbrP 8R/GZTy5gtZKaGotUgRHMrfabg8VJ1UKudix3XnEE4X0wo4xpwsNgzn259YyN7kdpphX +NkbZc+7O2mRuEKZocKBF4+CZJu68vbYYfirA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wP8ZLcoVfjRLy2wd1F6p7whOnIttnSe9o981shhqduQ=; b=ON0qglO8dONNgxKfagKWk6WMLEJlvRAv3L2LihJMeNRFZj4hbMlWc9R7zMmfPzL9KL ray+B4JCDA+RZTl/vnrfzX+i2q77K+PcmWt4P6qer0Um5QaAx4TgfWkBW3sTYj9gLFfA 04PPcw84Qwv8XW2mArUmrwkvfeTqSSrR7V61EioHTaI0bXaByHF6ytanUkjdQEHoyaWZ KxoYKDk/Eg/fdzDEJ6Ca+nDy2lyXKZkV0lYkOb33DnBQfehgD3S58PDzMXI74i5LNVOD IBWb7V/cVie0Mzb2a7a5RLvKtTHH+BarHKxX4uMGoUMdJM7P2NyCG1CYhO+YTc1AhBM7 NdqQ== X-Gm-Message-State: ANhLgQ3oVzJF6/6YxuXnMaVus31BzDvfy7Sek/mO3IhzKqRfMteraR1b 2YwjslwHsEvTqjTpwbwPNEiARg== X-Received: by 2002:a17:90a:9416:: with SMTP id r22mr293883pjo.2.1583446217711; Thu, 05 Mar 2020 14:10:17 -0800 (PST) Received: from google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id q9sm32286268pgs.89.2020.03.05.14.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 14:10:17 -0800 (PST) Date: Thu, 5 Mar 2020 14:10:16 -0800 From: Prashant Malani To: Rob Herring 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 Subject: Re: [PATCH v2] dt-bindings: Convert usb-connector to YAML format. Message-ID: <20200305221016.GE142502@google.com> References: <20200305030135.210675-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Kindly see inline. Thanks as always. On Thu, Mar 05, 2020 at 03:29:00PM -0600, Rob Herring wrote: > 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. > I will list you as the maintainer. > > +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. Done. > > Rob