Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp635763ybf; Wed, 26 Feb 2020 20:05:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyH+sXdWHzofDsCk4qEBCMYpHaNek6zSgnaNqp8nO48kqo524yNReGZRLeCuHsCKAx41R62 X-Received: by 2002:aca:55cc:: with SMTP id j195mr1912094oib.22.1582776338764; Wed, 26 Feb 2020 20:05:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582776338; cv=none; d=google.com; s=arc-20160816; b=VbaMAtnTeWsl+eC5hmXz969mN6Y4Ipc4lvO6gNQdOQPgHBujc3g+3/EOYzXgbpEGug NJBb+8jiPYt+7CBrC2pd9pXykN1SOZGkDYmcbWT+G3LZHY6tazWD5zjjmjFIk7X3rv9C 97OHxqEoXKYzQBQdz/l7GtPdmzUh+uhfrsGiHMbptj+xpj/3tIO9AftLnS7G0tM/9nf+ YBfNgLXxohov6XAFkQJ1C0c72Ejw7tf6+Kj6ZJ2lz+OTEZus+nqKgG1Hwh1/YQ68ND1E FoWVjM+HZk+HH8oR/4ptPG2oBDtAxQVExpAt1Y5k8vblb9200c15BAN1CO6oZVw6k77a 9Vzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id; bh=rkCNcsugQzrHmsxCkY5i9C5aTWZdCEVHnMNuAKUdGAY=; b=hOnx0aAau5zC7ct54xbOb20lZG/EiXPVQsna5NABIjdaGUCEdklK1wwYoIwTo0VNAL CWtGsCLdSrLeUhFgcKRqP3dNsY8akCn4e8C6yEMAvwEcEYQGM8wFeJ7tohREnNSuZqsN 19UYoEWbZSvW2k4zyJ9ulPtdvunAau4A+reO02upSyxWFLIPFQk6Arr2XzyYNVVRaJQ3 8H7+UctEB81smF5j1yH18O7BoLYRVFFYY1knul6miNm14skvYOPs3+90J5+ds/4MQgMJ M3d5/ptYNKxbY118BHubpECGMzSz4OM2KoGH4ngi7vq8PnMIhwyT5AWaEv7a76vEDjYS XZ+A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si676285oie.96.2020.02.26.20.05.26; Wed, 26 Feb 2020 20:05:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728344AbgB0EFG (ORCPT + 99 others); Wed, 26 Feb 2020 23:05:06 -0500 Received: from kernel.crashing.org ([76.164.61.194]:36516 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728284AbgB0EFG (ORCPT ); Wed, 26 Feb 2020 23:05:06 -0500 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 01R44L0D022388 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 26 Feb 2020 22:04:24 -0600 Message-ID: <26dccd7310f07c6dfe322ba0ea5dd1a980007563.camel@kernel.crashing.org> Subject: Re: [PATCH v4 7/7] dt-bindings: usb: add documentation for aspeed usb-vhub From: Benjamin Herrenschmidt To: rentao.bupt@gmail.com, Felipe Balbi , Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery , Chunfeng Yun , Colin Ian King , Stephen Boyd , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Date: Thu, 27 Feb 2020 15:04:20 +1100 In-Reply-To: <20200226230346.672-8-rentao.bupt@gmail.com> References: <20200226230346.672-1-rentao.bupt@gmail.com> <20200226230346.672-8-rentao.bupt@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-02-26 at 15:03 -0800, rentao.bupt@gmail.com wrote: > From: Tao Ren > > Add device tree binding documentation for aspeed usb-vhub driver. > > Signed-off-by: Tao Ren > --- > No change in v2/v3/v4: > - the patch is added to the patch series since v4. > > .../bindings/usb/aspeed,usb-vhub.yaml | 71 +++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml > > diff --git a/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml b/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml > new file mode 100644 > index 000000000000..6ebae46641e5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: GPL-2.0-or-later > +# Copyright (c) 2020 Facebook Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/aspeed,usb-vhub.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ASPEED USB 2.0 Virtual Hub Controller > + > +maintainers: > + - Felipe Balbi Actually I mantain that one, so make this Benjamin Herrenschmidt < benh@kernel.crashing.org>. Felipe is the overall maintainer of the USB gadget subsystem afaik. > +description: |+ > + The ASPEED USB 2.0 Virtual Hub Controller implements 1 set of USB Hub > + register and several sets of Device and Endpoint registers to support > + the Virtual Hub's downstream USB devices. > + > + Supported number of devices and endpoints vary depending on hardware > + revisions. AST2400 and AST2500 Virtual Hub supports 5 downstream devices > + and 15 generic endpoints, while AST2600 Virtual Hub supports 7 downstream > + devices and 21 generic endpoints. > + > +properties: > + compatible: > + enum: > + - aspeed,ast2400-usb-vhub > + - aspeed,ast2500-usb-vhub > + - aspeed,ast2600-usb-vhub > + > + reg: > + maxItems: 1 > + description: Common configuration registers > + > + clocks: > + maxItems: 1 > + description: The Virtual Hub Controller clock gate > + > + interrupts: > + maxItems: 1 > + > + aspeed,vhub-downstream-ports: > + description: Number of downstream ports supported by the Virtual Hub > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + > + aspeed,vhub-generic-endpoints: > + description: Number of generic endpoints supported by the Virtual Hub > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + > +required: > + - compatible > + - reg > + - clocks > + - interrupts > + - aspeed,vhub-downstream-ports > + - aspeed,vhub-generic-endpoints > + > +additionalProperties: false > + > +examples: > + - | > + #include > + vhub: usb-vhub@1e6a0000 { > + compatible = "aspeed,ast2500-usb-vhub"; > + reg = <0x1e6a0000 0x300>; > + interrupts = <5>; > + clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_usb2ad_default>; > + };