Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/input/gpio-vibrator.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: GPIO vibrator
0008 
0009 maintainers:
0010   - Luca Weiss <luca@z3ntu.xyz>
0011 
0012 description: |+
0013   Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.
0014 
0015 properties:
0016   compatible:
0017     const: gpio-vibrator
0018 
0019   enable-gpios:
0020     maxItems: 1
0021 
0022   vcc-supply:
0023     description: Regulator that provides power
0024 
0025 required:
0026   - compatible
0027   - enable-gpios
0028 
0029 additionalProperties: false
0030 
0031 examples:
0032   - |
0033     #include <dt-bindings/gpio/gpio.h>
0034 
0035     vibrator {
0036         compatible = "gpio-vibrator";
0037         enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;
0038         vcc-supply = <&pm8941_l18>;
0039     };