Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: stm32: enable usb-role-switch on USB OTG on stm32mp15xx-dkx

Now that USB OTG driver supports usb role switch by overriding PHY input
signals (A-Valid, B-Valid and Vbus-Valid), enable it on stm32mp15xx-dkx.
dr_mode needn't to be forced to Peripheral anymore, it is set to OTG in
SoC device tree.
USB role (USB_ROLE_NONE, USB_ROLE_DEVICE, USB_ROLE_HOST) will be provided
by STUSB1600 Type-C controller driver.

This patch depends on "Add STUSB160x Type-C port controller support"
series, which is under review.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>

authored by

Amelie Delaunay and committed by
Alexandre Torgue
d9b6b515 a656ae15

+1 -1
+1 -1
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
··· 627 627 }; 628 628 629 629 &usbotg_hs { 630 - dr_mode = "peripheral"; 631 630 phys = <&usbphyc_port1 0>; 632 631 phy-names = "usb2-phy"; 632 + usb-role-switch; 633 633 status = "okay"; 634 634 }; 635 635