2
0

038-v6.7-0001-ARM-dts-BCM5301X-Set-MACs-for-D-Link-DIR-885L.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From 5cbee5828219c4f7b33e96b5d8ce5e467b2857c8 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  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. Specify NVRAM access and use its "et2macaddr" NVMEM cell.
  9. Signed-off-by: Rafał Miłecki <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. Signed-off-by: Florian Fainelli <[email protected]>
  12. ---
  13. .../dts/broadcom/bcm47094-dlink-dir-885l.dts | 16 ++++++++++++++++
  14. 1 file changed, 16 insertions(+)
  15. --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  16. +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  17. @@ -25,6 +25,15 @@
  18. <0x88000000 0x08000000>;
  19. };
  20. + nvram@1e3f0000 {
  21. + compatible = "brcm,nvram";
  22. + reg = <0x1e3f0000 0x10000>;
  23. +
  24. + et2macaddr: et2macaddr {
  25. + #nvmem-cell-cells = <1>;
  26. + };
  27. + };
  28. +
  29. nand_controller: nand-controller@18028000 {
  30. nand@0 {
  31. partitions {
  32. @@ -112,6 +121,11 @@
  33. vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  34. };
  35. +&gmac0 {
  36. + nvmem-cells = <&et2macaddr 0>;
  37. + nvmem-cell-names = "mac-address";
  38. +};
  39. +
  40. &spi_nor {
  41. status = "okay";
  42. };
  43. @@ -142,6 +156,8 @@
  44. port@4 {
  45. label = "wan";
  46. + nvmem-cells = <&et2macaddr 3>;
  47. + nvmem-cell-names = "mac-address";
  48. };
  49. port@8 {