-
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.
This patch adds support to configure the STMMAC ethernet driver via device-tree instead of platform_data. Currently, only the properties needed on SPEAr600 are provided. All other properties should be added once needed on other platforms. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Stefan Roese
authored and
David S. Miller
committed
Mar 17, 2012
1 parent
06d6c10
commit 6a22845
Showing
2 changed files
with
100 additions
and
2 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,28 @@ | ||
* STMicroelectronics 10/100/1000 Ethernet driver (GMAC) | ||
|
||
Required properties: | ||
- compatible: Should be "st,spear600-gmac" | ||
- reg: Address and length of the register set for the device | ||
- interrupt-parent: Should be the phandle for the interrupt controller | ||
that services interrupts for this device | ||
- interrupts: Should contain the STMMAC interrupts | ||
- interrupt-names: Should contain the interrupt names "macirq" | ||
"eth_wake_irq" if this interrupt is supported in the "interrupts" | ||
property | ||
- phy-mode: String, operation mode of the PHY interface. | ||
Supported values are: "mii", "rmii", "gmii", "rgmii". | ||
|
||
Optional properties: | ||
- mac-address: 6 bytes, mac address | ||
|
||
Examples: | ||
|
||
gmac0: ethernet@e0800000 { | ||
compatible = "st,spear600-gmac"; | ||
reg = <0xe0800000 0x8000>; | ||
interrupt-parent = <&vic1>; | ||
interrupts = <24 23>; | ||
interrupt-names = "macirq", "eth_wake_irq"; | ||
mac-address = [000000000000]; /* Filled in by U-Boot */ | ||
phy-mode = "gmii"; | ||
}; |
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