* [PATCH 1/1] ARM: dts: stm32: adjust USB OTG gadget fifo sizes in stm32mp151
@ 2020-11-10 13:10 Amelie Delaunay
2020-11-17 9:59 ` Alexandre Torgue
0 siblings, 1 reply; 2+ messages in thread
From: Amelie Delaunay @ 2020-11-10 13:10 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring
Cc: linux-stm32, linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay
Defaut use case on stm32mp151 USB OTG is ethernet gadget, using EP1 bulk
endpoint (MPS=512 bytes) and EP2 interrupt endpoint (MPS=16 bytes).
This patch optimizes USB OTG FIFO sizes accordingly.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32mp151.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index 6ffcf06dc0e8..928e31db1526 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1070,9 +1070,9 @@
resets = <&rcc USBO_R>;
reset-names = "dwc2";
interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
- g-rx-fifo-size = <256>;
+ g-rx-fifo-size = <512>;
g-np-tx-fifo-size = <32>;
- g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
+ g-tx-fifo-size = <256 16 16 16 16 16 16 16>;
dr_mode = "otg";
usb33d-supply = <&usb33>;
status = "disabled";
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] ARM: dts: stm32: adjust USB OTG gadget fifo sizes in stm32mp151
2020-11-10 13:10 [PATCH 1/1] ARM: dts: stm32: adjust USB OTG gadget fifo sizes in stm32mp151 Amelie Delaunay
@ 2020-11-17 9:59 ` Alexandre Torgue
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Torgue @ 2020-11-17 9:59 UTC (permalink / raw)
To: Amelie Delaunay, Maxime Coquelin, Rob Herring
Cc: linux-stm32, linux-arm-kernel, devicetree, linux-kernel
Hi Amélie
On 11/10/20 2:10 PM, Amelie Delaunay wrote:
> Defaut use case on stm32mp151 USB OTG is ethernet gadget, using EP1 bulk
> endpoint (MPS=512 bytes) and EP2 interrupt endpoint (MPS=16 bytes).
> This patch optimizes USB OTG FIFO sizes accordingly.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> arch/arm/boot/dts/stm32mp151.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
> index 6ffcf06dc0e8..928e31db1526 100644
> --- a/arch/arm/boot/dts/stm32mp151.dtsi
> +++ b/arch/arm/boot/dts/stm32mp151.dtsi
> @@ -1070,9 +1070,9 @@
> resets = <&rcc USBO_R>;
> reset-names = "dwc2";
> interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
> - g-rx-fifo-size = <256>;
> + g-rx-fifo-size = <512>;
> g-np-tx-fifo-size = <32>;
> - g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
> + g-tx-fifo-size = <256 16 16 16 16 16 16 16>;
> dr_mode = "otg";
> usb33d-supply = <&usb33>;
> status = "disabled";
>
Applied on stm32-next.
Thanks.
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-17 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 13:10 [PATCH 1/1] ARM: dts: stm32: adjust USB OTG gadget fifo sizes in stm32mp151 Amelie Delaunay
2020-11-17 9:59 ` Alexandre Torgue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).