From patchwork Fri Apr 5 20:57:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10887845 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 39E771669 for ; Fri, 5 Apr 2019 20:58:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2006428B2D for ; Fri, 5 Apr 2019 20:58:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 138D028B4D; Fri, 5 Apr 2019 20:58:59 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 C46CB28B2D for ; Fri, 5 Apr 2019 20:58:58 +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=rLbCNB3AxNoYrcqhmjIIyVTREO6JjBSIx5kaFd/OvGo=; b=KPP Hk6haAMmmNCEUSr1liRXcbx77OKqS6qgtm62R3U/cQRiokRZ/mEhI2EJCo2nouEc+g41vW+6nAefk Gy30pZ2NrJ+YbhLWgFG6alOeoVZuI8ZU3642Z1Lk7ppDG54XDbv3BihEyAfmuTZvYYN8OjbjNe/ZY kRj4HsIzYe3hRjALZihERiMEg48AZ41g9kWwFNe+UQdy+dLv+kbBIEzl6OgrHUIjYk3okkTwlGuBv KqAfMdC8mZIuwcZkV91kCqh0ul+MsACmkljkGrUFyZrVu4kDa31MGyfyv/znRJLHIkR+0HR79kinx V5RZPMMdP/iwUodRxwdUjXQVWdsX9IQ==; 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 1hCVvH-0004aH-95; Fri, 05 Apr 2019 20:58:51 +0000 Received: from balrog.mythic-beasts.com ([2a00:1098:0:82:1000:0:2:1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCVue-0003fY-6T for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 20:58:15 +0000 Received: from [199.195.250.187] (port=55437 helo=hermes.aosc.io) by balrog.mythic-beasts.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hCVuV-0005cj-MJ; Fri, 05 Apr 2019 21:58:08 +0100 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 807F76CD37; Fri, 5 Apr 2019 20:57:46 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Kishon Vijay Abraham I , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v5 0/5] Allwinner H6 USB3 support Date: Sat, 6 Apr 2019 04:57:31 +0800 Message-Id: <20190405205736.55177-1-icenowy@aosc.io> X-BlackCat-Spam-Score: 9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190405_135812_503969_B03D09EA X-CRM114-Status: GOOD ( 12.85 ) 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 adds device tree binding and driver support for Allwinner H6 USB3 PHY. The controller is just a DWC3 controller from Synposys. Because of the suggest of Rob Herring, this revision uses the USB connector device tree binding, and enhanced it by adding Vbus supply property to it. Icenowy Zheng (5): dt-bindings: usb-connector: add Vbus regulator for Type-A/B 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/connector/usb-connector.txt | 3 + .../bindings/phy/sun50i-usb3-phy.txt | 28 ++ .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 13 + arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 32 +++ drivers/phy/allwinner/Kconfig | 12 + drivers/phy/allwinner/Makefile | 1 + drivers/phy/allwinner/phy-sun50i-usb3.c | 260 ++++++++++++++++++ 7 files changed, 349 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt create mode 100644 drivers/phy/allwinner/phy-sun50i-usb3.c