-
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: Add device tree support to LPC32xx
This patch adds device tree support for lpc_eth.c. The runtime option for MII/RMII is solved via the "phy-mode" property, SRAM ("IRAM") usage for DMA can be chosen via "use-iram". Signed-off-by: Roland Stigge <stigge@antcom.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Roland Stigge
committed
Apr 22, 2012
1 parent
b41a216
commit 4de02e4
Showing
2 changed files
with
74 additions
and
21 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 @@ | ||
* NXP LPC32xx SoC Ethernet Controller | ||
|
||
Required properties: | ||
- compatible: Should be "nxp,lpc-eth" | ||
- reg: Address and length of the register set for the device | ||
- interrupts: Should contain ethernet controller interrupt | ||
|
||
Optional properties: | ||
- phy-mode: String, operation mode of the PHY interface. | ||
Supported values are: "mii", "rmii" (default) | ||
- use-iram: Use LPC32xx internal SRAM (IRAM) for DMA buffering | ||
- local-mac-address : 6 bytes, mac address | ||
|
||
Example: | ||
|
||
mac: ethernet@31060000 { | ||
compatible = "nxp,lpc-eth"; | ||
reg = <0x31060000 0x1000>; | ||
interrupt-parent = <&mic>; | ||
interrupts = <29 0>; | ||
|
||
phy-mode = "rmii"; | ||
use-iram; | ||
}; |
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