w1-gpio.yaml 779 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/w1/w1-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Bitbanged GPIO 1-Wire Bus
  7. maintainers:
  8. - Daniel Mack <zonque@gmail.com>
  9. properties:
  10. compatible:
  11. const: w1-gpio
  12. gpios:
  13. minItems: 1
  14. items:
  15. - description: Data I/O pin
  16. - description: Enable pin for an external pull-up resistor
  17. linux,open-drain:
  18. type: boolean
  19. description: >
  20. If specified, the data pin is considered in open-drain mode.
  21. required:
  22. - compatible
  23. - gpios
  24. additionalProperties:
  25. type: object
  26. examples:
  27. - |
  28. #include <dt-bindings/gpio/gpio.h>
  29. onewire {
  30. compatible = "w1-gpio";
  31. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  32. };
  33. ...