summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>2012-06-14 09:59:23 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-14 17:23:04 -0700
commit002176db8113c92d0bda02a47e3d2a4b8f9f55ea (patch)
tree62e5aabaa54c7fe486363873fd85cfe2487a9963 /Documentation
parent98dcd59dd063dd8099d8dbccd84a40e927dc7138 (diff)
downloadlinux-002176db8113c92d0bda02a47e3d2a4b8f9f55ea.tar.gz
linux-002176db8113c92d0bda02a47e3d2a4b8f9f55ea.tar.bz2
linux-002176db8113c92d0bda02a47e3d2a4b8f9f55ea.zip
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.txt21
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 @@
+Atmel AT25 eeprom
+
+Required properties:
+- compatible : "atmel,at25".
+- reg : chip select number
+- spi-max-frequency : max spi frequency to use
+
+- at25,byte-len : total eeprom size in bytes
+- at25,addr-mode : addr-mode flags, as defined in include/linux/spi/eeprom.h
+- at25,page-size : size of the eeprom page
+
+Examples:
+at25@0 {
+ compatible = "atmel,at25";
+ reg = <0>
+ spi-max-frequency = <5000000>;
+
+ at25,byte-len = <0x8000>;
+ at25,addr-mode = <2>;
+ at25,page-size = <64>;
+};