Texas Instruments - drv260x Haptics driver family

Schema identifier ($id): "http://devicetree.org/schemas/input/ti,drv260x.yaml#"

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

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,drv2604", "ti,drv2605", "ti,drv2605l"

reg — required here #

Maximum number of items (maxItems): 1

vbat-supply — not listed as required here #

Power supply to the haptic motor

mode — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h)

DRV260X_LRA_MODE
  Linear Resonance Actuator mode (Piezoelectric)
DRV260X_LRA_NO_CAL_MODE
  This is a LRA Mode but there is no calibration sequence during init.
  And the device is configured for real time playback mode (RTP mode).
DRV260X_ERM_MODE
  Eccentric Rotating Mass mode (Rotary vibrator)

Allowed values (enum): 0, 1, 2

library-sel — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

These are ROM based waveforms pre-programmed into the IC. This should be set to set the library to use at power up. (defined in include/dt-bindings/input/ti-drv260x.h)

DRV260X_LIB_EMPTY - Do not use a pre-programmed library DRV260X_ERM_LIB_A - Pre-programmed Library DRV260X_ERM_LIB_B - Pre-programmed Library DRV260X_ERM_LIB_C - Pre-programmed Library DRV260X_ERM_LIB_D - Pre-programmed Library DRV260X_ERM_LIB_E - Pre-programmed Library DRV260X_ERM_LIB_F - Pre-programmed Library DRV260X_LIB_LRA - Pre-programmed LRA Library

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

enable-gpio — not listed as required here #

Maximum number of items (maxItems): 1

Deprecated (deprecated): true

enable-gpios — required here #

Maximum number of items (maxItems): 1

vib-rated-mv — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The rated voltage of the actuator in millivolts. If this is not set then the value will be defaulted to 3200 mV.

Default value (default): 3200

vib-overdrive-mv — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The overdrive voltage of the actuator in millivolts. If this is not set then the value will be defaulted to 3200 mV.

Default value (default): 3200

Required in this object (required): "compatible", "reg", "enable-gpios", "mode", "library-sel"

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>
#include <dt-bindings/input/ti-drv260x.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    haptics@5a {
        compatible = "ti,drv2605l";
        reg = <0x5a>;
        vbat-supply = <&vbat>;
        enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
        mode = <DRV260X_LRA_MODE>;
        library-sel = <DRV260X_LIB_LRA>;
        vib-rated-mv = <3200>;
        vib-overdrive-mv = <3200>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 25: TODO: Deprecate 'mode' in favor of differently named property

Edit this page