Skip to content

Commit 5cbee58

Browse files
Rafał Miłeckiffainelli
authored andcommitted
ARM: dts: BCM5301X: Set MACs for D-Link DIR-885L
Specify NVRAM access and use its "et2macaddr" NVMEM cell. Signed-off-by: Rafał Miłecki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Florian Fainelli <[email protected]>
1 parent 0bb80ec commit 5cbee58

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
<0x88000000 0x08000000>;
2626
};
2727

28+
nvram@1e3f0000 {
29+
compatible = "brcm,nvram";
30+
reg = <0x1e3f0000 0x10000>;
31+
32+
et2macaddr: et2macaddr {
33+
#nvmem-cell-cells = <1>;
34+
};
35+
};
36+
2837
nand_controller: nand-controller@18028000 {
2938
nand@0 {
3039
partitions {
@@ -112,6 +121,11 @@
112121
vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
113122
};
114123

124+
&gmac0 {
125+
nvmem-cells = <&et2macaddr 0>;
126+
nvmem-cell-names = "mac-address";
127+
};
128+
115129
&spi_nor {
116130
status = "okay";
117131
};
@@ -142,6 +156,8 @@
142156

143157
port@4 {
144158
label = "wan";
159+
nvmem-cells = <&et2macaddr 3>;
160+
nvmem-cell-names = "mac-address";
145161
};
146162

147163
port@8 {

0 commit comments

Comments
 (0)