aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
diff options
context:
space:
mode:
authorLuca Weiss <luca.weiss@fairphone.com>2022-04-08 13:53:10 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-04-11 21:09:16 -0500
commit413821b7777d062b57f8dc66ab088ed390cbc3ec (patch)
tree7c609684810523a305fac6dde465477c76858677 /arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
parent7be9f3ae250e97859e28c26daf457b1be3f58d17 (diff)
arm64: dts: qcom: sm7225-fairphone-fp4: Add AW8695 haptics
Add a node for the haptics driver found on the phone. Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220408115311.237039-3-luca.weiss@fairphone.com
Diffstat (limited to 'arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
index 67d14bda3797..4691a5e5c8e5 100644
--- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
+++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
@@ -296,6 +296,35 @@
firmware-name = "qcom/sm7225/fairphone4/cdsp.mdt";
};
+&i2c10 {
+ status = "okay";
+ clock-frequency = <400000>;
+
+ haptics@5a {
+ compatible = "awinic,aw8695";
+ reg = <0x5a>;
+ interrupts-extended = <&tlmm 85 IRQ_TYPE_EDGE_FALLING>;
+ reset-gpios = <&tlmm 90 GPIO_ACTIVE_HIGH>;
+
+ awinic,f0-preset = <2350>;
+ awinic,f0-coefficient = <260>;
+ awinic,f0-calibration-percent = <7>;
+ awinic,drive-level = <125>;
+
+ awinic,f0-detection-play-time = <5>;
+ awinic,f0-detection-wait-time = <3>;
+ awinic,f0-detection-repeat = <2>;
+ awinic,f0-detection-trace = <15>;
+
+ awinic,boost-debug = /bits/ 8 <0x30 0xeb 0xd4>;
+ awinic,tset = /bits/ 8 <0x12>;
+ awinic,r-spare = /bits/ 8 <0x68>;
+
+ awinic,bemf-upper-threshold = <4104>;
+ awinic,bemf-lower-threshold = <1016>;
+ };
+};
+
&mpss {
status = "okay";
firmware-name = "qcom/sm7225/fairphone4/modem.mdt";