summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-03-06 16:23:23 -0800
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-05-09 11:00:36 -0700
commitca8dd889c6d68d4bbca68139e0337d59eed8d53a (patch)
treeb873b2524cbfd01ee56226e523e5d9dc66e65d3d /Documentation
parent8312e8d304dc9b0cbaf1b66d5ddf02b41df39343 (diff)
soc: qcom: qpnp-haptic: add support for auto mode
Based on the duration of the pattern, haptics mode and other parameters needs to be configured dynamically for a better performance and ease of use. Add support for this through device tree property "qcom,lra-auto-mode". Add support to configure some parameters like auto resonance mode, LRA high-Z period, calibration period, vmax along with an option to override the settings done by auto_mode configuration. Change-Id: I4706fed4e3ca97d190f907769fd4a9899479b330 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt b/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt
index 337649824257..aa3363b52a03 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt
+++ b/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt
@@ -76,6 +76,10 @@ Optional properties when qcom,actuator-type is "lra"
at End of Pattern
- qcom,lra-res-cal-period : Auto resonance calibration period. The values range from
4 to 32(default)
+- qcom,lra-auto-mode : If this property is specified, haptics mode for LRA
+ actuators will be automatically configured along with
+ other required settings runtime based on the duration
+ of the pattern.
- qcom,perform-lra-auto-resonance-search : boolean, define this property if:
a) the underlying PMI chip does not have a register in the MISC block to
read the error percentage in RC clock