xref: /openbmc/linux/Documentation/devicetree/bindings/net/davinci_emac.txt (revision c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2)
142f59967SHeiko Schocher* Texas Instruments Davinci EMAC
242f59967SHeiko Schocher
342f59967SHeiko SchocherThis file provides information, what the device node
442f59967SHeiko Schocherfor the davinci_emac interface contains.
542f59967SHeiko Schocher
642f59967SHeiko SchocherRequired properties:
7de390083STony Lindgren- compatible: "ti,davinci-dm6467-emac", "ti,am3517-emac" or
8de390083STony Lindgren  "ti,dm816-emac"
942f59967SHeiko Schocher- reg: Offset and length of the register set for the device
1042f59967SHeiko Schocher- ti,davinci-ctrl-reg-offset: offset to control register
1142f59967SHeiko Schocher- ti,davinci-ctrl-mod-reg-offset: offset to control module register
1242f59967SHeiko Schocher- ti,davinci-ctrl-ram-offset: offset to control module ram
1342f59967SHeiko Schocher- ti,davinci-ctrl-ram-size: size of control module ram
1442f59967SHeiko Schocher- interrupts: interrupt mapping for the davinci emac interrupts sources:
1542f59967SHeiko Schocher              4 sources: <Receive Threshold Interrupt
1642f59967SHeiko Schocher			  Receive Interrupt
1742f59967SHeiko Schocher			  Transmit Interrupt
1842f59967SHeiko Schocher			  Miscellaneous Interrupt>
1942f59967SHeiko Schocher
2042f59967SHeiko SchocherOptional properties:
21e8f08ee0SSergei Shtylyov- phy-handle: See ethernet.txt file in the same directory.
222c2dc161SSergei Shtylyov              If absent, davinci_emac driver defaults to 100/FULL.
23731ff244SSergei Shtylyov- ti,davinci-rmii-en: 1 byte, 1 means use RMII
24589dcb8aSSergei Shtylyov- ti,davinci-no-bd-ram: boolean, does EMAC have BD RAM?
2542f59967SHeiko Schocher
26*687e3d55SPetr ŠtetiarThe MAC address will be determined using the optional properties
27*687e3d55SPetr Štetiardefined in ethernet.txt.
28*687e3d55SPetr Štetiar
2942f59967SHeiko SchocherExample (enbw_cmc board):
3042f59967SHeiko Schocher	eth0: emac@1e20000 {
3142f59967SHeiko Schocher		compatible = "ti,davinci-dm6467-emac";
3242f59967SHeiko Schocher		reg = <0x220000 0x4000>;
3342f59967SHeiko Schocher		ti,davinci-ctrl-reg-offset = <0x3000>;
3442f59967SHeiko Schocher		ti,davinci-ctrl-mod-reg-offset = <0x2000>;
3542f59967SHeiko Schocher		ti,davinci-ctrl-ram-offset = <0>;
3642f59967SHeiko Schocher		ti,davinci-ctrl-ram-size = <0x2000>;
3742f59967SHeiko Schocher		local-mac-address = [ 00 00 00 00 00 00 ];
3842f59967SHeiko Schocher		interrupts = <33
3942f59967SHeiko Schocher				34
4042f59967SHeiko Schocher				35
4142f59967SHeiko Schocher				36
4242f59967SHeiko Schocher				>;
4342f59967SHeiko Schocher		interrupt-parent = <&intc>;
4442f59967SHeiko Schocher	};
45