]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
stmmac: Add properties for transmit and receive fifo sizes
authorVince Bridgers <vbridger@opensource.altera.com>
Wed, 15 Apr 2015 16:17:38 +0000 (11:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Apr 2015 17:58:42 +0000 (13:58 -0400)
The Synopsys stmmac fifo sizes are configurable, and need to be known
in order to configure certain controller features. This patch adds
tx-fifo-depth and rx-fifo-depth properties to the stmmac document
file.

Signed-off-by: Vince Bridgers <vbridger@opensource.altera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/ethernet.txt
Documentation/devicetree/bindings/net/stmmac.txt

index 3fc360523bc97cf0a7acabf66063932112b2c8d0..41b3f3f864e84d7f6941bb61280870d70ea687b7 100644 (file)
@@ -19,6 +19,12 @@ The following properties are common to the Ethernet controllers:
 - phy: the same as "phy-handle" property, not recommended for new bindings.
 - phy-device: the same as "phy-handle" property, not recommended for new
   bindings.
+- rx-fifo-depth: the size of the controller's receive fifo in bytes. This
+  is used for components that can have configurable receive fifo sizes,
+  and is useful for determining certain configuration settings such as
+  flow control thresholds.
+- tx-fifo-depth: the size of the controller's transmit fifo in bytes. This
+  is used for components that can have configurable fifo sizes.
 
 Child nodes of the Ethernet controller are typically the individual PHY devices
 connected via the MDIO bus (sometimes the MDIO bus controller is separate).
index 29aca8591b163070211e29f02ea7608c19ca66a8..f34fc3c81a755c8a70573c50fa0a5b6dfae96a3c 100644 (file)
@@ -45,6 +45,8 @@ Optional properties:
   If not passed then the system clock will be used and this is fine on some
   platforms.
 - snps,burst_len: The AXI burst lenth value of the AXI BUS MODE register.
+- tx-fifo-depth: See ethernet.txt file in the same directory
+- rx-fifo-depth: See ethernet.txt file in the same directory
 
 Examples:
 
@@ -59,6 +61,8 @@ Examples:
                phy-mode = "gmii";
                snps,multicast-filter-bins = <256>;
                snps,perfect-filter-entries = <128>;
+               rx-fifo-depth = <16384>;
+               tx-fifo-depth = <16384>;
                clocks = <&clock>;
                clock-names = "stmmaceth";
        };