MIPS: DTS: CI20: make DM9000 Ethernet controller use NVMEM to find the default MAC...
authorH. Nikolaus Schaller <hns@goldelico.com>
Fri, 28 Feb 2020 16:00:53 +0000 (17:00 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sun, 19 Apr 2020 15:12:48 +0000 (17:12 +0200)
There is a unique MAC address programmed into the eFuses
of the JZ4780 chip in the CI20 factory. By using this
for initializing the DM9000 Ethernet controller, every
CI20 board has an individual - but stable - MAC address
and DHCP can assign stable IP addresses.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ingenic/ci20.dts

index db0ca250bd1a3cd95a7a07c13b032eb7f1bb1d35..75f5bfbf2c37531af49d744d58eefc708ee5b949 100644 (file)
 
                interrupt-parent = <&gpe>;
                interrupts = <19 4>;
+
+               nvmem-cells = <&eth0_addr>;
+               nvmem-cell-names = "mac-address";
        };
 };