diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2019-11-28 19:05:03 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2019-11-28 19:05:03 +0000 |
commit | c3f1cfc76c9a579767282ac81d2be1cfb20aea92 (patch) | |
tree | 2ceec207f54ea88f7e65cbfc01d27ccf39cb9693 /Bindings/net/fsl-enetc.txt | |
parent | 01e5ca170569c10889ed1bb2efcf4d19eae1353c (diff) | |
download | src-c3f1cfc76c9a579767282ac81d2be1cfb20aea92.tar.gz src-c3f1cfc76c9a579767282ac81d2be1cfb20aea92.zip |
Import devicetree files from Linux 5.4vendor/device-tree/5.4
Notes
Notes:
svn path=/vendor/device-tree/dist/; revision=355185
svn path=/vendor/device-tree/5.4/; revision=355186; tag=vendor/device-tree/5.4
Diffstat (limited to 'Bindings/net/fsl-enetc.txt')
-rw-r--r-- | Bindings/net/fsl-enetc.txt | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/Bindings/net/fsl-enetc.txt b/Bindings/net/fsl-enetc.txt index 25fc687419db..b7034ccbc1bd 100644 --- a/Bindings/net/fsl-enetc.txt +++ b/Bindings/net/fsl-enetc.txt @@ -11,7 +11,9 @@ Required properties: to parent node bindings. - compatible : Should be "fsl,enetc". -1) The ENETC external port is connected to a MDIO configurable phy: +1. The ENETC external port is connected to a MDIO configurable phy + +1.1. Using the local ENETC Port MDIO interface In this case, the ENETC node should include a "mdio" sub-node that in turn should contain the "ethernet-phy" node describing the @@ -47,8 +49,42 @@ Example: }; }; -2) The ENETC port is an internal port or has a fixed-link external -connection: +1.2. Using the central MDIO PCIe endpoint device + +In this case, the mdio node should be defined as another PCIe +endpoint node, at the same level with the ENETC port nodes. + +Required properties: + +- reg : Specifies PCIe Device Number and Function + Number of the ENETC endpoint device, according + to parent node bindings. +- compatible : Should be "fsl,enetc-mdio". + +The remaining required mdio bus properties are standard, their bindings +already defined in Documentation/devicetree/bindings/net/mdio.txt. + +Example: + + ethernet@0,0 { + compatible = "fsl,enetc"; + reg = <0x000000 0 0 0 0>; + phy-handle = <&sgmii_phy0>; + phy-connection-type = "sgmii"; + }; + + mdio@0,3 { + compatible = "fsl,enetc-mdio"; + reg = <0x000300 0 0 0 0>; + #address-cells = <1>; + #size-cells = <0>; + sgmii_phy0: ethernet-phy@2 { + reg = <0x2>; + }; + }; + +2. The ENETC port is an internal port or has a fixed-link external +connection In this case, the ENETC port node defines a fixed link connection, as specified by Documentation/devicetree/bindings/net/fixed-link.txt. |