From: Alexandre MINETTE <[email protected]>

PM8921 exposes the USB ID signal through the PMIC interrupt controller as
USB_ID_IN. Add an extcon child for this interrupt so USB controllers can
consume it for role detection.

Unlike PM8941, the PM8921 USB ID interrupt path has no known register
resource. The downstream PM8xxx misc device is also instantiated without
one, and the mainline extcon driver only consumes the named USB ID
interrupt. Keep the node non-addressable and describe only the interrupt.

Signed-off-by: Alexandre MINETTE <[email protected]>
---
 arch/arm/boot/dts/qcom/pm8921.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/qcom/pm8921.dtsi 
b/arch/arm/boot/dts/qcom/pm8921.dtsi
index 535cb6a2543f..30366536f580 100644
--- a/arch/arm/boot/dts/qcom/pm8921.dtsi
+++ b/arch/arm/boot/dts/qcom/pm8921.dtsi
@@ -121,6 +121,13 @@ ref_muxoff: adc-channel@f {
                                reg = <0x00 0x0f>;
                        };
                };
+
+               usb_id: usb-detect {
+                       compatible = "qcom,pm8921-misc";
+                       interrupt-names = "usb_id";
+                       interrupts-extended = <&pm8921 49 IRQ_TYPE_EDGE_BOTH>;
+                       status = "disabled";
+               };
        };
 };
 

-- 
2.43.0



Reply via email to