w1-gpio.txt 529 B

123456789101112131415161718192021222324252627
  1. w1-gpio devicetree bindings
  2. Required properties:
  3. - compatible: "w1-gpio"
  4. - gpios: one or two GPIO specs:
  5. - the first one is used as data I/O pin
  6. - the second one is optional. If specified, it is used as
  7. enable pin for an external pin pullup.
  8. Optional properties:
  9. - linux,open-drain: if specified, the data pin is considered in
  10. open-drain mode.
  11. Also refer to the generic w1.txt document.
  12. Examples:
  13. onewire {
  14. compatible = "w1-gpio";
  15. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  16. battery {
  17. // ...
  18. };
  19. };