diff mbox series

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

Message ID 544dd607622a87741e3c02d61d581e42288ab960.1581880851.git.hns@goldelico.com
State New
Headers show
Series MIPS: CI20: Add efuse driver for Ingenic JZ4780 and attach to DM9000 for stable MAC addresses | expand

Commit Message

H. Nikolaus Schaller Feb. 16, 2020, 7:20 p.m. UTC
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 <hns@goldelico.com>
---
 arch/mips/boot/dts/ingenic/ci20.dts | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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";
 	};
 };