nxp-spifi.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. * NXP SPI Flash Interface (SPIFI)
  2. NXP SPIFI is a specialized SPI interface for serial Flash devices.
  3. It supports one Flash device with 1-, 2- and 4-bits width in SPI
  4. mode 0 or 3. The controller operates in either command or memory
  5. mode. In memory mode the Flash is accessible from the CPU as
  6. normal memory.
  7. Required properties:
  8. - compatible : Should be "nxp,lpc1773-spifi"
  9. - reg : the first contains the register location and length,
  10. the second contains the memory mapping address and length
  11. - reg-names: Should contain the reg names "spifi" and "flash"
  12. - interrupts : Should contain the interrupt for the device
  13. - clocks : The clocks needed by the SPIFI controller
  14. - clock-names : Should contain the clock names "spifi" and "reg"
  15. Optional properties:
  16. - resets : phandle + reset specifier
  17. The SPI Flash must be a child of the SPIFI node and must have a
  18. compatible property as specified in bindings/mtd/jedec,spi-nor.txt
  19. Optionally it can also contain the following properties.
  20. - spi-cpol : Controller only supports mode 0 and 3 so either
  21. both spi-cpol and spi-cpha should be present or
  22. none of them
  23. - spi-cpha : See above
  24. - spi-rx-bus-width : Used to select how many pins that are used
  25. for input on the controller
  26. See bindings/spi/spi-bus.txt for more information.
  27. Example:
  28. spifi: spifi@40003000 {
  29. compatible = "nxp,lpc1773-spifi";
  30. reg = <0x40003000 0x1000>, <0x14000000 0x4000000>;
  31. reg-names = "spifi", "flash";
  32. interrupts = <30>;
  33. clocks = <&ccu1 CLK_SPIFI>, <&ccu1 CLK_CPU_SPIFI>;
  34. clock-names = "spifi", "reg";
  35. resets = <&rgu 53>;
  36. flash@0 {
  37. compatible = "jedec,spi-nor";
  38. spi-cpol;
  39. spi-cpha;
  40. spi-rx-bus-width = <4>;
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. partition@0 {
  44. label = "data";
  45. reg = <0 0x200000>;
  46. };
  47. };
  48. };