ARM: dts: stm32: enable USB OTG Dual Role on stm32mp157c-ev1
authorAmelie Delaunay <amelie.delaunay@st.com>
Tue, 4 Feb 2020 13:26:06 +0000 (14:26 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Mon, 10 Feb 2020 16:40:17 +0000 (17:40 +0100)
Now that st,stm32mp15-hsotg is used, dual role is supported. ID pin is
managed to detect the current role.
On stm32mp157c-ev1, Host mode requires a vbus-supply property. Charge pump
for vbus is provided by PMIC VBUS_OTG.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp157c-ed1.dts
arch/arm/boot/dts/stm32mp157c-ev1.dts

index 1fc43251d697e6e09ce937c7a3168f168915ce58..c84f14b1737197369746f7a0a68e6b3d0a40141a 100644 (file)
        status = "okay";
 };
 
+&usbotg_hs {
+       vbus-supply = <&vbus_otg>;
+};
+
 &usbphyc_port0 {
        phy-supply = <&vdd_usb>;
        vdda1v1-supply = <&reg11>;
index 228e35e1688458b0f3433c80a47473e9afb331da..8f1fe0781d9fdf9194127366d065e0499020f220 100644 (file)
 };
 
 &usbotg_hs {
-       dr_mode = "peripheral";
+       pinctrl-0 = <&usbotg_hs_pins_a>;
+       pinctrl-names = "default";
        phys = <&usbphyc_port1 0>;
        phy-names = "usb2-phy";
        status = "okay";