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