mvebu: 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:
parent
939c0030db
commit
2ca8e424b9
@ -169,7 +169,8 @@
|
|||||||
label = "lan0";
|
label = "lan0";
|
||||||
phy-handle = <&switch0phy1>;
|
phy-handle = <&switch0phy1>;
|
||||||
|
|
||||||
mtd-mac-address = <&factory 0x6>;
|
nvmem-cells = <&macaddr_factory_6>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@3 {
|
port@3 {
|
||||||
@ -177,7 +178,8 @@
|
|||||||
label = "lan1";
|
label = "lan1";
|
||||||
phy-handle = <&switch0phy2>;
|
phy-handle = <&switch0phy2>;
|
||||||
|
|
||||||
mtd-mac-address = <&factory 0x6>;
|
nvmem-cells = <&macaddr_factory_6>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -199,7 +201,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ð0 {
|
ð0 {
|
||||||
mtd-mac-address = <&factory 0x0>;
|
nvmem-cells = <&macaddr_factory_0>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
phy-mode = "rgmii-id";
|
phy-mode = "rgmii-id";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
@ -208,3 +211,17 @@
|
|||||||
full-duplex;
|
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>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user