xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/brcm,unimac-mdio.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Broadcom UniMAC MDIO bus controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: should one from "brcm,genet-mdio-v1", "brcm,genet-mdio-v2",
5*4882a593Smuzhiyun  "brcm,genet-mdio-v3", "brcm,genet-mdio-v4", "brcm,genet-mdio-v5" or
6*4882a593Smuzhiyun  "brcm,unimac-mdio"
7*4882a593Smuzhiyun- reg: address and length of the register set for the device, first one is the
8*4882a593Smuzhiyun  base register, and the second one is optional and for indirect accesses to
9*4882a593Smuzhiyun  larger than 16-bits MDIO transactions
10*4882a593Smuzhiyun- reg-names: name(s) of the register must be "mdio" and optional "mdio_indir_rw"
11*4882a593Smuzhiyun- #size-cells: must be 1
12*4882a593Smuzhiyun- #address-cells: must be 0
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunOptional properties:
15*4882a593Smuzhiyun- interrupts: must be one if the interrupt is shared with the Ethernet MAC or
16*4882a593Smuzhiyun  Ethernet switch this MDIO block is integrated from, or must be two, if there
17*4882a593Smuzhiyun  are two separate interrupts, first one must be "mdio done" and second must be
18*4882a593Smuzhiyun  for "mdio error"
19*4882a593Smuzhiyun- interrupt-names: must be "mdio_done_error" when there is a share interrupt fed
20*4882a593Smuzhiyun  to this hardware block, or must be "mdio_done" for the first interrupt and
21*4882a593Smuzhiyun  "mdio_error" for the second when there are separate interrupts
22*4882a593Smuzhiyun- clocks: A reference to the clock supplying the MDIO bus controller
23*4882a593Smuzhiyun- clock-frequency: the MDIO bus clock that must be output by the MDIO bus
24*4882a593Smuzhiyun  hardware, if absent, the default hardware values are used
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunChild nodes of this MDIO bus controller node are standard Ethernet PHY device
27*4882a593Smuzhiyunnodes as described in Documentation/devicetree/bindings/net/phy.txt
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunmdio@403c0 {
32*4882a593Smuzhiyun	compatible = "brcm,unimac-mdio";
33*4882a593Smuzhiyun	reg = <0x403c0 0x8 0x40300 0x18>;
34*4882a593Smuzhiyun	reg-names = "mdio", "mdio_indir_rw";
35*4882a593Smuzhiyun	#size-cells = <1>;
36*4882a593Smuzhiyun	#address-cells = <0>;
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun	...
39*4882a593Smuzhiyun	phy@0 {
40*4882a593Smuzhiyun		compatible = "ethernet-phy-ieee802.3-c22";
41*4882a593Smuzhiyun		reg = <0>;
42*4882a593Smuzhiyun	};
43*4882a593Smuzhiyun};
44