ramips: convert mtd-mac-address to nvmem for UniElec devices
Convert this series by moving the definitions to the individual devices. Now all devices on ramips are converted. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
41aa765946
commit
8a78d61299
@ -46,3 +46,24 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac0 {
|
||||||
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wan {
|
||||||
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&factory {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_factory_e000: macaddr@e000 {
|
||||||
|
reg = <0xe000 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -72,17 +72,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac0 {
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
wan: port@0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "wan";
|
label = "wan";
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mac-address-increment = <1>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
|
@ -51,3 +51,24 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac0 {
|
||||||
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wan {
|
||||||
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&factory {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_factory_e000: macaddr@e000 {
|
||||||
|
reg = <0xe000 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -52,3 +52,24 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac0 {
|
||||||
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wan {
|
||||||
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&factory {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_factory_e000: macaddr@e000 {
|
||||||
|
reg = <0xe000 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -73,10 +73,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac0 {
|
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
@ -99,11 +95,9 @@
|
|||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
wan: port@4 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "wan";
|
label = "wan";
|
||||||
mtd-mac-address = <&factory 0xe000>;
|
|
||||||
mac-address-increment = <1>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -51,3 +51,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ðernet {
|
||||||
|
nvmem-cells = <&macaddr_factory_28>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
&factory {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_factory_28: macaddr@28 {
|
||||||
|
reg = <0x28 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -85,10 +85,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
ðernet {
|
|
||||||
mtd-mac-address = <&factory 0x28>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&wmac {
|
&wmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user