ARM: dts: stm32: Enable USB FS on stm32f746-disco
authorAmelie Delaunay <amelie.delaunay@st.com>
Mon, 16 Oct 2017 12:22:56 +0000 (14:22 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Mon, 16 Oct 2017 16:14:24 +0000 (18:14 +0200)
This patch enables USB FS on stm32f746-disco (Host mode) with 5V VBUS
enable.

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

index 8f0c3d5..4d85dba 100644 (file)
                clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
                clock-names = "main_clk";
        };
+
+       /* This turns on vbus for otg fs for host mode (dwc2) */
+       vcc5v_otg_fs: vcc5v-otg-fs-regulator {
+               compatible = "regulator-fixed";
+               gpio = <&gpiod 5 0>;
+               regulator-name = "vcc5_host1";
+               regulator-always-on;
+       };
 };
 
 &clk_hse {
        status = "okay";
 };
 
+&usbotg_fs {
+       dr_mode = "host";
+       pinctrl-0 = <&usbotg_fs_pins_a>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &usbotg_hs {
        dr_mode = "host";
        phys = <&usbotg_hs_phy>;