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