From patchwork Thu Oct 4 12:28:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10626067 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DB01A17E0 for ; Thu, 4 Oct 2018 12:29:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C941428B03 for ; Thu, 4 Oct 2018 12:29:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD0D028B12; Thu, 4 Oct 2018 12:29:46 +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,RCVD_IN_DNSWL_NONE 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 5836228B03 for ; Thu, 4 Oct 2018 12:29:46 +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: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:In-Reply-To: References:List-Owner; bh=XBHCQyna91pjNKT0vkAfuhbG2UD/FQlFDVrTYsBUHck=; b=lAd 816RY5wnPnYOfTYSFtHzEuoqNwx7nxIQbcpqGReoPgeYxhWR0TBjv+bS2wGHUS91Y5N/iMhSTFPub b4JBE+sfOwykhXi1tgfOVUChVn/5FRgJ3xJ7nUyYlSUuL3AS2OkLQWJOl3YeZavBLAY3+Z6lZSM1Z cgW9xSTNqIXa0LMUwwSMbKeuiISLNt6EB/zySfw3glWRlAOtxlrIDFImYGCn8ee8YGsfJwLjovV5m aeldqeh8ac7fPSUPYEHstMVVNqzcT1JvFWy37mHPj8HYUvHaHIHV1M4RvlGvQEm8N7jTY6jABpvNd WtyWatIPjXDf5069Hw/lKVxazmyx+fw==; 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 1g82lA-0002Sb-IS; Thu, 04 Oct 2018 12:29:40 +0000 Received: from fossa.birch.relay.mailchannels.net ([23.83.209.62]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g82l6-0002RB-OI for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 12:29:38 +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 7E3955C2C8B; Thu, 4 Oct 2018 12:29:17 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.35.77]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id 99C4C5C2A5C; Thu, 4 Oct 2018 12:29:16 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [199.195.250.187]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Thu, 04 Oct 2018 12:29:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Blushing-Plucky: 501a878e7f1e129c_1538656157248_2426828780 X-MC-Loop-Signature: 1538656157248:2515528869 X-MC-Ingress-Time: 1538656157246 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id BD06E6687F; Thu, 4 Oct 2018 12:29:11 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Kishon Vijay Abraham I Subject: [PATCH v4 00/10] Allwinner H6 USB support Date: Thu, 4 Oct 2018 20:28:45 +0800 Message-Id: <20181004122855.22981-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_052936_919268_391F26BB X-CRM114-Status: GOOD ( 16.03 ) 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-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, 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 This patchset introduces support for the USB ports (both USB2 and USB3) on the Allwinner H6 SoC. The first 6 PATCHes are the USB2 part, and the latter 4 PATCHes are the USB3 part. PATCH 1, 2, 3, 7, 8 should go through the PHY tree, and the remaining patches should go through the armsoc tree via sunxi tree. Icenowy Zheng (10): dt-bindings: phy: add binding for Allwinner H6 USB2 PHY phy: sun4i-usb: add support for missing USB PHY index phy: sun4i-usb: add support for H6 USB2 PHY arm64: allwinner: dts: h6: add USB2-related device nodes arm64: allwinner: dts: h6: add USB Vbus regulator arm64: allwinner: dts: h6: enable USB2 on Pine H64 dt-bindings: phy: add binding for Allwinner USB3 PHY phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC arm64: allwinner: dts: h6: add USB3 device nodes arm64: allwinner: dts: h6: enable USB3 port on Pine H64 .../devicetree/bindings/phy/sun4i-usb-phy.txt | 8 +- .../bindings/phy/sun50i-usb3-phy.txt | 23 ++ .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 46 ++++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 113 +++++++++ drivers/phy/allwinner/Kconfig | 12 + drivers/phy/allwinner/Makefile | 1 + drivers/phy/allwinner/phy-sun4i-usb.c | 26 +- drivers/phy/allwinner/phy-sun50i-usb3.c | 239 ++++++++++++++++++ 8 files changed, 463 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt create mode 100644 drivers/phy/allwinner/phy-sun50i-usb3.c Tested-by: Chen-Yu Tsai