arm64: dts: meson: add ethernet fifo sizes
Subsystems (2)
Jerome Brunet
reviewerPATCH 1/1 arm64: dts: meson: add ethernet fifo sizes
If unspecified in DT, the fifo sizes are not automatically detected by the dwmac1000 dma driver and the reported fifo sizes default to 0. Because of this, flow control will be turned off on the device.
Add the fifo sizes provided by the datasheets in the SoC in DT so flow control may be enabled if necessary.
--- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 2 ++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 2 ++ arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 2 ++ 3 files changed, 6 insertions(+)
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +2 -0
@@ -182,6 +182,8 @@ <&clkc CLKID_FCLK_DIV2>, <&clkc CLKID_MPLL2>; clock-names = "stmmaceth", "clkin0", "clkin1"; + rx-fifo-depth = <4096>; + tx-fifo-depth = <2048>; status = "disabled"; };
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +2 -0
@@ -150,6 +150,8 @@ <&clkc CLKID_FCLK_DIV2>, <&clkc CLKID_MPLL2>; clock-names = "stmmaceth", "clkin0", "clkin1"; + rx-fifo-depth = <4096>; + tx-fifo-depth = <2048>; status = "disabled"; mdio0: mdio {
arch/arm64/boot/dts/amlogic/meson-gx.dtsi +2 -0
@@ -493,6 +493,8 @@ 0x0 0xc8834540 0x0 0x4>; interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "macirq"; + rx-fifo-depth = <4096>; + tx-fifo-depth = <2048>; status = "disabled"; };
Signature · 1 line
2.21.0
Quoted 7 lines · Jerome Brunet
If unspecified in DT, the fifo sizes are not automatically detected by the dwmac1000 dma driver and the reported fifo sizes default to 0. Because of this, flow control will be turned off on the device.
Add the fifo sizes provided by the datasheets in the SoC in DT so flow control may be enabled if necessary.
(only worth updating if you have to re-send it for whatever reason) as far as I understand the stmmac code (dwmac1000_dma_operation_mode_{rx,tx}) "RX flow control" depends on the RX FIFO size but TX doesn't
Quoted 1 line
Signed-off-by Jerome Brunet <[email protected]>
Kevin Hilman
maintainerQuoted 8 lines · Jerome Brunet
If unspecified in DT, the fifo sizes are not automatically detected by the dwmac1000 dma driver and the reported fifo sizes default to 0. Because of this, flow control will be turned off on the device.
Add the fifo sizes provided by the datasheets in the SoC in DT so flow control may be enabled if necessary.
Signed-off-by Jerome Brunet <[email protected]>
Queued for v5.4,
Thanks,
Kevin