Skip to content

Meson GXL/GXM USB host mode support

Neil Armstrong linux-amlogic 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 7 patches 0 repliesNew

Patches in v2 No applies recorded yet

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

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/7] Meson GXL/GXM USB host mode support
Quoted 16 lines · Martin Blumenstingl
Quoted 6 lines · Martin Blumenstingl

the goal of this series is to enable USB host mode on Meson GXL and GXM. there are four dependencies to get this working:
1. "improvements and fixes for the phy-meson-gxl-usb2 driver" from [0] (this is already queued for v4.17 and part of linux-next)
2. "DWC3 support for Amlogic Meson AXG and GXL SoCs from" [1] (this is also queued for v4.17 and part of linux-next)

Quoted 8 lines

3. "initialize (multiple) PHYs for a HCD" from [3] (this is also queued for v4.17 and part of linux-next)
4. "Meson GXL USB3 PHY driver" from [3] (this is also queued for v4.17 and part of linux-next)
there is a soft dependency on the following series (currently dependency #3 from above breaks suspend on some TI SoCs, so there's a risk that #3 will get reverted if the following series doesn't fix it):
5. "fix HCD PHY suspend handling" from [4] (not queued for v4.17 yet)

Quoted 4 lines

I just re-sent the series for dependency #5 in version 4: [0] version 4 includes a Tested-by and Reviewed-by of the Mediatek and TI USB maintainers. so chances are good that all pre-conditions for this (USB on GXL/GXM devicetree) series will make it into v4.17

Hi,

I think these should go into 4.17 anyway since the DT nodes are conform to all bindings.

Neil

Quoted 56 lines
Quoted 45 lines

select boards get USB enabled. I have tested this myself successfully on:
- Khadas VIM (GXL S905X)
- Le Potato (GXL S905X)
- Khadas VIM2 (GXM S912)
- a board which is similar to P230 (GXL S905D)

a user on IRC reported that Nexbox A95X (S905X) support is working fine as well.

changes since RFC v1 at [5]:
- rebased on top of Kevin's v4.17/dt64 branch (c339f0e29ce9f9 "ARM64:
dts: meson-gx: make efuse read-only")
- dropped RFC prefix because this was also tested and confirmed working by a user on IRC on his Nexbox A95X (S905X)

[0] https://lkml.kernel.org/r/20180128202245.25021-1-martin.blumenstingl at googlemail.com
[1] https://lkml.kernel.org/r/20180211211517.5846-1-martin.blumenstingl at googlemail.com
[2] https://lkml.kernel.org/r/20180303214309.25643-1-martin.blumenstingl at googlemail.com
[3] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006707.html
[4] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006847.html
[5] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006711.html

Martin Blumenstingl (7):
ARM64: dts: meson-gxl: add USB host support
ARM64: dts: meson-gxm: add GXM specific USB host configuration
ARM64: dts: meson-gxl-s905x-p212: enable the USB controller
ARM64: dts: meson-gx-p23x-q20x: enable the USB controller
ARM64: dts: meson-gxl-s905x-libretech-cc: enable the USB controller
ARM64: dts: meson-gxl-nexbox-a95x: enable the USB controller
ARM64: dts: meson-gxm-khadas-vim2: enable the USB controller

 .../arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi |  4 ++
 .../dts/amlogic/meson-gxl-s905x-libretech-cc.dts   | 12 +++++
 .../dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts    |  4 ++
 .../boot/dts/amlogic/meson-gxl-s905x-p212.dtsi     |  4 ++
 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi         | 61 ++++++++++++++++++++++
 .../boot/dts/amlogic/meson-gxm-khadas-vim2.dts     |  4 ++
 arch/arm64/boot/dts/amlogic/meson-gxm.dtsi         | 17 ++++++
 7 files changed, 106 insertions(+)
Quoted 3 lines

--
2.16.3

Regards
Martin

[0] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006882.html