hisilicon-hns-dsaf.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Hisilicon DSA Fabric device controller
  2. Required properties:
  3. - compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2".
  4. "hisilicon,hns-dsaf-v1" is for hip05.
  5. "hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612.
  6. - dsa-name: dsa fabric name who provide this interface.
  7. should be "dsafX", X is the dsaf id.
  8. - mode: dsa fabric mode string. only support one of dsaf modes like these:
  9. "2port-64vf",
  10. "6port-16rss",
  11. "6port-16vf".
  12. - interrupt-parent: the interrupt parent of this device.
  13. - interrupts: should contain the DSA Fabric and rcb interrupt.
  14. - reg: specifies base physical address(es) and size of the device registers.
  15. The first region is external interface control register base and size.
  16. The second region is SerDes base register and size.
  17. The third region is the PPE register base and size.
  18. The fourth region is dsa fabric base register and size.
  19. The fifth region is cpld base register and size, it is not required if do not use cpld.
  20. - phy-handle: phy handle of physicl port, 0 if not any phy device. see ethernet.txt [1].
  21. - buf-size: rx buffer size, should be 16-1024.
  22. - desc-num: number of description in TX and RX queue, should be 512, 1024, 2048 or 4096.
  23. [1] Documentation/devicetree/bindings/net/phy.txt
  24. Example:
  25. dsa: dsa@c7000000 {
  26. compatible = "hisilicon,hns-dsaf-v1";
  27. dsa_name = "dsaf0";
  28. mode = "6port-16rss";
  29. interrupt-parent = <&mbigen_dsa>;
  30. reg = <0x0 0xC0000000 0x0 0x420000
  31. 0x0 0xC2000000 0x0 0x300000
  32. 0x0 0xc5000000 0x0 0x890000
  33. 0x0 0xc7000000 0x0 0x60000>;
  34. phy-handle = <0 0 0 0 &soc0_phy4 &soc0_phy5 0 0>;
  35. interrupts = <131 4>,<132 4>, <133 4>,<134 4>,
  36. <135 4>,<136 4>, <137 4>,<138 4>,
  37. <139 4>,<140 4>, <141 4>,<142 4>,
  38. <143 4>,<144 4>, <145 4>,<146 4>,
  39. <147 4>,<148 4>, <384 1>,<385 1>,
  40. <386 1>,<387 1>, <388 1>,<389 1>,
  41. <390 1>,<391 1>,
  42. buf-size = <4096>;
  43. desc-num = <1024>;
  44. dma-coherent;
  45. };