032-v5.18-0004-ARM-dts-BCM5301X-Add-Ethernet-MAC-address-to-Luxul-X.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From c8442f0fb09ca3d842b9b23d1d0650f649fd10f8 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Mon, 28 Feb 2022 10:52:07 +0100
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add Ethernet MAC address to Luxul
  5. XWR-3150
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Luxul XWR-3150 stores MAC as NVRAM variable. Add NVMEM cell for it and
  10. reference it in the Ethernet interface node.
  11. Signed-off-by: Rafał Miłecki <[email protected]>
  12. Signed-off-by: Florian Fainelli <[email protected]>
  13. ---
  14. arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 8 ++++++++
  15. 1 file changed, 8 insertions(+)
  16. --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
  17. +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
  18. @@ -25,6 +25,9 @@
  19. nvram@1eff0000 {
  20. compatible = "brcm,nvram";
  21. reg = <0x1eff0000 0x10000>;
  22. +
  23. + et0macaddr: et0macaddr {
  24. + };
  25. };
  26. leds {
  27. @@ -72,6 +75,11 @@
  28. };
  29. };
  30. +&gmac0 {
  31. + nvmem-cells = <&et0macaddr>;
  32. + nvmem-cell-names = "mac-address";
  33. +};
  34. +
  35. &usb3 {
  36. vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  37. };