arc_emac.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. * Synopsys ARC EMAC 10/100 Ethernet driver (EMAC)
  2. Required properties:
  3. - compatible: Should be "snps,arc-emac"
  4. - reg: Address and length of the register set for the device
  5. - interrupts: Should contain the EMAC interrupts
  6. - clock-frequency: CPU frequency. It is needed to calculate and set polling
  7. period of EMAC.
  8. - max-speed: Maximum supported data-rate in Mbit/s. In some HW configurations
  9. bandwidth of external memory controller might be a limiting factor. That's why
  10. it's required to specify which data-rate is supported on current SoC or FPGA.
  11. For example if only 10 Mbit/s is supported (10BASE-T) set "10". If 100 Mbit/s is
  12. supported (100BASE-TX) set "100".
  13. - phy: PHY device attached to the EMAC via MDIO bus
  14. Child nodes of the driver are the individual PHY devices connected to the
  15. MDIO bus. They must have a "reg" property given the PHY address on the MDIO bus.
  16. Optional properties:
  17. - mac-address: 6 bytes, mac address
  18. Examples:
  19. ethernet@c0fc2000 {
  20. compatible = "snps,arc-emac";
  21. reg = <0xc0fc2000 0x3c>;
  22. interrupts = <6>;
  23. mac-address = [ 00 11 22 33 44 55 ];
  24. clock-frequency = <80000000>;
  25. max-speed = <100>;
  26. phy = <&phy0>;
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. phy0: ethernet-phy@0 {
  30. reg = <1>;
  31. };
  32. };