mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 05:57:08 +07:00
5f3d1382e3
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>
23 lines
462 B
Plaintext
23 lines
462 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.
|
|
|
|
Examples:
|
|
|
|
onewire@0 {
|
|
compatible = "w1-gpio";
|
|
gpios = <&gpio 126 0>, <&gpio 105 0>;
|
|
};
|
|
|