xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/davinci_emac.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments Davinci EMAC
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis file provides information, what the device node
4*4882a593Smuzhiyunfor the davinci_emac interface contains.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun- compatible: "ti,davinci-dm6467-emac", "ti,am3517-emac" or
8*4882a593Smuzhiyun  "ti,dm816-emac"
9*4882a593Smuzhiyun- reg: Offset and length of the register set for the device
10*4882a593Smuzhiyun- ti,davinci-ctrl-reg-offset: offset to control register
11*4882a593Smuzhiyun- ti,davinci-ctrl-mod-reg-offset: offset to control module register
12*4882a593Smuzhiyun- ti,davinci-ctrl-ram-offset: offset to control module ram
13*4882a593Smuzhiyun- ti,davinci-ctrl-ram-size: size of control module ram
14*4882a593Smuzhiyun- interrupts: interrupt mapping for the davinci emac interrupts sources:
15*4882a593Smuzhiyun              4 sources: <Receive Threshold Interrupt
16*4882a593Smuzhiyun			  Receive Interrupt
17*4882a593Smuzhiyun			  Transmit Interrupt
18*4882a593Smuzhiyun			  Miscellaneous Interrupt>
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunOptional properties:
21*4882a593Smuzhiyun- phy-handle: See ethernet.txt file in the same directory.
22*4882a593Smuzhiyun              If absent, davinci_emac driver defaults to 100/FULL.
23*4882a593Smuzhiyun- ti,davinci-rmii-en: 1 byte, 1 means use RMII
24*4882a593Smuzhiyun- ti,davinci-no-bd-ram: boolean, does EMAC have BD RAM?
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunThe MAC address will be determined using the optional properties
27*4882a593Smuzhiyundefined in ethernet.txt.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample (enbw_cmc board):
30*4882a593Smuzhiyun	eth0: emac@1e20000 {
31*4882a593Smuzhiyun		compatible = "ti,davinci-dm6467-emac";
32*4882a593Smuzhiyun		reg = <0x220000 0x4000>;
33*4882a593Smuzhiyun		ti,davinci-ctrl-reg-offset = <0x3000>;
34*4882a593Smuzhiyun		ti,davinci-ctrl-mod-reg-offset = <0x2000>;
35*4882a593Smuzhiyun		ti,davinci-ctrl-ram-offset = <0>;
36*4882a593Smuzhiyun		ti,davinci-ctrl-ram-size = <0x2000>;
37*4882a593Smuzhiyun		local-mac-address = [ 00 00 00 00 00 00 ];
38*4882a593Smuzhiyun		interrupts = <33
39*4882a593Smuzhiyun				34
40*4882a593Smuzhiyun				35
41*4882a593Smuzhiyun				36
42*4882a593Smuzhiyun				>;
43*4882a593Smuzhiyun		interrupt-parent = <&intc>;
44*4882a593Smuzhiyun	};
45