• Roger Quadros's avatar
    extcon: usb-gpio: Add VBUS detection support · 541332a1
    Roger Quadros authored
    Driver can now work with both ID and VBUS pins or either one of
    them.
    
    There can be the following 3 cases
    
    1) Both ID and VBUS GPIOs are available:
    
    ID = LOW -> USB_HOST active, USB inactive
    ID = HIGH -> USB_HOST inactive, USB state is same as VBUS.
    
    2) Only ID GPIO is available:
    
    ID = LOW -> USB_HOST active, USB inactive
    ID = HIGH -> USB_HOST inactive, USB active
    
    3) Only VBUS GPIO is available:
    
    VBUS = LOW -> USB_HOST inactive, USB inactive
    VBUS = HIGH -> USB_HOST inactive, USB active
    Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
    Reviewed-by: default avatarPeter Chen <peter.chen@nxp.com>
    Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
    541332a1
extcon-usb-gpio.c 7.78 KB