037-v4.18-0007-ARM-dts-BCM5301X-Switch-D-Link-DIR-885L-to-the-new-p.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From a05f1e36a57d02374a203719abc5bf2e8c51e125 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Thu, 10 May 2018 23:20:00 +0200
  4. Subject: [PATCH] ARM: dts: BCM5301X: Switch D-Link DIR-885L to the new
  5. partitions syntax
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. This new syntax is slightly better designed & uses "compatible" string.
  10. For details see Documentation/devicetree/bindings/mtd/partition.txt .
  11. Signed-off-by: Rafał Miłecki <[email protected]>
  12. Signed-off-by: Florian Fainelli <[email protected]>
  13. ---
  14. arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 12 +++++++++---
  15. 1 file changed, 9 insertions(+), 3 deletions(-)
  16. --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  17. +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  18. @@ -26,9 +26,15 @@
  19. nand: nand@18028000 {
  20. nandcs@0 {
  21. - partition@0 {
  22. - label = "firmware";
  23. - reg = <0x00000000 0x08000000>;
  24. + partitions {
  25. + compatible = "fixed-partitions";
  26. + #address-cells = <1>;
  27. + #size-cells = <1>;
  28. +
  29. + partition@0 {
  30. + label = "firmware";
  31. + reg = <0x00000000 0x08000000>;
  32. + };
  33. };
  34. };
  35. };