extcon-usb-gpio.txt 589 B

123456789101112131415161718192021
  1. USB GPIO Extcon device
  2. This is a virtual device used to generate USB cable states from the USB ID pin
  3. connected to a GPIO pin.
  4. Required properties:
  5. - compatible: Should be "linux,extcon-usb-gpio"
  6. Either one of id-gpio or vbus-gpio must be present. Both can be present as well.
  7. - id-gpio: gpio for USB ID pin. See gpio binding.
  8. - vbus-gpio: gpio for USB VBUS pin.
  9. Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below:
  10. extcon_usb1 {
  11. compatible = "linux,extcon-usb-gpio";
  12. id-gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
  13. }
  14. &omap_dwc3_1 {
  15. extcon = <&extcon_usb1>;
  16. };