diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-06-25 02:04:35 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-07-27 09:31:08 +0800 |
commit | ca2cc333920690db87a03c2ee3bd6f43adb3e7fb (patch) | |
tree | d8a01ac861b42adbc160021f0343f4226fd01883 /Documentation/devicetree | |
parent | 4157ef1b8779b34581ee8b9dc8f7f95188008eca (diff) | |
download | kernel_goldelico_gta04-ca2cc333920690db87a03c2ee3bd6f43adb3e7fb.zip kernel_goldelico_gta04-ca2cc333920690db87a03c2ee3bd6f43adb3e7fb.tar.gz kernel_goldelico_gta04-ca2cc333920690db87a03c2ee3bd6f43adb3e7fb.tar.bz2 |
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>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/net/fsl-fec.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/fsl-fec.txt b/Documentation/devicetree/bindings/net/fsl-fec.txt new file mode 100644 index 0000000..de43951 --- /dev/null +++ b/Documentation/devicetree/bindings/net/fsl-fec.txt @@ -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]; +}; |