Commit | Line | Data |
---|---|---|
e4f2379d AB |
1 | * Synopsys ARC EMAC 10/100 Ethernet driver (EMAC) |
2 | ||
3 | Required properties: | |
4 | - compatible: Should be "snps,arc-emac" | |
5 | - reg: Address and length of the register set for the device | |
6 | - interrupts: Should contain the EMAC interrupts | |
7 | - clock-frequency: CPU frequency. It is needed to calculate and set polling | |
8 | period of EMAC. | |
e8f08ee0 SS |
9 | - max-speed: see ethernet.txt file in the same directory. |
10 | - phy: see ethernet.txt file in the same directory. | |
e4f2379d AB |
11 | |
12 | Child nodes of the driver are the individual PHY devices connected to the | |
13 | MDIO bus. They must have a "reg" property given the PHY address on the MDIO bus. | |
14 | ||
e4f2379d AB |
15 | Examples: |
16 | ||
17 | ethernet@c0fc2000 { | |
18 | compatible = "snps,arc-emac"; | |
19 | reg = <0xc0fc2000 0x3c>; | |
20 | interrupts = <6>; | |
21 | mac-address = [ 00 11 22 33 44 55 ]; | |
22 | clock-frequency = <80000000>; | |
23 | max-speed = <100>; | |
24 | phy = <&phy0>; | |
25 | ||
26 | #address-cells = <1>; | |
27 | #size-cells = <0>; | |
28 | phy0: ethernet-phy@0 { | |
29 | reg = <1>; | |
30 | }; | |
31 | }; |