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 Documentation/devicetree/bindings/net/ethernet.txt or 20Documentation/devicetree/bindings/net/phy.txt. 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 Documentation/devicetree/bindings/net/fixed-link.txt. 55 56Required: 57 58- fixed-link : "fixed-link" node, defined in "fixed-link.txt". 59 60Example: 61 ethernet@0,2 { 62 compatible = "fsl,enetc"; 63 reg = <0x000200 0 0 0 0>; 64 fixed-link { 65 speed = <1000>; 66 full-duplex; 67 }; 68 }; 69