1 From dfa6570eb5ce2f24059caadbe2ed70034b5337bc Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 15 May 2023 10:33:08 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Specify MAC addresses on Luxul devices
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Use NRAM (NVMEM device) and its "et0macaddr" variable (NVMEM cell) to
10 point Ethernet devices to their MAC addresses.
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 Link: https://lore.kernel.org/r/20230515083308.7612-1-zajec5@gmail.com
14 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
16 arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts | 13 +++++++++++++
17 arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts | 13 +++++++++++++
18 arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts | 13 +++++++++++++
19 arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 11 +++++++++++
20 arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts | 11 +++++++++++
21 arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts | 13 +++++++++++++
22 arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts | 11 +++++++++++
23 arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts | 13 +++++++++++++
24 arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 11 +++++++++++
25 arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 5 ++++-
26 10 files changed, 113 insertions(+), 1 deletion(-)
28 --- a/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
29 +++ b/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
31 reg = <0x00000000 0x08000000>;
35 + compatible = "brcm,nvram";
36 + reg = <0x1eff0000 0x10000>;
38 + et0macaddr: et0macaddr {
43 compatible = "gpio-leds";
50 + nvmem-cells = <&et0macaddr>;
51 + nvmem-cell-names = "mac-address";
57 --- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
58 +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
60 reg = <0x00000000 0x08000000>;
64 + compatible = "brcm,nvram";
65 + reg = <0x1eff0000 0x10000>;
67 + et0macaddr: et0macaddr {
71 nand_controller: nand-controller@18028000 {
79 + nvmem-cells = <&et0macaddr>;
80 + nvmem-cell-names = "mac-address";
86 --- a/arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
87 +++ b/arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
89 reg = <0x00000000 0x08000000>;
93 + compatible = "brcm,nvram";
94 + reg = <0x1eff0000 0x10000>;
96 + et0macaddr: et0macaddr {
101 compatible = "gpio-leds";
108 + nvmem-cells = <&et0macaddr>;
109 + nvmem-cell-names = "mac-address";
115 --- a/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
116 +++ b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
119 compatible = "brcm,nvram";
120 reg = <0x1eff0000 0x10000>;
122 + et0macaddr: et0macaddr {
123 + #nvmem-cell-cells = <1>;
129 vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
133 + nvmem-cells = <&et0macaddr 0>;
134 + nvmem-cell-names = "mac-address";
144 + nvmem-cells = <&et0macaddr 5>;
145 + nvmem-cell-names = "mac-address";
149 --- a/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
150 +++ b/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
153 compatible = "brcm,nvram";
154 reg = <0x1eff0000 0x10000>;
156 + et0macaddr: et0macaddr {
157 + #nvmem-cell-cells = <1>;
163 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
167 + nvmem-cells = <&et0macaddr 0>;
168 + nvmem-cell-names = "mac-address";
178 + nvmem-cells = <&et0macaddr 1>;
179 + nvmem-cell-names = "mac-address";
183 --- a/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
184 +++ b/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
186 reg = <0x00000000 0x08000000>;
190 + compatible = "brcm,nvram";
191 + reg = <0x1eff0000 0x10000>;
193 + et0macaddr: et0macaddr {
198 compatible = "gpio-leds";
205 + nvmem-cells = <&et0macaddr>;
206 + nvmem-cell-names = "mac-address";
212 --- a/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
213 +++ b/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
216 compatible = "brcm,nvram";
217 reg = <0x1eff0000 0x10000>;
219 + et0macaddr: et0macaddr {
220 + #nvmem-cell-cells = <1>;
226 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
230 + nvmem-cells = <&et0macaddr 0>;
231 + nvmem-cell-names = "mac-address";
241 + nvmem-cells = <&et0macaddr 1>;
242 + nvmem-cell-names = "mac-address";
246 --- a/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
247 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
249 <0x88000000 0x18000000>;
253 + compatible = "brcm,nvram";
254 + reg = <0x1eff0000 0x10000>;
256 + et0macaddr: et0macaddr {
261 compatible = "gpio-leds";
268 + nvmem-cells = <&et0macaddr>;
269 + nvmem-cell-names = "mac-address";
275 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
276 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
279 compatible = "brcm,nvram";
280 reg = <0x1eff0000 0x10000>;
282 + et0macaddr: et0macaddr {
283 + #nvmem-cell-cells = <1>;
289 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
293 + nvmem-cells = <&et0macaddr 0>;
294 + nvmem-cell-names = "mac-address";
304 + nvmem-cells = <&et0macaddr 5>;
305 + nvmem-cell-names = "mac-address";
309 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
310 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
312 reg = <0x1eff0000 0x10000>;
314 et0macaddr: et0macaddr {
315 + #nvmem-cell-cells = <1>;
323 - nvmem-cells = <&et0macaddr>;
324 + nvmem-cells = <&et0macaddr 0>;
325 nvmem-cell-names = "mac-address";
332 + nvmem-cells = <&et0macaddr 5>;
333 + nvmem-cell-names = "mac-address";