forked from robclark/kernel-omap4
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: ethernet: davinci_emac: add OF support
add OF support for the davinci_emac driver. Signed-off-by: Heiko Schocher <[email protected]> Acked-by: Sekhar Nori <[email protected]> Signed-off-by: Anatolij Gustschin <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Grant Likely <[email protected]> Cc: Sekhar Nori <[email protected]> Cc: Wolfgang Denk <[email protected]> Cc: Anatoly Sivov <[email protected]> Cc: David Miller <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
2 changed files
with
129 additions
and
1 deletion.
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,41 @@ | ||
* Texas Instruments Davinci EMAC | ||
|
||
This file provides information, what the device node | ||
for the davinci_emac interface contains. | ||
|
||
Required properties: | ||
- compatible: "ti,davinci-dm6467-emac"; | ||
- reg: Offset and length of the register set for the device | ||
- ti,davinci-ctrl-reg-offset: offset to control register | ||
- ti,davinci-ctrl-mod-reg-offset: offset to control module register | ||
- ti,davinci-ctrl-ram-offset: offset to control module ram | ||
- ti,davinci-ctrl-ram-size: size of control module ram | ||
- ti,davinci-rmii-en: use RMII | ||
- ti,davinci-no-bd-ram: has the emac controller BD RAM | ||
- phy-handle: Contains a phandle to an Ethernet PHY. | ||
if not, davinci_emac driver defaults to 100/FULL | ||
- interrupts: interrupt mapping for the davinci emac interrupts sources: | ||
4 sources: <Receive Threshold Interrupt | ||
Receive Interrupt | ||
Transmit Interrupt | ||
Miscellaneous Interrupt> | ||
|
||
Optional properties: | ||
- local-mac-address : 6 bytes, mac address | ||
|
||
Example (enbw_cmc board): | ||
eth0: emac@1e20000 { | ||
compatible = "ti,davinci-dm6467-emac"; | ||
reg = <0x220000 0x4000>; | ||
ti,davinci-ctrl-reg-offset = <0x3000>; | ||
ti,davinci-ctrl-mod-reg-offset = <0x2000>; | ||
ti,davinci-ctrl-ram-offset = <0>; | ||
ti,davinci-ctrl-ram-size = <0x2000>; | ||
local-mac-address = [ 00 00 00 00 00 00 ]; | ||
interrupts = <33 | ||
34 | ||
35 | ||
36 | ||
>; | ||
interrupt-parent = <&intc>; | ||
}; |
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