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