[linux-yocto] [PATCH] arch: arm64: dts: add altr, sysmgr-syscon property for Ethernet driver

Meng.Li at windriver.com Meng.Li at windriver.com
Sun Dec 2 18:46:22 PST 2018


From: Limeng <Meng.Li at windriver.com>

In Stratix10 latest dwmac-socfpga.c Ethernet driver, the property
altr,sysmgr-syscon is parsed during driver probe. So, it is need to
add it to avoid drvier probe failed. This modification refer to SDK
kernel https://github.com/altera-opensource/linux-socfpga.git,
commit  070175e6c913 ("FogBugz #454145: Update stratix10_swvp.dts
file for S10 SoC VP")

Signed-off-by: Meng Li <Meng.Li at windriver.com>
---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
index a5838a0..fdd7501 100644
--- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
+++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
@@ -154,6 +154,7 @@
 
 		gmac0: ethernet at ff800000 {
 			compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
+			altr,sysmgr-syscon = <&sysmgr 0x44 0>;
 			reg = <0xff800000 0x2000>;
 			interrupts = <0 90 4>;
 			interrupt-names = "macirq";
@@ -170,6 +171,7 @@
 
 		gmac1: ethernet at ff802000 {
 			compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
+			altr,sysmgr-syscon = <&sysmgr 0x48 0>;
 			reg = <0xff802000 0x2000>;
 			interrupts = <0 91 4>;
 			interrupt-names = "macirq";
@@ -186,6 +188,7 @@
 
 		gmac2: ethernet at ff804000 {
 			compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
+			altr,sysmgr-syscon = <&sysmgr 0x4c 0>;
 			reg = <0xff804000 0x2000>;
 			interrupts = <0 92 4>;
 			interrupt-names = "macirq";
@@ -368,6 +371,8 @@
 		sysmgr: sysmgr at ffd12000 {
 			compatible = "altr,sys-mgr", "syscon";
 			reg = <0xffd12000 0x228>;
+			interrupts = <0x0 0x10 0x4>;
+			cpu1-start-addr = <0xffd06230>;
 		};
 
 		/* Local timer */
-- 
2.7.4



More information about the linux-yocto mailing list