From 40feb97e56512ed94bd3efab737b6737c2f3264f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 25 Nov 2023 13:20:44 -0800 Subject: ramips: mt7620a: convert to nvmem-layout Allows using mac-base to replace mac-address-increment. Signed-off-by: Rosen Penev --- target/linux/ramips/dts/mt7620a_netcore_nw5212.dts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'target/linux/ramips/dts/mt7620a_netcore_nw5212.dts') diff --git a/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts b/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts index cf2b1f6a65..34c3d4f42d 100644 --- a/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts +++ b/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts @@ -93,19 +93,22 @@ }; factory: partition@40000 { - compatible = "nvmem-cells"; label = "factory"; reg = <0x40000 0x10000>; - #address-cells = <1>; - #size-cells = <1>; read-only; - eeprom_factory_0: eeprom@0 { - reg = <0x0 0x200>; - }; + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x200>; + }; - macaddr_factory_28: macaddr@28 { - reg = <0x28 0x6>; + macaddr_factory_28: macaddr@28 { + reg = <0x28 0x6>; + }; }; }; -- cgit v1.2.3