arc_emac.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. - max-speed: see ethernet.txt file in the same directory.
  7. - phy: see ethernet.txt file in the same directory.
  8. Clock handling:
  9. The clock frequency is needed to calculate and set polling period of EMAC.
  10. It must be provided by one of:
  11. - clock-frequency: CPU frequency.
  12. - clocks: reference to the clock supplying the EMAC.
  13. Child nodes of the driver are the individual PHY devices connected to the
  14. MDIO bus. They must have a "reg" property given the PHY address on the MDIO bus.
  15. Examples:
  16. ethernet@c0fc2000 {
  17. compatible = "snps,arc-emac";
  18. reg = <0xc0fc2000 0x3c>;
  19. interrupts = <6>;
  20. mac-address = [ 00 11 22 33 44 55 ];
  21. clock-frequency = <80000000>;
  22. /* or */
  23. clocks = <&emac_clock>;
  24. max-speed = <100>;
  25. phy = <&phy0>;
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. phy0: ethernet-phy@0 {
  29. reg = <1>;
  30. };
  31. };