aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@altera.com>2014-03-26 23:45:11 -0400
committerArnd Bergmann <arnd@arndb.de>2014-03-28 20:11:46 -0400
commit2755e18748bd2f63ee17b7aef173699531f6353d (patch)
tree41af04b525ee4579c58715884c6ae8099bc31a87 /arch
parentab3607dbb86c4238f6b87ac0f8999b785659572b (diff)
dts: socfpga: Add DTS entry for adding the stmmac glue layer for stmmac.
This patch adds the dts bindings documenation for the Altera SOCFPGA glue layer for the Synopsys STMMAC ethernet driver. Signed-off-by: Dinh Nguyen <dinguyen@altera.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/socfpga.dtsi2
-rw-r--r--arch/arm/boot/dts/socfpga_arria5_socdk.dts21
-rw-r--r--arch/arm/boot/dts/socfpga_cyclone5_socdk.dts14
-rw-r--r--arch/arm/boot/dts/socfpga_cyclone5_sockit.dts17
-rw-r--r--arch/arm/boot/dts/socfpga_vt.dts5
5 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index 537f1a5c07f5..ba51d69abbea 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -443,6 +443,7 @@
443 443
444 gmac0: ethernet@ff700000 { 444 gmac0: ethernet@ff700000 {
445 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; 445 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
446 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
446 reg = <0xff700000 0x2000>; 447 reg = <0xff700000 0x2000>;
447 interrupts = <0 115 4>; 448 interrupts = <0 115 4>;
448 interrupt-names = "macirq"; 449 interrupt-names = "macirq";
@@ -454,6 +455,7 @@
454 455
455 gmac1: ethernet@ff702000 { 456 gmac1: ethernet@ff702000 {
456 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; 457 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
458 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
457 reg = <0xff702000 0x2000>; 459 reg = <0xff702000 0x2000>;
458 interrupts = <0 120 4>; 460 interrupts = <0 120 4>;
459 interrupt-names = "macirq"; 461 interrupt-names = "macirq";
diff --git a/arch/arm/boot/dts/socfpga_arria5_socdk.dts b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
index 5beffb2265f4..a87ee1c07661 100644
--- a/arch/arm/boot/dts/socfpga_arria5_socdk.dts
+++ b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
@@ -37,4 +37,25 @@
37 */ 37 */
38 ethernet0 = &gmac1; 38 ethernet0 = &gmac1;
39 }; 39 };
40
41 aliases {
42 /* this allow the ethaddr uboot environmnet variable contents
43 * to be added to the gmac1 device tree blob.
44 */
45 ethernet0 = &gmac1;
46 };
47};
48
49&gmac1 {
50 status = "okay";
51 phy-mode = "rgmii";
52
53 rxd0-skew-ps = <0>;
54 rxd1-skew-ps = <0>;
55 rxd2-skew-ps = <0>;
56 rxd3-skew-ps = <0>;
57 txen-skew-ps = <0>;
58 txc-skew-ps = <2600>;
59 rxdv-skew-ps = <0>;
60 rxc-skew-ps = <2000>;
40}; 61};
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
index 2ee52ab8cabb..ae16d975196d 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
@@ -38,3 +38,17 @@
38 ethernet0 = &gmac1; 38 ethernet0 = &gmac1;
39 }; 39 };
40}; 40};
41
42&gmac1 {
43 status = "okay";
44 phy-mode = "rgmii";
45
46 rxd0-skew-ps = <0>;
47 rxd1-skew-ps = <0>;
48 rxd2-skew-ps = <0>;
49 rxd3-skew-ps = <0>;
50 txen-skew-ps = <0>;
51 txc-skew-ps = <2600>;
52 rxdv-skew-ps = <0>;
53 rxc-skew-ps = <2000>;
54};
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
index 50b99a2c12ae..b79e2a2bf175 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
@@ -30,8 +30,25 @@
30 device_type = "memory"; 30 device_type = "memory";
31 reg = <0x0 0x40000000>; /* 1GB */ 31 reg = <0x0 0x40000000>; /* 1GB */
32 }; 32 };
33
34 aliases {
35 /* this allow the ethaddr uboot environmnet variable contents
36 * to be added to the gmac1 device tree blob.
37 */
38 ethernet0 = &gmac1;
39 };
33}; 40};
34 41
35&gmac1 { 42&gmac1 {
36 status = "okay"; 43 status = "okay";
44 phy-mode = "rgmii";
45
46 rxd0-skew-ps = <0>;
47 rxd1-skew-ps = <0>;
48 rxd2-skew-ps = <0>;
49 rxd3-skew-ps = <0>;
50 txen-skew-ps = <0>;
51 txc-skew-ps = <2600>;
52 rxdv-skew-ps = <0>;
53 rxc-skew-ps = <2000>;
37}; 54};
diff --git a/arch/arm/boot/dts/socfpga_vt.dts b/arch/arm/boot/dts/socfpga_vt.dts
index d1ec0cab2dee..dde2c66c50eb 100644
--- a/arch/arm/boot/dts/socfpga_vt.dts
+++ b/arch/arm/boot/dts/socfpga_vt.dts
@@ -75,3 +75,8 @@
75 }; 75 };
76 }; 76 };
77}; 77};
78
79&gmac0 {
80 status = "okay";
81 phy-mode = "gmii";
82};