aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2018-09-18 10:35:26 +0300
committerTom Rini <trini@konsulko.com>2018-09-28 20:22:34 -0400
commite1721ba0e68ebe8ef88e375301b53077d66c0448 (patch)
treeafce72c8d80b741384e5a439396885ae35f1505d
parent73aea285e3d78c070cce8b5cf924fce99e5cdecc (diff)
downloadu-boot-e1721ba0e68ebe8ef88e375301b53077d66c0448.zip
u-boot-e1721ba0e68ebe8ef88e375301b53077d66c0448.tar.gz
u-boot-e1721ba0e68ebe8ef88e375301b53077d66c0448.tar.bz2
dt-bindings: W1: w1-gpio: added bindings for w1-gpio
Added bindings specification for bitbanged gpio driver for Dallas one wire protocol Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
-rw-r--r--doc/device-tree-bindings/w1/w1-gpio.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/device-tree-bindings/w1/w1-gpio.txt b/doc/device-tree-bindings/w1/w1-gpio.txt
new file mode 100644
index 0000000..5a58244
--- /dev/null
+++ b/doc/device-tree-bindings/w1/w1-gpio.txt
@@ -0,0 +1,40 @@
+W1 gpio device binding - one wire protocol over bitbanged gpio
+=======================
+
+
+Child nodes are required in device tree. The driver will detect
+the devices serial number and then search in the child nodes in the device tree
+for the proper node and try to match it with the device.
+
+Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers
+
+Driver:
+- drivers/w1/w1-gpio.c
+
+Software w1 device-tree node properties:
+Required:
+* compatible = "w1-gpio";
+* gpios = <...>;
+ This is the gpio used for one wire protocol, using bitbanging
+
+Optional:
+* none
+
+Example:
+
+onewire_tm: onewire {
+ compatible = "w1-gpio";
+ gpios = <&pioA 32 0>;
+};
+
+Example with child:
+
+onewire_tm: onewire {
+ compatible = "w1-gpio";
+ gpios = <&pioA 32 0>;
+
+ eeprom1: eeprom@0 {
+ compatible = "maxim,ds24xxx";
+ }
+};
+