Dialog Semiconductor DA7280 Low Power High-Definition Haptic Driver

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

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

Maintainers (maintainers): "Roy Im <roy.im.opensource@diasemi.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "dlg,da7280"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

interrupts — required here #

Maximum number of items (maxItems): 1

dlg,actuator-type — required here #

Allowed values (enum): "LRA", "ERM-bar", "ERM-coin"

dlg,const-op-mode — required here #

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

Allowed values (enum): 1, 2

Haptic operation mode for FF_CONSTANT

dlg,periodic-op-mode — required here #

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

Allowed values (enum): 1, 2

Default value (default): 1

Haptic operation mode for FF_PERIODIC. The default value is 1 for both of the operation modes. For more details, please see the datasheet

dlg,nom-microvolt — required here #

Minimum value (minimum): 0

Maximum value (maximum): 6000000

Nominal actuator voltage rating

dlg,abs-max-microvolt — required here #

Minimum value (minimum): 0

Maximum value (maximum): 6000000

Absolute actuator maximum voltage rating

dlg,imax-microamp — required here #

Minimum value (minimum): 0

Maximum value (maximum): 252000

Default value (default): 130000

Actuator max current rating

dlg,impd-micro-ohms — required here #

Minimum value (minimum): 0

Maximum value (maximum): 1500000000

Impedance of the actuator

pwms — not listed as required here #

Maximum number of items (maxItems): 1

dlg,ps-seq-id — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

The PS_SEQ_ID(pattern ID in waveform memory inside chip) to play back when RTWM-MODE is enabled

dlg,ps-seq-loop — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

The PS_SEQ_LOOP, Number of times the pre-stored sequence pointed to by PS_SEQ_ID or GPI(N)_SEQUENCE_ID is repeated

dlg,gpi0-seq-id — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

the GPI0_SEQUENCE_ID, pattern to play when gpi0 is triggered

dlg,gpi1-seq-id — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

the GPI1_SEQUENCE_ID, pattern to play when gpi1 is triggered

dlg,gpi2-seq-id — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

the GPI2_SEQUENCE_ID, pattern to play when gpi2 is triggered

dlg,gpi0-mode — not listed as required here #

Allowed values (enum): "Single-pattern", "Multi-pattern"

Pattern mode for gpi0

dlg,gpi1-mode — not listed as required here #

Allowed values (enum): "Single-pattern", "Multi-pattern"

Pattern mode for gpi1

dlg,gpi2-mode — not listed as required here #

Allowed values (enum): "Single-pattern", "Multi-pattern"

Pattern mode for gpi2

dlg,gpi0-polarity — not listed as required here #

Allowed values (enum): "Rising-edge", "Falling-edge", "Both-edge"

gpi0 polarity, Haptic will work by this edge option in case of ETWM mode

dlg,gpi1-polarity — not listed as required here #

Allowed values (enum): "Rising-edge", "Falling-edge", "Both-edge"

gpi1 polarity, Haptic will work by this edge option in case of ETWM mode

dlg,gpi2-polarity — not listed as required here #

Allowed values (enum): "Rising-edge", "Falling-edge", "Both-edge"

gpi2 polarity, Haptic will work by this edge option in case of ETWM mode

dlg,resonant-freq-hz — not listed as required here #

Minimum value (minimum): 50

Maximum value (maximum): 300

Default value (default): 205

dlg,bemf-sens-enable — not listed as required here #

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

Enable for internal loop computations

dlg,freq-track-enable — not listed as required here #

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

Enable for resonant frequency tracking

dlg,acc-enable — not listed as required here #

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

Enable for active acceleration

dlg,rapid-stop-enable — not listed as required here #

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

Enable for rapid stop

dlg,amp-pid-enable — not listed as required here #

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

Enable for the amplitude PID

dlg,mem-array — not listed as required here #

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

Minimum number of items (minItems): 100

Customized waveform memory (patterns) data downloaded to the device during initialization. Each entry value must be included between 0 and 255.

Required in this object (required): "compatible", "reg", "interrupts", "dlg,actuator-type", "dlg,const-op-mode", "dlg,periodic-op-mode", "dlg,nom-microvolt", "dlg,abs-max-microvolt", "dlg,imax-microamp", "dlg,impd-micro-ohms"

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/interrupt-controller/irq.h>

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

    haptics@4a {
        compatible = "dlg,da7280";
        reg = <0x4a>;
        interrupt-parent = <&gpio6>;
        interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
        dlg,actuator-type = "LRA";
        dlg,const-op-mode = <1>;
        dlg,periodic-op-mode = <1>;
        dlg,nom-microvolt = <2000000>;
        dlg,abs-max-microvolt = <2000000>;
        dlg,imax-microamp = <170000>;
        dlg,resonant-freq-hz = <180>;
        dlg,impd-micro-ohms = <10500000>;
        dlg,freq-track-enable;
        dlg,rapid-stop-enable;
        dlg,mem-array = <0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                         0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 25: Linear Resonance Actuator type

Line 26: Bar type Eccentric Rotating Mass

Line 27: Coin type Eccentric Rotating Mass

Line 32: Direct register override (DRO) mode triggered by i2c (default)

Line 33: PWM data source mode controlled by PWM duty

Line 40: Register triggered waveform memory(RTWM) mode, the pattern

Line 41: assigned to the PS_SEQ_ID played as much times as PS_SEQ_LOOP

Line 42: Edge triggered waveform memory(ETWM) mode, external GPI(N)

Line 43: control are required to enable/disable and it needs to keep

Line 44: device enabled by sending magnitude (X > 0),

Line 45: the pattern is assigned to the GPI(N)_SEQUENCE_ID below

Edit this page