[PATCH 1/3] powerpc/microwatt: Add Ethernet to device tree

Joel Stanley joel at jms.id.au
Thu Aug 26 22:26:51 AEST 2021


The liteeth network device is used in the Microwatt soc.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 arch/powerpc/boot/dts/microwatt.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/powerpc/boot/dts/microwatt.dts b/arch/powerpc/boot/dts/microwatt.dts
index 974abbdda249..65b270a90f94 100644
--- a/arch/powerpc/boot/dts/microwatt.dts
+++ b/arch/powerpc/boot/dts/microwatt.dts
@@ -127,6 +127,18 @@ UART0: serial at 2000 {
 			fifo-size = <16>;
 			interrupts = <0x10 0x1>;
 		};
+
+		ethernet at 8020000 {
+			compatible = "litex,liteeth";
+			reg = <0x8021000 0x100
+				0x8020800 0x100
+				0x8030000 0x2000>;
+			reg-names = "mac", "mido", "buffer";
+			litex,rx-slots = <2>;
+			litex,tx-slots = <2>;
+			litex,slot-size = <0x800>;
+			interrupts = <0x11 0x1>;
+		};
 	};
 
 	chosen {
-- 
2.33.0



More information about the Linuxppc-dev mailing list