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 10*88154c96SHeiko StübnerClock handling: 11*88154c96SHeiko StübnerThe clock frequency is needed to calculate and set polling period of EMAC. 12*88154c96SHeiko StübnerIt must be provided by one of: 13*88154c96SHeiko Stübner- clock-frequency: CPU frequency. 14*88154c96SHeiko Stübner- clocks: reference to the clock supplying the EMAC. 15*88154c96SHeiko Stübner 16e4f2379dSAlexey BrodkinChild nodes of the driver are the individual PHY devices connected to the 17e4f2379dSAlexey BrodkinMDIO bus. They must have a "reg" property given the PHY address on the MDIO bus. 18e4f2379dSAlexey Brodkin 19e4f2379dSAlexey BrodkinExamples: 20e4f2379dSAlexey Brodkin 21e4f2379dSAlexey Brodkin ethernet@c0fc2000 { 22e4f2379dSAlexey Brodkin compatible = "snps,arc-emac"; 23e4f2379dSAlexey Brodkin reg = <0xc0fc2000 0x3c>; 24e4f2379dSAlexey Brodkin interrupts = <6>; 25e4f2379dSAlexey Brodkin mac-address = [ 00 11 22 33 44 55 ]; 26*88154c96SHeiko Stübner 27e4f2379dSAlexey Brodkin clock-frequency = <80000000>; 28*88154c96SHeiko Stübner /* or */ 29*88154c96SHeiko Stübner clocks = <&emac_clock>; 30*88154c96SHeiko Stübner 31e4f2379dSAlexey Brodkin max-speed = <100>; 32e4f2379dSAlexey Brodkin phy = <&phy0>; 33e4f2379dSAlexey Brodkin 34e4f2379dSAlexey Brodkin #address-cells = <1>; 35e4f2379dSAlexey Brodkin #size-cells = <0>; 36e4f2379dSAlexey Brodkin phy0: ethernet-phy@0 { 37e4f2379dSAlexey Brodkin reg = <1>; 38e4f2379dSAlexey Brodkin }; 39e4f2379dSAlexey Brodkin }; 40