extcon: add extcon-odroid-usbotg driver
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 9 Mar 2015 10:00:47 +0000 (11:00 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 13 Apr 2015 10:44:37 +0000 (12:44 +0200)
commit6d3092a4cec821331ab23324ef4f562f47a17aa2
tree9b3fecdd099311b1078373c745fb47e52ce4779b
parentc74485f3bd9488a1c58c6ec6c03bba64d038557e
extcon: add extcon-odroid-usbotg driver

This patch adds extcon driver for Odroid U3, U3+ and X boards.
It recognizes type of USB cable connected to Odroid board basing on
two signal lines VBUS_DET and OTG_ID (the second one is present only
on Odroid U3+ board).

Following table of states presents relationship between this signals
and detected cable type:

state    | VBUS_DET |  OTG_ID
-------------------------------
USB      |    H     |    H
invalid  |    H     |    L
disconn. |    L     |    H
USB-Host |    L     |    L

This driver is based on extcon-gpio driver.

Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
drivers/extcon/Kconfig
drivers/extcon/Makefile
drivers/extcon/extcon-odroid-usbotg.c [new file with mode: 0644]