Skip to content

Commit

Permalink
ramips: use fixed layout cell "mac-base" for Netgear R6220
Browse files Browse the repository at this point in the history
This drops a use of downstream "mac-address-increment".

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  • Loading branch information
Rafał Miłecki authored and pull[bot] committed Aug 18, 2023
1 parent 711e225 commit b18969f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions target/linux/ramips/dts/mt7621_netgear_r6220.dts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,16 @@
reg = <0x2e00000 0x100000>;
read-only;

#address-cells = <1>;
#size-cells = <1>;
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
macaddr_factory_4: macaddr@4 {
compatible = "mac-base";
reg = <0x4 0x6>;
#nvmem-cell-cells = <1>;
};
};
};

Expand All @@ -64,12 +69,11 @@
};

&gmac0 {
nvmem-cells = <&macaddr_factory_4>;
nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};

&gmac1 {
nvmem-cells = <&macaddr_factory_4>;
nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};

0 comments on commit b18969f

Please sign in to comment.