From: Alexandre MINETTE <[email protected]>

Add the PM8921 USB ID interrupt as a disabled extcon provider. Boards
can enable it when their USB controller consumes the PMIC USB ID state
for OTG role detection.

The interrupt corresponds to PM8921 USB_ID_IN, block 6 bit 1.

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