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>
This commit is contained in:
Ansuel Smith
2021-04-02 23:50:02 +02:00
committed by Petr Štetiar
parent abc17bf306
commit 06bb4a5018
319 changed files with 4213 additions and 434 deletions

View File

@@ -94,7 +94,8 @@
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
};
&switch0 {
@@ -112,3 +113,13 @@
function = "gpio";
};
};
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};