-
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: dm9000: Allow instantiation using device tree
This patch adds Device Tree support to dm9000 driver. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Reviewed-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Tomasz Figa
authored and
David S. Miller
committed
May 20, 2013
1 parent
aafc787
commit 0b8bf1b
Showing
3 changed files
with
69 additions
and
0 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,26 @@ | ||
Davicom DM9000 Fast Ethernet controller | ||
|
||
Required properties: | ||
- compatible = "davicom,dm9000"; | ||
- reg : physical addresses and sizes of registers, must contain 2 entries: | ||
first entry : address register, | ||
second entry : data register. | ||
- interrupt-parent : interrupt controller to which the device is connected | ||
- interrupts : interrupt specifier specific to interrupt controller | ||
|
||
Optional properties: | ||
- local-mac-address : A bytestring of 6 bytes specifying Ethernet MAC address | ||
to use (from firmware or bootloader) | ||
- davicom,no-eeprom : Configuration EEPROM is not available | ||
- davicom,ext-phy : Use external PHY | ||
|
||
Example: | ||
|
||
ethernet@18000000 { | ||
compatible = "davicom,dm9000"; | ||
reg = <0x18000000 0x2 0x18000004 0x2>; | ||
interrupt-parent = <&gpn>; | ||
interrupts = <7 4>; | ||
local-mac-address = [00 00 de ad be ef]; | ||
davicom,no-eeprom; | ||
}; |
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
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