1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/ti,drv260x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments - drv260x Haptics driver family
10 - Andrew Davis <afd@ti.com>
23 description: Power supply to the haptic motor
25 # TODO: Deprecate 'mode' in favor of differently named property
27 $ref: /schemas/types.yaml#/definitions/uint32
29 Power up mode of the chip
30 (defined in include/dt-bindings/input/ti-drv260x.h)
33 Linear Resonance Actuator mode (Piezoelectric)
35 DRV260X_LRA_NO_CAL_MODE
36 This is a LRA Mode but there is no calibration sequence during init.
37 And the device is configured for real time playback mode (RTP mode).
40 Eccentric Rotating Mass mode (Rotary vibrator)
44 $ref: /schemas/types.yaml#/definitions/uint32
46 These are ROM based waveforms pre-programmed into the IC.
47 This should be set to set the library to use at power up.
48 (defined in include/dt-bindings/input/ti-drv260x.h)
50 DRV260X_LIB_EMPTY - Do not use a pre-programmed library
51 DRV260X_ERM_LIB_A - Pre-programmed Library
52 DRV260X_ERM_LIB_B - Pre-programmed Library
53 DRV260X_ERM_LIB_C - Pre-programmed Library
54 DRV260X_ERM_LIB_D - Pre-programmed Library
55 DRV260X_ERM_LIB_E - Pre-programmed Library
56 DRV260X_ERM_LIB_F - Pre-programmed Library
57 DRV260X_LIB_LRA - Pre-programmed LRA Library
58 enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
68 $ref: /schemas/types.yaml#/definitions/uint32
70 The rated voltage of the actuator in millivolts.
71 If this is not set then the value will be defaulted to 3200 mV.
75 $ref: /schemas/types.yaml#/definitions/uint32
77 The overdrive voltage of the actuator in millivolts.
78 If this is not set then the value will be defaulted to 3200 mV.
88 additionalProperties: false
92 #include <dt-bindings/gpio/gpio.h>
93 #include <dt-bindings/input/ti-drv260x.h>
100 compatible = "ti,drv2605l";
102 vbat-supply = <&vbat>;
103 enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
104 mode = <DRV260X_LRA_MODE>;
105 library-sel = <DRV260X_LIB_LRA>;
106 vib-rated-mv = <3200>;
107 vib-overdrive-mv = <3200>;