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. 9e4f2379dSAlexey Brodkin- max-speed: Maximum supported data-rate in Mbit/s. In some HW configurations 10e4f2379dSAlexey Brodkinbandwidth of external memory controller might be a limiting factor. That's why 11e4f2379dSAlexey Brodkinit's required to specify which data-rate is supported on current SoC or FPGA. 12e4f2379dSAlexey BrodkinFor example if only 10 Mbit/s is supported (10BASE-T) set "10". If 100 Mbit/s is 13e4f2379dSAlexey Brodkinsupported (100BASE-TX) set "100". 14e4f2379dSAlexey Brodkin- phy: PHY device attached to the EMAC via MDIO bus 15e4f2379dSAlexey Brodkin 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 BrodkinOptional properties: 20e4f2379dSAlexey Brodkin- mac-address: 6 bytes, mac address 21e4f2379dSAlexey Brodkin 22e4f2379dSAlexey BrodkinExamples: 23e4f2379dSAlexey Brodkin 24e4f2379dSAlexey Brodkin ethernet@c0fc2000 { 25e4f2379dSAlexey Brodkin compatible = "snps,arc-emac"; 26e4f2379dSAlexey Brodkin reg = <0xc0fc2000 0x3c>; 27e4f2379dSAlexey Brodkin interrupts = <6>; 28e4f2379dSAlexey Brodkin mac-address = [ 00 11 22 33 44 55 ]; 29e4f2379dSAlexey Brodkin clock-frequency = <80000000>; 30e4f2379dSAlexey Brodkin max-speed = <100>; 31e4f2379dSAlexey Brodkin phy = <&phy0>; 32e4f2379dSAlexey Brodkin 33e4f2379dSAlexey Brodkin #address-cells = <1>; 34e4f2379dSAlexey Brodkin #size-cells = <0>; 35e4f2379dSAlexey Brodkin phy0: ethernet-phy@0 { 36e4f2379dSAlexey Brodkin reg = <1>; 37e4f2379dSAlexey Brodkin }; 38e4f2379dSAlexey Brodkin }; 39