brintos

brintos / linux-shallow public Read only

0
0
Text · 769 B · 2384465 Raw
40 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/input/gpio-vibrator.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: GPIO vibrator8 9maintainers:10  - Luca Weiss <luca@z3ntu.xyz>11 12description: |+13  Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.14 15properties:16  compatible:17    const: gpio-vibrator18 19  enable-gpios:20    maxItems: 121 22  vcc-supply:23    description: Regulator that provides power24 25required:26  - compatible27  - enable-gpios28 29additionalProperties: false30 31examples:32  - |33    #include <dt-bindings/gpio/gpio.h>34 35    vibrator {36        compatible = "gpio-vibrator";37        enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;38        vcc-supply = <&pm8941_l18>;39    };40