-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Daniel Mack
authored and
Greg Kroah-Hartman
committed
Aug 16, 2012
1 parent
73f2989
commit 5f3d138
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
w1-gpio devicetree bindings | ||
|
||
Required properties: | ||
|
||
- compatible: "w1-gpio" | ||
- gpios: one or two GPIO specs: | ||
- the first one is used as data I/O pin | ||
- the second one is optional. If specified, it is used as | ||
enable pin for an external pin pullup. | ||
|
||
Optional properties: | ||
|
||
- linux,open-drain: if specified, the data pin is considered in | ||
open-drain mode. | ||
|
||
Examples: | ||
|
||
onewire@0 { | ||
compatible = "w1-gpio"; | ||
gpios = <&gpio 126 0>, <&gpio 105 0>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters