mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-27 23:47:19 +01:00
mediatek: simplify nvmem mac for Keenetic KN-(3811/3911)
This is a cosmetic change. There is no need to use mac
address increment/decrement in the dts on these devices,
so this can be simplified.
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21635
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 9bcfe7b76f)
This commit is contained in:
parent
fdf2a1bf00
commit
593b7d924e
2 changed files with 4 additions and 12 deletions
|
|
@ -123,7 +123,7 @@
|
|||
phy-mode = "2500base-x";
|
||||
|
||||
nvmem-cell-names = "mac-address";
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
|
||||
fixed-link {
|
||||
speed = <2500>;
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
label = "wan";
|
||||
|
||||
nvmem-cell-names = "mac-address";
|
||||
nvmem-cells = <&macaddr_factory_a 0>;
|
||||
nvmem-cells = <&macaddr_factory_a>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -270,16 +270,12 @@
|
|||
|
||||
/* lan mac */
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
/* wan mac */
|
||||
macaddr_factory_a: macaddr@a {
|
||||
compatible = "mac-base";
|
||||
reg = <0xa 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
label = "lan";
|
||||
|
||||
nvmem-cell-names = "mac-address";
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
};
|
||||
|
||||
gmac1: mac@1 {
|
||||
|
|
@ -113,7 +113,7 @@
|
|||
label = "wan";
|
||||
|
||||
nvmem-cell-names = "mac-address";
|
||||
nvmem-cells = <&macaddr_factory_a 0>;
|
||||
nvmem-cells = <&macaddr_factory_a>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -217,16 +217,12 @@
|
|||
|
||||
/* lan mac */
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
/* wan mac */
|
||||
macaddr_factory_a: macaddr@a {
|
||||
compatible = "mac-base";
|
||||
reg = <0xa 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue