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: 144797 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp253568ljw; Tue, 21 Aug 2018 20:50:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwtX4+eJWokmDMu69U9rlMthx/c7DGAgR9dNtoC9KSrq76oAdov2W47RkgRgDjOLPWlHsZ1 X-Received: by 2002:a63:6ce:: with SMTP id 197-v6mr22722433pgg.338.1534909841885; Tue, 21 Aug 2018 20:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534909841; cv=none; d=google.com; s=arc-20160816; b=ksGEGEHATQk1rbElDRp2yM/oF9tdX99R5BKIG9Rz+HvvNNOn2Hx4ZfSYxrJhR2QLke KU/y4hHQhskV0LIMyb/DKaqtLxm7HVkJmZ38cFcJaSTo0im9xD84VIz3Om+FGtdwJC+y vz7fcXUYzRSlZqU6W3v5t9jY5bSKEGzJS05Jqf3PhLlgM7tHZz1zHk1OJxqY6faSjmB+ YGfcjFnWrKN+IA2VNCJRRDjoqd8LVIyXcmKhY2hWI0/xvampY7hrNUQEvJuo40Gt6KJH I5JEe1m1aoH2QzTJquD+ikG0u0/AC82t2C4eRfV5JW2tKmZnk4+vN+a4q6Hsi3WwolCn YiOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=OdrNRiJat4UqeHrNkfy1kYrvKkHvJ/v9MmSVP10EPHc=; b=ulVDrA0uvD7U73DJOjNNl+1qj22IwsYjb3P8i9ph+BXn7/deCXFD/+rYvI5OgvSJqk rQFR/rdhOBBDZQ2xlqEeqccckXvWnboqgMUMo0LwyYzbJ570p6DMh6DYvsccodn2llYG PDPPeOLxTuGshl+QLXKwl/vT2Jy1UVcFXZ9A/WG8oq7TnZuDR1dfBJTeJ/pkG+uTnFCM fTsy9HB41LFykS13uvwm5NymO1eQ1DGxgRE4fjBi3IIuwEpBfdv+IbeMXKx4Ep3S2cTa 4YdcSDn0lCFvvdATF8KtjdrHIISDc8uDHS2LCzT4/VcuQIgLw1a00ORJlZXFxkuM+BJL LzOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4-v6si611832pge.23.2018.08.21.20.50.41; Tue, 21 Aug 2018 20:50:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727974AbeHVHNf (ORCPT + 32 others); Wed, 22 Aug 2018 03:13:35 -0400 Received: from mx.socionext.com ([202.248.49.38]:43973 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbeHVHNf (ORCPT ); Wed, 22 Aug 2018 03:13:35 -0400 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.7.4