diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-04-02 23:50:02 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-07-19 14:51:22 +0200 |
commit | 06bb4a5018cd84dc4553e71c273e2daae2c996ab (patch) | |
tree | 12d31c9dbc5e65ea63124755069e255dbd34db2c /target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts | |
parent | abc17bf306acd1c5954fbba97134e891439f917c (diff) | |
download | upstream-06bb4a5018cd84dc4553e71c273e2daae2c996ab.tar.gz upstream-06bb4a5018cd84dc4553e71c273e2daae2c996ab.tar.bz2 upstream-06bb4a5018cd84dc4553e71c273e2daae2c996ab.zip |
ramips: convert mtd-mac-address to nvmem implementation
Define nvmem-cells and convert mtd-mac-address to nvmem implementation.
The conversion is done with an automated script.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts')
-rw-r--r-- | target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts index 48fb1d4ffd..a7fc4765b7 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts @@ -135,11 +135,23 @@ }; ðernet { - mtd-mac-address = <&config 0xe07e>; + nvmem-cells = <&macaddr_config_e07e>; + nvmem-cell-names = "mac-address"; }; &wmac { ralink,mtd-eeprom = <&config 0xe08a>; ralink,led-polarity = <1>; - mtd-mac-address = <&config 0xe07e>; + nvmem-cells = <&macaddr_config_e07e>; + nvmem-cell-names = "mac-address"; +}; + +&config { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_config_e07e: macaddr@e07e { + reg = <0xe07e 0x6>; + }; }; |