diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2014-08-11 11:35:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-11 17:41:06 -0400 |
commit | 407066f8f3716ca2880a08c48dbab507ae2ec8d9 (patch) | |
tree | 4465c0cb2fad695b086f41db1b211fd939bc79aa /Documentation | |
parent | 200d7db76e589823c9dcbf6b88aee48cf2aaf195 (diff) |
net: fec: Support phys probed from devicetree and fixed-link
This adds support for specifying the phy to be used with the fec in the
devicetree using the standard phy-handle property and also supports
fixed-link.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/net/fsl-fec.txt | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/net/fsl-fec.txt b/Documentation/devicetree/bindings/net/fsl-fec.txt index 6bc84adb10c0..8a2c7b55ec16 100644 --- a/Documentation/devicetree/bindings/net/fsl-fec.txt +++ b/Documentation/devicetree/bindings/net/fsl-fec.txt | |||
@@ -12,7 +12,14 @@ Optional properties: | |||
12 | only if property "phy-reset-gpios" is available. Missing the property | 12 | only if property "phy-reset-gpios" is available. Missing the property |
13 | will have the duration be 1 millisecond. Numbers greater than 1000 are | 13 | will have the duration be 1 millisecond. Numbers greater than 1000 are |
14 | invalid and 1 millisecond will be used instead. | 14 | invalid and 1 millisecond will be used instead. |
15 | - phy-supply: regulator that powers the Ethernet PHY. | 15 | - phy-supply : regulator that powers the Ethernet PHY. |
16 | - phy-handle : phandle to the PHY device connected to this device. | ||
17 | - fixed-link : Assume a fixed link. See fixed-link.txt in the same directory. | ||
18 | Use instead of phy-handle. | ||
19 | |||
20 | Optional subnodes: | ||
21 | - mdio : specifies the mdio bus in the FEC, used as a container for phy nodes | ||
22 | according to phy.txt in the same directory | ||
16 | 23 | ||
17 | Example: | 24 | Example: |
18 | 25 | ||
@@ -25,3 +32,23 @@ ethernet@83fec000 { | |||
25 | local-mac-address = [00 04 9F 01 1B B9]; | 32 | local-mac-address = [00 04 9F 01 1B B9]; |
26 | phy-supply = <®_fec_supply>; | 33 | phy-supply = <®_fec_supply>; |
27 | }; | 34 | }; |
35 | |||
36 | Example with phy specified: | ||
37 | |||
38 | ethernet@83fec000 { | ||
39 | compatible = "fsl,imx51-fec", "fsl,imx27-fec"; | ||
40 | reg = <0x83fec000 0x4000>; | ||
41 | interrupts = <87>; | ||
42 | phy-mode = "mii"; | ||
43 | phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */ | ||
44 | local-mac-address = [00 04 9F 01 1B B9]; | ||
45 | phy-supply = <®_fec_supply>; | ||
46 | phy-handle = <ðphy>; | ||
47 | mdio { | ||
48 | ethphy: ethernet-phy@6 { | ||
49 | compatible = "ethernet-phy-ieee802.3-c22"; | ||
50 | reg = <6>; | ||
51 | max-speed = <100>; | ||
52 | }; | ||
53 | }; | ||
54 | }; | ||