GPIO vibrator

Schema identifier ($id): "http://devicetree.org/schemas/input/gpio-vibrator.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Luca Weiss <luca@z3ntu.xyz>"

Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-vibrator"

enable-gpios — required here #

Maximum number of items (maxItems): 1

vcc-supply — not listed as required here #

Regulator that provides power

Required in this object (required): "compatible", "enable-gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

vibrator {
    compatible = "gpio-vibrator";
    enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;
    vcc-supply = <&pm8941_l18>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page