ath79: 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:47:31 +02:00
committed by Petr Štetiar
parent 2ca8e424b9
commit abc17bf306
177 changed files with 2637 additions and 364 deletions

View File

@@ -93,7 +93,8 @@
&eth1 {
status = "okay";
mtd-mac-address = <&art 0x00>;
nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
phy-handle = <&phy1>;
@@ -101,3 +102,13 @@
qca955x-sgmii-fixup;
};
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};