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