Skip to content

Commit 1acb48e

Browse files
arinc9ffainelli
authored andcommitted
ARM: dts: BCM5301X: provide address for SoC MACs on ASUS RT-AC3100 & AC88U
Do not leave the providing of a MAC address for an SoC MAC to a driver. Describe it on the bindings. Provide a distinct MAC address for each SoC MAC. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Link: https://lore.kernel.org/r/20240414-for-soc-asus-rt-ac3100-improvements-v1-2-0e40caf1a70a@arinc9.com Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent 94e181a commit 1acb48e

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,22 @@
1313

1414
nvram@1c080000 {
1515
et0macaddr: et0macaddr {
16+
#nvmem-cell-cells = <1>;
1617
};
1718
};
1819
};
1920

2021
&gmac0 {
21-
nvmem-cells = <&et0macaddr>;
22+
nvmem-cells = <&et0macaddr 0>;
23+
nvmem-cell-names = "mac-address";
24+
};
25+
26+
&gmac1 {
27+
nvmem-cells = <&et0macaddr 1>;
28+
nvmem-cell-names = "mac-address";
29+
};
30+
31+
&gmac2 {
32+
nvmem-cells = <&et0macaddr 2>;
2233
nvmem-cell-names = "mac-address";
2334
};

arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
nvram@1c080000 {
1515
et1macaddr: et1macaddr {
16+
#nvmem-cell-cells = <1>;
1617
};
1718
};
1819

@@ -117,6 +118,11 @@
117118
};
118119

119120
&gmac1 {
120-
nvmem-cells = <&et1macaddr>;
121+
nvmem-cells = <&et1macaddr 0>;
122+
nvmem-cell-names = "mac-address";
123+
};
124+
125+
&gmac2 {
126+
nvmem-cells = <&et1macaddr 1>;
121127
nvmem-cell-names = "mac-address";
122128
};

0 commit comments

Comments
 (0)