diff options
author | Rosen Penev <rosenp@gmail.com> | 2023-11-25 12:32:55 -0800 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-11-26 00:15:55 +0100 |
commit | 32c1ac896075c7c6342bb146542f16c9d774f0f1 (patch) | |
tree | ba6717ba4d1913502db0a7d8fcd78cd2602cb5fa /target/linux/ramips/dts/mt7620n_kingston_mlw221.dts | |
parent | e8084a3c3b94adcff6c9f62554cf8d9d1871fe25 (diff) |
ramips: mt7620n: convert to nvmem-layout
nvmem-cells is deprecated. nvmem-layout allows using mac-base.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7620n_kingston_mlw221.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7620n_kingston_mlw221.dts | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts index 5324d7dcf0..ce1f0e9f8b 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts @@ -79,19 +79,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_4: macaddr@4 { - reg = <0x4 0x6>; + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; }; }; |