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_dlink_dir-510l.dts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts') diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts index f73feb58c9..7b9145a741 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts @@ -94,19 +94,22 @@ }; config: partition@ff0000 { - compatible = "nvmem-cells"; label = "config"; reg = <0xff0000 0x10000>; - #address-cells = <1>; - #size-cells = <1>; read-only; - eeprom_config_e05d: eeprom@e05d { - reg = <0xe05d 0x200>; - }; + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_config_e05d: eeprom@e05d { + reg = <0xe05d 0x200>; + }; - macaddr_config_e490: macaddr@e490 { - reg = <0xe490 0x6>; + macaddr_config_e490: macaddr@e490 { + reg = <0xe490 0x6>; + }; }; }; }; -- cgit v1.2.3