911-dts-mt7622-bpi-r64-add-rootdisk.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
  2. +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
  3. @@ -32,6 +32,9 @@
  4. chosen {
  5. stdout-path = "serial0:115200n8";
  6. bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512";
  7. + rootdisk-emmc = <&emmc_rootfs>;
  8. + rootdisk-sd = <&sd_rootfs>;
  9. + rootdisk-snfi = <&ubi_rootfs>;
  10. };
  11. cpus {
  12. @@ -233,6 +236,26 @@
  13. assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>;
  14. assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
  15. non-removable;
  16. +
  17. + card@0 {
  18. + compatible = "mmc-card";
  19. + reg = <0>;
  20. +
  21. + block {
  22. + compatible = "block-device";
  23. + partitions {
  24. + block-partition-env {
  25. + partname = "ubootenv";
  26. + nvmem-layout {
  27. + compatible = "u-boot,env-layout";
  28. + };
  29. + };
  30. + emmc_rootfs: block-partition-production {
  31. + partname = "production";
  32. + };
  33. + };
  34. + };
  35. + };
  36. };
  37. &mmc1 {
  38. @@ -249,6 +272,26 @@
  39. vqmmc-supply = <&reg_3p3v>;
  40. assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
  41. assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
  42. +
  43. + card@0 {
  44. + compatible = "mmc-card";
  45. + reg = <0>;
  46. +
  47. + block {
  48. + compatible = "block-device";
  49. + partitions {
  50. + block-partition-env {
  51. + partname = "ubootenv";
  52. + nvmem-layout {
  53. + compatible = "u-boot,env-layout";
  54. + };
  55. + };
  56. + sd_rootfs: block-partition-production {
  57. + partname = "production";
  58. + };
  59. + };
  60. + };
  61. + };
  62. };
  63. &nandc {
  64. @@ -283,14 +326,29 @@
  65. };
  66. partition@80000 {
  67. - label = "fip";
  68. - reg = <0x80000 0x200000>;
  69. - read-only;
  70. - };
  71. -
  72. - partition@280000 {
  73. label = "ubi";
  74. - reg = <0x280000 0x7d80000>;
  75. + reg = <0x80000 0x7f80000>;
  76. + compatible = "linux,ubi";
  77. +
  78. + volumes {
  79. + ubi-volume-ubootenv {
  80. + volname = "ubootenv";
  81. + nvmem-layout {
  82. + compatible = "u-boot,env-redundant-bool-layout";
  83. + };
  84. + };
  85. +
  86. + ubi-volume-ubootenv2 {
  87. + volname = "ubootenv2";
  88. + nvmem-layout {
  89. + compatible = "u-boot,env-redundant-bool-layout";
  90. + };
  91. + };
  92. +
  93. + ubi_rootfs: ubi-volume-fit {
  94. + volname = "fit";
  95. + };
  96. + };
  97. };
  98. };
  99. };