[RFC v3 7/9] MIPS: DTS: CI20: make DM9000 Ethernet controller use NVMEM to find the default MAC address

From
H. Nikolaus Schaller <hidden>
Date
2020-02-16 19:21:27
Also in
linux-mips, lkml
Reply to
H. Nikolaus Schaller, 2020-02-16
There is a default MAC address factory programmed into
the eFuses of the JZ4780 chip. By using this every CI20
board has an individual but stable MAC address and DHCP
can assing stable IP addresses.

Signed-off-by: H. Nikolaus Schaller <redacted>
---
 arch/mips/boot/dts/ingenic/ci20.dts | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
index 1166f3203ff8..63b4b53b5df5 100644
--- a/arch/mips/boot/dts/ingenic/ci20.dts
+++ b/arch/mips/boot/dts/ingenic/ci20.dts
@@ -428,6 +428,9 @@ Optional input supply properties:
 
 		interrupt-parent = <&gpe>;
 		interrupts = <19 4>;
+
+		nvmem-cells = <&eth0_addr>;
+		nvmem-cell-names = "mac-address";
 	};
 };
 
-- 
2.23.0
Thread (14 messages) 14 messages, 3 authors, last reply 2020-02-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help