1* ENETC ethernet device tree bindings 2 3Depending on board design and ENETC port type (internal or 4external) there are two supported link modes specified by 5below device tree bindings. 6 7Required 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 141) The ENETC external port is connected to a MDIO configurable phy: 15 16In this case, the ENETC node should include a "mdio" sub-node 17that in turn should contain the "ethernet-phy" node describing the 18external phy. Below properties are required, their bindings 19already defined in ethernet.txt or phy.txt, under 20Documentation/devicetree/bindings/net/*. 21 22Required: 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 33Example: 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 502) The ENETC port is an internal port or has a fixed-link external 51connection: 52 53In this case, the ENETC port node defines a fixed link connection, 54as specified by "fixed-link.txt", under 55Documentation/devicetree/bindings/net/*. 56 57Required: 58 59- fixed-link : "fixed-link" node, defined in "fixed-link.txt". 60 61Example: 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 }; 70