1 From 9f01f5cdb548352418b34ce77db02a560fe2913b Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 29 Mar 2021 17:45:14 +0200
4 Subject: [PATCH] arm64: dts: broadcom: bcm4908: add Ethernet MAC addr
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 On most BCM4908 devices MAC address can be read from the bootloader
10 binary section containing device settings. Use NVMEM to describe that.
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 .../broadcom/bcm4908/bcm4906-netgear-r8000p.dts | 14 ++++++++++++++
16 .../broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts | 14 ++++++++++++++
17 2 files changed, 28 insertions(+)
19 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-netgear-r8000p.dts
20 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-netgear-r8000p.dts
26 + nvmem-cells = <&base_mac_addr>;
27 + nvmem-cell-names = "mac-address";
37 + compatible = "nvmem-cells";
41 + #address-cells = <1>;
43 + ranges = <0 0x0 0x100000>;
45 + base_mac_addr: mac@106a0 {
46 + reg = <0x106a0 0x6>;
51 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts
52 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts
58 + nvmem-cells = <&base_mac_addr>;
59 + nvmem-cell-names = "mac-address";
69 + compatible = "nvmem-cells";
73 + #address-cells = <1>;
75 + ranges = <0 0x0 0x100000>;
77 + base_mac_addr: mac@106a0 {
78 + reg = <0x106a0 0x6>;