]>
Commit | Line | Data |
---|---|---|
d6ae0d57 | 1 | EEPROMs (SPI) compatible with Atmel at25. |
002176db APS |
2 | |
3 | Required properties: | |
3bcca2c2 GU |
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 | ||
002176db APS |
10 | - reg : chip select number |
11 | - spi-max-frequency : max spi frequency to use | |
d6ae0d57 DD |
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) | |
002176db | 15 | |
d6ae0d57 DD |
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 | ||
ba341abd | 21 | Obsolete legacy properties can be used in place of "size", "pagesize", |
d6ae0d57 | 22 | "address-width", and "read-only": |
002176db APS |
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 | ||
d6ae0d57 DD |
27 | Additional compatible properties are also allowed. |
28 | ||
29 | Example: | |
3bcca2c2 GU |
30 | eeprom@0 { |
31 | compatible = "st,m95256", "atmel,at25"; | |
d6ae0d57 DD |
32 | reg = <0> |
33 | spi-max-frequency = <5000000>; | |
34 | spi-cpha; | |
35 | spi-cpol; | |
002176db | 36 | |
d6ae0d57 DD |
37 | pagesize = <64>; |
38 | size = <32768>; | |
39 | address-width = <16>; | |
40 | }; |