403-add-bananapi_bpi-r64-snand.patch 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
  2. +++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
  3. @@ -20,7 +20,7 @@
  4. };
  5. aliases {
  6. - spi0 = &snfi;
  7. + spi0 = &snand;
  8. ethernet0 = ð
  9. };
  10. @@ -208,16 +208,27 @@
  11. };
  12. };
  13. -&snfi {
  14. - pinctrl-names = "default", "snfi";
  15. - pinctrl-0 = <&snor_pins>;
  16. - pinctrl-1 = <&snfi_pins>;
  17. +&snand {
  18. + pinctrl-names = "default";
  19. + pinctrl-0 = <&snfi_pins>;
  20. + quad-spi;
  21. status = "okay";
  22. - spi-flash@0{
  23. - compatible = "jedec,spi-nor";
  24. - reg = <0>;
  25. - bootph-all;
  26. + partitions {
  27. + compatible = "fixed-partitions";
  28. + #address-cells = <1>;
  29. + #size-cells = <1>;
  30. +
  31. + partition@0 {
  32. + label = "bl2";
  33. + reg = <0x0 0x80000>;
  34. + };
  35. +
  36. + partition@80000 {
  37. + label = "ubi";
  38. + reg = <0x80000 0x7f80000>;
  39. + compatible = "linux,ubi";
  40. + };
  41. };
  42. };