dts: hisi: update hns dst for changing property port-id to reg
authorYisen.Zhuang\(Zhuangyuzeng\) <Yisen.Zhuang@huawei.com>
Thu, 28 Apr 2016 07:09:04 +0000 (15:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2016 17:39:04 +0000 (13:39 -0400)
Indexes should generally be avoided. This patch changes property port-id
to reg in dsaf port node.

Signed-off-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/hisilicon/hip05_hns.dtsi

index 7d625141c9179a32d59fcaa02e8609c4f12a2698..b6a130c2e5a49909f5b52bd53573cf3c633da93c 100644 (file)
@@ -24,6 +24,8 @@ soc0: soc@000000000 {
        };
 
        dsaf0: dsa@c7000000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "hisilicon,hns-dsaf-v1";
                mode = "6port-16rss";
                interrupt-parent = <&mbigen_dsa>;
@@ -124,20 +126,20 @@ soc0: soc@000000000 {
                dma-coherent;
 
                port@0 {
-                       port-id = <0>;
+                       reg = <0>;
                        serdes-syscon = <&serdes_ctrl0>;
                };
                port@1 {
-                       port-id = <1>;
+                       reg = <1>;
                        serdes-syscon = <&serdes_ctrl0>;
                };
                port@4 {
-                       port-id = <4>;
+                       reg = <4>;
                        phy-handle = <&soc0_phy0>;
                        serdes-syscon = <&serdes_ctrl1>;
                };
                port@5 {
-                       port-id = <5>;
+                       reg = <5>;
                        phy-handle = <&soc0_phy1>;
                        serdes-syscon = <&serdes_ctrl1>;
                };