2
0
forked from Ivasoft/openwrt

bmips: 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-07-18 19:37:39 +02:00
committed by Petr Štetiar
parent 821b664099
commit 32adbfc789
6 changed files with 82 additions and 13 deletions

View File

@@ -44,7 +44,8 @@
&ethernet {
status = "okay";
mtd-mac-address = <&cferom 0x6a0>;
nvmem-cells = <&macaddr_cferom_6a0>;
nvmem-cell-names = "mac-address";
};
&leds {
@@ -224,3 +225,13 @@
&usbh {
status = "okay";
};
&cferom {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_cferom_6a0: macaddr@6a0 {
reg = <0x6a0 0x6>;
};
};