ARM: dts: stm32: enable USB HS on stm32f769-disco
authorAmelie Delaunay <amelie.delaunay@st.com>
Thu, 15 Feb 2018 15:54:00 +0000 (16:54 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Tue, 27 Feb 2018 14:21:55 +0000 (15:21 +0100)
This patch enables USB HS on stm32f749-disco in OTG (DRD) mode.
The USB connector used will determine the role of USB OTG controller.

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

index afbd769..137661b 100644 (file)
                        gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
                };
        };
+
+       usbotg_hs_phy: usb-phy {
+               #phy-cells = <0>;
+               compatible = "usb-nop-xceiv";
+               clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
+               clock-names = "main_clk";
+       };
 };
 
 &cec {
        pinctrl-names = "default";
        status = "okay";
 };
+
+&usbotg_hs {
+       dr_mode = "otg";
+       phys = <&usbotg_hs_phy>;
+       phy-names = "usb2-phy";
+       pinctrl-0 = <&usbotg_hs_pins_a>;
+       pinctrl-names = "default";
+       status = "okay";
+};