2
0

131-dts-mt7622-add-snand-support.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
  2. +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
  3. @@ -534,6 +534,65 @@
  4. status = "disabled";
  5. };
  6. +&bch {
  7. + status = "okay";
  8. +};
  9. +
  10. +&snfi {
  11. + pinctrl-names = "default";
  12. + pinctrl-0 = <&serial_nand_pins>;
  13. + status = "okay";
  14. + flash@0 {
  15. + compatible = "spi-nand";
  16. + reg = <0>;
  17. + spi-tx-bus-width = <4>;
  18. + spi-rx-bus-width = <4>;
  19. + nand-ecc-engine = <&snfi>;
  20. +
  21. + partitions {
  22. + compatible = "fixed-partitions";
  23. + #address-cells = <1>;
  24. + #size-cells = <1>;
  25. +
  26. + partition@0 {
  27. + label = "Preloader";
  28. + reg = <0x00000 0x0080000>;
  29. + read-only;
  30. + };
  31. +
  32. + partition@80000 {
  33. + label = "ATF";
  34. + reg = <0x80000 0x0040000>;
  35. + };
  36. +
  37. + partition@c0000 {
  38. + label = "Bootloader";
  39. + reg = <0xc0000 0x0080000>;
  40. + };
  41. +
  42. + partition@140000 {
  43. + label = "Config";
  44. + reg = <0x140000 0x0080000>;
  45. + };
  46. +
  47. + partition@1c0000 {
  48. + label = "Factory";
  49. + reg = <0x1c0000 0x0100000>;
  50. + };
  51. +
  52. + partition@200000 {
  53. + label = "firmware";
  54. + reg = <0x2c0000 0x2000000>;
  55. + };
  56. +
  57. + partition@2200000 {
  58. + label = "User_data";
  59. + reg = <0x22c0000 0x4000000>;
  60. + };
  61. + };
  62. + };
  63. +};
  64. +
  65. &spi0 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&spic0_pins>;