All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] arm64: meson: support Amlogic A1 USB OTG controller
@ 2023-04-18 11:16 ` Dmitry Rokosov
  0 siblings, 0 replies; 68+ messages in thread
From: Dmitry Rokosov @ 2023-04-18 11:16 UTC (permalink / raw)
  To: gregkh, robh+dt, krzysztof.kozlowski+dt, neil.armstrong, khilman,
	jbrunet, martin.blumenstingl, mturquette, vkoul, kishon, hminas,
	Thinh.Nguyen
  Cc: yue.wang, hanjie.lin, kernel, rockosov, linux-usb, devicetree,
	linux-kernel, linux-arm-kernel, linux-amlogic, linux-phy,
	Dmitry Rokosov

This patch series introduces full support for the Amlogic A1 USB controller
in OTG mode (peripheral and host modes switching).

Previously, Amlogic's patch series [1] was applied to the upstream tree,
but it only had USB host mode support.
Furthermore, the device tree patchset [2] wasn't merged due to a missing
clk driver.
Patchset [2] has been completely reworked:
    - changed register base offsets to proper values
    - introduced dwc2 in peripheral mode
    - OTG mode support
    - the SoB of Amlogic authors still remain

Testing:
    - USB OTG role switching between gadget and host - OK
    - Peripheral mode - OK (tested with adb shell/push/pop)
    - Host mode - OK (tested only USB enumeration and detection)

Changes v2 since v1 at [3]:
    - as Martin suggested in v1, this commit completely removes
      the 'otg_switch_supported' parameter from dwc3_meson_g12a_drvdata;
      this parameter is no longer necessary as all IP versions now
      support OTG switching
    - this commit moves the USB PHY clkin enable/disable calls to
      the PHY init/exit routines

Links:
    [1] https://lore.kernel.org/all/1581990859-135234-1-git-send-email-hanjie.lin@amlogic.com/
    [2] https://lore.kernel.org/all/1581990859-135234-4-git-send-email-hanjie.lin@amlogic.com/
    [3] https://lore.kernel.org/all/20230414152423.19842-1-ddrokosov@sberdevices.ru/

Dmitry Rokosov (5):
  phy: amlogic: enable/disable clkin during Amlogic USB PHY init/exit
  usb: dwc2: support dwc2 IP for Amlogic A1 SoC family
  dt-bindings: usb: dwc2: add support for Amlogic A1 SoC USB peripheral
  usb: dwc3-meson-g12a: support OTG switch for all IP versions
  arm64: dts: meson: a1: support USB controller in OTG mode

 .../devicetree/bindings/usb/dwc2.yaml         |  1 +
 arch/arm64/boot/dts/amlogic/meson-a1.dtsi     | 59 +++++++++++++++++++
 drivers/phy/amlogic/phy-meson-g12a-usb2.c     | 13 +++-
 drivers/usb/dwc2/params.c                     | 21 +++++++
 drivers/usb/dwc3/dwc3-meson-g12a.c            | 16 +----
 5 files changed, 95 insertions(+), 15 deletions(-)

-- 
2.36.0


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 68+ messages in thread

end of thread, other threads:[~2023-04-25 11:07 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 11:16 [PATCH v2 0/5] arm64: meson: support Amlogic A1 USB OTG controller Dmitry Rokosov
2023-04-18 11:16 ` Dmitry Rokosov
2023-04-18 11:16 ` Dmitry Rokosov
2023-04-18 11:16 ` Dmitry Rokosov
2023-04-18 11:16 ` [PATCH v2 1/5] phy: amlogic: enable/disable clkin during Amlogic USB PHY init/exit Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:42   ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-23 17:42   ` Martin Blumenstingl
2023-04-23 17:42     ` Martin Blumenstingl
2023-04-23 17:42     ` Martin Blumenstingl
2023-04-23 17:42     ` Martin Blumenstingl
2023-04-25 10:29     ` Dmitry Rokosov
2023-04-25 10:29       ` Dmitry Rokosov
2023-04-25 10:29       ` Dmitry Rokosov
2023-04-25 10:29       ` Dmitry Rokosov
2023-04-18 11:16 ` [PATCH v2 2/5] usb: dwc2: support dwc2 IP for Amlogic A1 SoC family Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:42   ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-21  4:51   ` Minas Harutyunyan
2023-04-21  4:51     ` Minas Harutyunyan
2023-04-21  4:51     ` Minas Harutyunyan
2023-04-21  4:51     ` Minas Harutyunyan
2023-04-18 11:16 ` [PATCH v2 3/5] dt-bindings: usb: dwc2: add support for Amlogic A1 SoC USB peripheral Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-21 18:01   ` Rob Herring
2023-04-21 18:01     ` Rob Herring
2023-04-21 18:01     ` Rob Herring
2023-04-21 18:01     ` Rob Herring
2023-04-23 17:43   ` Martin Blumenstingl
2023-04-23 17:43     ` Martin Blumenstingl
2023-04-23 17:43     ` Martin Blumenstingl
2023-04-23 17:43     ` Martin Blumenstingl
2023-04-18 11:16 ` [PATCH v2 4/5] usb: dwc3-meson-g12a: support OTG switch for all IP versions Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:42   ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-18 11:42     ` neil.armstrong
2023-04-23 17:44   ` Martin Blumenstingl
2023-04-23 17:44     ` Martin Blumenstingl
2023-04-23 17:44     ` Martin Blumenstingl
2023-04-23 17:44     ` Martin Blumenstingl
2023-04-18 11:16 ` [PATCH v2 5/5] arm64: dts: meson: a1: support USB controller in OTG mode Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-18 11:16   ` Dmitry Rokosov
2023-04-23 17:51   ` Martin Blumenstingl
2023-04-23 17:51     ` Martin Blumenstingl
2023-04-23 17:51     ` Martin Blumenstingl
2023-04-23 17:51     ` Martin Blumenstingl
2023-04-25 11:06     ` Dmitry Rokosov
2023-04-25 11:06       ` Dmitry Rokosov
2023-04-25 11:06       ` Dmitry Rokosov
2023-04-25 11:06       ` Dmitry Rokosov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.