From: Joel Stanley <joel@jms.id.au>
Date: Thu, 26 Aug 2021 13:29:45 +0000 (+0930)
Subject: openrisc/litex: Add ethernet device
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=978c791491bce8cc1a27cb50392a2e8bbcea79d4;p=linux.git

openrisc/litex: Add ethernet device

Add the liteeth ethernet device.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stafford Horne <shorne@gmail.com>
---

diff --git a/arch/openrisc/boot/dts/or1klitex.dts b/arch/openrisc/boot/dts/or1klitex.dts
index baba4f49fa6b4..91c7173c50e69 100644
--- a/arch/openrisc/boot/dts/or1klitex.dts
+++ b/arch/openrisc/boot/dts/or1klitex.dts
@@ -52,4 +52,13 @@
 			reg = <0xe0000000 0xc>;
 			status = "okay";
 	};
+
+	ethernet@e0001000 {
+		compatible = "litex,liteeth";
+		reg = <0xe0001000 0x7c>,
+		      <0xe0001800 0x0a>,
+		      <0x80000000 0x2000>;
+		reg-names = "mac", "mdio", "buffer";
+		interrupts = <2>;
+	};
 };