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: 978835 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aosc.io Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42QsdT6Kz6z9s55 for ; Thu, 4 Oct 2018 22:29:17 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727586AbeJDTWU (ORCPT ); Thu, 4 Oct 2018 15:22:20 -0400 Received: from hermes.aosc.io ([199.195.250.187]:43902 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727369AbeJDTWU (ORCPT ); Thu, 4 Oct 2018 15:22:20 -0400 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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