From 980e036d294cd4487eb7c5d6c4bef0052dc9620e Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Mon, 17 Feb 2020 10:42:25 +0800 Subject: [PATCH] ARM: dts: msm: enable haptics for Lahaina QRD Enable haptics device node and update parameters according to the LRA actuator installed on Lahaina QRD device. Change-Id: Ica7b30122c0374a88d667052c48e5b124b7274e4 --- qcom/lahaina-qrd-common.dtsi | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/qcom/lahaina-qrd-common.dtsi b/qcom/lahaina-qrd-common.dtsi index d694a2cf..8d28a942 100644 --- a/qcom/lahaina-qrd-common.dtsi +++ b/qcom/lahaina-qrd-common.dtsi @@ -15,6 +15,48 @@ status = "ok"; }; +&pm8350b_haptics { + qcom,vmax-mv = <900>; + qcom,lra-period-us = <5880>; + status = "ok"; + + effect_0 { + /* CLICK */ + qcom,wf-vmax-mv = <1800>; + qcom,wf-pattern-period-us = <5880>; + }; + + effect_1 { + /* DOUBLE_CLICK */ + qcom,wf-vmax-mv = <1800>; + qcom,wf-pattern-period-us = <5880>; + }; + + effect_2 { + /* TICK */ + qcom,wf-vmax-mv = <1800>; + qcom,wf-pattern-period-us = <5880>; + }; + + effect_3 { + /* THUD */ + qcom,wf-vmax-mv = <1800>; + qcom,wf-pattern-period-us = <5880>; + }; + + effect_4 { + /* POP */ + qcom,wf-vmax-mv = <1800>; + qcom,wf-pattern-period-us = <5880>; + }; + + effect_5 { + /* HEAVY CLICK */ + qcom,wf-vmax-mv = <1800>; + qcom,wf-pattern-period-us = <5880>; + }; +}; + &soc { gpio_keys { compatible = "gpio-keys";