arm64: dts: qcom: sm7225-fairphone-fp4: Add AW8695 haptics
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 8 Apr 2022 11:53:10 +0000 (13:53 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 12 Apr 2022 02:09:16 +0000 (21:09 -0500)
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
arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts

index 67d14bda37976b6dd824b93e96e79f46d99c4742..4691a5e5c8e55236b639d67447d7b7e5ae4f1c20 100644 (file)
        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";