Skip to content

ARM: mach-meson: update & rework USB for GXL, GXM & AXG

Neil Armstrong u-boot u-boot-amlogic 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ARM: dts: sync amlogic AXG/GXL/GXM DT from Linux 5.8-rc1arch/arm/dts/meson-axg.dtsi arch/arm/dts/meson-gx-libretech-pc.dtsi arch/arm/dts/meson-gx.dtsi +19 more+358 -820 replies
2/8usb: dwc3: add Amlogic GXL & GXL DWC3 Gluearch/arm/include/asm/arch-meson/usb-gx.h drivers/usb/dwc3/Kconfig drivers/usb/dwc3/Makefile +1 more+436 -00 replies
3/8ARM: mach-meson: use new DWC3 glue for GXL & GXMarch/arm/mach-meson/board-gx.c configs/khadas-vim2_defconfig configs/khadas-vim_defconfig +5 more+79 -620 replies
4/8phy: meson-gxl: remove invalid USB3 PHY driverarch/arm/include/asm/arch-meson/usb-gx.h drivers/phy/Makefile drivers/phy/meson-gxl-usb3.c+1 -2210 replies
5/8phy: meson-gxl-usb: depend on Meson AXG aswelldrivers/phy/Kconfig+1 -10 replies
6/8arm: meson-axg: add board_usb_init()/cleanup() for USB gadgetarch/arm/mach-meson/board-axg.c+128 -00 replies
7/8ARM: dts: meson-axg: add USB nodes for S400arch/arm/dts/meson-axg-s400-u-boot.dtsi arch/arm/dts/meson-axg-u-boot.dtsi+74 -00 replies
8/8configs: s400: enable USBconfigs/s400_defconfig+15 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] ARM: mach-meson: update & rework USB for GXL, GXM & AXG

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
Signature · 1 line
2.22.0