dt-bindings: w1-eeprom: eep_sandbox: create bindings
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 18 Sep 2018 07:35:32 +0000 (10:35 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 00:22:36 +0000 (20:22 -0400)
Bindings for sandbox onewire eeprom driver

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt [new file with mode: 0644]

diff --git a/doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt b/doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt
new file mode 100644 (file)
index 0000000..82bb589
--- /dev/null
@@ -0,0 +1,34 @@
+Onewire EEPROM sandbox driver device binding - one wire protocol sandbox EEPROM
+=======================
+
+This memory needs to be connected to a onewire bus, as a child node.
+The bus will read the device serial number and match this node with a found
+device on the bus
+Also check doc/device-tree-bindings/w1 for onewire bus drivers
+
+Driver:
+- drivers/w1-eeprom/eep_sandbox.c
+
+Software ds24xxx device-tree node properties:
+Required:
+* compatible = "sandbox,w1-eeprom"
+
+Optional:
+* none
+
+Example:
+       eeprom1: eeprom@0 {
+               compatible = "sandbox,w1-eeprom";
+       }
+
+Example with parent bus:
+
+onewire_tm: onewire {
+               compatible = "w1-gpio";
+               gpios = <&gpio_a 8>;
+
+               eeprom1: eeprom@0 {
+                       compatible = "sandbox,w1-eeprom";
+               }
+};
+