提交 cae2ada3 编写于 作者: A Amelie Delaunay 提交者: Alexandre Torgue

ARM: dts: stm32: Enable USB FS on stm32f746-disco

This patch enables USB FS on stm32f746-disco (Host mode) with 5V VBUS
enable.
Signed-off-by: NAmelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: NAlexandre Torgue <alexandre.torgue@st.com>
上级 07b6b2ee
...@@ -67,6 +67,14 @@ ...@@ -67,6 +67,14 @@
clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>; clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
clock-names = "main_clk"; 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 { &clk_hse {
...@@ -79,6 +87,13 @@ ...@@ -79,6 +87,13 @@
status = "okay"; status = "okay";
}; };
&usbotg_fs {
dr_mode = "host";
pinctrl-0 = <&usbotg_fs_pins_a>;
pinctrl-names = "default";
status = "okay";
};
&usbotg_hs { &usbotg_hs {
dr_mode = "host"; dr_mode = "host";
phys = <&usbotg_hs_phy>; phys = <&usbotg_hs_phy>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册