arc_emac.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. Optional properties:
  9. - phy-reset-gpios : Should specify the gpio for phy reset
  10. - phy-reset-duration : Reset duration in milliseconds. Should present
  11. only if property "phy-reset-gpios" is available. Missing the property
  12. will have the duration be 1 millisecond. Numbers greater than 1000 are
  13. invalid and 1 millisecond will be used instead.
  14. Clock handling:
  15. The clock frequency is needed to calculate and set polling period of EMAC.
  16. It must be provided by one of:
  17. - clock-frequency: CPU frequency.
  18. - clocks: reference to the clock supplying the EMAC.
  19. Child nodes of the driver are the individual PHY devices connected to the
  20. MDIO bus. They must have a "reg" property given the PHY address on the MDIO bus.
  21. Examples:
  22. ethernet@c0fc2000 {
  23. compatible = "snps,arc-emac";
  24. reg = <0xc0fc2000 0x3c>;
  25. interrupts = <6>;
  26. mac-address = [ 00 11 22 33 44 55 ];
  27. clock-frequency = <80000000>;
  28. /* or */
  29. clocks = <&emac_clock>;
  30. max-speed = <100>;
  31. phy = <&phy0>;
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. phy0: ethernet-phy@0 {
  35. reg = <1>;
  36. };
  37. };