Merge tag 'sound-fix-5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / net / fsl-enetc.txt
1 * ENETC ethernet device tree bindings
2
3 Depending on board design and ENETC port type (internal or
4 external) there are two supported link modes specified by
5 below device tree bindings.
6
7 Required properties:
8
9 - reg           : Specifies PCIe Device Number and Function
10                   Number of the ENETC endpoint device, according
11                   to parent node bindings.
12 - compatible    : Should be "fsl,enetc".
13
14 1) The ENETC external port is connected to a MDIO configurable phy:
15
16 In this case, the ENETC node should include a "mdio" sub-node
17 that in turn should contain the "ethernet-phy" node describing the
18 external phy.  Below properties are required, their bindings
19 already defined in ethernet.txt or phy.txt, under
20 Documentation/devicetree/bindings/net/*.
21
22 Required:
23
24 - phy-handle            : Phandle to a PHY on the MDIO bus.
25                           Defined in ethernet.txt.
26
27 - phy-connection-type   : Defined in ethernet.txt.
28
29 - mdio                  : "mdio" node, defined in mdio.txt.
30
31 - ethernet-phy          : "ethernet-phy" node, defined in phy.txt.
32
33 Example:
34
35         ethernet@0,0 {
36                 compatible = "fsl,enetc";
37                 reg = <0x000000 0 0 0 0>;
38                 phy-handle = <&sgmii_phy0>;
39                 phy-connection-type = "sgmii";
40
41                 mdio {
42                         #address-cells = <1>;
43                         #size-cells = <0>;
44                         sgmii_phy0: ethernet-phy@2 {
45                                 reg = <0x2>;
46                         };
47                 };
48         };
49
50 2) The ENETC port is an internal port or has a fixed-link external
51 connection:
52
53 In this case, the ENETC port node defines a fixed link connection,
54 as specified by "fixed-link.txt", under
55 Documentation/devicetree/bindings/net/*.
56
57 Required:
58
59 - fixed-link    : "fixed-link" node, defined in "fixed-link.txt".
60
61 Example:
62         ethernet@0,2 {
63                 compatible = "fsl,enetc";
64                 reg = <0x000200 0 0 0 0>;
65                 fixed-link {
66                         speed = <1000>;
67                         full-duplex;
68                 };
69         };