0019-ARM-dts-gemini-Indent-DIR-685-partition-table.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. From 4a228ecf553e879bae384e634bb6413438e81a0e Mon Sep 17 00:00:00 2001
  2. From: Linus Walleij <[email protected]>
  3. Date: Mon, 11 Mar 2019 15:43:05 +0100
  4. Subject: [PATCH 1/2] ARM: dts: gemini: Indent DIR-685 partition table
  5. It is discouraged to have OF partitions as subnodes directly
  6. under the device, create a "partitions" subnode and put the
  7. partitions inside it.
  8. Signed-off-by: Linus Walleij <[email protected]>
  9. ---
  10. arch/arm/boot/dts/gemini-dlink-dir-685.dts | 82 ++++++++++++----------
  11. 1 file changed, 44 insertions(+), 38 deletions(-)
  12. --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts
  13. +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
  14. @@ -267,44 +267,50 @@
  15. /* 32MB of flash */
  16. reg = <0x30000000 0x02000000>;
  17. - /*
  18. - * This "RedBoot" is the Storlink derivative.
  19. - */
  20. - partition@0 {
  21. - label = "RedBoot";
  22. - reg = <0x00000000 0x00040000>;
  23. - read-only;
  24. - };
  25. - /*
  26. - * This firmware image contains the kernel catenated
  27. - * with the squashfs root filesystem. For some reason
  28. - * this is called "upgrade" on the vendor system.
  29. - */
  30. - partition@40000 {
  31. - label = "upgrade";
  32. - reg = <0x00040000 0x01f40000>;
  33. - read-only;
  34. - };
  35. - /* RGDB, Residental Gateway Database? */
  36. - partition@1f80000 {
  37. - label = "rgdb";
  38. - reg = <0x01f80000 0x00040000>;
  39. - read-only;
  40. - };
  41. - /*
  42. - * This partition contains MAC addresses for WAN,
  43. - * WLAN and LAN, and the country code (for wireless
  44. - * I guess).
  45. - */
  46. - partition@1fc0000 {
  47. - label = "nvram";
  48. - reg = <0x01fc0000 0x00020000>;
  49. - read-only;
  50. - };
  51. - partition@1fe0000 {
  52. - label = "LangPack";
  53. - reg = <0x01fe0000 0x00020000>;
  54. - read-only;
  55. + partitions {
  56. + compatible = "fixed-partitions";
  57. + #address-cells = <1>;
  58. + #size-cells = <1>;
  59. +
  60. + /*
  61. + * This "RedBoot" is the Storlink derivative.
  62. + */
  63. + partition@0 {
  64. + label = "RedBoot";
  65. + reg = <0x00000000 0x00040000>;
  66. + read-only;
  67. + };
  68. + /*
  69. + * This firmware image contains the kernel catenated
  70. + * with the squashfs root filesystem. For some reason
  71. + * this is called "upgrade" on the vendor system.
  72. + */
  73. + partition@40000 {
  74. + label = "upgrade";
  75. + reg = <0x00040000 0x01f40000>;
  76. + read-only;
  77. + };
  78. + /* RGDB, Residental Gateway Database? */
  79. + partition@1f80000 {
  80. + label = "rgdb";
  81. + reg = <0x01f80000 0x00040000>;
  82. + read-only;
  83. + };
  84. + /*
  85. + * This partition contains MAC addresses for WAN,
  86. + * WLAN and LAN, and the country code (for wireless
  87. + * I guess).
  88. + */
  89. + partition@1fc0000 {
  90. + label = "nvram";
  91. + reg = <0x01fc0000 0x00020000>;
  92. + read-only;
  93. + };
  94. + partition@1fe0000 {
  95. + label = "LangPack";
  96. + reg = <0x01fe0000 0x00020000>;
  97. + read-only;
  98. + };
  99. };
  100. };