Linux-libre 3.10.103-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / net / stmmac.txt
1 * STMicroelectronics 10/100/1000 Ethernet driver (GMAC)
2
3 Required properties:
4 - compatible: Should be "snps,dwmac-<ip_version>" "snps,dwmac"
5         For backwards compatibility: "st,spear600-gmac" is also supported.
6 - reg: Address and length of the register set for the device
7 - interrupt-parent: Should be the phandle for the interrupt controller
8   that services interrupts for this device
9 - interrupts: Should contain the STMMAC interrupts
10 - interrupt-names: Should contain the interrupt names "macirq"
11   "eth_wake_irq" if this interrupt is supported in the "interrupts"
12   property
13 - phy-mode: String, operation mode of the PHY interface.
14   Supported values are: "mii", "rmii", "gmii", "rgmii".
15
16 Optional properties:
17 - mac-address: 6 bytes, mac address
18
19 Examples:
20
21         gmac0: ethernet@e0800000 {
22                 compatible = "st,spear600-gmac";
23                 reg = <0xe0800000 0x8000>;
24                 interrupt-parent = <&vic1>;
25                 interrupts = <24 23>;
26                 interrupt-names = "macirq", "eth_wake_irq";
27                 mac-address = [000000000000]; /* Filled in by U-Boot */
28                 phy-mode = "gmii";
29         };