Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: Bindings: add port-idx-in-ae for enet node

This patch adds description for port-idx-in-ae attribute.

Signed-off-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Yisen.Zhuang\(Zhuangyuzeng\) and committed by
David S. Miller
c132cdcc 2fc695a1

+29 -1
+29 -1
Documentation/devicetree/bindings/net/hisilicon-hns-nic.txt
··· 36 36 | | | | | | 37 37 external port 38 38 39 + This attribute is remained for compatible purpose. It is not recommended to 40 + use it in new code. 41 + 42 + - port-idx-in-ae: is the index of port provided by AE. 43 + In NIC mode of DSAF, all 6 PHYs of service DSAF are taken as ethernet ports 44 + to the CPU. The port-idx-in-ae can be 0 to 5. Here is the diagram: 45 + +-----+---------------+ 46 + | CPU | 47 + +-+-+-+---+-+-+-+-+-+-+ 48 + | | | | | | | | 49 + debug debug service 50 + port port port 51 + (0) (0) (0-5) 52 + 53 + In Switch mode of DSAF, all 6 PHYs of service DSAF are taken as physical 54 + ports connected to a LAN Switch while the CPU side assume itself have one 55 + single NIC connected to this switch. In this case, the port-idx-in-ae 56 + will be 0 only. 57 + +-----+-----+------+------+ 58 + | CPU | 59 + +-+-+-+-+-+-+-+-+-+-+-+-+-+ 60 + | | service| port(0) 61 + debug debug +------------+ 62 + port port | switch | 63 + (0) (0) +-+-+-+-+-+-++ 64 + | | | | | | 65 + external port 66 + 39 67 - local-mac-address: mac addr of the ethernet interface 40 68 41 69 Example: ··· 71 43 ethernet@0{ 72 44 compatible = "hisilicon,hns-nic-v1"; 73 45 ae-handle = <&dsaf0>; 74 - port-id = <0>; 46 + port-idx-in-ae = <0>; 75 47 local-mac-address = [a2 14 e4 4b 56 76]; 76 48 };