extcon: palmas: Support GPIO based USB ID detection
authorRoger Quadros <rogerq@ti.com>
Mon, 3 Aug 2015 14:40:51 +0000 (17:40 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Aug 2015 12:26:25 +0000 (21:26 +0900)
commit92b7cb5dc885b38b21093eefed8028b615952965
treede56922baf3fee8dd9ec7c7f9a43599de61c07f0
parenta598af7f0279195abffbfb9bf2070457e9c89ff3
extcon: palmas: Support GPIO based USB ID detection

Some palmas based chip variants do not have OTG based ID logic.
For these variants we rely on GPIO based USB ID detection.

These chips do have VBUS comparator for VBUS detection so we
continue to use the old way of detecting VBUS.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Documentation/devicetree/bindings/extcon/extcon-palmas.txt
drivers/extcon/extcon-palmas.c
drivers/extcon/extcon-usb-gpio.c
include/linux/mfd/palmas.h