linux,extcon-usb-gpio.yaml 810 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/extcon/linux,extcon-usb-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: USB GPIO Extcon device
  7. maintainers:
  8. - Frank Li <Frank.Li@nxp.com>
  9. description:
  10. This is a virtual device used to generate USB cable states from the USB ID pin
  11. connected to a GPIO pin.
  12. properties:
  13. compatible:
  14. const: linux,extcon-usb-gpio
  15. id-gpios:
  16. description: gpio for USB ID pin. See gpio binding.
  17. vbus-gpios:
  18. description: gpio for USB VBUS pin.
  19. required:
  20. - compatible
  21. additionalProperties: false
  22. examples:
  23. - |
  24. #include <dt-bindings/gpio/gpio.h>
  25. extcon_usb1 {
  26. compatible = "linux,extcon-usb-gpio";
  27. id-gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>;
  28. };