From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380AbbEGGTi (ORCPT ); Thu, 7 May 2015 02:19:38 -0400 Received: from mga09.intel.com ([134.134.136.24]:20052 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981AbbEGGTh (ORCPT ); Thu, 7 May 2015 02:19:37 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,383,1427785200"; d="scan'208";a="490431844" From: Heikki Krogerus To: Felipe Balbi Cc: David Cohen , Greg Kroah-Hartman , Stephen Boyd , Baolu Lu , Paul Bolle , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: =?UTF-8?q?=5B=CD=84PATCHv4=2000/12=5D=20usb=3A=20ulpi=20bus?= Date: Thu, 7 May 2015 09:19:20 +0300 Message-Id: <1430979572-14768-1-git-send-email-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v3: - struct ulpi_bus is now static - added a delay to sync the PHY clock after soft reset Changes since v2: - remove module handling from the bus driver as suggested by Paul Bolle. - reordered the gpio requests in BYT quirk as suggested by David Cohen. Major changes since v1: - calling dwc3_phy_setup earlier and registering the ULPI interface there. - new property to dwc3 for selecting the interface in case of UTMI+ and ULPI as suggested by Felipe - dwc3 soft reset before registration of the ULPI interface to sync the clocks as suggested by David - Including support for the BYT boards that have the GPIOs controlling the reset and cs signals. Heikki Krogerus (12): usb: add bus type for USB ULPI usb: dwc3: USB2 PHY register access bits usb: dwc3: ULPI or UTMI+ select usb: dwc3: store driver data earlier usb: dwc3: cache hwparams earlier usb: dwc3: soft reset to it's own function usb: dwc3: setup phys earlier usb: dwc3: add hsphy_interface property usb: dwc3: pci: add quirk for Baytrails usb: dwc3: add ULPI interface support phy: helpers for USB ULPI PHY registering phy: add driver for TI TUSB1210 ULPI PHY Documentation/devicetree/bindings/usb/dwc3.txt | 2 + MAINTAINERS | 7 + drivers/phy/Kconfig | 7 + drivers/phy/Makefile | 1 + drivers/phy/phy-tusb1210.c | 153 +++++++++++++++ drivers/phy/ulpi_phy.h | 31 ++++ drivers/usb/common/Makefile | 1 + drivers/usb/common/ulpi.c | 245 +++++++++++++++++++++++++ drivers/usb/core/Kconfig | 7 + drivers/usb/dwc3/Kconfig | 7 + drivers/usb/dwc3/Makefile | 4 + drivers/usb/dwc3/core.c | 108 ++++++++--- drivers/usb/dwc3/core.h | 26 +++ drivers/usb/dwc3/dwc3-pci.c | 36 ++++ drivers/usb/dwc3/platform_data.h | 2 + drivers/usb/dwc3/ulpi.c | 91 +++++++++ include/linux/mod_devicetable.h | 6 + include/linux/ulpi/driver.h | 60 ++++++ include/linux/ulpi/interface.h | 23 +++ include/linux/ulpi/regs.h | 130 +++++++++++++ include/linux/usb/ulpi.h | 134 +------------- scripts/mod/devicetable-offsets.c | 4 + scripts/mod/file2alias.c | 13 ++ 23 files changed, 941 insertions(+), 157 deletions(-) create mode 100644 drivers/phy/phy-tusb1210.c create mode 100644 drivers/phy/ulpi_phy.h create mode 100644 drivers/usb/common/ulpi.c create mode 100644 drivers/usb/dwc3/ulpi.c create mode 100644 include/linux/ulpi/driver.h create mode 100644 include/linux/ulpi/interface.h create mode 100644 include/linux/ulpi/regs.h -- 2.1.4