Skip to content

ARM: meson: Add G12A USB Support

Neil Armstrong u-boot u-boot-amlogic 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 3/30 of 3 patches 0 repliesNew
  2. v3 posting 2/30 of 3 patches 0 repliesSuperseded
  3. v3 posting 1/33 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches0 repliesSuperseded
v13 patches0 repliesSuperseded

Patches in v3 posting 3/3 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/3] ARM: meson: Add G12A USB Support

Lukasz, Marek,

Quoted 66 lines · Lukasz Majewski
Quoted 63 lines · On Tue, 7 May 2019 17:16:52 +0200 Marek Vasut <[email protected]> wrote:
Quoted 62 lines · Neil Armstrong

Hi Marek,

Quoted 54 lines · Marek Vasut
Quoted 38 lines · Neil Armstrong

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

Quoted 15 lines
 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
Quoted 2 lines

Looks good to me, pick this via the meson tree please.

No problem, but Lukasz wanted to pick it up.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Lukasz, I can push it through u-boot-amlogic tree, is it ok for you ?

I don't care either way, whatever is comfortable for you two.

Yes, please - use the u-boot-amlogic tree. Thanks in advance.

Done, thanks.

Neil

Quoted 4 lines

Best regards,

Quoted 8 lines

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190509/422f5401/attachment.sig>