* [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding
2017-08-17 9:32 [PATCH 0/7] Add support for USB OTG on STM32F7xx Amelie Delaunay
@ 2017-08-17 9:33 ` Amelie Delaunay
2017-08-22 2:10 ` Rob Herring
2017-08-17 9:33 ` [PATCH 2/7] usb: dwc2: add support for STM32F7xx USB OTG HS Amelie Delaunay
` (5 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: Amelie Delaunay @ 2017-08-17 9:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, John Youn
Cc: devicetree, linux-usb, linux-kernel, linux-arm-kernel,
Benjamin Gaignard
This patch adds binding documentation for DWC2 controller in HS mode found
on STMicroelectronics STM32F7xx SoC.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt
index fcf199b..e64d903 100644
--- a/Documentation/devicetree/bindings/usb/dwc2.txt
+++ b/Documentation/devicetree/bindings/usb/dwc2.txt
@@ -19,6 +19,8 @@ Required properties:
configured in FS mode;
- "st,stm32f4x9-hsotg": The DWC2 USB HS controller instance in STM32F4x9 SoCs
configured in HS mode;
+ - "st,stm32f7xx-hsotg": The DWC2 USB HS controller instance in STM32F7xx SoCs
+ configured in HS mode;
- reg : Should contain 1 register range (address and length)
- interrupts : Should contain 1 interrupt
- clocks: clock provider specifier
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding
2017-08-17 9:33 ` [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding Amelie Delaunay
@ 2017-08-22 2:10 ` Rob Herring
2017-08-28 8:13 ` Amelie DELAUNAY
0 siblings, 1 reply; 14+ messages in thread
From: Rob Herring @ 2017-08-22 2:10 UTC (permalink / raw)
To: Amelie Delaunay
Cc: Greg Kroah-Hartman, Mark Rutland, Russell King, Maxime Coquelin,
Alexandre Torgue, John Youn, linux-usb, devicetree, linux-kernel,
linux-arm-kernel, Benjamin Gaignard
On Thu, Aug 17, 2017 at 11:33:00AM +0200, Amelie Delaunay wrote:
> This patch adds binding documentation for DWC2 controller in HS mode found
> on STMicroelectronics STM32F7xx SoC.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt
> index fcf199b..e64d903 100644
> --- a/Documentation/devicetree/bindings/usb/dwc2.txt
> +++ b/Documentation/devicetree/bindings/usb/dwc2.txt
> @@ -19,6 +19,8 @@ Required properties:
> configured in FS mode;
> - "st,stm32f4x9-hsotg": The DWC2 USB HS controller instance in STM32F4x9 SoCs
> configured in HS mode;
> + - "st,stm32f7xx-hsotg": The DWC2 USB HS controller instance in STM32F7xx SoCs
> + configured in HS mode;
Don't use wildcards in compatible strings (not sure how the previous one
snuck in). Just "stm32f7" (i.e. just drop the xx) is probably specific
enough though.
> - reg : Should contain 1 register range (address and length)
> - interrupts : Should contain 1 interrupt
> - clocks: clock provider specifier
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding
2017-08-22 2:10 ` Rob Herring
@ 2017-08-28 8:13 ` Amelie DELAUNAY
0 siblings, 0 replies; 14+ messages in thread
From: Amelie DELAUNAY @ 2017-08-28 8:13 UTC (permalink / raw)
To: Rob Herring
Cc: Mark Rutland, devicetree@vger.kernel.org, Alexandre TORGUE,
John Youn, Greg Kroah-Hartman, linux-usb@vger.kernel.org,
Russell King, linux-kernel@vger.kernel.org, Maxime Coquelin,
linux-arm-kernel@lists.infradead.org, Benjamin GAIGNARD
On 08/22/2017 04:10 AM, Rob Herring wrote:
> On Thu, Aug 17, 2017 at 11:33:00AM +0200, Amelie Delaunay wrote:
>> This patch adds binding documentation for DWC2 controller in HS mode found
>> on STMicroelectronics STM32F7xx SoC.
>>
>> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
>> ---
>> Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt
>> index fcf199b..e64d903 100644
>> --- a/Documentation/devicetree/bindings/usb/dwc2.txt
>> +++ b/Documentation/devicetree/bindings/usb/dwc2.txt
>> @@ -19,6 +19,8 @@ Required properties:
>> configured in FS mode;
>> - "st,stm32f4x9-hsotg": The DWC2 USB HS controller instance in STM32F4x9 SoCs
>> configured in HS mode;
>> + - "st,stm32f7xx-hsotg": The DWC2 USB HS controller instance in STM32F7xx SoCs
>> + configured in HS mode;
>
> Don't use wildcards in compatible strings (not sure how the previous one
> snuck in). Just "stm32f7" (i.e. just drop the xx) is probably specific
> enough though.
OK to drop the "xx", I used them only to match the previous one.
>
>> - reg : Should contain 1 register range (address and length)
>> - interrupts : Should contain 1 interrupt
>> - clocks: clock provider specifier
>> --
>> 2.7.4
>>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 2/7] usb: dwc2: add support for STM32F7xx USB OTG HS
2017-08-17 9:32 [PATCH 0/7] Add support for USB OTG on STM32F7xx Amelie Delaunay
2017-08-17 9:33 ` [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding Amelie Delaunay
@ 2017-08-17 9:33 ` Amelie Delaunay
2017-08-17 9:33 ` [PATCH 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU Amelie Delaunay
` (4 subsequent siblings)
6 siblings, 0 replies; 14+ messages in thread
From: Amelie Delaunay @ 2017-08-17 9:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, John Youn
Cc: devicetree, linux-usb, linux-kernel, linux-arm-kernel,
Benjamin Gaignard
This patch adds the dwc2_set_params function for STM32F7xx USB OTG HS.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
drivers/usb/dwc2/params.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
index a3ffe97..015d23e 100644
--- a/drivers/usb/dwc2/params.c
+++ b/drivers/usb/dwc2/params.c
@@ -136,6 +136,15 @@ static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg)
p->activate_stm_fs_transceiver = true;
}
+static void dwc2_set_stm32f7xx_hsotg_params(struct dwc2_hsotg *hsotg)
+{
+ struct dwc2_core_params *p = &hsotg->params;
+
+ p->host_rx_fifo_size = 622;
+ p->host_nperio_tx_fifo_size = 128;
+ p->host_perio_tx_fifo_size = 256;
+}
+
const struct of_device_id dwc2_of_match_table[] = {
{ .compatible = "brcm,bcm2835-usb", .data = dwc2_set_bcm_params },
{ .compatible = "hisilicon,hi6220-usb", .data = dwc2_set_his_params },
@@ -154,6 +163,8 @@ const struct of_device_id dwc2_of_match_table[] = {
{ .compatible = "st,stm32f4x9-fsotg",
.data = dwc2_set_stm32f4x9_fsotg_params },
{ .compatible = "st,stm32f4x9-hsotg" },
+ { .compatible = "st,stm32f7xx-hsotg",
+ .data = dwc2_set_stm32f7xx_hsotg_params },
{},
};
MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU
2017-08-17 9:32 [PATCH 0/7] Add support for USB OTG on STM32F7xx Amelie Delaunay
2017-08-17 9:33 ` [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding Amelie Delaunay
2017-08-17 9:33 ` [PATCH 2/7] usb: dwc2: add support for STM32F7xx USB OTG HS Amelie Delaunay
@ 2017-08-17 9:33 ` Amelie Delaunay
2017-08-17 9:33 ` [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval Amelie Delaunay
` (3 subsequent siblings)
6 siblings, 0 replies; 14+ messages in thread
From: Amelie Delaunay @ 2017-08-17 9:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, John Youn
Cc: linux-usb, devicetree, linux-kernel, linux-arm-kernel,
Benjamin Gaignard
This patch adds the USB pins and nodes for USB HS core on STM32F746 SoC.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32f746.dtsi | 49 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi
index 5633860..fcfe5a6 100644
--- a/arch/arm/boot/dts/stm32f746.dtsi
+++ b/arch/arm/boot/dts/stm32f746.dtsi
@@ -379,6 +379,46 @@
bias-disable;
};
};
+
+ usbotg_hs_pins_a: usbotg_hs@0 {
+ pins {
+ pinmux = <STM32F746_PH4_FUNC_OTG_HS_ULPI_NXT>,
+ <STM32F746_PI11_FUNC_OTG_HS_ULPI_DIR>,
+ <STM32F746_PC0_FUNC_OTG_HS_ULPI_STP>,
+ <STM32F746_PA5_FUNC_OTG_HS_ULPI_CK>,
+ <STM32F746_PA3_FUNC_OTG_HS_ULPI_D0>,
+ <STM32F746_PB0_FUNC_OTG_HS_ULPI_D1>,
+ <STM32F746_PB1_FUNC_OTG_HS_ULPI_D2>,
+ <STM32F746_PB10_FUNC_OTG_HS_ULPI_D3>,
+ <STM32F746_PB11_FUNC_OTG_HS_ULPI_D4>,
+ <STM32F746_PB12_FUNC_OTG_HS_ULPI_D5>,
+ <STM32F746_PB13_FUNC_OTG_HS_ULPI_D6>,
+ <STM32F746_PB5_FUNC_OTG_HS_ULPI_D7>;
+ bias-disable;
+ drive-push-pull;
+ slew-rate = <2>;
+ };
+ };
+
+ usbotg_hs_pins_b: usbotg_hs@1 {
+ pins {
+ pinmux = <STM32F746_PH4_FUNC_OTG_HS_ULPI_NXT>,
+ <STM32F746_PC2_FUNC_OTG_HS_ULPI_DIR>,
+ <STM32F746_PC0_FUNC_OTG_HS_ULPI_STP>,
+ <STM32F746_PA5_FUNC_OTG_HS_ULPI_CK>,
+ <STM32F746_PA3_FUNC_OTG_HS_ULPI_D0>,
+ <STM32F746_PB0_FUNC_OTG_HS_ULPI_D1>,
+ <STM32F746_PB1_FUNC_OTG_HS_ULPI_D2>,
+ <STM32F746_PB10_FUNC_OTG_HS_ULPI_D3>,
+ <STM32F746_PB11_FUNC_OTG_HS_ULPI_D4>,
+ <STM32F746_PB12_FUNC_OTG_HS_ULPI_D5>,
+ <STM32F746_PB13_FUNC_OTG_HS_ULPI_D6>,
+ <STM32F746_PB5_FUNC_OTG_HS_ULPI_D7>;
+ bias-disable;
+ drive-push-pull;
+ slew-rate = <2>;
+ };
+ };
};
crc: crc@40023000 {
@@ -431,6 +471,15 @@
st,mem2mem;
status = "disabled";
};
+
+ usbotg_hs: usb@40040000 {
+ compatible = "st,stm32f7xx-hsotg";
+ reg = <0x40040000 0x40000>;
+ interrupts = <77>;
+ clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHS)>;
+ clock-names = "otg";
+ status = "disabled";
+ };
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval
2017-08-17 9:32 [PATCH 0/7] Add support for USB OTG on STM32F7xx Amelie Delaunay
` (2 preceding siblings ...)
2017-08-17 9:33 ` [PATCH 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU Amelie Delaunay
@ 2017-08-17 9:33 ` Amelie Delaunay
[not found] ` <1502962386-6683-5-git-send-email-amelie.delaunay-qxv4g6HH51o@public.gmane.org>
2017-08-17 9:33 ` [PATCH 5/7] ARM: dts: stm32: Enable USB HS on stm32f746-disco Amelie Delaunay
` (2 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: Amelie Delaunay @ 2017-08-17 9:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, John Youn
Cc: linux-usb, devicetree, linux-kernel, linux-arm-kernel,
Benjamin Gaignard
This patch enables USB HS on stm32746g-eval (Host mode).
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32746g-eval.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/stm32746g-eval.dts
index 69a9579..944501d 100644
--- a/arch/arm/boot/dts/stm32746g-eval.dts
+++ b/arch/arm/boot/dts/stm32746g-eval.dts
@@ -83,6 +83,13 @@
gpios = <&gpioc 13 0>;
};
};
+
+ usbotg_hs_phy: usbphy {
+ #phy-cells = <0>;
+ compatible = "usb-nop-xceiv";
+ clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
+ clock-names = "main_clk";
+ };
};
&clk_hse {
@@ -102,3 +109,12 @@
pinctrl-names = "default";
status = "okay";
};
+
+&usbotg_hs {
+ dr_mode = "host";
+ phys = <&usbotg_hs_phy>;
+ phy-names = "usb2-phy";
+ pinctrl-0 = <&usbotg_hs_pins_a>;
+ pinctrl-names = "default";
+ status = "okay";
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH 5/7] ARM: dts: stm32: Enable USB HS on stm32f746-disco
2017-08-17 9:32 [PATCH 0/7] Add support for USB OTG on STM32F7xx Amelie Delaunay
` (3 preceding siblings ...)
2017-08-17 9:33 ` [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval Amelie Delaunay
@ 2017-08-17 9:33 ` Amelie Delaunay
[not found] ` <1502962386-6683-1-git-send-email-amelie.delaunay-qxv4g6HH51o@public.gmane.org>
2017-08-17 9:33 ` [PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco Amelie Delaunay
6 siblings, 0 replies; 14+ messages in thread
From: Amelie Delaunay @ 2017-08-17 9:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, John Youn
Cc: linux-usb, devicetree, linux-kernel, linux-arm-kernel,
Benjamin Gaignard
This patch enables USB HS on stm32f746-disco (Host mode).
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 18f6560..0d38e9a 100644
--- a/arch/arm/boot/dts/stm32f746-disco.dts
+++ b/arch/arm/boot/dts/stm32f746-disco.dts
@@ -61,6 +61,12 @@
serial0 = &usart1;
};
+ usbotg_hs_phy: usbphy {
+ #phy-cells = <0>;
+ compatible = "usb-nop-xceiv";
+ clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
+ clock-names = "main_clk";
+ };
};
&clk_hse {
@@ -72,3 +78,12 @@
pinctrl-names = "default";
status = "okay";
};
+
+&usbotg_hs {
+ dr_mode = "host";
+ phys = <&usbotg_hs_phy>;
+ phy-names = "usb2-phy";
+ pinctrl-0 = <&usbotg_hs_pins_b>;
+ pinctrl-names = "default";
+ status = "okay";
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread[parent not found: <1502962386-6683-1-git-send-email-amelie.delaunay-qxv4g6HH51o@public.gmane.org>]
* [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU
[not found] ` <1502962386-6683-1-git-send-email-amelie.delaunay-qxv4g6HH51o@public.gmane.org>
@ 2017-08-17 9:33 ` Amelie Delaunay
2017-08-17 10:47 ` Sergei Shtylyov
0 siblings, 1 reply; 14+ messages in thread
From: Amelie Delaunay @ 2017-08-17 9:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, John Youn
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Benjamin Gaignard
This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC.
Signed-off-by: Amelie Delaunay <amelie.delaunay-qxv4g6HH51o@public.gmane.org>
---
arch/arm/boot/dts/stm32f746.dtsi | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi
index fcfe5a6..a9476ea 100644
--- a/arch/arm/boot/dts/stm32f746.dtsi
+++ b/arch/arm/boot/dts/stm32f746.dtsi
@@ -419,6 +419,28 @@
slew-rate = <2>;
};
};
+
+ usbotg_fs_pins_a: usbotg_fs@0 {
+ pins {
+ pinmux = <STM32F746_PA10_FUNC_OTG_FS_ID>,
+ <STM32F746_PA11_FUNC_OTG_FS_DM>,
+ <STM32F746_PA12_FUNC_OTG_FS_DP>;
+ bias-disable;
+ drive-push-pull;
+ slew-rate = <2>;
+ };
+ };
+
+ usbotg_fs_pins_b: usbotg_fs@1 {
+ pins {
+ pinmux = <STM32F746_PB12_FUNC_OTG_HS_ID>,
+ <STM32F746_PB14_FUNC_OTG_HS_DM>,
+ <STM32F746_PB15_FUNC_OTG_HS_DP>;
+ bias-disable;
+ drive-push-pull;
+ slew-rate = <2>;
+ };
+ };
};
crc: crc@40023000 {
@@ -480,6 +502,15 @@
clock-names = "otg";
status = "disabled";
};
+
+ usbotg_fs: usb@50000000 {
+ compatible = "st,stm32f4x9-fsotg";
+ reg = <0x50000000 0x40000>;
+ interrupts = <67>;
+ clocks = <&rcc 0 STM32F7_AHB2_CLOCK(OTGFS)>;
+ clock-names = "otg";
+ status = "disabled";
+ };
};
};
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU
2017-08-17 9:33 ` [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU Amelie Delaunay
@ 2017-08-17 10:47 ` Sergei Shtylyov
2017-08-17 13:58 ` Amelie DELAUNAY
0 siblings, 1 reply; 14+ messages in thread
From: Sergei Shtylyov @ 2017-08-17 10:47 UTC (permalink / raw)
To: Amelie Delaunay, Greg Kroah-Hartman, Rob Herring, Mark Rutland,
Russell King, Maxime Coquelin, Alexandre Torgue, John Youn
Cc: linux-usb, devicetree, linux-kernel, linux-arm-kernel,
Benjamin Gaignard
On 8/17/2017 12:33 PM, Amelie Delaunay wrote:
> This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> arch/arm/boot/dts/stm32f746.dtsi | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi
> index fcfe5a6..a9476ea 100644
> --- a/arch/arm/boot/dts/stm32f746.dtsi
> +++ b/arch/arm/boot/dts/stm32f746.dtsi
> @@ -419,6 +419,28 @@
> slew-rate = <2>;
> };
> };
> +
> + usbotg_fs_pins_a: usbotg_fs@0 {
Dashes are preferred to underlines in the node names.
[...]
MBR, Sergei
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU
2017-08-17 10:47 ` Sergei Shtylyov
@ 2017-08-17 13:58 ` Amelie DELAUNAY
0 siblings, 0 replies; 14+ messages in thread
From: Amelie DELAUNAY @ 2017-08-17 13:58 UTC (permalink / raw)
To: Sergei Shtylyov, Greg Kroah-Hartman, Rob Herring, Mark Rutland,
Russell King, Maxime Coquelin, Alexandre TORGUE, John Youn
Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, Benjamin GAIGNARD
On 08/17/2017 12:47 PM, Sergei Shtylyov wrote:
> On 8/17/2017 12:33 PM, Amelie Delaunay wrote:
>
>> This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC.
>>
>> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
>> ---
>> arch/arm/boot/dts/stm32f746.dtsi | 31 +++++++++++++++++++++++++++++++
>> 1 file changed, 31 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/stm32f746.dtsi
>> b/arch/arm/boot/dts/stm32f746.dtsi
>> index fcfe5a6..a9476ea 100644
>> --- a/arch/arm/boot/dts/stm32f746.dtsi
>> +++ b/arch/arm/boot/dts/stm32f746.dtsi
>> @@ -419,6 +419,28 @@
>> slew-rate = <2>;
>> };
>> };
>> +
>> + usbotg_fs_pins_a: usbotg_fs@0 {
>
> Dashes are preferred to underlines in the node names.
You're right. I'll fix it in v2. Thanks.
>
> [...]
>
> MBR, Sergei
Regards,
Amelie
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco
2017-08-17 9:32 [PATCH 0/7] Add support for USB OTG on STM32F7xx Amelie Delaunay
` (5 preceding siblings ...)
[not found] ` <1502962386-6683-1-git-send-email-amelie.delaunay-qxv4g6HH51o@public.gmane.org>
@ 2017-08-17 9:33 ` Amelie Delaunay
6 siblings, 0 replies; 14+ messages in thread
From: Amelie Delaunay @ 2017-08-17 9:33 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, John Youn
Cc: devicetree, linux-usb, linux-kernel, linux-arm-kernel,
Benjamin Gaignard
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
^ permalink raw reply related [flat|nested] 14+ messages in thread