David Daney | d6ae0d5 | 2012-08-22 12:03:57 -0700 | [diff] [blame] | 1 | EEPROMs (SPI) compatible with Atmel at25. |
Alexandre Pereira da Silva | 002176d | 2012-06-14 09:59:23 -0300 | [diff] [blame] | 2 | |
| 3 | Required properties: |
| 4 | - compatible : "atmel,at25". |
| 5 | - reg : chip select number |
| 6 | - spi-max-frequency : max spi frequency to use |
David Daney | d6ae0d5 | 2012-08-22 12:03:57 -0700 | [diff] [blame] | 7 | - pagesize : size of the eeprom page |
| 8 | - size : total eeprom size in bytes |
| 9 | - address-width : number of address bits (one of 8, 16, or 24) |
Alexandre Pereira da Silva | 002176d | 2012-06-14 09:59:23 -0300 | [diff] [blame] | 10 | |
David Daney | d6ae0d5 | 2012-08-22 12:03:57 -0700 | [diff] [blame] | 11 | Optional properties: |
| 12 | - spi-cpha : SPI shifted clock phase, as per spi-bus bindings. |
| 13 | - spi-cpol : SPI inverse clock polarity, as per spi-bus bindings. |
| 14 | - read-only : this parameter-less property disables writes to the eeprom |
| 15 | |
| 16 | Obsolete legacy properties are can be used in place of "size", "pagesize", |
| 17 | "address-width", and "read-only": |
Alexandre Pereira da Silva | 002176d | 2012-06-14 09:59:23 -0300 | [diff] [blame] | 18 | - at25,byte-len : total eeprom size in bytes |
| 19 | - at25,addr-mode : addr-mode flags, as defined in include/linux/spi/eeprom.h |
| 20 | - at25,page-size : size of the eeprom page |
| 21 | |
David Daney | d6ae0d5 | 2012-08-22 12:03:57 -0700 | [diff] [blame] | 22 | Additional compatible properties are also allowed. |
Alexandre Pereira da Silva | 002176d | 2012-06-14 09:59:23 -0300 | [diff] [blame] | 23 | |
David Daney | d6ae0d5 | 2012-08-22 12:03:57 -0700 | [diff] [blame] | 24 | Example: |
| 25 | at25@0 { |
| 26 | compatible = "atmel,at25", "st,m95256"; |
| 27 | reg = <0> |
| 28 | spi-max-frequency = <5000000>; |
| 29 | spi-cpha; |
| 30 | spi-cpol; |
| 31 | |
| 32 | pagesize = <64>; |
| 33 | size = <32768>; |
| 34 | address-width = <16>; |
| 35 | }; |