-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/fec: add device tree probe support
It adds device tree probe support for fec driver. Signed-off-by: Jason Liu <jason.hui@linaro.org> Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Cc: David S. Miller <davem@davemloft.net> Cc: Grant Likely <grant.likely@secretlab.ca> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Shawn Guo
committed
Jul 27, 2011
1 parent
4157ef1
commit ca2cc33
Showing
2 changed files
with
122 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
* Freescale Fast Ethernet Controller (FEC) | ||
|
||
Required properties: | ||
- compatible : Should be "fsl,<soc>-fec" | ||
- reg : Address and length of the register set for the device | ||
- interrupts : Should contain fec interrupt | ||
- phy-mode : String, operation mode of the PHY interface. | ||
Supported values are: "mii", "gmii", "sgmii", "tbi", "rmii", | ||
"rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid", "rtbi", "smii". | ||
- phy-reset-gpios : Should specify the gpio for phy reset | ||
|
||
Optional properties: | ||
- local-mac-address : 6 bytes, mac address | ||
|
||
Example: | ||
|
||
fec@83fec000 { | ||
compatible = "fsl,imx51-fec", "fsl,imx27-fec"; | ||
reg = <0x83fec000 0x4000>; | ||
interrupts = <87>; | ||
phy-mode = "mii"; | ||
phy-reset-gpios = <&gpio1 14 0>; /* GPIO2_14 */ | ||
local-mac-address = [00 04 9F 01 1B B9]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters