xref: /linux/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml (revision d53b8e36925256097a08d7cb749198d85cbf9b2b)
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,pm7250b-vib
23              - qcom,pm7325b-vib
24              - qcom,pm7550ba-vib
25          - const: qcom,pmi632-vib
26
27  reg:
28    maxItems: 1
29
30required:
31  - compatible
32  - reg
33
34additionalProperties: false
35
36examples:
37  - |
38    pmic {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        vibrator@4a {
43            compatible = "qcom,pm8058-vib";
44            reg = <0x4a>;
45        };
46    };
47