Add fsl,magic-packet to, and clean up, the gianfar binding.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
Scott Wood 2008-07-11 18:04:43 -05:00 committed by Kumar Gala
parent d87eb12785
commit 00262986ce
1 changed files with 12 additions and 19 deletions

View File

@ -24,46 +24,39 @@ Example:
* Gianfar-compatible ethernet nodes * Gianfar-compatible ethernet nodes
Required properties: Properties:
- device_type : Should be "network" - device_type : Should be "network"
- model : Model of the device. Can be "TSEC", "eTSEC", or "FEC" - model : Model of the device. Can be "TSEC", "eTSEC", or "FEC"
- compatible : Should be "gianfar" - compatible : Should be "gianfar"
- reg : Offset and length of the register set for the device - reg : Offset and length of the register set for the device
- mac-address : List of bytes representing the ethernet address of - local-mac-address : List of bytes representing the ethernet address of
this controller this controller
- interrupts : <a b> where a is the interrupt number and b is a - interrupts : For FEC devices, the first interrupt is the device's
field that represents an encoding of the sense and level interrupt. For TSEC and eTSEC devices, the first interrupt is
information for the interrupt. This should be encoded based on transmit, the second is receive, and the third is error.
the information in section 2) depending on the type of interrupt
controller you have.
- interrupt-parent : the phandle for the interrupt controller that
services interrupts for this device.
- phy-handle : The phandle for the PHY connected to this ethernet - phy-handle : The phandle for the PHY connected to this ethernet
controller. controller.
- fixed-link : <a b c d e> where a is emulated phy id - choose any, - fixed-link : <a b c d e> where a is emulated phy id - choose any,
but unique to the all specified fixed-links, b is duplex - 0 half, but unique to the all specified fixed-links, b is duplex - 0 half,
1 full, c is link speed - d#10/d#100/d#1000, d is pause - 0 no 1 full, c is link speed - d#10/d#100/d#1000, d is pause - 0 no
pause, 1 pause, e is asym_pause - 0 no asym_pause, 1 asym_pause. pause, 1 pause, e is asym_pause - 0 no asym_pause, 1 asym_pause.
Recommended properties:
- phy-connection-type : a string naming the controller/PHY interface type, - phy-connection-type : a string naming the controller/PHY interface type,
i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id", "sgmii", i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id", "sgmii",
"tbi", or "rtbi". This property is only really needed if the connection "tbi", or "rtbi". This property is only really needed if the connection
is of type "rgmii-id", as all other connection types are detected by is of type "rgmii-id", as all other connection types are detected by
hardware. hardware.
- fsl,magic-packet : If present, indicates that the hardware supports
waking up via magic packet.
Example: Example:
ethernet@24000 { ethernet@24000 {
#size-cells = <0>;
device_type = "network"; device_type = "network";
model = "TSEC"; model = "TSEC";
compatible = "gianfar"; compatible = "gianfar";
reg = <24000 1000>; reg = <0x24000 0x1000>;
mac-address = [ 00 E0 0C 00 73 00 ]; local-mac-address = [ 00 E0 0C 00 73 00 ];
interrupts = <d 3 e 3 12 3>; interrupts = <29 2 30 2 34 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
phy-handle = <2452000> phy-handle = <&phy0>
}; };