xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/ti,drv260x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments - drv260x Haptics driver family
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun	- compatible - One of:
5*4882a593Smuzhiyun		"ti,drv2604" - DRV2604
6*4882a593Smuzhiyun		"ti,drv2605" - DRV2605
7*4882a593Smuzhiyun		"ti,drv2605l" - DRV2605L
8*4882a593Smuzhiyun	- reg -  I2C slave address
9*4882a593Smuzhiyun	- vbat-supply - Required supply regulator
10*4882a593Smuzhiyun	- mode - Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h)
11*4882a593Smuzhiyun		DRV260X_LRA_MODE - Linear Resonance Actuator mode (Piezoelectric)
12*4882a593Smuzhiyun		DRV260X_LRA_NO_CAL_MODE - This is a LRA Mode but there is no calibration
13*4882a593Smuzhiyun				sequence during init.  And the device is configured for real
14*4882a593Smuzhiyun				time playback mode (RTP mode).
15*4882a593Smuzhiyun		DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
16*4882a593Smuzhiyun	- library-sel - These are ROM based waveforms pre-programmed into the IC.
17*4882a593Smuzhiyun				This should be set to set the library to use at power up.
18*4882a593Smuzhiyun				(defined in include/dt-bindings/input/ti-drv260x.h)
19*4882a593Smuzhiyun		DRV260X_LIB_EMPTY - Do not use a pre-programmed library
20*4882a593Smuzhiyun		DRV260X_ERM_LIB_A - Pre-programmed Library
21*4882a593Smuzhiyun		DRV260X_ERM_LIB_B - Pre-programmed Library
22*4882a593Smuzhiyun		DRV260X_ERM_LIB_C - Pre-programmed Library
23*4882a593Smuzhiyun		DRV260X_ERM_LIB_D - Pre-programmed Library
24*4882a593Smuzhiyun		DRV260X_ERM_LIB_E - Pre-programmed Library
25*4882a593Smuzhiyun		DRV260X_ERM_LIB_F - Pre-programmed Library
26*4882a593Smuzhiyun		DRV260X_LIB_LRA - Pre-programmed LRA Library
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunOptional properties:
29*4882a593Smuzhiyun	- enable-gpio - gpio pin to enable/disable the device.
30*4882a593Smuzhiyun	- vib-rated-mv - The rated voltage of the actuator in millivolts.
31*4882a593Smuzhiyun			  If this is not set then the value will be defaulted to
32*4882a593Smuzhiyun			  3.2 v.
33*4882a593Smuzhiyun	- vib-overdrive-mv - The overdrive voltage of the actuator in millivolts.
34*4882a593Smuzhiyun			  If this is not set then the value will be defaulted to
35*4882a593Smuzhiyun			  3.2 v.
36*4882a593SmuzhiyunExample:
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunhaptics: haptics@5a {
39*4882a593Smuzhiyun	compatible = "ti,drv2605l";
40*4882a593Smuzhiyun	reg = <0x5a>;
41*4882a593Smuzhiyun	vbat-supply = <&vbat>;
42*4882a593Smuzhiyun	enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
43*4882a593Smuzhiyun	mode = <DRV260X_LRA_MODE>;
44*4882a593Smuzhiyun	library-sel = <DRV260X_LIB_LRA>;
45*4882a593Smuzhiyun	vib-rated-mv = <3200>;
46*4882a593Smuzhiyun	vib-overdrive-mv = <3200>;
47*4882a593Smuzhiyun}
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunFor more product information please see the link below:
50*4882a593Smuzhiyunhttp://www.ti.com/product/drv2605
51