Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1713732

[PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco

From Amelie Delaunay <amelie.delaunay@st.com>
Newsgroups linux.kernel
Subject [PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco
Date 2017-08-17 11:40 +0200
Message-ID <ufprs-2VP-15@gated-at.bofh.it> (permalink)
References <ufprr-2VP-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch enables USB FS on stm32f746-disco (Host mode) with 5V VBUS
enable.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
 arch/arm/boot/dts/stm32f746-disco.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-disco.dts
index 0d38e9a..c683040 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 {
@@ -87,3 +95,10 @@
 	pinctrl-names = "default";
 	status = "okay";
 };
+
+&usbotg_fs {
+	dr_mode = "host";
+	pinctrl-0 = <&usbotg_fs_pins_a>;
+	pinctrl-names = "default";
+	status = "okay";
+};
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/7] Add support for USB OTG on STM32F7xx Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200
  [PATCH 2/7] usb: dwc2: add support for STM32F7xx USB OTG HS Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200
  [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200
    Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2017-08-17 12:50 +0200
      Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU Amelie DELAUNAY <amelie.delaunay@st.com> - 2017-08-17 16:00 +0200
  [PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200
  [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200
    Re: [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2017-08-17 12:50 +0200
      Re: [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval Amelie DELAUNAY <amelie.delaunay@st.com> - 2017-08-17 16:00 +0200
  [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200
    Re: [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB  OTG HS core binding Rob Herring <robh@kernel.org> - 2017-08-22 04:20 +0200
  [PATCH 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200
  [PATCH 5/7] ARM: dts: stm32: Enable USB HS on stm32f746-disco Amelie Delaunay <amelie.delaunay@st.com> - 2017-08-17 11:40 +0200

csiph-web