[RFC PATCH 3/5] Documentation: dt-bindings: add YAML eeprom binding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Convert the eeprom.txt binding to standard YAML DT
binding format.

Signed-off-by: Matt Porter <mporter@xxxxxxxxxxxx>
---
 Documentation/devicetree/bindings/eeprom.yaml | 44 +++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/eeprom.yaml

diff --git a/Documentation/devicetree/bindings/eeprom.yaml b/Documentation/devicetree/bindings/eeprom.yaml
new file mode 100644
index 0000000..bf1244b
--- /dev/null
+++ b/Documentation/devicetree/bindings/eeprom.yaml
@@ -0,0 +1,44 @@
+%YAML 1.2
+---
+id: eeprom-i2c
+
+title: EEPROMs (I2C)
+
+compatible:
+  - name: "<manufacturer>,24c00"
+  - name: "<manufacturer>,24c01"
+  - name: "<manufacturer>,24c02"
+  - name: "<manufacturer>,24c04"
+  - name: "<manufacturer>,24c08"
+  - name: "<manufacturer>,24c16"
+  - name: "<manufacturer>,24c32"
+  - name: "<manufacturer>,24c64"
+  - name: "<manufacturer>,24c128"
+  - name: "<manufacturer>,24c256"
+  - name: "<manufacturer>,24c512"
+  - name: "<manufacturer>,24c1024"
+  - name: "<manufacturer>,spd"
+
+required:
+  - name: "reg"
+    description: the I2c address of the EEPROM
+
+optional:
+  - name: "pagesize"
+    description: >
+      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.
+  - name: "read-only"
+    description: >
+      this parameterless property disables writes to the eeprom
+
+example:
+  - dts: |
+      eeprom@52 {
+              compatible = "atmel,24c32";
+              reg = <0x52>;
+              pagesize = <32>;
+       };
+...
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux