brcm,unimac-mdio.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. * Broadcom UniMAC MDIO bus controller
  2. Required properties:
  3. - compatible: should one from "brcm,genet-mdio-v1", "brcm,genet-mdio-v2",
  4. "brcm,genet-mdio-v3", "brcm,genet-mdio-v4" or "brcm,unimac-mdio"
  5. - reg: address and length of the regsiter set for the device, first one is the
  6. base register, and the second one is optional and for indirect accesses to
  7. larger than 16-bits MDIO transactions
  8. - reg-names: name(s) of the register must be "mdio" and optional "mdio_indir_rw"
  9. - #size-cells: must be 1
  10. - #address-cells: must be 0
  11. Optional properties:
  12. - interrupts: must be one if the interrupt is shared with the Ethernet MAC or
  13. Ethernet switch this MDIO block is integrated from, or must be two, if there
  14. are two separate interrupts, first one must be "mdio done" and second must be
  15. for "mdio error"
  16. - interrupt-names: must be "mdio_done_error" when there is a share interrupt fed
  17. to this hardware block, or must be "mdio_done" for the first interrupt and
  18. "mdio_error" for the second when there are separate interrupts
  19. Child nodes of this MDIO bus controller node are standard Ethernet PHY device
  20. nodes as described in Documentation/devicetree/bindings/net/phy.txt
  21. Example:
  22. mdio@403c0 {
  23. compatible = "brcm,unimac-mdio";
  24. reg = <0x403c0 0x8 0x40300 0x18>;
  25. reg-names = "mdio", "mdio_indir_rw";
  26. #size-cells = <1>;
  27. #address-cells = <0>;
  28. ...
  29. phy@0 {
  30. compatible = "ethernet-phy-ieee802.3-c22";
  31. reg = <0>;
  32. };
  33. };