Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Qualcomm Technologies, Inc. PM8941 USB ID Extcon device
0008 
0009 maintainers:
0010   - Guru Das Srinagesh <gurus@codeaurora.org>
0011 
0012 description: |
0013   Some Qualcomm PMICs have a "misc" module that can be used to detect when
0014   the USB ID pin has been pulled low or high.
0015 
0016 properties:
0017   compatible:
0018     items:
0019       - const: qcom,pm8941-misc
0020 
0021   reg:
0022     maxItems: 1
0023 
0024   interrupts:
0025     minItems: 1
0026     maxItems: 2
0027 
0028   interrupt-names:
0029     minItems: 1
0030     items:
0031       - const: usb_id
0032       - const: usb_vbus
0033 
0034 required:
0035   - compatible
0036   - reg
0037   - interrupts
0038   - interrupt-names
0039 
0040 additionalProperties: false
0041 
0042 examples:
0043   - |
0044     #include <dt-bindings/interrupt-controller/irq.h>
0045 
0046     pmic {
0047             #address-cells = <1>;
0048             #size-cells = <0>;
0049             interrupt-controller;
0050             #interrupt-cells = <4>;
0051 
0052             usb_id: misc@900 {
0053                     compatible = "qcom,pm8941-misc";
0054                     reg = <0x900>;
0055                     interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
0056                     interrupt-names = "usb_id";
0057             };
0058     };
0059 
0060     usb-controller {
0061            extcon = <&usb_id>;
0062     };