]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dtb: Add SGMII based 1GbE node to APM X-Gene SoC device tree
authorIyappan Subramanian <isubramanian@apm.com>
Tue, 14 Oct 2014 00:05:32 +0000 (17:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 20:09:21 +0000 (16:09 -0400)
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: Keyur Chudgar <kchudgar@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/apm-mustang.dts
arch/arm64/boot/dts/apm-storm.dtsi

index 2ae782bbdf0f8a2a279d47c9632eb07c52001be8..71a1489619c28acfffa47615b5edc49d1dcb6965 100644 (file)
        status = "ok";
 };
 
+&sgenet0 {
+       status = "ok";
+};
+
 &xgenet {
        status = "ok";
 };
index d16cc03b7c5d6aaea59876f8fbec89310da2a478..f45bbfe116d8679d57041ee0faec26859ead2447 100644 (file)
                                clock-output-names = "menetclk";
                        };
 
+                       sge0clk: sge0clk@1f21c000 {
+                               compatible = "apm,xgene-device-clock";
+                               #clock-cells = <1>;
+                               clocks = <&socplldiv2 0>;
+                               reg = <0x0 0x1f21c000 0x0 0x1000>;
+                               reg-names = "csr-reg";
+                               csr-mask = <0x3>;
+                               clock-output-names = "sge0clk";
+                       };
+
                        xge0clk: xge0clk@1f61c000 {
                                compatible = "apm,xgene-device-clock";
                                #clock-cells = <1>;
                        };
                };
 
+               sgenet0: ethernet@1f210000 {
+                       compatible = "apm,xgene-enet";
+                       status = "disabled";
+                       reg = <0x0 0x1f210000 0x0 0x10000>,
+                             <0x0 0x1f200000 0x0 0X10000>,
+                             <0x0 0x1B000000 0x0 0X20000>;
+                       reg-names = "enet_csr", "ring_csr", "ring_cmd";
+                       interrupts = <0x0 0xA0 0x4>;
+                       dma-coherent;
+                       clocks = <&sge0clk 0>;
+                       local-mac-address = [00 00 00 00 00 00];
+                       phy-connection-type = "sgmii";
+               };
+
                xgenet: ethernet@1f610000 {
                        compatible = "apm,xgene-enet";
                        status = "disabled";