127-4-dt-sun4i-enable-nand-on-a10-lime.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --- a/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
  2. +++ b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
  3. @@ -189,3 +189,62 @@
  4. status = "okay";
  5. };
  6. };
  7. +&nfc {
  8. + pinctrl-names = "default";
  9. + pinctrl-0 = <&nand_pins_a &nand_cs0_pins_a &nand_rb0_pins_a>;
  10. + status = "okay";
  11. +
  12. + nand@0 {
  13. + #address-cells = <2>;
  14. + #size-cells = <2>;
  15. + reg = <0>;
  16. + allwinner,rb = <0>;
  17. +
  18. + nand-ecc-mode = "hw";
  19. + nand-rnd-mode = "hw";
  20. + nand-ecc-strength = <40>;
  21. + nand-ecc-step-size = <1024>;
  22. + nand-on-flash-bbt;
  23. +
  24. + boot0@0 {
  25. + label = "boot0";
  26. + reg = /bits/ 64 <0x0 0x200000>;
  27. + nand-ecc-mode = "hw_syndrome";
  28. + nand-rnd-mode = "hw";
  29. + nand-randomizer-seeds = /bits/ 16 <0x4a80>;
  30. + };
  31. +
  32. + boot0-rescue@200000 {
  33. + label = "boot0-rescue";
  34. + reg = /bits/ 64 <0x200000 0x200000>;
  35. + nand-ecc-mode = "hw_syndrome";
  36. + nand-rnd-mode = "hw";
  37. + nand-randomizer-seeds = /bits/ 16 <0x4a80>;
  38. + };
  39. +
  40. + main@200000 {
  41. + label = "main";
  42. + reg = /bits/ 64 <0x400000 0xffc00000>;
  43. + nand-ecc-mode = "hw";
  44. + nand-rnd-mode = "hw";
  45. + nand-randomizer-seeds = /bits/ 16 <
  46. + 0x2b75 0x0bd0 0x5ca3 0x62d1 0x1c93 0x07e9 0x2162 0x3a72
  47. + 0x0d67 0x67f9 0x1be7 0x077d 0x032f 0x0dac 0x2716 0x2436
  48. + 0x7922 0x1510 0x3860 0x5287 0x480f 0x4252 0x1789 0x5a2d
  49. + 0x2a49 0x5e10 0x437f 0x4b4e 0x2f45 0x216e 0x5cb7 0x7130
  50. + 0x2a3f 0x60e4 0x4dc9 0x0ef0 0x0f52 0x1bb9 0x6211 0x7a56
  51. + 0x226d 0x4ea7 0x6f36 0x3692 0x38bf 0x0c62 0x05eb 0x4c55
  52. + 0x60f4 0x728c 0x3b6f 0x2037 0x7f69 0x0936 0x651a 0x4ceb
  53. + 0x6218 0x79f3 0x383f 0x18d9 0x4f05 0x5c82 0x2912 0x6f17
  54. + 0x6856 0x5938 0x1007 0x61ab 0x3e7f 0x57c2 0x542f 0x4f62
  55. + 0x7454 0x2eac 0x7739 0x42d4 0x2f90 0x435a 0x2e52 0x2064
  56. + 0x637c 0x66ad 0x2c90 0x0bad 0x759c 0x0029 0x0986 0x7126
  57. + 0x1ca7 0x1605 0x386a 0x27f5 0x1380 0x6d75 0x24c3 0x0f8e
  58. + 0x2b7a 0x1418 0x1fd1 0x7dc1 0x2d8e 0x43af 0x2267 0x7da3
  59. + 0x4e3d 0x1338 0x50db 0x454d 0x764d 0x40a3 0x42e6 0x262b
  60. + 0x2d2e 0x1aea 0x2e17 0x173d 0x3a6e 0x71bf 0x25f9 0x0a5d
  61. + 0x7c57 0x0fbe 0x46ce 0x4939 0x6b17 0x37bb 0x3e91 0x76db>;
  62. + };
  63. + };
  64. +};
  65. +