Message ID | 20191114162838.7150-10-alexandru.marginean@nxp.com |
---|---|
State | Accepted |
Commit | e81031c2b8062c865b88cd6d39e86a55591a2c1f |
Delegated to: | Joe Hershberger |
Headers | show |
Series | Add XFI, USXGMII net protocols, use them in Aquantia driver | expand |
On Thu, Nov 14, 2019 at 10:33 AM Alex Marginean <alexandru.marginean@nxp.com> wrote: > > It defines that PHY nodes must be children on MDIO bus nodes and defines > the only required property in U-Boot, reg. This property along with the > example provided are copied over from Linux. > > Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff --git a/doc/device-tree-bindings/net/phy.txt b/doc/device-tree-bindings/net/phy.txt new file mode 100644 index 0000000000..6599c667b5 --- /dev/null +++ b/doc/device-tree-bindings/net/phy.txt @@ -0,0 +1,24 @@ +PHY nodes + +If the device tree is used to describe networking interfaces, U-Boot expects a +node for each PHY. Parent node for such a PHY node is expected to correspond to +a MDIO bus and the bus is used to access the PHY. + +Required properties: + + - reg : The ID number for the phy, usually a small integer + +Example: + +ethernet-phy@0 { + compatible = "ethernet-phy-id0141.0e90", "ethernet-phy-ieee802.3-c22"; + interrupt-parent = <&PIC>; + interrupts = <35 IRQ_TYPE_EDGE_RISING>; + reg = <0>; + + resets = <&rst 8>; + reset-names = "phy"; + reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + reset-assert-us = <1000>; + reset-deassert-us = <2000>; +};
It defines that PHY nodes must be children on MDIO bus nodes and defines the only required property in U-Boot, reg. This property along with the example provided are copied over from Linux. Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com> --- doc/device-tree-bindings/net/phy.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/device-tree-bindings/net/phy.txt