Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / input / gpio-vibrator.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/bindings/input/gpio-vibrator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: GPIO vibrator
8
9 maintainers:
10   - Luca Weiss <luca@z3ntu.xyz>
11
12 description: |+
13   Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.
14
15 properties:
16   compatible:
17     const: gpio-vibrator
18
19   enable-gpios:
20     maxItems: 1
21
22   vcc-supply:
23     description: Regulator that provides power
24
25 required:
26   - compatible
27   - enable-gpios
28
29 examples:
30   - |
31     #include <dt-bindings/gpio/gpio.h>
32
33     vibrator {
34         compatible = "gpio-vibrator";
35         enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;
36         vcc-supply = <&pm8941_l18>;
37     };