mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>,
	mgr@pengutronix.de, rcz@pengutronix.de
Subject: [PATCH 0/6] phy: usb: add support for STM32 usbphyc
Date: Thu, 20 Feb 2020 11:01:05 +0100	[thread overview]
Message-ID: <20200220100109.18147-1-a.fatoum@pengutronix.de> (raw)

This is only USB PHY support. Changes to the DWC2 (OTG) and/or OHCI
(Host) are still needed to make USB on the MP1 work.

I haven't yet groked the relation between generic phy and usb phy
frameworks, but the code is a straight port from Linux and it seems to
work[1], so let's upstream it now to make collaboration easier.

[1]: clock the EHCI and power on the PHY and 20% of the time, the bus
     can be enumerated completely. Still needs further debugging,
     but it's unlikely that the PHY driver is at fault.

Cheers,
Ahmad Fatoum (6):
  regulator: import Linux regulator_bulk API
  phy: remove unused init_data parameter
  phy: populate existing ->pwr member with phy-supply
  phy: introduce phy_get_by_index
  regulator: port over Linux stm32 PWR regulator driver
  phy: port over Linux stm32 usbphyc driver

 drivers/phy/Kconfig                        |  13 +
 drivers/phy/Makefile                       |   1 +
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c |   2 +-
 drivers/phy/phy-core.c                     |  29 +-
 drivers/phy/phy-stm32-usbphyc.c            | 434 +++++++++++++++++++++
 drivers/phy/usb-nop-xceiv.c                |   2 +-
 drivers/pinctrl/pinctrl-tegra-xusb.c       |   4 +-
 drivers/regulator/Kconfig                  |   7 +
 drivers/regulator/Makefile                 |   1 +
 drivers/regulator/core.c                   | 139 +++++++
 drivers/regulator/stm32-pwr.c              | 215 ++++++++++
 drivers/usb/imx/imx-usb-phy.c              |   2 +-
 include/linux/phy/phy.h                    |  14 +-
 include/regulator.h                        |  49 +++
 14 files changed, 897 insertions(+), 15 deletions(-)
 create mode 100644 drivers/phy/phy-stm32-usbphyc.c
 create mode 100644 drivers/regulator/stm32-pwr.c

-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2020-02-20 10:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 10:01 Ahmad Fatoum [this message]
2020-02-20 10:01 ` [PATCH 1/6] regulator: import Linux regulator_bulk API Ahmad Fatoum
2020-02-20 10:01 ` [PATCH 2/6] phy: remove unused init_data parameter Ahmad Fatoum
2020-02-20 10:01 ` [PATCH 3/6] phy: populate existing ->pwr member with phy-supply Ahmad Fatoum
2020-02-20 10:01 ` [PATCH 4/6] phy: introduce phy_get_by_index Ahmad Fatoum
2020-02-20 10:01 ` [PATCH 5/6] regulator: port over Linux stm32 PWR regulator driver Ahmad Fatoum
2020-02-20 10:01 ` [PATCH 6/6] phy: port over Linux stm32 usbphyc driver Ahmad Fatoum
2020-02-25  8:11 ` [PATCH 0/6] phy: usb: add support for STM32 usbphyc Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200220100109.18147-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=mgr@pengutronix.de \
    --cc=rcz@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox