Skip to content

Commit

Permalink
mvebu: convert mtd-mac-address to nvmem implementation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ansuel authored and ynezz committed Jul 19, 2021
1 parent 939c003 commit 2ca8e42
Showing 1 changed file with 20 additions and 3 deletions.
Expand Up @@ -169,15 +169,17 @@
label = "lan0";
phy-handle = <&switch0phy1>;

mtd-mac-address = <&factory 0x6>;
nvmem-cells = <&macaddr_factory_6>;
nvmem-cell-names = "mac-address";
};

port@3 {
reg = <3>;
label = "lan1";
phy-handle = <&switch0phy2>;

mtd-mac-address = <&factory 0x6>;
nvmem-cells = <&macaddr_factory_6>;
nvmem-cell-names = "mac-address";
};
};

Expand All @@ -199,7 +201,8 @@
};

&eth0 {
mtd-mac-address = <&factory 0x0>;
nvmem-cells = <&macaddr_factory_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii-id";
status = "okay";

Expand All @@ -208,3 +211,17 @@
full-duplex;
};
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_0: macaddr@0 {
reg = <0x0 0x6>;
};

macaddr_factory_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

0 comments on commit 2ca8e42

Please sign in to comment.