mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
dfa32e119d
This patch adds a generic w1 bindings document that describes how w1 slave deviceses are grouped under master nodes. It also augments the existing w1-gpio.txt document a bit. Signed-off-by: Daniel Mack <daniel@zonque.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
28 lines
529 B
Plaintext
28 lines
529 B
Plaintext
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.
|
|
|
|
Also refer to the generic w1.txt document.
|
|
|
|
Examples:
|
|
|
|
onewire {
|
|
compatible = "w1-gpio";
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
battery {
|
|
// ...
|
|
};
|
|
};
|