mscc-ocelot.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Microsemi Ocelot network Switch
  2. ===============================
  3. The Microsemi Ocelot network switch can be found on Microsemi SoCs (VSC7513,
  4. VSC7514)
  5. Required properties:
  6. - compatible: Should be "mscc,vsc7514-switch"
  7. - reg: Must contain an (offset, length) pair of the register set for each
  8. entry in reg-names.
  9. - reg-names: Must include the following entries:
  10. - "sys"
  11. - "rew"
  12. - "qs"
  13. - "hsio"
  14. - "qsys"
  15. - "ana"
  16. - "portX" with X from 0 to the number of last port index available on that
  17. switch
  18. - interrupts: Should contain the switch interrupts for frame extraction and
  19. frame injection
  20. - interrupt-names: should contain the interrupt names: "xtr", "inj"
  21. - ethernet-ports: A container for child nodes representing switch ports.
  22. The ethernet-ports container has the following properties
  23. Required properties:
  24. - #address-cells: Must be 1
  25. - #size-cells: Must be 0
  26. Each port node must have the following mandatory properties:
  27. - reg: Describes the port address in the switch
  28. Port nodes may also contain the following optional standardised
  29. properties, described in binding documents:
  30. - phy-handle: Phandle to a PHY on an MDIO bus. See
  31. Documentation/devicetree/bindings/net/ethernet.txt for details.
  32. Example:
  33. switch@1010000 {
  34. compatible = "mscc,vsc7514-switch";
  35. reg = <0x1010000 0x10000>,
  36. <0x1030000 0x10000>,
  37. <0x1080000 0x100>,
  38. <0x10d0000 0x10000>,
  39. <0x11e0000 0x100>,
  40. <0x11f0000 0x100>,
  41. <0x1200000 0x100>,
  42. <0x1210000 0x100>,
  43. <0x1220000 0x100>,
  44. <0x1230000 0x100>,
  45. <0x1240000 0x100>,
  46. <0x1250000 0x100>,
  47. <0x1260000 0x100>,
  48. <0x1270000 0x100>,
  49. <0x1280000 0x100>,
  50. <0x1800000 0x80000>,
  51. <0x1880000 0x10000>;
  52. reg-names = "sys", "rew", "qs", "hsio", "port0",
  53. "port1", "port2", "port3", "port4", "port5",
  54. "port6", "port7", "port8", "port9", "port10",
  55. "qsys", "ana";
  56. interrupts = <21 22>;
  57. interrupt-names = "xtr", "inj";
  58. ethernet-ports {
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. port0: port@0 {
  62. reg = <0>;
  63. phy-handle = <&phy0>;
  64. };
  65. port1: port@1 {
  66. reg = <1>;
  67. phy-handle = <&phy1>;
  68. };
  69. };
  70. };