Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp717861ybf; Wed, 26 Feb 2020 21:52:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyT7DYWCGQ9GemtYq0jMSJzFSZQzibNnvAAwHiWYFYXpE9VGoj2f0giS5q+wC5JYX23QaCf X-Received: by 2002:a9d:6c55:: with SMTP id g21mr2027329otq.264.1582782773303; Wed, 26 Feb 2020 21:52:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582782773; cv=none; d=google.com; s=arc-20160816; b=BqygSfiMw/kCkm1FcVwVceAK+TpUJfDrLR3R7YMkpsRr2+SMY5BtjAGXvIQrSAxwmX zCz3kWfZ/7c6ae96bJjNK9KSQvIQggSZqFKcFRo7/6mSQQLiqg2VqjRIGdVpmSKPNj5b mKdAVNhUtHJAM/KT8t+GrZemtnwZqvE0fZUU93C7FDs7UV32Ufhy7mWKzUjauE4t+QbT SL4CmwWZ06A9XI94CK+lKlnKMh/zOQyMxlnTM2894MtghJGten8+cIMIDZuRUsGT82tc AMvZJd2UspBtyDVJXNsQrCpwJPqthiVaEB8y6hZ+hNmzVN5iEU9alVghuct80CK3cbp6 vQ/A== 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=sZQu+WBBvLP640mqKaU+qwV+X4smFrhhy0xX3FBTYWc=; b=ee9M3Z31zEhrGJ3/EY3Lg1rdkhZ/ofJaMr2xAbKy5urZBxXOIaVRgE/7xdpXKsNEJB sFqdn3+CbsgbhKz2H3Gt2pK1Usa6UXDq5gXoePyUQLVP+WozlIu6RA7cY4F434fxh7mV LELUCvtDIXPd88qz8uz+DJqjzigrUgZNrA1N0+hm/3wtK9jzfrF2f20dcUcbyHL6s/eI WmxH7R8k/yKJGDs4xCz/t5I5PH8GFTVEgEl6fmCfG2GiiLxdHOoLsoGdHju+FMDx4jvL Xr9ZfNzCNY1VMk+18e+NoBKdCLLzmrqgmNGUQEfwymGz3MJV+54CyuICSVO6smWLr5NN lFpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=lShIY13V; 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 f17si915632otq.96.2020.02.26.21.52.39; Wed, 26 Feb 2020 21:52:53 -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=@jms.id.au header.s=google header.b=lShIY13V; 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 S1726378AbgB0Fw1 (ORCPT + 99 others); Thu, 27 Feb 2020 00:52:27 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:39512 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgB0Fw1 (ORCPT ); Thu, 27 Feb 2020 00:52:27 -0500 Received: by mail-qv1-f68.google.com with SMTP id y8so1006507qvk.6; Wed, 26 Feb 2020 21:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sZQu+WBBvLP640mqKaU+qwV+X4smFrhhy0xX3FBTYWc=; b=lShIY13VzpvHtTzPD6VrWaYV6473ZNIIuGmSg6PtSGvQ+II/6GxiDCcX538DTWsUgQ sK0OOHwsYSLXqHQKkImNQ0CS09g2Pg2VezCrhHNnqEMZkoOLtV/p30D+MDGZeivvop1b cRvcb+He1yh0TWeC3qySOQ0/O3n7jsDvRiZAs= 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=sZQu+WBBvLP640mqKaU+qwV+X4smFrhhy0xX3FBTYWc=; b=aT73ohXB5tlYWku/hq0xf4OFre0o79UxSdk+lC/t6PQNxuKK50TfSwTr3afXQsygtX C1F/icjWCvUmLLYaukRnOrIqZ5VoPfPjb5u/Znh0zl0N91/d1nBa6fmWnODbXgaKUQnw ViA70spLKS90HQpJNXXrT+frKs0yRnKyvuf+JF7++mqgbw1KNK8Hnk9strPPMH4lWd7h Dy4FSL3oQOU4EeDTj/GZCBcOU2QTj04MyWBapaIwiN8vOZSQzEzMoUrB9uy0hZXU6/MH 9ZzYogE+I4dU4OcIzznxnwiT6sh+b2luSfgjVRpLKgtxxO6D3OERj11mx04Em/IlQfWZ /rTA== X-Gm-Message-State: APjAAAUtOq9Zv44JnUX9rnm+U0pItTYNV/KlY5LlLoSwXDAOhYz+DmUW CZtbM7yB97V99Mbe2ApKGFBgFt+ktMnF7FTP6WU= X-Received: by 2002:a0c:f6cd:: with SMTP id d13mr3059012qvo.20.1582782744480; Wed, 26 Feb 2020 21:52:24 -0800 (PST) MIME-Version: 1.0 References: <20200226230346.672-1-rentao.bupt@gmail.com> <20200226230346.672-8-rentao.bupt@gmail.com> In-Reply-To: <20200226230346.672-8-rentao.bupt@gmail.com> From: Joel Stanley Date: Thu, 27 Feb 2020 05:52:12 +0000 Message-ID: Subject: Re: [PATCH v4 7/7] dt-bindings: usb: add documentation for aspeed usb-vhub To: Tao Ren Cc: Felipe Balbi , Greg Kroah-Hartman , Andrew Jeffery , Benjamin Herrenschmidt , Chunfeng Yun , Colin Ian King , Stephen Boyd , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, Linux ARM , linux-aspeed , devicetree , Linux Kernel Mailing List , OpenBMC Maillist , Tao Ren 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, 26 Feb 2020 at 23:04, wrote: > > From: Tao Ren > > Add device tree binding documentation for aspeed usb-vhub driver. A nitpick: the bindings are supposed to describe hardware, so we would say this patch adds documentation for the hardware > > Signed-off-by: Tao Ren Reviewed-by: Joel Stanley > --- > 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 > + > +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>; > + }; > -- > 2.17.1 >