Skip to content

meson: enable USB Gadget support fot GXL/GXM SoCs

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10generic-phy: add generic_phy_get_by_node()drivers/phy/phy-uclass.c include/generic-phy.h+38 -50 replies
1/10generic-phy: add generic_phy_get_by_node()+0 -01 reply
2/10phy: meson-gxl-usb: add set_mode call to force switch to peripheral modearch/arm/include/asm/arch-meson/usb-gx.h drivers/phy/meson-gxl-usb2.c drivers/phy/meson-gxl-usb3.c+72 -180 replies
3/10arm: meson-gx: add board_usb_init()/cleanup() for USB gadgetarch/arm/mach-meson/board-gx.c+118 -00 replies
4/10arm: dts: meson-gxl: Add USB Gadget nodes for U-Bootarch/arm/dts/meson-gxl-s905x-khadas-vim-u-boot.dtsi arch/arm/dts/meson-gxl-s905x-libretech-cc-u-boot.dtsi arch/arm/dts/meson-gxl-s905x-p212-u-boot.dtsi +1 more+30 -30 replies
5/10configs: libretech-cc: Enable USB gadget with Mass Storage functionconfigs/libretech-cc_defconfig+7 -00 replies
6/10configs: libretech-ac: Enable USB gadget with Mass Storage functionconfigs/libretech-ac_defconfig+7 -00 replies
7/10configs: khadas-vim2: Enable USB gadget with Mass Storage functionconfigs/khadas-vim2_defconfig+7 -00 replies
8/10configs: khadas-vim: Enable USB gadget with Mass Storage functionconfigs/khadas-vim_defconfig+7 -00 replies
9/10configs: libretech-s905d-pc: Enable USB gadget with Mass Storage functionconfigs/libretech-s905d-pc_defconfig+7 -00 replies
10/10configs: libretech-s912-pc: Enable USB gadget with Mass Storage functionconfigs/libretech-s912-pc_defconfig+7 -00 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/10R-b
1/10R-b
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] meson: enable USB Gadget support fot GXL/GXM SoCs

Thit patchset adds support for OTG Gadget mode on the GXL/GXM SoCs.

It adds a new API generic_phy_get_by_node() to get the PHY by it's node.

It enabled Gadget and USB Mass Storage for libretech-cc, libretech-ac, khadas-vim, khadas-vim2, libretech-s905d-pc and libretech-s912-pc boards.

Neil Armstrong (10):
generic-phy: add generic_phy_get_by_node()
phy: meson-gxl-usb: add set_mode call to force switch to peripheral
mode
arm: meson-gx: add board_usb_init()/cleanup() for USB gadget
arm: dts: meson-gxl: Add USB Gadget nodes for U-Boot
configs: libretech-cc: Enable USB gadget with Mass Storage function
configs: libretech-ac: Enable USB gadget with Mass Storage function
configs: khadas-vim2: Enable USB gadget with Mass Storage function
configs: khadas-vim: Enable USB gadget with Mass Storage function
configs: libretech-s905d-pc: Enable USB gadget with Mass Storage
function
configs: libretech-s912-pc: Enable USB gadget with Mass Storage
function

 .../meson-gxl-s905x-khadas-vim-u-boot.dtsi    |   2 +-
 .../meson-gxl-s905x-libretech-cc-u-boot.dtsi  |   6 +-
 arch/arm/dts/meson-gxl-s905x-p212-u-boot.dtsi |   2 +-
 arch/arm/dts/meson-gxl-u-boot.dtsi            |  23 ++++
 arch/arm/include/asm/arch-meson/usb-gx.h      |  16 +++
 arch/arm/mach-meson/board-gx.c                | 118 ++++++++++++++++++
 configs/khadas-vim2_defconfig                 |   7 ++
 configs/khadas-vim_defconfig                  |   7 ++
 configs/libretech-ac_defconfig                |   7 ++
 configs/libretech-cc_defconfig                |   7 ++
 configs/libretech-s905d-pc_defconfig          |   7 ++
 configs/libretech-s912-pc_defconfig           |   7 ++
 drivers/phy/meson-gxl-usb2.c                  |  30 ++++-
 drivers/phy/meson-gxl-usb3.c                  |  44 +++++--
 drivers/phy/phy-uclass.c                      |  17 ++-
 include/generic-phy.h                         |  27 ++++
 16 files changed, 301 insertions(+), 26 deletions(-)
 create mode 100644 arch/arm/dts/meson-gxl-u-boot.dtsi
 create mode 100644 arch/arm/include/asm/arch-meson/usb-gx.h
Signature · 1 line
2.22.0