Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / net / ethernet.txt
1 The following properties are common to the Ethernet controllers:
2
3 NOTE: All 'phy*' properties documented below are Ethernet specific. For the
4 generic PHY 'phys' property, see
5 Documentation/devicetree/bindings/phy/phy-bindings.txt.
6
7 - local-mac-address: array of 6 bytes, specifies the MAC address that was
8   assigned to the network device;
9 - mac-address: array of 6 bytes, specifies the MAC address that was last used by
10   the boot program; should be used in cases where the MAC address assigned to
11   the device by the boot program is different from the "local-mac-address"
12   property;
13 - max-speed: number, specifies maximum speed in Mbit/s supported by the device;
14 - max-frame-size: number, maximum transfer unit (IEEE defined MTU), rather than
15   the maximum frame size (there's contradiction in the Devicetree
16   Specification).
17 - phy-mode: string, operation mode of the PHY interface. This is now a de-facto
18   standard property; supported values are:
19   * "internal" (Internal means there is not a standard bus between the MAC and
20      the PHY, something proprietary is being used to embed the PHY in the MAC.)
21   * "mii"
22   * "gmii"
23   * "sgmii"
24   * "qsgmii"
25   * "tbi"
26   * "rev-mii"
27   * "rmii"
28   * "rgmii" (RX and TX delays are added by the MAC when required)
29   * "rgmii-id" (RGMII with internal RX and TX delays provided by the PHY, the
30      MAC should not add the RX or TX delays in this case)
31   * "rgmii-rxid" (RGMII with internal RX delay provided by the PHY, the MAC
32      should not add an RX delay in this case)
33   * "rgmii-txid" (RGMII with internal TX delay provided by the PHY, the MAC
34      should not add an TX delay in this case)
35   * "rtbi"
36   * "smii"
37   * "xgmii"
38   * "trgmii"
39   * "2000base-x",
40   * "2500base-x",
41   * "rxaui"
42   * "xaui"
43   * "10gbase-kr" (10GBASE-KR, XFI, SFI)
44 - phy-connection-type: the same as "phy-mode" property but described in the
45   Devicetree Specification;
46 - phy-handle: phandle, specifies a reference to a node representing a PHY
47   device; this property is described in the Devicetree Specification and so
48   preferred;
49 - phy: the same as "phy-handle" property, not recommended for new bindings.
50 - phy-device: the same as "phy-handle" property, not recommended for new
51   bindings.
52 - rx-fifo-depth: the size of the controller's receive fifo in bytes. This
53   is used for components that can have configurable receive fifo sizes,
54   and is useful for determining certain configuration settings such as
55   flow control thresholds.
56 - tx-fifo-depth: the size of the controller's transmit fifo in bytes. This
57   is used for components that can have configurable fifo sizes.
58 - managed: string, specifies the PHY management type. Supported values are:
59   "auto", "in-band-status". "auto" is the default, it usess MDIO for
60   management if fixed-link is not specified.
61
62 Child nodes of the Ethernet controller are typically the individual PHY devices
63 connected via the MDIO bus (sometimes the MDIO bus controller is separate).
64 They are described in the phy.txt file in this same directory.
65 For non-MDIO PHY management see fixed-link.txt.