m25p80.txt 1.1 KB

1234567891011121314151617181920212223242526272829
  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 : Should be the manufacturer and the name of the chip. Bear in mind
  6. the DT binding is not Linux-only, but in case of Linux, see the
  7. "m25p_ids" table in drivers/mtd/devices/m25p80.c for the list of
  8. supported chips.
  9. - reg : Chip-Select number
  10. - spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
  11. Optional properties:
  12. - m25p,fast-read : Use the "fast read" opcode to read data from the chip instead
  13. of the usual "read" opcode. This opcode is not supported by
  14. all chips and support for it can not be detected at runtime.
  15. Refer to your chips' datasheet to check if this is supported
  16. by your chip.
  17. Example:
  18. flash: m25p80@0 {
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. compatible = "spansion,m25p80";
  22. reg = <0>;
  23. spi-max-frequency = <40000000>;
  24. m25p,fast-read;
  25. };