hisilicon-femac.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Hisilicon Fast Ethernet MAC controller
  2. Required properties:
  3. - compatible: should contain one of the following version strings:
  4. * "hisilicon,hisi-femac-v1"
  5. * "hisilicon,hisi-femac-v2"
  6. and the soc string "hisilicon,hi3516cv300-femac".
  7. - reg: specifies base physical address(s) and size of the device registers.
  8. The first region is the MAC core register base and size.
  9. The second region is the global MAC control register.
  10. - interrupts: should contain the MAC interrupt.
  11. - clocks: A phandle to the MAC main clock.
  12. - resets: should contain the phandle to the MAC reset signal(required) and
  13. the PHY reset signal(optional).
  14. - reset-names: should contain the reset signal name "mac"(required)
  15. and "phy"(optional).
  16. - mac-address: see ethernet.txt [1].
  17. - phy-mode: see ethernet.txt [1].
  18. - phy-handle: see ethernet.txt [1].
  19. - hisilicon,phy-reset-delays-us: triplet of delays if PHY reset signal given.
  20. The 1st cell is reset pre-delay in micro seconds.
  21. The 2nd cell is reset pulse in micro seconds.
  22. The 3rd cell is reset post-delay in micro seconds.
  23. [1] Documentation/devicetree/bindings/net/ethernet.txt
  24. Example:
  25. hisi_femac: ethernet@10090000 {
  26. compatible = "hisilicon,hi3516cv300-femac","hisilicon,hisi-femac-v2";
  27. reg = <0x10090000 0x1000>,<0x10091300 0x200>;
  28. interrupts = <12>;
  29. clocks = <&crg HI3518EV200_ETH_CLK>;
  30. resets = <&crg 0xec 0>,<&crg 0xec 3>;
  31. reset-names = "mac","phy";
  32. mac-address = [00 00 00 00 00 00];
  33. phy-mode = "mii";
  34. phy-handle = <&phy0>;
  35. hisilicon,phy-reset-delays-us = <10000 20000 20000>;
  36. };