at25.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. EEPROMs (SPI) compatible with Atmel at25.
  2. Required properties:
  3. - compatible : "atmel,at25".
  4. - reg : chip select number
  5. - spi-max-frequency : max spi frequency to use
  6. - pagesize : size of the eeprom page
  7. - size : total eeprom size in bytes
  8. - address-width : number of address bits (one of 8, 16, or 24)
  9. Optional properties:
  10. - spi-cpha : SPI shifted clock phase, as per spi-bus bindings.
  11. - spi-cpol : SPI inverse clock polarity, as per spi-bus bindings.
  12. - read-only : this parameter-less property disables writes to the eeprom
  13. Obsolete legacy properties are can be used in place of "size", "pagesize",
  14. "address-width", and "read-only":
  15. - at25,byte-len : total eeprom size in bytes
  16. - at25,addr-mode : addr-mode flags, as defined in include/linux/spi/eeprom.h
  17. - at25,page-size : size of the eeprom page
  18. Additional compatible properties are also allowed.
  19. Example:
  20. at25@0 {
  21. compatible = "atmel,at25", "st,m95256";
  22. reg = <0>
  23. spi-max-frequency = <5000000>;
  24. spi-cpha;
  25. spi-cpol;
  26. pagesize = <64>;
  27. size = <32768>;
  28. address-width = <16>;
  29. };