OSDN Git Service

usb: common: add USB GPIO based connection detection driver
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 29 Aug 2019 09:22:37 +0000 (17:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 17:01:04 +0000 (19:01 +0200)
commit4602f3bff2669012c1147eecfe74c121765f5c56
tree0b7ef76b9b00c6b95d5f003f3c454b4eb3423c24
parent12b591bccc463307a21d925c19e7f61982902e08
usb: common: add USB GPIO based connection detection driver

Due to the requirement of usb-connector.txt binding, the old way
using extcon to support USB Dual-Role switch is now deprecated
when use Type-B connector.
This patch introduces a USB GPIO based connection detection driver,
used to support Type-B connector which typically uses an input GPIO
to detect USB ID pin, and try to replace the function provided
by the extcon-usb-gpio driver

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Tested-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/1567070558-29417-11-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/Kconfig
drivers/usb/common/Makefile
drivers/usb/common/usb-conn-gpio.c [new file with mode: 0644]