一.基本配置
1.确定马达类型(qcom,actuator-type):erm/lra(一般DC是erm,AC是lra)
2.确定马达频率(qcom,play-rate-us)
3.确定马达电压(qcom,vmax-mv)
二.花样配置
kernel/msm-4.14/Documentation/devicetree/bindings/input/qti-haptics.txt
wf_x {
/* CLICK */
......
};
wf_x为不同的震动方式,对应系统目录里的/d/haptics/effectx
wf-pattern:
116 - qcom,wf-pattern 117 Usage: required 118 Value type: <prop-encoded-array> 119 Definition: Specifies the waveform pattern in a byte array that will be 120 played for the effect-id. The bit fields of each byte are: 121 [7]: drive direction, 0 - forward; 1 - reverse 122 [6]: overdrive, 0 -- 1x dr