extcon-usb-gpio.txt 471 B

123456789101112131415161718
  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. - id-gpio: gpio for USB ID pin. See gpio binding.
  7. Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below:
  8. extcon_usb1 {
  9. compatible = "linux,extcon-usb-gpio";
  10. id-gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
  11. }
  12. &omap_dwc3_1 {
  13. extcon = <&extcon_usb1>;
  14. };