dtb: xgene: Add second SGMII based 1G interface node
authorKeyur Chudgar <kchudgar@apm.com>
Tue, 17 Mar 2015 18:27:12 +0000 (11:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 16:44:05 +0000 (12:44 -0400)
- Added new SGMII node for port 1
- Added port-id field

Signed-off-by: Keyur Chudgar <kchudgar@apm.com>
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/apm/apm-mustang.dts
arch/arm64/boot/dts/apm/apm-storm.dtsi

index 2e25de0800b9f061bebb4ee81c4c2ffaa1cf0dc9..83578e766b945ae2c35b41b93813a8c29ec15c1b 100644 (file)
        status = "ok";
 };
 
+&sgenet1 {
+       status = "ok";
+};
+
 &xgenet {
        status = "ok";
 };
index a857794432d6756ac628d55f362512ed375bcabd..c1eb6911e5397b676c337b15d84b707a64b967d1 100644 (file)
                                clock-output-names = "sge0clk";
                        };
 
+                       sge1clk: sge1clk@1f21c000 {
+                               compatible = "apm,xgene-device-clock";
+                               #clock-cells = <1>;
+                               clocks = <&socplldiv2 0>;
+                               reg = <0x0 0x1f21c000 0x0 0x1000>;
+                               reg-names = "csr-reg";
+                               csr-mask = <0xc>;
+                               clock-output-names = "sge1clk";
+                       };
+
                        xge0clk: xge0clk@1f61c000 {
                                compatible = "apm,xgene-device-clock";
                                #clock-cells = <1>;
                        phy-connection-type = "sgmii";
                };
 
+               sgenet1: ethernet@1f210030 {
+                       compatible = "apm,xgene1-sgenet";
+                       status = "disabled";
+                       reg = <0x0 0x1f210030 0x0 0xd100>,
+                             <0x0 0x1f200000 0x0 0Xc300>,
+                             <0x0 0x1B000000 0x0 0X8000>;
+                       reg-names = "enet_csr", "ring_csr", "ring_cmd";
+                       interrupts = <0x0 0xAC 0x4>;
+                       port-id = <1>;
+                       dma-coherent;
+                       clocks = <&sge1clk 0>;
+                       local-mac-address = [00 00 00 00 00 00];
+                       phy-connection-type = "sgmii";
+               };
+
                xgenet: ethernet@1f610000 {
                        compatible = "apm,xgene1-xgenet";
                        status = "disabled";