Skip to contentSkip to conversation

ARM: dts: Add EMAC AXI settings for Arria10

PATCH Superseded [email protected] 2 participants 2 messages Feb 2, 2017 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: Add EMAC AXI settings for Arria10

From: Thor Thayer <[email protected]>

Add the device tree entries needed to support the EMAC AXI bus settings on the Arria10 SoCFPGA chip.

---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/socfpga_arria10.dtsi +7 -0
index f520cbf..f05dd15 100644
@@ -400,6 +400,12 @@
 				};
 		};
 
+		socfpga_axi_setup: stmmac-axi-config {
+			snps,wr_osr_lmt = <0xf>;
+			snps,rd_osr_lmt = <0xf>;
+			snps,blen = <0 0 0 0 16 0 0>;
+		};
+
 		gmac0: ethernet at ff800000 {
 			compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
 			altr,sysmgr-syscon = <&sysmgr 0x44 0>;
@@ -416,6 +422,7 @@
 			clock-names = "stmmaceth";
 			resets = <&rst EMAC0_RESET>;
 			reset-names = "stmmaceth";
+			snps,axi-config = <&socfpga_axi_setup>;
 			status = "disabled";
 		};
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 28 lines · On Thu, Feb 2, 2017 at 11:09 AM, <[email protected]> wrote:

From: Thor Thayer <[email protected]>

Add the device tree entries needed to support the EMAC AXI bus settings on the Arria10 SoCFPGA chip.

---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/socfpga_arria10.dtsi +6 -0
index f520cbf..f05dd15 100644
@@ -400,6 +400,12 @@
                                };
                };
 
+               socfpga_axi_setup: stmmac-axi-config {
+                       snps,wr_osr_lmt = <0xf>;
+                       snps,rd_osr_lmt = <0xf>;
+                       snps,blen = <0 0 0 0 16 0 0>;
+               };
+
                gmac0: ethernet at ff800000 {
                        compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
                        altr,sysmgr-syscon = <&sysmgr 0x44 0>;

arch/arm/boot/dts/socfpga_arria10.dtsi line 425

Quoted 4 lines
arch/arm/boot/dts/socfpga_arria10.dtsi +1 -0
@@ -416,6 +422,7 @@
                        clock-names = "stmmaceth";
                        resets = <&rst EMAC0_RESET>;
                        reset-names = "stmmaceth";
+                       snps,axi-config = <&socfpga_axi_setup>;

What about gmac1 and gmac2? They probably need this entry as well.

Dinh