at25.txt 1.3 KB

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