Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713728 > unrolled thread
| Started by | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| First post | 2017-08-17 11:40 +0200 |
| Last post | 2017-08-17 11:40 +0200 |
| Articles | 13 — 4 participants |
Back to article view | Back to linux.kernel
[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
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 0/7] Add support for USB OTG on STM32F7xx |
| Message-ID | <ufprr-2VP-3@gated-at.bofh.it> |
The STM32F7xx MCU family embeds two DWC2 USB OTG cores. One core is USB OTG FS and the other is USB OTG HS. The USB FS core only works with its internal phy whilst the USB HS core can work in HS with external ULPI phy or in FS/LS with the on-chip FS phy. Amelie Delaunay (7): dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding usb: dwc2: add support for STM32F7xx USB OTG HS ARM: dts: stm32: Add USB HS support for STM32F746 MCU ARM: dts: stm32: Enable USB HS on stm32746g-eval ARM: dts: stm32: Enable USB HS on stm32f746-disco ARM: dts: stm32: Add USB FS support for STM32F746 MCU ARM: dts: stm32: Enable USB FS on stm32f746-disco Documentation/devicetree/bindings/usb/dwc2.txt | 2 + arch/arm/boot/dts/stm32746g-eval.dts | 16 ++++++ arch/arm/boot/dts/stm32f746-disco.dts | 30 ++++++++++ arch/arm/boot/dts/stm32f746.dtsi | 80 ++++++++++++++++++++++++++ drivers/usb/dwc2/params.c | 11 ++++ 5 files changed, 139 insertions(+) -- 2.7.4
[toc] | [next] | [standalone]
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 2/7] usb: dwc2: add support for STM32F7xx USB OTG HS |
| Message-ID | <ufprr-2VP-5@gated-at.bofh.it> |
| In reply to | #1713728 |
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
[toc] | [prev] | [next] | [standalone]
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU |
| Message-ID | <ufprs-2VP-11@gated-at.bofh.it> |
| In reply to | #1713728 |
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 {
+ 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
[toc] | [prev] | [next] | [standalone]
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Date | 2017-08-17 12:50 +0200 |
| Subject | Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU |
| Message-ID | <ufqxd-3DI-23@gated-at.bofh.it> |
| In reply to | #1713731 |
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
[toc] | [prev] | [next] | [standalone]
| From | Amelie DELAUNAY <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 16:00 +0200 |
| Subject | Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU |
| Message-ID | <uftv4-5CX-21@gated-at.bofh.it> |
| In reply to | #1713813 |
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
[toc] | [prev] | [next] | [standalone]
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco |
| Message-ID | <ufprs-2VP-15@gated-at.bofh.it> |
| In reply to | #1713728 |
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
[toc] | [prev] | [next] | [standalone]
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval |
| Message-ID | <ufprs-2VP-31@gated-at.bofh.it> |
| In reply to | #1713728 |
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
[toc] | [prev] | [next] | [standalone]
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Date | 2017-08-17 12:50 +0200 |
| Subject | Re: [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval |
| Message-ID | <ufqxc-3DI-9@gated-at.bofh.it> |
| In reply to | #1713735 |
Hello!
On 8/17/2017 12:33 PM, Amelie Delaunay wrote:
> 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 {
Name it "usb-phy" please, tpo be m,ore in line with the DT spec.
[...]
MBR, Sergei
[toc] | [prev] | [next] | [standalone]
| From | Amelie DELAUNAY <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 16:00 +0200 |
| Subject | Re: [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval |
| Message-ID | <uftv4-5CX-15@gated-at.bofh.it> |
| In reply to | #1713809 |
Hi!
On 08/17/2017 12:44 PM, Sergei Shtylyov wrote:
> Hello!
>
> On 8/17/2017 12:33 PM, Amelie Delaunay wrote:
>
>> 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 {
>
> Name it "usb-phy" please, tpo be m,ore in line with the DT spec.
OK, will be fixed in v2. Thanks!
>
> [...]
>
> MBR, Sergei
Regards,
Amelie
[toc] | [prev] | [next] | [standalone]
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding |
| Message-ID | <ufprs-2VP-21@gated-at.bofh.it> |
| In reply to | #1713728 |
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
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2017-08-22 04:20 +0200 |
| Subject | Re: [PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding |
| Message-ID | <uh6Xn-4hV-3@gated-at.bofh.it> |
| In reply to | #1713736 |
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 >
[toc] | [prev] | [next] | [standalone]
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU |
| Message-ID | <ufprs-2VP-29@gated-at.bofh.it> |
| In reply to | #1713728 |
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
[toc] | [prev] | [next] | [standalone]
| From | Amelie Delaunay <amelie.delaunay@st.com> |
|---|---|
| Date | 2017-08-17 11:40 +0200 |
| Subject | [PATCH 5/7] ARM: dts: stm32: Enable USB HS on stm32f746-disco |
| Message-ID | <ufprs-2VP-33@gated-at.bofh.it> |
| In reply to | #1713728 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web