aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/input
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2014-08-17 12:24:26 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-08-20 01:19:28 -0400
commit7132fe4f568721cbd5d9bce5a8a71556e9bc45b4 (patch)
tree15fd0ff732e3c03fed8a94a905cb88a9378ce4f1 /Documentation/devicetree/bindings/input
parent3361a97601f243f1842bee6ca709e399f47b2ce3 (diff)
Input: drv260x - add TI drv260x haptics driver
Add the TI drv260x haptics/vibrator driver. This device uses the input force feedback to produce a wave form to driver an ERM or LRA actuator device. The initial driver supports the devices real time playback mode. But the device has additional wave patterns in ROM. This functionality will be added in future patchsets. Product data sheet is located here: http://www.ti.com/product/drv2605 Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
-rw-r--r--Documentation/devicetree/bindings/input/ti,drv260x.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/ti,drv260x.txt b/Documentation/devicetree/bindings/input/ti,drv260x.txt
new file mode 100644
index 000000000000..a9c8519eb9de
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/ti,drv260x.txt
@@ -0,0 +1,51 @@
1Texas Instruments - drv260x Haptics driver family
2
3The drv260x family serial control bus communicates through I2C protocols
4
5Required properties:
6 - compatible - One of:
7 "ti,drv2604" - DRV2604
8 "ti,drv2605" - DRV2605
9 "ti,drv2605l" - DRV2605L
10 - reg - I2C slave address
11 - vbat-supply - Required supply regulator
12 - mode - Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h)
13 DRV260X_LRA_MODE - Linear Resonance Actuator mode (Piezoelectric)
14 DRV260X_LRA_NO_CAL_MODE - This is a LRA Mode but there is no calibration
15 sequence during init. And the device is configured for real
16 time playback mode (RTP mode).
17 DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
18 - library-sel - These are ROM based waveforms pre-programmed into the IC.
19 This should be set to set the library to use at power up.
20 (defined in include/dt-bindings/input/ti-drv260x.h)
21 DRV260X_LIB_EMPTY - Do not use a pre-programmed library
22 DRV260X_ERM_LIB_A - Pre-programmed Library
23 DRV260X_ERM_LIB_B - Pre-programmed Library
24 DRV260X_ERM_LIB_C - Pre-programmed Library
25 DRV260X_ERM_LIB_D - Pre-programmed Library
26 DRV260X_ERM_LIB_E - Pre-programmed Library
27 DRV260X_ERM_LIB_F - Pre-programmed Library
28 DRV260X_LIB_LRA - Pre-programmed LRA Library
29
30Optional properties:
31 - enable-gpio - gpio pin to enable/disable the device.
32 - vib-rated-mv - The rated voltage of the actuator in millivolts.
33 If this is not set then the value will be defaulted to
34 3.2 v.
35 - vib-overdrive-mv - The overdrive voltage of the actuator in millivolts.
36 If this is not set then the value will be defaulted to
37 3.2 v.
38Example:
39
40drv2605l: drv2605l@5a {
41 compatible = "ti,drv2605l";
42 reg = <0x5a>;
43 enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
44 mode = <DRV260X_LRA_MODE>;
45 library-sel = <DRV260X_LIB_LRA>;
46 vib-rated-mv = <3200>;
47 vib-overdriver-mv = <3200>;
48};
49
50For more product information please see the link below:
51http://www.ti.com/product/drv2605