brcm,unimac-mdio.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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", "brcm,genet-mdio-v5" or
  5. "brcm,unimac-mdio"
  6. - reg: address and length of the register set for the device, first one is the
  7. base register, and the second one is optional and for indirect accesses to
  8. larger than 16-bits MDIO transactions
  9. - reg-names: name(s) of the register must be "mdio" and optional "mdio_indir_rw"
  10. - #size-cells: must be 1
  11. - #address-cells: must be 0
  12. Optional properties:
  13. - interrupts: must be one if the interrupt is shared with the Ethernet MAC or
  14. Ethernet switch this MDIO block is integrated from, or must be two, if there
  15. are two separate interrupts, first one must be "mdio done" and second must be
  16. for "mdio error"
  17. - interrupt-names: must be "mdio_done_error" when there is a share interrupt fed
  18. to this hardware block, or must be "mdio_done" for the first interrupt and
  19. "mdio_error" for the second when there are separate interrupts
  20. - clocks: A reference to the clock supplying the MDIO bus controller
  21. - clock-frequency: the MDIO bus clock that must be output by the MDIO bus
  22. hardware, if absent, the default hardware values are used
  23. Child nodes of this MDIO bus controller node are standard Ethernet PHY device
  24. nodes as described in Documentation/devicetree/bindings/net/phy.txt
  25. Example:
  26. mdio@403c0 {
  27. compatible = "brcm,unimac-mdio";
  28. reg = <0x403c0 0x8 0x40300 0x18>;
  29. reg-names = "mdio", "mdio_indir_rw";
  30. #size-cells = <1>;
  31. #address-cells = <0>;
  32. ...
  33. phy@0 {
  34. compatible = "ethernet-phy-ieee802.3-c22";
  35. reg = <0>;
  36. };
  37. };