dd0df47dc3
When booted with device tree, we may still have platform data passed
as auxdata. For am3517 this is needed for passing the interrupt_enable
and interrupt_disable callbacks that access the omap system control module
registers. These callback functions will eventually go away when we have
a separate system control module driver.
Some of the things that are currently passed as platform data we don't need
to set up as device tree properties as they are always the same on am3517.
So let's use a new compatible flag for those so we can get those from
the device tree match data.
Also note that we need to fix setting of phy_dev to NULL instead of an empty
string as the code later on uses that to find the first phy on the mdio bus.
This seems to have been caused by 5d69e0076a
(net: davinci_emac: switch to
new mdio).
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
* 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" or "ti,am3517-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>;
|
|
};
|