All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amelie Delaunay <amelie.delaunay@st.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Russell King <linux@armlinux.org.uk>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@st.com>,
	John Youn <johnyoun@synopsys.com>
Cc: <linux-usb@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	Benjamin Gaignard <benjamin.gaignard@st.com>,
	Amelie Delaunay <amelie.delaunay@st.com>
Subject: [PATCHv2 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco
Date: Mon, 28 Aug 2017 16:20:18 +0200	[thread overview]
Message-ID: <1503930018-536-8-git-send-email-amelie.delaunay@st.com> (raw)
In-Reply-To: <1503930018-536-1-git-send-email-amelie.delaunay@st.com>

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 8f0c3d5..eeb430c 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

WARNING: multiple messages have this Message-ID (diff)
From: Amelie Delaunay <amelie.delaunay@st.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Russell King <linux@armlinux.org.uk>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@st.com>,
	John Youn <johnyoun@synopsys.com>
Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Benjamin Gaignard <benjamin.gaignard@st.com>,
	Amelie Delaunay <amelie.delaunay@st.com>
Subject: [PATCHv2 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco
Date: Mon, 28 Aug 2017 16:20:18 +0200	[thread overview]
Message-ID: <1503930018-536-8-git-send-email-amelie.delaunay@st.com> (raw)
In-Reply-To: <1503930018-536-1-git-send-email-amelie.delaunay@st.com>

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 8f0c3d5..eeb430c 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

WARNING: multiple messages have this Message-ID (diff)
From: amelie.delaunay@st.com (Amelie Delaunay)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco
Date: Mon, 28 Aug 2017 16:20:18 +0200	[thread overview]
Message-ID: <1503930018-536-8-git-send-email-amelie.delaunay@st.com> (raw)
In-Reply-To: <1503930018-536-1-git-send-email-amelie.delaunay@st.com>

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 8f0c3d5..eeb430c 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

  parent reply	other threads:[~2017-08-28 14:22 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-28 14:20 [PATCHv2 0/7] Add support for USB OTG on STM32F7 Amelie Delaunay
2017-08-28 14:20 ` Amelie Delaunay
2017-08-28 14:20 ` Amelie Delaunay
2017-08-28 14:20 ` [PATCHv2 1/7] dt-bindings: usb: Document the STM32F7 DWC2 USB OTG HS core binding Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-09-01 15:35   ` Rob Herring
2017-09-01 15:35     ` Rob Herring
2017-09-01 15:35     ` Rob Herring
2017-08-28 14:20 ` [PATCHv2 2/7] usb: dwc2: add support for STM32F7 USB OTG HS Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-09-29 14:20   ` Amelie DELAUNAY
2017-09-29 14:20     ` Amelie DELAUNAY
2017-09-29 14:20     ` Amelie DELAUNAY
2017-09-30 17:16     ` John Youn
2017-09-30 17:16       ` John Youn
2017-09-30 17:16       ` John Youn
2017-08-28 14:20 ` [PATCHv2 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20 ` [PATCHv2 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20 ` [PATCHv2 5/7] ARM: dts: stm32: Enable USB HS on stm32f746-disco Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20 ` [PATCHv2 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-08-28 14:20 ` Amelie Delaunay [this message]
2017-08-28 14:20   ` [PATCHv2 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco Amelie Delaunay
2017-08-28 14:20   ` Amelie Delaunay
2017-10-11 10:04 ` [PATCHv2 0/7] Add support for USB OTG on STM32F7 Felipe Balbi
2017-10-11 10:04   ` Felipe Balbi
2017-10-11 10:04   ` Felipe Balbi
2017-10-11 11:36   ` Alexandre Torgue
2017-10-11 11:36     ` Alexandre Torgue
2017-10-11 11:36     ` Alexandre Torgue
2017-10-11 11:50     ` Felipe Balbi
2017-10-11 11:50       ` Felipe Balbi
2017-10-11 11:50       ` Felipe Balbi
2017-10-11 12:05       ` Alexandre Torgue
2017-10-11 12:05         ` Alexandre Torgue
2017-10-11 12:05         ` Alexandre Torgue
2017-10-11 13:26         ` Felipe Balbi
2017-10-11 13:26           ` Felipe Balbi
2017-10-11 13:26           ` Felipe Balbi
2017-10-11 14:38           ` Alexandre Torgue
2017-10-11 14:38             ` Alexandre Torgue
2017-10-11 14:38             ` Alexandre Torgue
2017-10-12  8:32             ` Amelie DELAUNAY
2017-10-12  8:32               ` Amelie DELAUNAY
2017-10-12  8:32               ` Amelie DELAUNAY
2017-10-12  8:43               ` Felipe Balbi
2017-10-12  8:43                 ` Felipe Balbi
2017-10-12  8:43                 ` Felipe Balbi
2017-10-12 11:46                 ` Alexandre Torgue
2017-10-12 11:46                   ` Alexandre Torgue
2017-10-12 11:46                   ` Alexandre Torgue
2017-10-12 11:51                   ` Felipe Balbi
2017-10-12 11:51                     ` Felipe Balbi
2017-10-12 11:51                     ` Felipe Balbi
2017-10-12 11:53                     ` Felipe Balbi
2017-10-12 11:53                       ` Felipe Balbi
2017-10-12 11:53                       ` Felipe Balbi
2017-10-12 12:01                       ` Alexandre Torgue
2017-10-12 12:01                         ` Alexandre Torgue
2017-10-12 12:01                         ` Alexandre Torgue
2017-10-16 16:16 ` Alexandre Torgue
2017-10-16 16:16   ` Alexandre Torgue
2017-10-16 16:16   ` Alexandre Torgue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1503930018-536-8-git-send-email-amelie.delaunay@st.com \
    --to=amelie.delaunay@st.com \
    --cc=alexandre.torgue@st.com \
    --cc=benjamin.gaignard@st.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=johnyoun@synopsys.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.