Skip to content

Commit

Permalink
Add MAC address indicated on the box to WAN interface for z8102ax device
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Feb 8, 2024
1 parent c1b58b3 commit a7f9914
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 6.1/target/linux/mediatek/dts/mt7981b-zbt-z8102ax.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
reg = <1>;
phy-mode = "gmii";
phy-handle = <&int_gbe_phy>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_02a>;
};
};

Expand Down Expand Up @@ -224,21 +226,29 @@
port@0 {
reg = <0>;
label = "lan1";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@1 {
reg = <1>;
label = "lan2";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@2 {
reg = <2>;
label = "lan3";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@3 {
reg = <3>;
label = "lan4";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@6 {
Expand Down Expand Up @@ -323,4 +333,7 @@
macaddr_factory_004: macaddr@004 {
reg = <0x004 0x6>;
};
macaddr_factory_02a: macaddr@02a {
reg = <0x02a 0x6>;
};
};
13 changes: 13 additions & 0 deletions 6.6/target/linux/mediatek/dts/mt7981b-zbt-z8102ax.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
reg = <1>;
phy-mode = "gmii";
phy-handle = <&int_gbe_phy>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_02a>;
};
};

Expand Down Expand Up @@ -224,21 +226,29 @@
port@0 {
reg = <0>;
label = "lan1";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@1 {
reg = <1>;
label = "lan2";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@2 {
reg = <2>;
label = "lan3";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@3 {
reg = <3>;
label = "lan4";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_004>;
};

port@6 {
Expand Down Expand Up @@ -323,4 +333,7 @@
macaddr_factory_004: macaddr@004 {
reg = <0x004 0x6>;
};
macaddr_factory_02a: macaddr@02a {
reg = <0x02a 0x6>;
};
};

0 comments on commit a7f9914

Please sign in to comment.