aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVince Bridgers <vbridger@opensource.altera.com>2015-04-15 12:17:38 -0400
committerDavid S. Miller <davem@davemloft.net>2015-04-16 13:58:42 -0400
commit13967f0c2abc088c27718319b9a571ccbf43fa89 (patch)
tree2066addc0e7c9c80f69b143122569f967d2bf731
parente743471f8d9c6ad00eb10a6d1e05803231e1de83 (diff)
stmmac: Add properties for transmit and receive fifo sizes
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>
-rw-r--r--Documentation/devicetree/bindings/net/ethernet.txt6
-rw-r--r--Documentation/devicetree/bindings/net/stmmac.txt4
2 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/ethernet.txt b/Documentation/devicetree/bindings/net/ethernet.txt
index 3fc360523bc9..41b3f3f864e8 100644
--- a/Documentation/devicetree/bindings/net/ethernet.txt
+++ b/Documentation/devicetree/bindings/net/ethernet.txt
@@ -19,6 +19,12 @@ The following properties are common to the Ethernet controllers:
19- phy: the same as "phy-handle" property, not recommended for new bindings. 19- phy: the same as "phy-handle" property, not recommended for new bindings.
20- phy-device: the same as "phy-handle" property, not recommended for new 20- phy-device: the same as "phy-handle" property, not recommended for new
21 bindings. 21 bindings.
22- rx-fifo-depth: the size of the controller's receive fifo in bytes. This
23 is used for components that can have configurable receive fifo sizes,
24 and is useful for determining certain configuration settings such as
25 flow control thresholds.
26- tx-fifo-depth: the size of the controller's transmit fifo in bytes. This
27 is used for components that can have configurable fifo sizes.
22 28
23Child nodes of the Ethernet controller are typically the individual PHY devices 29Child nodes of the Ethernet controller are typically the individual PHY devices
24connected via the MDIO bus (sometimes the MDIO bus controller is separate). 30connected via the MDIO bus (sometimes the MDIO bus controller is separate).
diff --git a/Documentation/devicetree/bindings/net/stmmac.txt b/Documentation/devicetree/bindings/net/stmmac.txt
index 29aca8591b16..f34fc3c81a75 100644
--- a/Documentation/devicetree/bindings/net/stmmac.txt
+++ b/Documentation/devicetree/bindings/net/stmmac.txt
@@ -45,6 +45,8 @@ Optional properties:
45 If not passed then the system clock will be used and this is fine on some 45 If not passed then the system clock will be used and this is fine on some
46 platforms. 46 platforms.
47- snps,burst_len: The AXI burst lenth value of the AXI BUS MODE register. 47- snps,burst_len: The AXI burst lenth value of the AXI BUS MODE register.
48- tx-fifo-depth: See ethernet.txt file in the same directory
49- rx-fifo-depth: See ethernet.txt file in the same directory
48 50
49Examples: 51Examples:
50 52
@@ -59,6 +61,8 @@ Examples:
59 phy-mode = "gmii"; 61 phy-mode = "gmii";
60 snps,multicast-filter-bins = <256>; 62 snps,multicast-filter-bins = <256>;
61 snps,perfect-filter-entries = <128>; 63 snps,perfect-filter-entries = <128>;
64 rx-fifo-depth = <16384>;
65 tx-fifo-depth = <16384>;
62 clocks = <&clock>; 66 clocks = <&clock>;
63 clock-names = "stmmaceth"; 67 clock-names = "stmmaceth";
64 }; 68 };