]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: meson: add ethernet fifo sizes
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 18 Jul 2019 09:03:01 +0000 (11:03 +0200)
committerKevin Hilman <khilman@baylibre.com>
Fri, 9 Aug 2019 18:07:14 +0000 (11:07 -0700)
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 <jbrunet@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-axg.dtsi
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
arch/arm64/boot/dts/amlogic/meson-gx.dtsi

index 6219337033a0b7a344d84bda656e18079c820309..12bf959c17a7638f82cec98f95cab4e7ecbad777 100644 (file)
@@ -182,6 +182,8 @@ ethmac: ethernet@ff3f0000 {
                                 <&clkc CLKID_FCLK_DIV2>,
                                 <&clkc CLKID_MPLL2>;
                        clock-names = "stmmaceth", "clkin0", "clkin1";
+                       rx-fifo-depth = <4096>;
+                       tx-fifo-depth = <2048>;
                        status = "disabled";
                };
 
index 38d70ce1cfc7c9a63acc43b5daf1dc0895658739..27bb242dc95d037b592712dcd24e8f9f5fb1e0da 100644 (file)
@@ -106,6 +106,8 @@ ethmac: ethernet@ff3f0000 {
                                 <&clkc CLKID_FCLK_DIV2>,
                                 <&clkc CLKID_MPLL2>;
                        clock-names = "stmmaceth", "clkin0", "clkin1";
+                       rx-fifo-depth = <4096>;
+                       tx-fifo-depth = <2048>;
                        status = "disabled";
 
                        mdio0: mdio {
index 74d03fc706be1525d21dd7d07fec217ef289b9c0..e62aad5bf867dd6cd3d4a445311dad510e3eaf12 100644 (file)
@@ -493,6 +493,8 @@ ethmac: ethernet@c9410000 {
                               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";
                };