usb: phy: phy-gpio-vbus-usb: Add device tree probing
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 6 Nov 2022 23:05:06 +0000 (00:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:32:41 +0000 (16:32 +0100)
commit0ce0f9d0785a7ba5637a22b63332cf747772da2a
tree66cb1df88dbcccfcb4812ccb1d355ef4b725eec0
parenta8bc8cc193c69e41df5e757d1a592346526e136d
usb: phy: phy-gpio-vbus-usb: Add device tree probing

Make it possible to probe the GPIO VBUS detection driver
from the device tree compatible for GPIO USB B connectors.

Since this driver is using the "gpio-usb-b-connector"
compatible, it is important to discern it from the role
switch connector driver (which does not provide a phy),
so we add some Kconfig text and depend on !USB_CONN_GPIO.

Cc: Rob Herring <robh@kernel.org>
Cc: Prashant Malani <pmalani@chromium.org>
Cc: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20221106230506.1646101-1-linus.walleij@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/Kconfig
drivers/usb/phy/phy-gpio-vbus-usb.c