public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Neil Armstrong <narmstrong@baylibre.com>
To: u-boot@lists.denx.de
Subject: [PATCH 0/8] ARM: mach-meson: update & rework USB for GXL, GXM & AXG
Date: Thu, 10 Sep 2020 10:48:11 +0200	[thread overview]
Message-ID: <20200910084819.25312-1-narmstrong@baylibre.com> (raw)

This serie follows the recent work under Linux to rework and update support of
the USB complex in the Amlogic GXL, GXM & AXG SoCs.

This rework follows the clean implementation for the G12A & following SoCs to support
Host, Device & OTG functionnality.

The GXL, GXM & AXG USB complex is architectured in the same was as the G12A & later USB complex,
thus we can use the same architecture but adapted to the different init & config flow found
in the Amlogic GXL, GXM & AXG SoCs.

With this patchset, USB Host functionnality is retained, working & tested on the Khadas VIM2 (GXM),
Libretech-CC (GXL) & S400 (AXG), with Device mode added and tested by using the UMS gadget.

Neil Armstrong (8):
  ARM: dts: sync amlogic AXG/GXL/GXM DT from Linux 5.8-rc1
  usb: dwc3: add Amlogic GXL & GXL DWC3 Glue
  ARM: mach-meson: use new DWC3 glue for GXL & GXM
  phy: meson-gxl: remove invalid USB3 PHY driver
  phy: meson-gxl-usb: depend on Meson AXG aswell
  arm: meson-axg: add board_usb_init()/cleanup() for USB gadget
  ARM: dts: meson-axg: add USB nodes for S400
  configs: s400: enable USB

 arch/arm/dts/meson-axg-s400-u-boot.dtsi       |  12 +
 arch/arm/dts/meson-axg-u-boot.dtsi            |  62 +++
 arch/arm/dts/meson-axg.dtsi                   |   6 +-
 arch/arm/dts/meson-gx-libretech-pc.dtsi       |  78 +++-
 arch/arm/dts/meson-gx.dtsi                    |  23 +-
 arch/arm/dts/meson-gxbb-nanopi-k2.dts         |   2 +-
 arch/arm/dts/meson-gxbb-odroidc2.dts          |   2 +-
 arch/arm/dts/meson-gxbb.dtsi                  |  23 +
 .../meson-gxl-s805x-libretech-ac-u-boot.dtsi  |   4 -
 arch/arm/dts/meson-gxl-s805x-libretech-ac.dts |  73 ++-
 .../meson-gxl-s905d-libretech-pc-u-boot.dtsi  |   4 -
 .../meson-gxl-s905x-khadas-vim-u-boot.dtsi    |   4 -
 arch/arm/dts/meson-gxl-s905x-khadas-vim.dts   |   4 +
 .../meson-gxl-s905x-libretech-cc-u-boot.dtsi  |   4 -
 arch/arm/dts/meson-gxl-s905x-libretech-cc.dts |  77 +++-
 arch/arm/dts/meson-gxl-s905x-p212.dtsi        |   3 +-
 arch/arm/dts/meson-gxl-u-boot.dtsi            |  16 -
 arch/arm/dts/meson-gxl.dtsi                   |  79 +++-
 .../arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi |   4 -
 arch/arm/dts/meson-gxm-khadas-vim2.dts        |   3 +-
 .../meson-gxm-s912-libretech-pc-u-boot.dtsi   |   4 -
 arch/arm/dts/meson-gxm.dtsi                   |   7 +-
 arch/arm/include/asm/arch-meson/usb-gx.h      |   3 +-
 arch/arm/mach-meson/board-axg.c               | 128 ++++++
 arch/arm/mach-meson/board-gx.c                | 127 +++---
 configs/khadas-vim2_defconfig                 |   2 +-
 configs/khadas-vim_defconfig                  |   2 +-
 configs/libretech-ac_defconfig                |   2 +-
 configs/libretech-cc_defconfig                |   2 +-
 configs/libretech-s905d-pc_defconfig          |   2 +-
 configs/libretech-s912-pc_defconfig           |   2 +-
 configs/p212_defconfig                        |   2 +-
 configs/s400_defconfig                        |  15 +
 drivers/phy/Kconfig                           |   2 +-
 drivers/phy/Makefile                          |   2 +-
 drivers/phy/meson-gxl-usb3.c                  | 219 ---------
 drivers/usb/dwc3/Kconfig                      |   8 +
 drivers/usb/dwc3/Makefile                     |   1 +
 drivers/usb/dwc3/dwc3-meson-gxl.c             | 425 ++++++++++++++++++
 .../reset/amlogic,meson-gxbb-reset.h          |   2 +-
 include/dt-bindings/sound/meson-aiu.h         |  18 +
 41 files changed, 1092 insertions(+), 366 deletions(-)
 create mode 100644 arch/arm/dts/meson-axg-u-boot.dtsi
 delete mode 100644 drivers/phy/meson-gxl-usb3.c
 create mode 100644 drivers/usb/dwc3/dwc3-meson-gxl.c
 create mode 100644 include/dt-bindings/sound/meson-aiu.h

-- 
2.22.0

             reply	other threads:[~2020-09-10  8:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-10  8:48 Neil Armstrong [this message]
2020-09-10  8:48 ` [PATCH 1/8] ARM: dts: sync amlogic AXG/GXL/GXM DT from Linux 5.8-rc1 Neil Armstrong
2020-09-10  8:48 ` [PATCH 2/8] usb: dwc3: add Amlogic GXL & GXL DWC3 Glue Neil Armstrong
2020-09-10  8:48 ` [PATCH 3/8] ARM: mach-meson: use new DWC3 glue for GXL & GXM Neil Armstrong
2020-09-10  8:48 ` [PATCH 4/8] phy: meson-gxl: remove invalid USB3 PHY driver Neil Armstrong
2020-09-10  8:48 ` [PATCH 5/8] phy: meson-gxl-usb: depend on Meson AXG aswell Neil Armstrong
2020-09-10  8:48 ` [PATCH 6/8] arm: meson-axg: add board_usb_init()/cleanup() for USB gadget Neil Armstrong
2020-09-10  8:48 ` [PATCH 7/8] ARM: dts: meson-axg: add USB nodes for S400 Neil Armstrong
2020-09-10  8:48 ` [PATCH 8/8] configs: s400: enable USB Neil Armstrong
2020-09-28  7:41 ` [PATCH 0/8] ARM: mach-meson: update & rework USB for GXL, GXM & AXG 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=20200910084819.25312-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