lantiq: convert mtd-mac-address to nvmem for Fritz!Box 736x

Convert this series by moving the definitions to the individual
devices.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2021-08-20 14:27:13 +02:00
parent 8a78d61299
commit adb3e46616
4 changed files with 48 additions and 5 deletions

View File

@ -51,3 +51,19 @@
};
};
};
&eth0 {
nvmem-cells = <&macaddr_urlader_a91>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&urlader {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_urlader_a91: macaddr@a91 {
reg = <0xa91 0x6>;
};
};

View File

@ -51,3 +51,19 @@
};
};
};
&eth0 {
nvmem-cells = <&macaddr_urlader_a91>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&urlader {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_urlader_a91: macaddr@a91 {
reg = <0xa91 0x6>;
};
};

View File

@ -83,3 +83,19 @@
#address-cells = <2>;
};
};
&eth0 {
nvmem-cells = <&macaddr_urlader_a91>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&urlader {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_urlader_a91: macaddr@a91 {
reg = <0xa91 0x6>;
};
};

View File

@ -80,11 +80,6 @@
};
};
&eth0 {
mtd-mac-address = <&urlader 0xa91>;
mac-address-increment = <(-2)>;
};
&gphy0 {
lantiq,gphy-mode = <GPHY_MODE_GE>;
};