From patchwork Mon May 7 15:18:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10384361 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 48EA460159 for ; Mon, 7 May 2018 15:24:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4056324603 for ; Mon, 7 May 2018 15:24:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 306352886B; Mon, 7 May 2018 15:24:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 97E1D24603 for ; Mon, 7 May 2018 15:24:01 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xLy73PZ6gunFm+6LQJwfEr3+2hpER+IUbzMDkFgv678=; b=Ij4XvW85rvsQH/ji5ulS8DiMiY xxSafjmRMTOCreXv8Yihly7Zf0OufZiMp7ihB53EDyAxM2wePd7LrEgWNg1TUFi9c0NEGFXmd4Pjf b5vQVANKEL3XOlW+kIi0Xnh/+F3bfSlPWp9DQfyM2VP67LWNixuEldsUulSCgHg/XSli/Xq1XWS5C 8QtNYrLEtX0jFsdY4JPCfhSCEcJx8b4gx8GnPJQtUuqxkNdbWgCj96cLblgWN7sNDSZjUXA0IC1i/ Nx1DB8oI62dQOEzthPaYUTuLlNkC5jClAIC6c6qCIw8Vdc5S0MhukkATNGEccmsteBjv/p5H5dYoi aRGdQV7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFhzU-0004YX-Hl; Mon, 07 May 2018 15:23:52 +0000 Received: from black.maple.relay.mailchannels.net ([23.83.214.19]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFhzB-0004L9-Ln for linux-arm-kernel@lists.infradead.org; Mon, 07 May 2018 15:23:47 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C8A595E1803; Mon, 7 May 2018 15:23:14 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.25.18]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id B88675E1144; Mon, 7 May 2018 15:23:13 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.19.59.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.14.1); Mon, 07 May 2018 15:23:14 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Shade-White: 3b6bf85d69c3075f_1525706594654_4097941693 X-MC-Loop-Signature: 1525706594654:2646923118 X-MC-Ingress-Time: 1525706594653 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 8E4884FF4D; Mon, 7 May 2018 15:22:05 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Greg Kroah-Hartman , Kishon Vijay Abraham I , Felipe Balbi Subject: [PATCH 2/5] dt-bindings: usb: add binding for the DWC3 controller on Allwinner SoC Date: Mon, 7 May 2018 23:18:14 +0800 Message-Id: <20180507151817.55663-3-icenowy@aosc.io> In-Reply-To: <20180507151817.55663-1-icenowy@aosc.io> References: <20180507151817.55663-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180507_082333_908392_557CFC95 X-CRM114-Status: GOOD ( 17.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Allwinner H6 SoC uses DWC3 controller for USB3. Add its device tree binding document. Signed-off-by: Icenowy Zheng --- .../bindings/usb/allwinner,dwc3.txt | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/allwinner,dwc3.txt diff --git a/Documentation/devicetree/bindings/usb/allwinner,dwc3.txt b/Documentation/devicetree/bindings/usb/allwinner,dwc3.txt new file mode 100644 index 000000000000..3f7714636785 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/allwinner,dwc3.txt @@ -0,0 +1,39 @@ +Allwinner SuperSpeed DWC3 USB SoC controller + +Required properties: +- compatible: should contain "allwinner,sun50i-h6-dwc3" for H6 SoC +- clocks: A list of phandle + clock-specifier pairs for the + clocks listed in clock-names +- clock-names: Should contain the following: + "bus" The bus clock of the DWC3 part +- resets: A list of phandle + reset-specifier pairs for the + resets listed in reset-names +- reset-names: Should contain the following: + "bus" The bus reset of the DWC3 part + +Required child node: +A child node must exist to represent the core DWC3 IP block. The name of +the node is not important. The content of the node is defined in dwc3.txt. + +Phy documentation is provided in the following places: +Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt + +Example device nodes: + usb3: usb@5200000 { + compatible = "allwinner,sun50i-h6-dwc3"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clocks = <&ccu CLK_BUS_XHCI>; + clock-names = "bus"; + resets = <&ccu RST_BUS_XHCI>; + reset-names = "bus"; + + dwc3: dwc3 { + compatible = "snps,dwc3"; + reg = <0x5200000 0x10000>; + interrupts = ; + phys = <&usb3phy>; + phy-names = "usb3-phy"; + }; + };