bcm53xx: backport DT changes queued for v6.7
[openwrt/staging/hauke.git] / target / linux / bcm53xx / patches-6.1 / 033-v6.7-0001-ARM-dts-BCM5301X-Set-MACs-for-D-Link-DIR-885L.patch
1 From 5cbee5828219c4f7b33e96b5d8ce5e467b2857c8 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 1 Sep 2023 12:55:49 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Set MACs for D-Link DIR-885L
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Specify NVRAM access and use its "et2macaddr" NVMEM cell.
10
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
12 Link: https://lore.kernel.org/r/20230901105549.7076-1-zajec5@gmail.com
13 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
14 ---
15 .../dts/broadcom/bcm47094-dlink-dir-885l.dts | 16 ++++++++++++++++
16 1 file changed, 16 insertions(+)
17
18 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
19 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
20 @@ -25,6 +25,15 @@
21 <0x88000000 0x08000000>;
22 };
23
24 + nvram@1e3f0000 {
25 + compatible = "brcm,nvram";
26 + reg = <0x1e3f0000 0x10000>;
27 +
28 + et2macaddr: et2macaddr {
29 + #nvmem-cell-cells = <1>;
30 + };
31 + };
32 +
33 nand_controller: nand-controller@18028000 {
34 nand@0 {
35 partitions {
36 @@ -112,6 +121,11 @@
37 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
38 };
39
40 +&gmac0 {
41 + nvmem-cells = <&et2macaddr 0>;
42 + nvmem-cell-names = "mac-address";
43 +};
44 +
45 &spi_nor {
46 status = "okay";
47 };
48 @@ -142,6 +156,8 @@
49
50 port@4 {
51 label = "wan";
52 + nvmem-cells = <&et2macaddr 3>;
53 + nvmem-cell-names = "mac-address";
54 };
55
56 port@8 {