From: "Arınç ÜNAL" <arinc.unal@arinc9.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: "Rafał Miłecki" <rafal@milecki.pl>,
"Hauke Mehrtens" <hauke@hauke-m.de>,
"Rob Herring" <robh+dt@kernel.org>,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
bcm-kernel-feedback-list@broadcom.com,
"Arınç ÜNAL" <arinc.unal@arinc9.com>
Subject: [PATCH 4/5] ARM: dts: BCM5301X: Retrieve gmac1 MAC address from NVRAM on Asus RT-AC88U
Date: Fri, 1 Apr 2022 13:20:01 +0300 [thread overview]
Message-ID: <20220401102002.15765-4-arinc.unal@arinc9.com> (raw)
In-Reply-To: <20220401102002.15765-1-arinc.unal@arinc9.com>
The et1macaddr NVRAM variable contains a MAC address for gmac1 on Asus
RT-AC88U. Add NVMEM cell for it and reference it in the gmac1 node.
The Broadcom GBit BCMA driver will issue the MAC address for gmac{0,1,2}
retrieved from et{0,1,2}mac from SPROM without this but let's explicitly
define it as mac-address on the devicetree.
Refer to drivers/net/ethernet/broadcom/bgmac-bcma.c:147.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
---
arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
index 5696dd5fbaf4..2f944d1c0330 100644
--- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
+++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
@@ -25,6 +25,9 @@ memory@0 {
nvram@1c080000 {
compatible = "brcm,nvram";
reg = <0x1c080000 0x00180000>;
+
+ et1macaddr: et1macaddr {
+ };
};
leds {
@@ -239,6 +242,11 @@ fixed-link {
};
};
+&gmac1 {
+ nvmem-cells = <&et1macaddr>;
+ nvmem-cell-names = "mac-address";
+};
+
&usb2 {
vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
};
--
2.25.1
next prev parent reply other threads:[~2022-04-01 10:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 10:19 [PATCH 1/5] ARM: dts: BCM5301X: Fix DTC warning for NAND node Arınç ÜNAL
2022-04-01 10:19 ` [PATCH 2/5] ARM: dts: BCM5301X: Remove cell properties from srab ports on Asus RT-AC88U Arınç ÜNAL
2022-04-01 10:28 ` Rafał Miłecki
2022-04-04 18:35 ` Florian Fainelli
2022-04-01 10:20 ` [PATCH 3/5] ARM: dts: BCM5301X: Add rgmii to port@5 of Broadcom switch " Arınç ÜNAL
2022-04-04 18:36 ` Florian Fainelli
2022-04-01 10:20 ` Arınç ÜNAL [this message]
2022-04-01 10:32 ` [PATCH 4/5] ARM: dts: BCM5301X: Retrieve gmac1 MAC address from NVRAM " Rafał Miłecki
2022-04-04 18:36 ` Florian Fainelli
2022-04-01 10:20 ` [PATCH 5/5] ARM: dts: BCM5301X: Disable unused gmac0 and gmac2 " Arınç ÜNAL
2022-04-01 10:40 ` Rafał Miłecki
2022-04-01 11:36 ` Arınç ÜNAL
2022-04-06 18:16 ` Florian Fainelli
2022-04-10 9:20 ` Arınç ÜNAL
2022-04-01 10:27 ` [PATCH 1/5] ARM: dts: BCM5301X: Fix DTC warning for NAND node Rafał Miłecki
2022-04-04 18:35 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220401102002.15765-4-arinc.unal@arinc9.com \
--to=arinc.unal@arinc9.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=hauke@hauke-m.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=rafal@milecki.pl \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).