aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml
blob: a401a0bfcbec21e098e4fe7bf9b85410d6ea83a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
# Copyright 2020 Unisoc Inc.
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/sprd,sc27xx-vibrator.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Spreadtrum SC27xx PMIC Vibrator

maintainers:
  - Orson Zhai <orsonzhai@gmail.com>
  - Baolin Wang <baolin.wang7@gmail.com>
  - Chunyan Zhang <zhang.lyra@gmail.com>

properties:
  compatible:
    enum:
      - sprd,sc2721-vibrator
      - sprd,sc2730-vibrator
      - sprd,sc2731-vibrator

  reg:
    maxItems: 1

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    sc2731_pmic: pmic@0 {
      compatible = "sprd,sc2731";
      reg = <0 0>;
      spi-max-frequency = <26000000>;
      interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
      interrupt-controller;
      #interrupt-cells = <2>;
      #address-cells = <1>;
      #size-cells = <0>;

      vibrator@eb4 {
        compatible = "sprd,sc2731-vibrator";
        reg = <0xeb4>;
      };
    };