cavium-mdio.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. * System Management Interface (SMI) / MDIO
  2. Properties:
  3. - compatible: One of:
  4. "cavium,octeon-3860-mdio": Compatibility with all cn3XXX, cn5XXX
  5. and cn6XXX SOCs.
  6. "cavium,thunder-8890-mdio": Compatibility with all cn8XXX SOCs.
  7. - reg: The base address of the MDIO bus controller register bank.
  8. - #address-cells: Must be <1>.
  9. - #size-cells: Must be <0>. MDIO addresses have no size component.
  10. Typically an MDIO bus might have several children.
  11. Example:
  12. mdio@1180000001800 {
  13. compatible = "cavium,octeon-3860-mdio";
  14. #address-cells = <1>;
  15. #size-cells = <0>;
  16. reg = <0x11800 0x00001800 0x0 0x40>;
  17. ethernet-phy@0 {
  18. ...
  19. reg = <0>;
  20. };
  21. };
  22. * System Management Interface (SMI) / MDIO Nexus
  23. Several mdio buses may be gathered as children of a single PCI
  24. device, this PCI device is the nexus of the buses.
  25. Properties:
  26. - compatible: "cavium,thunder-8890-mdio-nexus";
  27. - reg: The PCI device and function numbers of the nexus device.
  28. - #address-cells: Must be <2>.
  29. - #size-cells: Must be <2>.
  30. - ranges: As needed for mapping of the MDIO bus device registers.
  31. - assigned-addresses: As needed for mapping of the MDIO bus device registers.
  32. Example:
  33. mdio-nexus@1,3 {
  34. compatible = "cavium,thunder-8890-mdio-nexus";
  35. #address-cells = <2>;
  36. #size-cells = <2>;
  37. reg = <0x0b00 0 0 0 0>; /* DEVFN = 0x0b (1:3) */
  38. assigned-addresses = <0x03000000 0x87e0 0x05000000 0x0 0x800000>;
  39. ranges = <0x87e0 0x05000000 0x03000000 0x87e0 0x05000000 0x0 0x800000>;
  40. mdio0@87e0,05003800 {
  41. compatible = "cavium,thunder-8890-mdio";
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. reg = <0x87e0 0x05003800 0x0 0x30>;
  45. ethernet-phy@0 {
  46. ...
  47. reg = <0>;
  48. };
  49. };
  50. mdio0@87e0,05003880 {
  51. compatible = "cavium,thunder-8890-mdio";
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. reg = <0x87e0 0x05003880 0x0 0x30>;
  55. ethernet-phy@0 {
  56. ...
  57. reg = <0>;
  58. };
  59. };
  60. };