jedec,spi-nor.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. * MTD SPI driver for ST M25Pxx (and similar) serial flash chips
  2. Required properties:
  3. - #address-cells, #size-cells : Must be present if the device has sub-nodes
  4. representing partitions.
  5. - compatible : May include a device-specific string consisting of the
  6. manufacturer and name of the chip. Bear in mind the DT binding
  7. is not Linux-only, but in case of Linux, see the "m25p_ids"
  8. table in drivers/mtd/devices/m25p80.c for the list of supported
  9. chips.
  10. Must also include "jedec,spi-nor" for any SPI NOR flash that can
  11. be identified by the JEDEC READ ID opcode (0x9F).
  12. - reg : Chip-Select number
  13. - spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
  14. Optional properties:
  15. - m25p,fast-read : Use the "fast read" opcode to read data from the chip instead
  16. of the usual "read" opcode. This opcode is not supported by
  17. all chips and support for it can not be detected at runtime.
  18. Refer to your chips' datasheet to check if this is supported
  19. by your chip.
  20. Example:
  21. flash: m25p80@0 {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. compatible = "spansion,m25p80", "jedec,spi-nor";
  25. reg = <0>;
  26. spi-max-frequency = <40000000>;
  27. m25p,fast-read;
  28. };