brcm,bcm7445-switch-v4.0.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. * Broadcom Starfighter 2 integrated swich
  2. Required properties:
  3. - compatible: should be "brcm,bcm7445-switch-v4.0"
  4. - reg: addresses and length of the register sets for the device, must be 6
  5. pairs of register addresses and lengths
  6. - interrupts: interrupts for the devices, must be two interrupts
  7. - dsa,mii-bus: phandle to the MDIO bus controller, see dsa/dsa.txt
  8. - dsa,ethernet: phandle to the CPU network interface controller, see dsa/dsa.txt
  9. - #size-cells: must be 0
  10. - #address-cells: must be 2, see dsa/dsa.txt
  11. Subnodes:
  12. The integrated switch subnode should be specified according to the binding
  13. described in dsa/dsa.txt.
  14. Optional properties:
  15. - reg-names: litteral names for the device base register addresses, when present
  16. must be: "core", "reg", "intrl2_0", "intrl2_1", "fcb", "acb"
  17. - interrupt-names: litternal names for the device interrupt lines, when present
  18. must be: "switch_0" and "switch_1"
  19. - brcm,num-gphy: specify the maximum number of integrated gigabit PHYs in the
  20. switch
  21. - brcm,num-rgmii-ports: specify the maximum number of RGMII interfaces supported
  22. by the switch
  23. - brcm,fcb-pause-override: boolean property, if present indicates that the switch
  24. supports Failover Control Block pause override capability
  25. - brcm,acb-packets-inflight: boolean property, if present indicates that the switch
  26. Admission Control Block supports reporting the number of packets in-flight in a
  27. switch queue
  28. Example:
  29. switch_top@f0b00000 {
  30. compatible = "simple-bus";
  31. #size-cells = <1>;
  32. #address-cells = <1>;
  33. ranges = <0 0xf0b00000 0x40804>;
  34. ethernet_switch@0 {
  35. compatible = "brcm,bcm7445-switch-v4.0";
  36. #size-cells = <0>;
  37. #address-cells = <2>;
  38. reg = <0x0 0x40000
  39. 0x40000 0x110
  40. 0x40340 0x30
  41. 0x40380 0x30
  42. 0x40400 0x34
  43. 0x40600 0x208>;
  44. interrupts = <0 0x18 0
  45. 0 0x19 0>;
  46. brcm,num-gphy = <1>;
  47. brcm,num-rgmii-ports = <2>;
  48. brcm,fcb-pause-override;
  49. brcm,acb-packets-inflight;
  50. ...
  51. switch@0 {
  52. reg = <0 0>;
  53. #size-cells = <0>;
  54. #address-cells <1>;
  55. port@0 {
  56. label = "gphy";
  57. reg = <0>;
  58. };
  59. ...
  60. };
  61. };
  62. };