Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 1 | * MDIO IO device |
| 2 | |
| 3 | The MDIO is a bus to which the PHY devices are connected. For each |
| 4 | device that exists on this bus, a child node should be created. See |
| 5 | the definition of the PHY node below for an example of how to define |
| 6 | a PHY. |
| 7 | |
| 8 | Required properties: |
| 9 | - reg : Offset and length of the register set for the device |
| 10 | - compatible : Should define the compatible device type for the |
| 11 | mdio. Currently, this is most likely to be "fsl,gianfar-mdio" |
| 12 | |
| 13 | Example: |
| 14 | |
| 15 | mdio@24520 { |
| 16 | reg = <24520 20>; |
| 17 | compatible = "fsl,gianfar-mdio"; |
| 18 | |
| 19 | ethernet-phy@0 { |
| 20 | ...... |
| 21 | }; |
| 22 | }; |
| 23 | |
| 24 | |
| 25 | * Gianfar-compatible ethernet nodes |
| 26 | |
Scott Wood | 0026298 | 2008-07-11 18:04:43 -0500 | [diff] [blame^] | 27 | Properties: |
Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 28 | |
| 29 | - device_type : Should be "network" |
| 30 | - model : Model of the device. Can be "TSEC", "eTSEC", or "FEC" |
| 31 | - compatible : Should be "gianfar" |
| 32 | - reg : Offset and length of the register set for the device |
Scott Wood | 0026298 | 2008-07-11 18:04:43 -0500 | [diff] [blame^] | 33 | - local-mac-address : List of bytes representing the ethernet address of |
Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 34 | this controller |
Scott Wood | 0026298 | 2008-07-11 18:04:43 -0500 | [diff] [blame^] | 35 | - interrupts : For FEC devices, the first interrupt is the device's |
| 36 | interrupt. For TSEC and eTSEC devices, the first interrupt is |
| 37 | transmit, the second is receive, and the third is error. |
Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 38 | - phy-handle : The phandle for the PHY connected to this ethernet |
| 39 | controller. |
| 40 | - fixed-link : <a b c d e> where a is emulated phy id - choose any, |
| 41 | but unique to the all specified fixed-links, b is duplex - 0 half, |
| 42 | 1 full, c is link speed - d#10/d#100/d#1000, d is pause - 0 no |
| 43 | pause, 1 pause, e is asym_pause - 0 no asym_pause, 1 asym_pause. |
Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 44 | - phy-connection-type : a string naming the controller/PHY interface type, |
| 45 | i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id", "sgmii", |
| 46 | "tbi", or "rtbi". This property is only really needed if the connection |
| 47 | is of type "rgmii-id", as all other connection types are detected by |
| 48 | hardware. |
Scott Wood | 0026298 | 2008-07-11 18:04:43 -0500 | [diff] [blame^] | 49 | - fsl,magic-packet : If present, indicates that the hardware supports |
| 50 | waking up via magic packet. |
Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 51 | |
| 52 | Example: |
| 53 | ethernet@24000 { |
Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 54 | device_type = "network"; |
| 55 | model = "TSEC"; |
| 56 | compatible = "gianfar"; |
Scott Wood | 0026298 | 2008-07-11 18:04:43 -0500 | [diff] [blame^] | 57 | reg = <0x24000 0x1000>; |
| 58 | local-mac-address = [ 00 E0 0C 00 73 00 ]; |
| 59 | interrupts = <29 2 30 2 34 2>; |
| 60 | interrupt-parent = <&mpic>; |
| 61 | phy-handle = <&phy0> |
Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 62 | }; |