From patchwork Wed Aug 22 03:50:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 10572585 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 E02F5112E for ; Wed, 22 Aug 2018 03:51:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D71952B36D for ; Wed, 22 Aug 2018 03:51:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D56772B33A; Wed, 22 Aug 2018 03:51: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,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 449EB2B406 for ; Wed, 22 Aug 2018 03:51:02 +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=1+IQacqdzuc4aCKK9/6lV4N/RmFvQ5bIUobc3Ny2i4Y=; b=NYo EDNmwTcEN98jg75I0dahw7527MUOHx7xfppd1Hf6TalbzpbcpeB0fsLkPd2iRxucgzDiE12hSVtwF P6jSBnJumuz8F6tH1OOZy/4CruuP9HvDF3M8fQNEfBsC0FyDLCB57ngycRQaChg80VtM7htrj+C/8 102YprzQZCCgd0Qz3+XPciP7v6O+Cad27W0uXF4MsJ79q+rR8afE3N4cIyvdV1PZ8X3H2EsZ3MDBX ypUx+v17f2qw+AKJYG66f0BtM8m5EC4NwOSL4bYmcEMT7zk5vk6QqYBOfmuF/qZRREyTqmMm5D6ML Ztycatx3hKqU3UJpQUnSLSE3NQV/A9w==; 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 1fsKAe-0004je-MP; Wed, 22 Aug 2018 03:51:00 +0000 Received: from mx.socionext.com ([202.248.49.38]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsKAT-0004ZY-Af for linux-arm-kernel@lists.infradead.org; Wed, 22 Aug 2018 03:50:51 +0000 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Aug 2018 12:50:35 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 10CAA600AA; Wed, 22 Aug 2018 12:50:35 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 12:50:34 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 627761A04D8; Wed, 22 Aug 2018 12:50:34 +0900 (JST) From: Kunihiko Hayashi To: Kishon Vijay Abraham I , Rob Herring , Mark Rutland , Masahiro Yamada Subject: [PATCH v3 0/4] phy: socionext: add new UniPhier USB PHY driver support Date: Wed, 22 Aug 2018 12:50:30 +0900 Message-Id: <1534909834-16754-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180821_205049_490686_BFF3A47A X-CRM114-Status: GOOD ( 18.32 ) 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, Kunihiko Hayashi , Masami Hiramatsu , linux-kernel@vger.kernel.org, Jassi Brar , linux-arm-kernel@lists.infradead.org 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 series adds support for PHY interface built into USB controller implemented in Socionext UniPhier SoCs. The USB3 PHY driver supports High-Speed PHY and Super-Speed PHY included in the USB3 glue layer, and the USB2 PHY driver supports High-Speed PHY integrated into system controller. Changes since v2: - rewrite a header with style that other phy drivers use - replace return value of probe functions with PTR_ERR_OR_ZERO() - fix typo of register offset macros Changes since v1: - rewrite a header with C++ comment style - dt-bindings: separate a document for ssphy and hsphy - dt-bindings: sort clock-names and reset-names to begin with "phy" - dt-bindings: use vbus-supply instead of phy-supply, because vbus isn't for phy, but vbus is tied to the port that corresponds to each phy [1] - stop using phy_power and add own .power_on and .power_off functions to control clk/reset for phy and vbus regulator - separate clk_get() and reset_control_get() for each clk/reset and remove arrays of clock_names and reset_names - remove phy-parameters that are the same as power-on values - remove functions to set phy-parameters for legacy SoCs - express phy-parameters by using macros including the number of the register and its bitfield (msb and lsb) [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-July/593279.html Kunihiko Hayashi (4): dt-bindings: phy: add DT bindings for UniPhier USB3 PHY driver phy: socionext: add USB3 PHY driver for UniPhier SoC dt-bindings: phy: add DT bindings for UniPhier USB2 PHY driver phy: socionext: add USB2 PHY driver for UniPhier SoC .../devicetree/bindings/phy/uniphier-usb2-phy.txt | 45 +++ .../bindings/phy/uniphier-usb3-hsphy.txt | 69 ++++ .../bindings/phy/uniphier-usb3-ssphy.txt | 57 +++ drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/socionext/Kconfig | 25 ++ drivers/phy/socionext/Makefile | 7 + drivers/phy/socionext/phy-uniphier-usb2.c | 244 ++++++++++++ drivers/phy/socionext/phy-uniphier-usb3hs.c | 422 +++++++++++++++++++++ drivers/phy/socionext/phy-uniphier-usb3ss.c | 349 +++++++++++++++++ 10 files changed, 1220 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/uniphier-usb2-phy.txt create mode 100644 Documentation/devicetree/bindings/phy/uniphier-usb3-hsphy.txt create mode 100644 Documentation/devicetree/bindings/phy/uniphier-usb3-ssphy.txt create mode 100644 drivers/phy/socionext/Kconfig create mode 100644 drivers/phy/socionext/Makefile create mode 100644 drivers/phy/socionext/phy-uniphier-usb2.c create mode 100644 drivers/phy/socionext/phy-uniphier-usb3hs.c create mode 100644 drivers/phy/socionext/phy-uniphier-usb3ss.c