164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
  2. +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
  3. @@ -26,7 +26,9 @@
  4. chosen {
  5. stdout-path = "serial2:115200n8";
  6. - bootargs = "earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
  7. + bootargs = "root=/dev/fit0 earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
  8. + rootdisk-emmc = <&emmc_rootdisk>;
  9. + rootdisk-sd = <&sd_rootdisk>;
  10. };
  11. connector {
  12. @@ -315,6 +317,20 @@
  13. vmmc-supply = <&reg_3p3v>;
  14. vqmmc-supply = <&reg_1p8v>;
  15. non-removable;
  16. +
  17. + card@0 {
  18. + compatible = "mmc-card";
  19. + reg = <0>;
  20. +
  21. + block {
  22. + compatible = "block-device";
  23. + partitions {
  24. + emmc_rootdisk: block-partition-fit {
  25. + partno = <3>;
  26. + };
  27. + };
  28. + };
  29. + };
  30. };
  31. &mmc1 {
  32. @@ -328,6 +344,20 @@
  33. cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
  34. vmmc-supply = <&reg_3p3v>;
  35. vqmmc-supply = <&reg_3p3v>;
  36. +
  37. + card@0 {
  38. + compatible = "mmc-card";
  39. + reg = <0>;
  40. +
  41. + block {
  42. + compatible = "block-device";
  43. + partitions {
  44. + sd_rootdisk: block-partition-fit {
  45. + partno = <3>;
  46. + };
  47. + };
  48. + };
  49. + };
  50. };
  51. &mt6323_leds {