xref: /linux/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml (revision 566ab427f827b0256d3e8ce0235d088e6a9c28bd)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/qcom,pm8xxx-vib.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm PM8xxx PMIC Vibrator
8
9maintainers:
10  - Bjorn Andersson <andersson@kernel.org>
11
12properties:
13  compatible:
14    oneOf:
15      - enum:
16          - qcom,pm8058-vib
17          - qcom,pm8916-vib
18          - qcom,pm8921-vib
19          - qcom,pmi632-vib
20      - items:
21          - enum:
22              - qcom,pm6150-vib
23              - qcom,pm7250b-vib
24              - qcom,pm7325b-vib
25              - qcom,pm7550ba-vib
26          - const: qcom,pmi632-vib
27
28  reg:
29    maxItems: 1
30
31required:
32  - compatible
33  - reg
34
35additionalProperties: false
36
37examples:
38  - |
39    pmic {
40        #address-cells = <1>;
41        #size-cells = <0>;
42
43        vibrator@4a {
44            compatible = "qcom,pm8058-vib";
45            reg = <0x4a>;
46        };
47    };
48