diff options
author | Amelie Delaunay <amelie.delaunay@st.com> | 2017-10-16 14:22:56 +0200 |
---|---|---|
committer | Alexandre Torgue <alexandre.torgue@st.com> | 2017-10-16 18:14:24 +0200 |
commit | cae2ada3a790c2bf2d995a8b4a1e1bd42ff75f91 (patch) | |
tree | ea1bc7c41a69cac00ad6fbcd1079d0e6235c6701 /arch/arm/boot/dts/stm32f746-disco.dts | |
parent | 07b6b2eebe14360baba2c486cc0423024221dda7 (diff) | |
download | linux-cae2ada3a790c2bf2d995a8b4a1e1bd42ff75f91.tar.bz2 |
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: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Diffstat (limited to 'arch/arm/boot/dts/stm32f746-disco.dts')
-rw-r--r-- | arch/arm/boot/dts/stm32f746-disco.dts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-disco.dts index 8f0c3d523c9f..4d85dba59e1d 100644 --- a/arch/arm/boot/dts/stm32f746-disco.dts +++ b/arch/arm/boot/dts/stm32f746-disco.dts @@ -67,6 +67,14 @@ 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 { @@ -79,6 +87,13 @@ 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>; |