From 8a78d6129975bb6faf168c5b51c05186e9f90856 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Fri, 20 Aug 2021 00:18:12 +0200 Subject: ramips: convert mtd-mac-address to nvmem for UniElec devices Convert this series by moving the definitions to the individual devices. Now all devices on ramips are converted. Signed-off-by: Adrian Schmutzler --- .../ramips/dts/mt7621_unielec_u7621-06-64m.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'target/linux/ramips/dts/mt7621_unielec_u7621-06-64m.dts') diff --git a/target/linux/ramips/dts/mt7621_unielec_u7621-06-64m.dts b/target/linux/ramips/dts/mt7621_unielec_u7621-06-64m.dts index 74e4d6625b..a66969a803 100644 --- a/target/linux/ramips/dts/mt7621_unielec_u7621-06-64m.dts +++ b/target/linux/ramips/dts/mt7621_unielec_u7621-06-64m.dts @@ -52,3 +52,24 @@ }; }; }; + +&gmac0 { + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; +}; + +&wan { + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <1>; +}; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_e000: macaddr@e000 { + reg = <0xe000 0x6>; + }; +}; -- cgit v1.2.3