Path: blob/master/Documentation/devicetree/bindings/input/gpio-vibrator.yaml
26308 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/input/gpio-vibrator.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: GPIO vibrator78maintainers:9- Luca Weiss <luca@z3ntu.xyz>1011description: |+12Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.1314properties:15compatible:16const: gpio-vibrator1718enable-gpios:19maxItems: 12021vcc-supply:22description: Regulator that provides power2324required:25- compatible26- enable-gpios2728additionalProperties: false2930examples:31- |32#include <dt-bindings/gpio/gpio.h>3334vibrator {35compatible = "gpio-vibrator";36enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;37vcc-supply = <&pm8941_l18>;38};394041