diff options
author | Alexandre Pereira da Silva <aletes.xgr@gmail.com> | 2012-06-14 08:59:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-14 20:23:04 -0400 |
commit | 002176db8113c92d0bda02a47e3d2a4b8f9f55ea (patch) | |
tree | 62e5aabaa54c7fe486363873fd85cfe2487a9963 /Documentation | |
parent | 98dcd59dd063dd8099d8dbccd84a40e927dc7138 (diff) |
misc: at25: Parse dt settings
This adds dt support to the at25 eeprom driver.
Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Tested-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/misc/at25.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/misc/at25.txt b/Documentation/devicetree/bindings/misc/at25.txt new file mode 100644 index 000000000000..ab3c327929dd --- /dev/null +++ b/Documentation/devicetree/bindings/misc/at25.txt | |||
@@ -0,0 +1,21 @@ | |||
1 | Atmel AT25 eeprom | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "atmel,at25". | ||
5 | - reg : chip select number | ||
6 | - spi-max-frequency : max spi frequency to use | ||
7 | |||
8 | - at25,byte-len : total eeprom size in bytes | ||
9 | - at25,addr-mode : addr-mode flags, as defined in include/linux/spi/eeprom.h | ||
10 | - at25,page-size : size of the eeprom page | ||
11 | |||
12 | Examples: | ||
13 | at25@0 { | ||
14 | compatible = "atmel,at25"; | ||
15 | reg = <0> | ||
16 | spi-max-frequency = <5000000>; | ||
17 | |||
18 | at25,byte-len = <0x8000>; | ||
19 | at25,addr-mode = <2>; | ||
20 | at25,page-size = <64>; | ||
21 | }; | ||