Skip to content

Commit

Permalink
apm821xx: meraki: fix mac addresses in dts
Browse files Browse the repository at this point in the history
The one for the mx60 was wrong. The LAN MAC is offset by one.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt#14037
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
neheb authored and robimarko committed Sep 15, 2024
1 parent 5815884 commit 8d302f5
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 13 deletions.

This file was deleted.

20 changes: 20 additions & 0 deletions target/linux/apm821xx/dts/meraki-mr24.dts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,25 @@
};

partition@180000 {
compatible = "linux,ubi";
label = "ubi";
reg = <0x00180000 0x01e80000>;

volumes {
ubi-volume-board-config {
volume = "board-config";

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

macaddr_board_66: macaddr@66 {
reg = <0x66 0x6>;
};
};
};
};
};
};
};
Expand All @@ -110,6 +127,9 @@
&EMAC0 {
status = "okay";

nvmem-cells = <&macaddr_board_66>;
nvmem-cell-names = "mac-address";

phy-mode = "rgmii-id";
phy-map = <0x2>;
phy-address = <0x1>;
Expand Down
24 changes: 24 additions & 0 deletions target/linux/apm821xx/dts/meraki-mx60.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,27 @@
};

partition@240000 {
compatible = "linux,ubi";
label = "ubi";
reg = <0x00240000 0x3fdc0000>;

volumes {
ubi-volume-board-config {
volume = "board-config";

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

macaddr_board_66: macaddr@66 {
compatible = "mac-base";
reg = <0x66 0x6>;
#nvmem-cell-cells = <1>;
};
};
};
};
};
};
};
Expand All @@ -93,6 +112,9 @@
&EMAC0 {
status = "okay";

nvmem-cells = <&macaddr_board_66 0>;
nvmem-cell-names = "mac-address";

fixed-link {
speed = <1000>;
full-duplex;
Expand Down Expand Up @@ -296,6 +318,8 @@
label = "wan";
phy-mode = "internal";
phy-handle = <&phy_port5>;
nvmem-cells = <&macaddr_board_66 1>;
nvmem-cell-names = "mac-address";

leds {
#address-cells = <1>;
Expand Down

0 comments on commit 8d302f5

Please sign in to comment.