xref: /openbmc/linux/Documentation/devicetree/bindings/infiniband/hisilicon-hns-roce.txt (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
169bafce8SoulijunHisilicon RoCE DT description
269bafce8Soulijun
369bafce8SoulijunHisilicon RoCE engine is a part of network subsystem.
4*e1ce4de6SBhaskar ChowdhuryIt works depending on other part of network subsystem, such as gmac and
569bafce8Soulijundsa fabric.
669bafce8Soulijun
769bafce8SoulijunAdditional properties are described here:
869bafce8Soulijun
969bafce8SoulijunRequired properties:
1069bafce8Soulijun- compatible: Should contain "hisilicon,hns-roce-v1".
1169bafce8Soulijun- reg: Physical base address of the RoCE driver and
1269bafce8Soulijunlength of memory mapped region.
1369bafce8Soulijun- eth-handle: phandle, specifies a reference to a node
1469bafce8Soulijunrepresenting a ethernet device.
1569bafce8Soulijun- dsaf-handle: phandle, specifies a reference to a node
1669bafce8Soulijunrepresenting a dsaf device.
171cfbfdd8SLijun Ou- node_guid: a number that uniquely identifies a device or component
1869bafce8Soulijun- #address-cells: must be 2
1969bafce8Soulijun- #size-cells: must be 2
2069bafce8SoulijunOptional properties:
2169bafce8Soulijun- dma-coherent: Present if DMA operations are coherent.
2269bafce8Soulijun- interrupts: should contain 32 completion event irq,1 async event irq
2369bafce8Soulijunand 1 event overflow irq.
2469bafce8Soulijun- interrupt-names:should be one of 34 irqs for roce device
2569bafce8Soulijun  - hns-roce-comp-0 ~ hns-roce-comp-31: 32 complete event irq
2669bafce8Soulijun  - hns-roce-async: 1 async event irq
2769bafce8Soulijun  - hns-roce-common: named common exception warning irq
2869bafce8SoulijunExample:
2969bafce8Soulijun	infiniband@c4000000 {
3069bafce8Soulijun			compatible = "hisilicon,hns-roce-v1";
3169bafce8Soulijun			reg = <0x0 0xc4000000 0x0 0x100000>;
3269bafce8Soulijun			dma-coherent;
3369bafce8Soulijun			eth-handle = <&eth2 &eth3 &eth4 &eth5 &eth6 &eth7>;
3469bafce8Soulijun			dsaf-handle = <&soc0_dsa>;
351cfbfdd8SLijun Ou			node-guid = [00 9A CD 00 00 01 02 03];
3669bafce8Soulijun			#address-cells = <2>;
3769bafce8Soulijun			#size-cells = <2>;
3869bafce8Soulijun			interrupt-parent = <&mbigen_dsa>;
3969bafce8Soulijun			interrupts = <722 1>,
4069bafce8Soulijun					<723 1>,
4169bafce8Soulijun					<724 1>,
4269bafce8Soulijun					<725 1>,
4369bafce8Soulijun					<726 1>,
4469bafce8Soulijun					<727 1>,
4569bafce8Soulijun					<728 1>,
4669bafce8Soulijun					<729 1>,
4769bafce8Soulijun					<730 1>,
4869bafce8Soulijun					<731 1>,
4969bafce8Soulijun					<732 1>,
5069bafce8Soulijun					<733 1>,
5169bafce8Soulijun					<734 1>,
5269bafce8Soulijun					<735 1>,
5369bafce8Soulijun					<736 1>,
5469bafce8Soulijun					<737 1>,
5569bafce8Soulijun					<738 1>,
5669bafce8Soulijun					<739 1>,
5769bafce8Soulijun					<740 1>,
5869bafce8Soulijun					<741 1>,
5969bafce8Soulijun					<742 1>,
6069bafce8Soulijun					<743 1>,
6169bafce8Soulijun					<744 1>,
6269bafce8Soulijun					<745 1>,
6369bafce8Soulijun					<746 1>,
6469bafce8Soulijun					<747 1>,
6569bafce8Soulijun					<748 1>,
6669bafce8Soulijun					<749 1>,
6769bafce8Soulijun					<750 1>,
6869bafce8Soulijun					<751 1>,
6969bafce8Soulijun					<752 1>,
7069bafce8Soulijun					<753 1>,
7169bafce8Soulijun					<785 1>,
7269bafce8Soulijun					<754 4>;
7369bafce8Soulijun
7469bafce8Soulijun			interrupt-names = "hns-roce-comp-0",
7569bafce8Soulijun					"hns-roce-comp-1",
7669bafce8Soulijun					"hns-roce-comp-2",
7769bafce8Soulijun					"hns-roce-comp-3",
7869bafce8Soulijun					"hns-roce-comp-4",
7969bafce8Soulijun					"hns-roce-comp-5",
8069bafce8Soulijun					"hns-roce-comp-6",
8169bafce8Soulijun					"hns-roce-comp-7",
8269bafce8Soulijun					"hns-roce-comp-8",
8369bafce8Soulijun					"hns-roce-comp-9",
8469bafce8Soulijun					"hns-roce-comp-10",
8569bafce8Soulijun					"hns-roce-comp-11",
8669bafce8Soulijun					"hns-roce-comp-12",
8769bafce8Soulijun					"hns-roce-comp-13",
8869bafce8Soulijun					"hns-roce-comp-14",
8969bafce8Soulijun					"hns-roce-comp-15",
9069bafce8Soulijun					"hns-roce-comp-16",
9169bafce8Soulijun					"hns-roce-comp-17",
9269bafce8Soulijun					"hns-roce-comp-18",
9369bafce8Soulijun					"hns-roce-comp-19",
9469bafce8Soulijun					"hns-roce-comp-20",
9569bafce8Soulijun					"hns-roce-comp-21",
9669bafce8Soulijun					"hns-roce-comp-22",
9769bafce8Soulijun					"hns-roce-comp-23",
9869bafce8Soulijun					"hns-roce-comp-24",
9969bafce8Soulijun					"hns-roce-comp-25",
10069bafce8Soulijun					"hns-roce-comp-26",
10169bafce8Soulijun					"hns-roce-comp-27",
10269bafce8Soulijun					"hns-roce-comp-28",
10369bafce8Soulijun					"hns-roce-comp-29",
10469bafce8Soulijun					"hns-roce-comp-30",
10569bafce8Soulijun					"hns-roce-comp-31",
10669bafce8Soulijun					"hns-roce-async",
10769bafce8Soulijun					"hns-roce-common";
10869bafce8Soulijun		};
109