ARM: dts: stm32: Add USB OTG support to DH PDK2
authorMarek Vasut <marex@denx.de>
Mon, 3 Aug 2020 10:22:54 +0000 (12:22 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Wed, 23 Sep 2020 16:37:02 +0000 (18:37 +0200)
The DH PDK2 board is capable of USB OTG on the X14 USB Mini-AB connector,
fill in the missing bits to make USB OTG possible instead of peripheral.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi

index 9cf6d90..9e93f0a 100644 (file)
 };
 
 &usbotg_hs {
-       dr_mode = "peripheral";
-       phys = <&usbphyc_port1 0>;
+       dr_mode = "otg";
+       pinctrl-0 = <&usbotg_hs_pins_a>;
+       pinctrl-names = "default";
        phy-names = "usb2-phy";
+       phys = <&usbphyc_port1 0>;
+       vbus-supply = <&vbus_otg>;
        status = "okay";
 };