summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAnkit Sharma <ansharma@codeaurora.org>2017-03-07 18:31:23 +0530
committerAnkit Sharma <ansharma@codeaurora.org>2017-03-09 12:09:24 +0530
commit3dde7b3e01b673caec296d4e43249966dec21d0d (patch)
tree19c3c5019208b4bd0f91d128659a3451137d8468 /Documentation
parent1450b9c7daad7f365c9de0dfa45580618030ba1a (diff)
msm: qpnp-haptic: Add support for haptics on PM660
Update the driver to support PM660. PM660 add dedicated register for auto-resonance control and a few other changes to haptics configuration. CRs-Fixed: 2016588 Change-Id: Ia9d65bc0a1169b5cba1c122d50d49c8102ac79f5 Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt b/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt
index a7848153f83c..6574cfe30ce5 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt
+++ b/Documentation/devicetree/bindings/soc/qcom/qpnp-haptic.txt
@@ -10,6 +10,7 @@ pwm(pulse width modulation) and audio.
Required Properties:
- compatible: must be "qcom,qpnp-haptic"
- reg: address of device
+ - qcom,pmic-revid : phandle to fetch PMIC revid
- qcom,actuator-type: must be one of "erm" or "lra"
- qcom,play-mode : must be one of "buffer", "direct", "pwm" or "audio"
@@ -63,7 +64,13 @@ Optional properties when qcom,actuator-type is "lra"
"max-qwd" : Maximum QWD
"zxd-eop" : ZXD + End of pattern (This is the Default)
- qcom,lra-high-z : High Z configuration for auto resonance. Possible string values are
- "none", "opt1", "opt2" and "opt3" (default)
+ "none", "opt1", "opt2" and "opt3" (default). For PM660,
+ "opt0" is valid value for 1 LRA period.
+ - qcom,lra-qwd-drive-duration : Drive duration of LRA in QWD mode for PM660.
+ Possible values are: 0: 1/4 LRA PERIOD and 1: 3/8 LRA PERIOD
+ - qcom,lra-calibrate-at-eop : To calibrate at End of Pattern for PM660.
+ Possible values are: 0 to disable and 1 to enable Calibration
+ at End of Pattern
- qcom,lra-res-cal-period : Auto resonance calibration period. The values range from
4 to 32(default)
- qcom,perform-lra-auto-resonance-search : boolean, define this property if:
@@ -109,6 +116,7 @@ Example:
interrupts = <0x3 0xc0 0x0>,
<0x3 0xc0 0x1>;
interrupt-names = "sc-irq", "play-irq";
+ qcom,pmic-revid = <&pm660_revid>;
vcc_pon-supply = <&pon_perph_reg>;
qcom,play-mode = "direct";
qcom,wave-play-rate-us = <5263>;