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