From: Neil Armstrong <narmstrong@baylibre.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 0/3] ARM: meson: Add G12A USB Support
Date: Tue, 7 May 2019 10:43:36 +0200 [thread overview]
Message-ID: <20190507084339.14723-1-narmstrong@baylibre.com> (raw)
This patchset adds support for USB on Amlogic G12A SoCs.
This patchset is composed with :
- PHY Drivers
- USB Control Glue driver
- G12A board setup for Device mode
Device Tree nodes will be added in a separate patchset when applied
on a tagged Linux tree.
The Amlogic G12A USB Complex is composed of :
- 2 USB Controllers :
* DWC3 for USB2 and USB3 Host functionality
* DWC2 for USB2 Peripheral functionality
- 2 USB2 OTG PHYs, only a single one will be routed to either DWC2 to DWC3
- 1 USB3 PHY shared with PCIE funcionnality
- A Glue to control PHY routing, setup and OTG detection
The Glue configures the UTMI 8bit interfaces for the USB2 PHYs, including
routing of the OTG PHY between the DWC3 and DWC2 controllers, and
setups the on-chip OTG mode selection for this PHY.
This drivers supports the on-probe setup of the OTG mode, and manually
via a setup function in the G12A common board code.
Changes since v2:
- rebased on u-boot master
Changes since v1:
- switch printf() to debug() in patch 1
Neil Armstrong (3):
usb: dwc3: Add Meson G12A USB Glue
phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers
mach-meson: g12a: add DWC2 peripheral mode support
arch/arm/include/asm/arch-meson/usb.h | 12 +
arch/arm/mach-meson/board-g12a.c | 126 +++++++
drivers/phy/Kconfig | 8 +
drivers/phy/Makefile | 1 +
drivers/phy/meson-g12a-usb2.c | 216 ++++++++++++
drivers/phy/meson-g12a-usb3-pcie.c | 345 +++++++++++++++++++
drivers/usb/dwc3/Kconfig | 8 +
drivers/usb/dwc3/Makefile | 1 +
drivers/usb/dwc3/dwc3-meson-g12a.c | 456 ++++++++++++++++++++++++++
9 files changed, 1173 insertions(+)
create mode 100644 arch/arm/include/asm/arch-meson/usb.h
create mode 100644 drivers/phy/meson-g12a-usb2.c
create mode 100644 drivers/phy/meson-g12a-usb3-pcie.c
create mode 100644 drivers/usb/dwc3/dwc3-meson-g12a.c
--
2.21.0
next reply other threads:[~2019-05-07 8:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-07 8:43 Neil Armstrong [this message]
2019-05-07 8:43 ` [U-Boot] [PATCH v3 1/3] usb: dwc3: Add Meson G12A USB Glue Neil Armstrong
2019-05-07 8:43 ` [U-Boot] [PATCH v3 2/3] phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers Neil Armstrong
2019-05-07 8:43 ` [U-Boot] [PATCH v3 3/3] mach-meson: g12a: add DWC2 peripheral mode support Neil Armstrong
2019-05-07 13:05 ` [U-Boot] [PATCH v3 0/3] ARM: meson: Add G12A USB Support Marek Vasut
2019-05-07 15:11 ` Neil Armstrong
2019-05-07 15:16 ` Marek Vasut
2019-05-07 15:54 ` Lukasz Majewski
2019-05-09 8:44 ` Neil Armstrong
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=20190507084339.14723-1-narmstrong@baylibre.com \
--to=narmstrong@baylibre.com \
--cc=u-boot@lists.denx.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