From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 475FAC3F2D7 for ; Mon, 2 Mar 2020 23:47:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C68724677 for ; Mon, 2 Mar 2020 23:47:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="q9J1E8iC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C68724677 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DFJosqstDPJCwunbEkbUeUhxYJqMPXydv+jdc8BfTAo=; b=q9J1E8iCeBcdTV cv8fZdi6dhkvIrgyW20TXxOeKny3VNBNqDoAwGvFFr44AM+aLzRIGANMiU8IoF4V7P0Ru/khvdbsg GYVkVMGxopT1JiNmazjHhlUGpXYCVgr013CGHriBARWlIPXWzJ/DXjZhvxVSUPN8q1jbUzi+LoNuW Z8iNbNwrkz6SVgoMOwlvaCC0tjeFjppiS3onnwgvtzcDGJh+03MByv9ATun2XREnMBowO74sI4jmD nih4HCNxjPObUSy/SEOoUi/+5Ctop+zg708+/JNXAax1woGFFo8r3e753+e7ND1/IA8yn61B3paTE Wl9QcrASpvu9dI+UoTZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8ums-00070I-Lj; Mon, 02 Mar 2020 23:47:50 +0000 Received: from mail-ot1-f66.google.com ([209.85.210.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8ump-0006zz-6R for linux-arm-kernel@lists.infradead.org; Mon, 02 Mar 2020 23:47:48 +0000 Received: by mail-ot1-f66.google.com with SMTP id v22so1144576otq.11 for ; Mon, 02 Mar 2020 15:47:47 -0800 (PST) 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=d/RkNcxyLqUX/+PgUpkEl7v2Jd0JMvdb/wExbaQt108=; b=UKoS5tCKs8rAbwMcHkgYrY3T4vMFPvnuhMn9kdFtJIYNbi5GrBuTmqK2M6W012rTTF +1/LmszoZZ+jQpJVTbu1W73M9tyqB0Vuyxm6C8ZSSUmp34+x5ey+W2naOk2jamfe6pPd RdnZ4dWBq0FhHWzOoCFwAMC8l6yUG5U7C0fJvBJqEYSYDxCVqwQt3asrsTttNEcNAilf TSD0OqJddzpfK+MgMCeC9L8seYUaHAvZDSJS2cc8I0Us3019hUx4uKYbNWBfmj2Z5lrG Onvv9xcuMnXctOgMdSrqilhWfdyl1c3A2rI/dmKdJG5HoeIewZHSdu73eKLfpYiB6FMk MFAQ== X-Gm-Message-State: ANhLgQ1yynA7axJUXl4TT3Cjj/CxnEGzoejbxVPTzlnllLryRwNQ2CDW 1nqQUs5DS/mGunHO3Kz7Tw== X-Google-Smtp-Source: ADFU+vuxpmnJMb8DOFdRXd1/mWLsgWVNrXdVa77SguBZ7LSbwMPbChW5+xbwnEeE1XzjzZTeiYahoQ== X-Received: by 2002:a9d:7509:: with SMTP id r9mr1274145otk.270.1583192866512; Mon, 02 Mar 2020 15:47:46 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m23sm3457031otq.37.2020.03.02.15.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 15:47:45 -0800 (PST) Received: (nullmailer pid 30642 invoked by uid 1000); Mon, 02 Mar 2020 23:47:44 -0000 Date: Mon, 2 Mar 2020 17:47:44 -0600 From: Rob Herring To: rentao.bupt@gmail.com Subject: Re: [PATCH v6 7/7] dt-bindings: usb: add documentation for aspeed usb-vhub Message-ID: <20200302234744.GA21778@bogus> References: <20200228020757.10513-1-rentao.bupt@gmail.com> <20200228020757.10513-8-rentao.bupt@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200228020757.10513-8-rentao.bupt@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200302_154747_239617_30676AE8 X-CRM114-Status: GOOD ( 20.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Felipe Balbi , linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, Andrew Jeffery , Benjamin Herrenschmidt , openbmc@lists.ozlabs.org, linux-usb@vger.kernel.org, taoren@fb.com, linux-kernel@vger.kernel.org, Stephen Boyd , Joel Stanley , Greg Kroah-Hartman , Chunfeng Yun , Colin Ian King , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Feb 27, 2020 at 06:07:57PM -0800, rentao.bupt@gmail.com wrote: > From: Tao Ren > > Add device tree binding documentation for the Aspeed USB 2.0 Virtual HUb > Controller. > > Signed-off-by: Tao Ren > Reviewed-by: Joel Stanley > --- > Changes in v6: > - added 2 required properties into example and passed "make > dt_binding_check". > Changes in v5: > - updated maintainer to Ben. > - refined patch description per Joel's suggestion. > No change in v2/v3/v4: > - the patch is added to the patch series since v4. > > .../bindings/usb/aspeed,usb-vhub.yaml | 73 +++++++++++++++++++ > 1 file changed, 73 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..b9f33310e9a2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: GPL-2.0-or-later Dual license new bindings please. (GPL-2.0-only OR BSD-2-Clause) > +# 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: > + - Benjamin Herrenschmidt > + > +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 If 'Common' means something specific to this block, then keep. Otherwise, you can drop ti. > + > + clocks: > + maxItems: 1 > + description: The Virtual Hub Controller clock gate Drop this. > + > + interrupts: > + maxItems: 1 > + > + aspeed,vhub-downstream-ports: > + description: Number of downstream ports supported by the Virtual Hub > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 Constraints? 'maximum: 5' ? default? > + > + aspeed,vhub-generic-endpoints: > + description: Number of generic endpoints supported by the Virtual Hub > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 Constraints? > + > +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>; > + aspeed,vhub-downstream-ports = <5>; > + aspeed,vhub-generic-endpoints = <15>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_usb2ad_default>; > + }; > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel