aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/net
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-08-27 20:04:47 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-28 01:59:39 -0400
commit2ba1b163c9d5d716fb1061f3fb76832cc6eea37f (patch)
tree86192c8cc81e03f368265af36553b31cb4cd24de /Documentation/devicetree/bindings/net
parent3e8a72d1dae374cf6fc1dba97cec663585845ff9 (diff)
net: phy: add generic UniMAC MDIO bus driver
Add a generic UniMAC MDIO bus driver and its Device Tree binding, which can be used by the BCMGENET driver as-is, and the upcoming Starfighter 2 Ethernet switch MDIO bus controller. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/bindings/net')
-rw-r--r--Documentation/devicetree/bindings/net/broadcom-mdio-unimac.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/broadcom-mdio-unimac.txt b/Documentation/devicetree/bindings/net/broadcom-mdio-unimac.txt
new file mode 100644
index 000000000000..ab0bb4247d14
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/broadcom-mdio-unimac.txt
@@ -0,0 +1,39 @@
1* Broadcom UniMAC MDIO bus controller
2
3Required properties:
4- compatible: should one from "brcm,genet-mdio-v1", "brcm,genet-mdio-v2",
5 "brcm,genet-mdio-v3", "brcm,genet-mdio-v4" or "brcm,unimac-mdio"
6- reg: address and length of the regsiter set for the device, first one is the
7 base register, and the second one is optional and for indirect accesses to
8 larger than 16-bits MDIO transactions
9- reg-names: name(s) of the register must be "mdio" and optional "mdio_indir_rw"
10- #size-cells: must be 1
11- #address-cells: must be 0
12
13Optional properties:
14- interrupts: must be one if the interrupt is shared with the Ethernet MAC or
15 Ethernet switch this MDIO block is integrated from, or must be two, if there
16 are two separate interrupts, first one must be "mdio done" and second must be
17 for "mdio error"
18- interrupt-names: must be "mdio_done_error" when there is a share interrupt fed
19 to this hardware block, or must be "mdio_done" for the first interrupt and
20 "mdio_error" for the second when there are separate interrupts
21
22Child nodes of this MDIO bus controller node are standard Ethernet PHY device
23nodes as described in Documentation/devicetree/bindings/net/phy.txt
24
25Example:
26
27mdio@403c0 {
28 compatible = "brcm,unimac-mdio";
29 reg = <0x403c0 0x8 0x40300 0x18>;
30 reg-names = "mdio", "mdio_indir_rw";
31 #size-cells = <1>;
32 #address-cells = <0>;
33
34 ...
35 phy@0 {
36 compatible = "ethernet-phy-ieee802.3-c22";
37 reg = <0>;
38 };
39};