2012-08-22 19:03:57 +00:00
|
|
|
EEPROMs (SPI) compatible with Atmel at25.
|
2012-06-14 12:59:23 +00:00
|
|
|
|
|
|
|
Required properties:
|
2017-11-30 13:29:46 +00:00
|
|
|
- compatible : Should be "<vendor>,<type>", and generic value "atmel,at25".
|
|
|
|
Example "<vendor>,<type>" values:
|
|
|
|
"microchip,25lc040"
|
|
|
|
"st,m95m02"
|
|
|
|
"st,m95256"
|
|
|
|
|
2012-06-14 12:59:23 +00:00
|
|
|
- reg : chip select number
|
|
|
|
- spi-max-frequency : max spi frequency to use
|
2012-08-22 19:03:57 +00:00
|
|
|
- pagesize : size of the eeprom page
|
|
|
|
- size : total eeprom size in bytes
|
2017-12-08 13:46:41 +00:00
|
|
|
- address-width : number of address bits (one of 8, 9, 16, or 24).
|
|
|
|
For 9 bits, the MSB of the address is sent as bit 3 of the instruction
|
|
|
|
byte, before the address byte.
|
2012-06-14 12:59:23 +00:00
|
|
|
|
2012-08-22 19:03:57 +00:00
|
|
|
Optional properties:
|
|
|
|
- spi-cpha : SPI shifted clock phase, as per spi-bus bindings.
|
|
|
|
- spi-cpol : SPI inverse clock polarity, as per spi-bus bindings.
|
|
|
|
- read-only : this parameter-less property disables writes to the eeprom
|
|
|
|
|
2017-11-30 13:29:45 +00:00
|
|
|
Obsolete legacy properties can be used in place of "size", "pagesize",
|
2012-08-22 19:03:57 +00:00
|
|
|
"address-width", and "read-only":
|
2012-06-14 12:59:23 +00:00
|
|
|
- at25,byte-len : total eeprom size in bytes
|
|
|
|
- at25,addr-mode : addr-mode flags, as defined in include/linux/spi/eeprom.h
|
|
|
|
- at25,page-size : size of the eeprom page
|
|
|
|
|
2012-08-22 19:03:57 +00:00
|
|
|
Additional compatible properties are also allowed.
|
|
|
|
|
|
|
|
Example:
|
2017-11-30 13:29:46 +00:00
|
|
|
eeprom@0 {
|
|
|
|
compatible = "st,m95256", "atmel,at25";
|
2012-08-22 19:03:57 +00:00
|
|
|
reg = <0>
|
|
|
|
spi-max-frequency = <5000000>;
|
|
|
|
spi-cpha;
|
|
|
|
spi-cpol;
|
2012-06-14 12:59:23 +00:00
|
|
|
|
2012-08-22 19:03:57 +00:00
|
|
|
pagesize = <64>;
|
|
|
|
size = <32768>;
|
|
|
|
address-width = <16>;
|
|
|
|
};
|