Skip to content

Commit

Permalink
ramips: fix MAC address for some devices
Browse files Browse the repository at this point in the history
1. Remove unused macaddr NVMEM cells.
2. Fix "mac-base" compatible cells references.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
  • Loading branch information
DragonBluep authored and hauke committed Jun 15, 2024
1 parent f34620f commit 05aec66
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 15 deletions.
2 changes: 0 additions & 2 deletions target/linux/ramips/dts/mt7620a_bolt_bl100.dts
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@
};

macaddr_factory_28: macaddr@28 {
compatible = "mac-base";
reg = <0x28 0x6>;
#nvmem-cell-cells = <1>;
};
};
};
Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7621_dlink_flash-16m-a1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
};

macaddr_factory_e006: macaddr@e006 {
compatible = "mac-base";
reg = <0xe006 0x6>;
#nvmem-cell-cells = <1>;
};
};
};
Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7621_dlink_flash-16m-r1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
};

macaddr_factory_e006: macaddr@e006 {
compatible = "mac-base";
reg = <0xe006 0x6>;
#nvmem-cell-cells = <1>;
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
};

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

Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7621_hanyang_hyc-g920.dts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@
reg = <0x4 0x6>;
#nvmem-cell-cells = <1>;
};

macaddr_factory_8004: macaddr@8004 {
reg = <0x8004 0x6>;
};
};
};

Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7621_iptime_a3004t.dts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@
reg = <0x4 0x6>;
#nvmem-cell-cells = <1>;
};

macaddr_factory_8004: macaddr@8004 {
reg = <0x8004 0x6>;
};
};
};

Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};

macaddr_factory_8004: macaddr@8004 {
reg = <0x8004 0x6>;
};
};
};

Expand Down

0 comments on commit 05aec66

Please sign in to comment.