hisilicon-hix5hd2-gmac.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Hisilicon hix5hd2 gmac controller
  2. Required properties:
  3. - compatible: should be "hisilicon,hix5hd2-gmac".
  4. - reg: specifies base physical address(s) and size of the device registers.
  5. The first region is the MAC register base and size.
  6. The second region is external interface control register.
  7. - interrupts: should contain the MAC interrupt.
  8. - #address-cells: must be <1>.
  9. - #size-cells: must be <0>.
  10. - phy-mode: see ethernet.txt [1].
  11. - phy-handle: see ethernet.txt [1].
  12. - mac-address: see ethernet.txt [1].
  13. - clocks: clock phandle and specifier pair.
  14. - PHY subnode: inherits from phy binding [2]
  15. [1] Documentation/devicetree/bindings/net/ethernet.txt
  16. [2] Documentation/devicetree/bindings/net/phy.txt
  17. Example:
  18. gmac0: ethernet@f9840000 {
  19. compatible = "hisilicon,hix5hd2-gmac";
  20. reg = <0xf9840000 0x1000>,<0xf984300c 0x4>;
  21. interrupts = <0 71 4>;
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. phy-mode = "mii";
  25. phy-handle = <&phy2>;
  26. mac-address = [00 00 00 00 00 00];
  27. clocks = <&clock HIX5HD2_MAC0_CLK>;
  28. phy2: ethernet-phy@2 {
  29. reg = <2>;
  30. };
  31. };