Skip to content

Commit

Permalink
dts: qcom: beryllium-p0.dtsi: Update play-rate-us by linear interpola…
Browse files Browse the repository at this point in the history
…tion

Website used to calculate:
https://www.johndcook.com/interpolator.html

How to calculate:
<caf vmax-mv> <play_rate>
0             0
<your device vmax-mv> (get by calculator)

Co-authored-by: rupansh <rupanshsekar@hotmail.com>
  • Loading branch information
2 people authored and humanglitch191 committed Jun 3, 2021
1 parent cbe08d6 commit 7a421fc
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions arch/arm64/boot/dts/qcom/beryllium-p0.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,31 @@
&pmi8998_haptics {
status = "okay";
qcom,vmax-mv = <2812>;
qcom,play-rate-us = <4878>;
wf_0 { qcom,wf-vmax-mv = <2812>; };
wf_1 { qcom,wf-vmax-mv = <2812>; };
wf_2 { qcom,wf-vmax-mv = <2812>; };
wf_3 { qcom,wf-vmax-mv = <2812>; };
wf_4 { qcom,wf-vmax-mv = <2812>; };
wf_5 { qcom,wf-vmax-mv = <2812>; };
qcom,play-rate-us = <5858>;
wf_0 {
qcom,wf-vmax-mv = <2812>;
qcom,wf-play-rate-us = <5207>;
};
wf_1 {
qcom,wf-vmax-mv = <2812>;
qcom,wf-play-rate-us = <5580>;
};
wf_2 {
qcom,wf-vmax-mv = <2812>;
qcom,wf-play-rate-us = <3125>;
};
wf_3 {
qcom,wf-vmax-mv = <2812>;
qcom,wf-play-rate-us = <5207>;
};
wf_4 {
qcom,wf-vmax-mv = <2812>;
qcom,wf-play-rate-us = <3905>;
};
wf_5 {
qcom,wf-vmax-mv = <2812>;
qcom,wf-play-rate-us = <5207>;
};
};

&mdss_mdp {
Expand Down

0 comments on commit 7a421fc

Please sign in to comment.