summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/eeprom/eeprom.txt
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-09-03 17:47:47 -0500
committerRob Herring <robh@kernel.org>2015-10-22 09:21:22 -0500
commit58598f5be4fc15070fcb95a2ff36b7b966c3dee7 (patch)
tree2ba7f3727cee451c50661850e06a283af972fac0 /Documentation/devicetree/bindings/eeprom/eeprom.txt
parent7755313e69aac99800c617ea835d86cd06f7f54c (diff)
dt-bindings: consolidate eeprom bindings
Create a top level eeprom binding directory and move several scattered binding files there. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> Cc: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'Documentation/devicetree/bindings/eeprom/eeprom.txt')
-rw-r--r--Documentation/devicetree/bindings/eeprom/eeprom.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/eeprom/eeprom.txt b/Documentation/devicetree/bindings/eeprom/eeprom.txt
new file mode 100644
index 000000000000..4342c10de1bf
--- /dev/null
+++ b/Documentation/devicetree/bindings/eeprom/eeprom.txt
@@ -0,0 +1,28 @@
+EEPROMs (I2C)
+
+Required properties:
+
+ - compatible : should be "<manufacturer>,<type>"
+ If there is no specific driver for <manufacturer>, a generic
+ driver based on <type> is selected. Possible types are:
+ 24c00, 24c01, 24c02, 24c04, 24c08, 24c16, 24c32, 24c64,
+ 24c128, 24c256, 24c512, 24c1024, spd
+
+ - reg : the I2C address of the EEPROM
+
+Optional properties:
+
+ - pagesize : the length of the pagesize for writing. Please consult the
+ manual of your device, that value varies a lot. A wrong value
+ may result in data loss! If not specified, a safety value of
+ '1' is used which will be very slow.
+
+ - read-only: this parameterless property disables writes to the eeprom
+
+Example:
+
+eeprom@52 {
+ compatible = "atmel,24c32";
+ reg = <0x52>;
+ pagesize = <32>;
+};