diff options
| author | Daniel Mack <zonque@gmail.com> | 2012-07-23 10:36:35 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 13:00:23 -0400 |
| commit | 5f3d1382e3ca39a54032784414f0ad4e7078b37e (patch) | |
| tree | 7d1efb0ca10940719547e04d2f82074568e0da51 /Documentation/devicetree/bindings/w1 | |
| parent | 73f2989d37a36614fe13f24891ebe1e44fe5887d (diff) | |
onewire: w1-gpio: add DT bindings
This patch add DT bindings to the w1-gpio driver, along with some
documentation on how to use them.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Acked-by: Ville Syrjälä <syrjala@sci.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/w1')
| -rw-r--r-- | Documentation/devicetree/bindings/w1/w1-gpio.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/w1/w1-gpio.txt b/Documentation/devicetree/bindings/w1/w1-gpio.txt new file mode 100644 index 000000000000..6e09c35d9f1a --- /dev/null +++ b/Documentation/devicetree/bindings/w1/w1-gpio.txt | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | w1-gpio devicetree bindings | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | |||
| 5 | - compatible: "w1-gpio" | ||
| 6 | - gpios: one or two GPIO specs: | ||
| 7 | - the first one is used as data I/O pin | ||
| 8 | - the second one is optional. If specified, it is used as | ||
| 9 | enable pin for an external pin pullup. | ||
| 10 | |||
| 11 | Optional properties: | ||
| 12 | |||
| 13 | - linux,open-drain: if specified, the data pin is considered in | ||
| 14 | open-drain mode. | ||
| 15 | |||
| 16 | Examples: | ||
| 17 | |||
| 18 | onewire@0 { | ||
| 19 | compatible = "w1-gpio"; | ||
| 20 | gpios = <&gpio 126 0>, <&gpio 105 0>; | ||
| 21 | }; | ||
| 22 | |||
