Merge branch 'work.splice_read' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / Documentation / devicetree / bindings / infiniband / hisilicon-hns-roce.txt
1 Hisilicon RoCE DT description
2
3 Hisilicon RoCE engine is a part of network subsystem.
4 It works depending on other part of network wubsytem, such as, gmac and
5 dsa fabric.
6
7 Additional properties are described here:
8
9 Required properties:
10 - compatible: Should contain "hisilicon,hns-roce-v1".
11 - reg: Physical base address of the RoCE driver and
12 length of memory mapped region.
13 - eth-handle: phandle, specifies a reference to a node
14 representing a ethernet device.
15 - dsaf-handle: phandle, specifies a reference to a node
16 representing a dsaf device.
17 - #address-cells: must be 2
18 - #size-cells: must be 2
19 Optional properties:
20 - dma-coherent: Present if DMA operations are coherent.
21 - interrupt-parent: the interrupt parent of this device.
22 - interrupts: should contain 32 completion event irq,1 async event irq
23 and 1 event overflow irq.
24 - interrupt-names:should be one of 34 irqs for roce device
25   - hns-roce-comp-0 ~ hns-roce-comp-31: 32 complete event irq
26   - hns-roce-async: 1 async event irq
27   - hns-roce-common: named common exception warning irq
28 Example:
29         infiniband@c4000000 {
30                         compatible = "hisilicon,hns-roce-v1";
31                         reg = <0x0 0xc4000000 0x0 0x100000>;
32                         dma-coherent;
33                         eth-handle = <&eth2 &eth3 &eth4 &eth5 &eth6 &eth7>;
34                         dsaf-handle = <&soc0_dsa>;
35                         #address-cells = <2>;
36                         #size-cells = <2>;
37                         interrupt-parent = <&mbigen_dsa>;
38                         interrupts = <722 1>,
39                                         <723 1>,
40                                         <724 1>,
41                                         <725 1>,
42                                         <726 1>,
43                                         <727 1>,
44                                         <728 1>,
45                                         <729 1>,
46                                         <730 1>,
47                                         <731 1>,
48                                         <732 1>,
49                                         <733 1>,
50                                         <734 1>,
51                                         <735 1>,
52                                         <736 1>,
53                                         <737 1>,
54                                         <738 1>,
55                                         <739 1>,
56                                         <740 1>,
57                                         <741 1>,
58                                         <742 1>,
59                                         <743 1>,
60                                         <744 1>,
61                                         <745 1>,
62                                         <746 1>,
63                                         <747 1>,
64                                         <748 1>,
65                                         <749 1>,
66                                         <750 1>,
67                                         <751 1>,
68                                         <752 1>,
69                                         <753 1>,
70                                         <785 1>,
71                                         <754 4>;
72
73                         interrupt-names = "hns-roce-comp-0",
74                                         "hns-roce-comp-1",
75                                         "hns-roce-comp-2",
76                                         "hns-roce-comp-3",
77                                         "hns-roce-comp-4",
78                                         "hns-roce-comp-5",
79                                         "hns-roce-comp-6",
80                                         "hns-roce-comp-7",
81                                         "hns-roce-comp-8",
82                                         "hns-roce-comp-9",
83                                         "hns-roce-comp-10",
84                                         "hns-roce-comp-11",
85                                         "hns-roce-comp-12",
86                                         "hns-roce-comp-13",
87                                         "hns-roce-comp-14",
88                                         "hns-roce-comp-15",
89                                         "hns-roce-comp-16",
90                                         "hns-roce-comp-17",
91                                         "hns-roce-comp-18",
92                                         "hns-roce-comp-19",
93                                         "hns-roce-comp-20",
94                                         "hns-roce-comp-21",
95                                         "hns-roce-comp-22",
96                                         "hns-roce-comp-23",
97                                         "hns-roce-comp-24",
98                                         "hns-roce-comp-25",
99                                         "hns-roce-comp-26",
100                                         "hns-roce-comp-27",
101                                         "hns-roce-comp-28",
102                                         "hns-roce-comp-29",
103                                         "hns-roce-comp-30",
104                                         "hns-roce-comp-31",
105                                         "hns-roce-async",
106                                         "hns-roce-common";
107                 };