033-v5.19-0005-ARM-dts-BCM5301X-Retrieve-gmac1-MAC-address-from-NVR.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 7f7f8c7b9f3cbae1355fb3b0ce4ea9d6f1552521 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <[email protected]>
  3. Date: Fri, 1 Apr 2022 13:20:01 +0300
  4. Subject: [PATCH] ARM: dts: BCM5301X: Retrieve gmac1 MAC address from NVRAM on
  5. Asus RT-AC88U
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. The et1macaddr NVRAM variable contains a MAC address for gmac1 on Asus
  10. RT-AC88U. Add NVMEM cell for it and reference it in the gmac1 node.
  11. Signed-off-by: Arınç ÜNAL <[email protected]>
  12. Acked-by: Rafał Miłecki <[email protected]>
  13. Signed-off-by: Florian Fainelli <[email protected]>
  14. ---
  15. arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 8 ++++++++
  16. 1 file changed, 8 insertions(+)
  17. --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
  18. +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
  19. @@ -25,6 +25,9 @@
  20. nvram@1c080000 {
  21. compatible = "brcm,nvram";
  22. reg = <0x1c080000 0x00180000>;
  23. +
  24. + et1macaddr: et1macaddr {
  25. + };
  26. };
  27. leds {
  28. @@ -239,6 +242,11 @@
  29. };
  30. };
  31. +&gmac1 {
  32. + nvmem-cells = <&et1macaddr>;
  33. + nvmem-cell-names = "mac-address";
  34. +};
  35. +
  36. &usb2 {
  37. vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  38. };