xref: /openbmc/linux/Documentation/devicetree/bindings/net/arc_emac.txt (revision e8f08ee0ad86012a2e9ac3a6cc318b058dd4d47c)
1e4f2379dSAlexey Brodkin* Synopsys ARC EMAC 10/100 Ethernet driver (EMAC)
2e4f2379dSAlexey Brodkin
3e4f2379dSAlexey BrodkinRequired properties:
4e4f2379dSAlexey Brodkin- compatible: Should be "snps,arc-emac"
5e4f2379dSAlexey Brodkin- reg: Address and length of the register set for the device
6e4f2379dSAlexey Brodkin- interrupts: Should contain the EMAC interrupts
7e4f2379dSAlexey Brodkin- clock-frequency: CPU frequency. It is needed to calculate and set polling
8e4f2379dSAlexey Brodkinperiod of EMAC.
9*e8f08ee0SSergei Shtylyov- max-speed: see ethernet.txt file in the same directory.
10*e8f08ee0SSergei Shtylyov- phy: see ethernet.txt file in the same directory.
11e4f2379dSAlexey Brodkin
12e4f2379dSAlexey BrodkinChild nodes of the driver are the individual PHY devices connected to the
13e4f2379dSAlexey BrodkinMDIO bus. They must have a "reg" property given the PHY address on the MDIO bus.
14e4f2379dSAlexey Brodkin
15e4f2379dSAlexey BrodkinExamples:
16e4f2379dSAlexey Brodkin
17e4f2379dSAlexey Brodkin	ethernet@c0fc2000 {
18e4f2379dSAlexey Brodkin		compatible = "snps,arc-emac";
19e4f2379dSAlexey Brodkin		reg = <0xc0fc2000 0x3c>;
20e4f2379dSAlexey Brodkin		interrupts = <6>;
21e4f2379dSAlexey Brodkin		mac-address = [ 00 11 22 33 44 55 ];
22e4f2379dSAlexey Brodkin		clock-frequency = <80000000>;
23e4f2379dSAlexey Brodkin		max-speed = <100>;
24e4f2379dSAlexey Brodkin		phy = <&phy0>;
25e4f2379dSAlexey Brodkin
26e4f2379dSAlexey Brodkin		#address-cells = <1>;
27e4f2379dSAlexey Brodkin		#size-cells = <0>;
28e4f2379dSAlexey Brodkin		phy0: ethernet-phy@0 {
29e4f2379dSAlexey Brodkin			reg = <1>;
30e4f2379dSAlexey Brodkin		};
31e4f2379dSAlexey Brodkin	};
32