ARM: dts: stm32: adjust USB OTG gadget fifo sizes in stm32mp151
authorAmelie Delaunay <amelie.delaunay@st.com>
Tue, 10 Nov 2020 13:10:59 +0000 (14:10 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 26 Nov 2020 13:42:41 +0000 (14:42 +0100)
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>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp151.dtsi

index 7aec02f..b95c46c 100644 (file)
                        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";