linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] usb: dwc2: drd: add support for role-switch-default-mode
@ 2021-12-06 15:56 Fabrice Gasnier
  2021-12-06 15:56 ` [PATCH 1/3] dt-bindings: usb: document role-switch-default-mode property in dwc2 Fabrice Gasnier
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Fabrice Gasnier @ 2021-12-06 15:56 UTC (permalink / raw)
  To: hminas, gregkh, robh+dt
  Cc: linux-usb, linux-kernel, linux-stm32, devicetree,
	amelie.delaunay, fabrice.gasnier, alexandre.torgue

This series adds support for the role-switch-default-mode binding, to configure
the controller default mode, when the role is USB_ROLE_NONE.

This has been tested on STM32MP15 DK2 board, with:
 &usbotg_hs {
 	phys = <&usbphyc_port1 0>;
 	phy-names = "usb2-phy";
 	usb-role-switch;
 	dr_mode = "peripheral";
 	role-switch-default-mode = "peripheral";
 	status = "okay";
 }

Fabrice Gasnier (3):
  dt-bindings: usb: document role-switch-default-mode property in dwc2
  usb: dwc2: drd: add role-switch-default-node support
  usb: dwc2: drd: restore role and overrides upon resume

 Documentation/devicetree/bindings/usb/dwc2.yaml |  3 ++
 drivers/usb/dwc2/core.h                         |  3 ++
 drivers/usb/dwc2/drd.c                          | 51 ++++++++++++++++++++++++-
 drivers/usb/dwc2/platform.c                     | 10 +++--
 4 files changed, 61 insertions(+), 6 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2021-12-16 10:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 15:56 [PATCH 0/3] usb: dwc2: drd: add support for role-switch-default-mode Fabrice Gasnier
2021-12-06 15:56 ` [PATCH 1/3] dt-bindings: usb: document role-switch-default-mode property in dwc2 Fabrice Gasnier
2021-12-13 22:16   ` Rob Herring
2021-12-06 15:56 ` [PATCH 2/3] usb: dwc2: drd: add role-switch-default-node support Fabrice Gasnier
2021-12-16 10:26   ` Minas Harutyunyan
2021-12-06 15:56 ` [PATCH 3/3] usb: dwc2: drd: restore role and overrides upon resume Fabrice Gasnier
2021-12-16 10:26   ` Minas Harutyunyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).