From patchwork Sun Jul 22 05:57:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10539151 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 09B56112B for ; Sun, 22 Jul 2018 05:58:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBFF827165 for ; Sun, 22 Jul 2018 05:58:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFAC527853; Sun, 22 Jul 2018 05:58:51 +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 997B527165 for ; Sun, 22 Jul 2018 05:58:51 +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=RcV5V5Wzy0LTvEBA5jE96EbVdiW0d5kyOQi2mon72tY=; b=i/u G/KlN4LL7qk3eQ9mTZWkKxG1n3Jla0fSoH+h+KvYghkrwOXLE5616p/WELObD0bJ6GS8ekRmdd/UQ BvV33fc0RIy6aFpV5ozbqfK5CQVjpgJ45sGhGpIBxCJAcFZRLexYD5TLXf87YQRSGf9ABSlcDF8tL SyfVEY69DHH40cqOjHsD05weFwGSRWunyG20hK03xpBGy5nnN06q8S5ie1ff9O8L8veS5rxzTXh/y AyjbRj/hmkSAd4px/hUhu9og8oyVp/S2ikLjlSCWsWvPeu3PMSHr5svcomz2gc30QBQbhmIMT7p3F cDlV2YtxXO2WyCmvHbcFY4nkn7emuHA==; 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 1fh7OK-0002mP-V2; Sun, 22 Jul 2018 05:58:48 +0000 Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fh7OC-0002Uz-8s for linux-arm-kernel@lists.infradead.org; Sun, 22 Jul 2018 05:58: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 B9E3D5E1585; Sun, 22 Jul 2018 05:58:24 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.19.68]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id 08D4D5E154E; Sun, 22 Jul 2018 05:58:23 +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.1); Sun, 22 Jul 2018 05:58:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Power-Shelf: 7db0e66916337101_1532239104627_1612894946 X-MC-Loop-Signature: 1532239104627:4241000053 X-MC-Ingress-Time: 1532239104626 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 11CEA9F163; Sun, 22 Jul 2018 05:58:15 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Kishon Vijay Abraham I Subject: [PATCH v3 0/9] Allwinner H6 USB support Date: Sun, 22 Jul 2018 13:57:30 +0800 Message-Id: <20180722055739.26464-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180721_225840_916497_17B8F743 X-CRM114-Status: GOOD ( 16.29 ) 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. This revision adds the USB2 support, and places it before the USB3 support. So only the USB3 part will have changelog in this revision. The first 5 PATCHes are the USB2 part, and the latter 4 PATCHes are the USB3 part. PATCH 1, 2, 6, 7 should go through the PHY tree, and the remaining patches should go through the armsoc tree via sunxi tree. Icenowy Zheng (9): 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 .../bindings/phy/sun50i-usb3-phy.txt | 24 +++ .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 46 +++++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 113 ++++++++++ drivers/phy/allwinner/Kconfig | 13 ++ drivers/phy/allwinner/Makefile | 1 + drivers/phy/allwinner/phy-sun4i-usb.c | 26 ++- drivers/phy/allwinner/phy-sun50i-usb3.c | 194 ++++++++++++++++++ 7 files changed, 415 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt create mode 100644 drivers/phy/allwinner/phy-sun50i-usb3.c