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
7e8f08ee0SSergei Shtylyov- max-speed: see ethernet.txt file in the same directory.
8e8f08ee0SSergei Shtylyov- phy: see ethernet.txt file in the same directory.
9e4f2379dSAlexey Brodkin
108700eee6SCaesar WangOptional properties:
118700eee6SCaesar Wang- phy-reset-gpios : Should specify the gpio for phy reset
128700eee6SCaesar Wang- phy-reset-duration : Reset duration in milliseconds.  Should present
138700eee6SCaesar Wang  only if property "phy-reset-gpios" is available.  Missing the property
148700eee6SCaesar Wang  will have the duration be 1 millisecond.  Numbers greater than 1000 are
158700eee6SCaesar Wang  invalid and 1 millisecond will be used instead.
168700eee6SCaesar Wang
1788154c96SHeiko StübnerClock handling:
1888154c96SHeiko StübnerThe clock frequency is needed to calculate and set polling period of EMAC.
1988154c96SHeiko StübnerIt must be provided by one of:
2088154c96SHeiko Stübner- clock-frequency: CPU frequency.
2188154c96SHeiko Stübner- clocks: reference to the clock supplying the EMAC.
2288154c96SHeiko Stübner
23e4f2379dSAlexey BrodkinChild nodes of the driver are the individual PHY devices connected to the
24e4f2379dSAlexey BrodkinMDIO bus. They must have a "reg" property given the PHY address on the MDIO bus.
25e4f2379dSAlexey Brodkin
26e4f2379dSAlexey BrodkinExamples:
27e4f2379dSAlexey Brodkin
28e4f2379dSAlexey Brodkin	ethernet@c0fc2000 {
29e4f2379dSAlexey Brodkin		compatible = "snps,arc-emac";
30e4f2379dSAlexey Brodkin		reg = <0xc0fc2000 0x3c>;
31e4f2379dSAlexey Brodkin		interrupts = <6>;
32e4f2379dSAlexey Brodkin		mac-address = [ 00 11 22 33 44 55 ];
3388154c96SHeiko Stübner
34e4f2379dSAlexey Brodkin		clock-frequency = <80000000>;
3588154c96SHeiko Stübner		/* or */
3688154c96SHeiko Stübner		clocks = <&emac_clock>;
3788154c96SHeiko Stübner
38e4f2379dSAlexey Brodkin		max-speed = <100>;
39e4f2379dSAlexey Brodkin		phy = <&phy0>;
40e4f2379dSAlexey Brodkin
41e4f2379dSAlexey Brodkin		#address-cells = <1>;
42e4f2379dSAlexey Brodkin		#size-cells = <0>;
43e4f2379dSAlexey Brodkin		phy0: ethernet-phy@0 {
44e4f2379dSAlexey Brodkin			reg = <1>;
45e4f2379dSAlexey Brodkin		};
46e4f2379dSAlexey Brodkin	};
47