summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authoryankejian <yankejian@huawei.com>2016-01-20 03:00:19 -0500
committerDavid S. Miller <davem@davemloft.net>2016-01-21 15:02:31 -0500
commit48189d6aaf1ed1b382666289a94a50e5269a8946 (patch)
tree6783893819a78b8b08e0c351e85ef89c5c772779 /Documentation
parente62a123b8ef7c5dc4db2c16383d506860ad21b47 (diff)
net: hns: enet specifies a reference to dsaf
This patch replace the assoication between dsaf and enet from string matching to object reference. It requires the DTS to be updated within BIOS. Thanks god it can be done for all released boards. Signed-off-by: Kejian Yan <yankejian@huawei.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Yisen Zhuang <yisen.zhuang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt5
-rw-r--r--Documentation/devicetree/bindings/net/hisilicon-hns-nic.txt7
2 files changed, 5 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt b/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt
index 80411b2f0490..ecacfa44b1eb 100644
--- a/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt
+++ b/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt
@@ -4,8 +4,6 @@ Required properties:
4- compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2". 4- compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2".
5 "hisilicon,hns-dsaf-v1" is for hip05. 5 "hisilicon,hns-dsaf-v1" is for hip05.
6 "hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612. 6 "hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612.
7- dsa-name: dsa fabric name who provide this interface.
8 should be "dsafX", X is the dsaf id.
9- mode: dsa fabric mode string. only support one of dsaf modes like these: 7- mode: dsa fabric mode string. only support one of dsaf modes like these:
10 "2port-64vf", 8 "2port-64vf",
11 "6port-16rss", 9 "6port-16rss",
@@ -26,9 +24,8 @@ Required properties:
26 24
27Example: 25Example:
28 26
29dsa: dsa@c7000000 { 27dsaf0: dsa@c7000000 {
30 compatible = "hisilicon,hns-dsaf-v1"; 28 compatible = "hisilicon,hns-dsaf-v1";
31 dsa_name = "dsaf0";
32 mode = "6port-16rss"; 29 mode = "6port-16rss";
33 interrupt-parent = <&mbigen_dsa>; 30 interrupt-parent = <&mbigen_dsa>;
34 reg = <0x0 0xC0000000 0x0 0x420000 31 reg = <0x0 0xC0000000 0x0 0x420000
diff --git a/Documentation/devicetree/bindings/net/hisilicon-hns-nic.txt b/Documentation/devicetree/bindings/net/hisilicon-hns-nic.txt
index 41d19be7011e..e6a9d1c30878 100644
--- a/Documentation/devicetree/bindings/net/hisilicon-hns-nic.txt
+++ b/Documentation/devicetree/bindings/net/hisilicon-hns-nic.txt
@@ -4,8 +4,9 @@ Required properties:
4- compatible: "hisilicon,hns-nic-v1" or "hisilicon,hns-nic-v2". 4- compatible: "hisilicon,hns-nic-v1" or "hisilicon,hns-nic-v2".
5 "hisilicon,hns-nic-v1" is for hip05. 5 "hisilicon,hns-nic-v1" is for hip05.
6 "hisilicon,hns-nic-v2" is for Hi1610 and Hi1612. 6 "hisilicon,hns-nic-v2" is for Hi1610 and Hi1612.
7- ae-name: accelerator name who provides this interface, 7- ae-handle: accelerator engine handle for hns,
8 is simply a name referring to the name of name in the accelerator node. 8 specifies a reference to the associating hardware driver node.
9 see Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt
9- port-id: is the index of port provided by DSAF (the accelerator). DSAF can 10- port-id: is the index of port provided by DSAF (the accelerator). DSAF can
10 connect to 8 PHYs. Port 0 to 1 are both used for adminstration purpose. They 11 connect to 8 PHYs. Port 0 to 1 are both used for adminstration purpose. They
11 are called debug ports. 12 are called debug ports.
@@ -41,7 +42,7 @@ Example:
41 42
42 ethernet@0{ 43 ethernet@0{
43 compatible = "hisilicon,hns-nic-v1"; 44 compatible = "hisilicon,hns-nic-v1";
44 ae-name = "dsaf0"; 45 ae-handle = <&dsaf0>;
45 port-id = <0>; 46 port-id = <0>;
46 local-mac-address = [a2 14 e4 4b 56 76]; 47 local-mac-address = [a2 14 e4 4b 56 76];
47 }; 48 };