extcon: Add support for qcom SPMI PMIC USB id detection hardware
authorStephen Boyd <stephen.boyd@linaro.org>
Fri, 9 Sep 2016 21:48:47 +0000 (14:48 -0700)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 13 Sep 2016 02:26:26 +0000 (11:26 +0900)
commit38085c987f52674c2cc84fa0c0788eb71137cb2b
tree710f79c6c239ea67742cb530f87a8cc9f9059a1e
parent8670b4598064007abfc44554e713fa2004734e1d
extcon: Add support for qcom SPMI PMIC USB id detection hardware

Some Qualcomm PMICs have a misc device that performs USB id pin
detection via an interrupt. When the interrupt triggers, we
should read the interrupt line to see if it has gone high or low.
If the interrupt is low then the ID pin is grounded, and if the
interrupt is high then the ID pin is being held high.

Cc: Roger Quadros <rogerq@ti.com>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
[cw00.choi: Edited the driver description and added the author information]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt [new file with mode: 0644]
drivers/extcon/Kconfig
drivers/extcon/Makefile
drivers/extcon/extcon-qcom-spmi-misc.c [new file with mode: 0644]