From: Alexandre MINETTE <[email protected]> PM8921 exposes the USB ID signal through the PMIC interrupt controller as USB_ID_IN. The qcom-spmi-misc extcon driver already supports interrupt-only USB ID detection, so add the PM8921 compatible.
This lets APQ8064 boards describe the PM8921 USB ID interrupt as an extcon provider for USB role detection. Signed-off-by: Alexandre MINETTE <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> --- drivers/extcon/extcon-qcom-spmi-misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/extcon/extcon-qcom-spmi-misc.c b/drivers/extcon/extcon-qcom-spmi-misc.c index afaba5685c3d..6811d3383254 100644 --- a/drivers/extcon/extcon-qcom-spmi-misc.c +++ b/drivers/extcon/extcon-qcom-spmi-misc.c @@ -199,6 +199,7 @@ static SIMPLE_DEV_PM_OPS(qcom_usb_extcon_pm_ops, qcom_usb_extcon_suspend, qcom_usb_extcon_resume); static const struct of_device_id qcom_usb_extcon_dt_match[] = { + { .compatible = "qcom,pm8921-misc", }, { .compatible = "qcom,pm8941-misc", }, { } }; -- 2.43.0

