2
0

115-dts-bpi64-add-snand-support.patch 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. @@ -255,14 +255,42 @@
  4. status = "disabled";
  5. };
  6. -&nor_flash {
  7. - pinctrl-names = "default";
  8. - pinctrl-0 = <&spi_nor_pins>;
  9. - status = "disabled";
  10. +&bch {
  11. + status = "okay";
  12. +};
  13. +&snfi {
  14. + pinctrl-names = "default";
  15. + pinctrl-0 = <&serial_nand_pins>;
  16. + status = "okay";
  17. flash@0 {
  18. - compatible = "jedec,spi-nor";
  19. + compatible = "spi-nand";
  20. reg = <0>;
  21. + spi-tx-bus-width = <4>;
  22. + spi-rx-bus-width = <4>;
  23. + nand-ecc-engine = <&snfi>;
  24. + partitions {
  25. + compatible = "fixed-partitions";
  26. + #address-cells = <1>;
  27. + #size-cells = <1>;
  28. +
  29. + partition@0 {
  30. + label = "bl2";
  31. + reg = <0x0 0x80000>;
  32. + read-only;
  33. + };
  34. +
  35. + partition@80000 {
  36. + label = "fip";
  37. + reg = <0x80000 0x200000>;
  38. + read-only;
  39. + };
  40. +
  41. + partition@280000 {
  42. + label = "ubi";
  43. + reg = <0x280000 0x7d80000>;
  44. + };
  45. + };
  46. };
  47. };