Skip to content

Commit

Permalink
arm64: dts: qcom: sm7225-fairphone-fp4: Add AW8695 haptics
Browse files Browse the repository at this point in the history
Add a node for the haptics driver found on the phone.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
  • Loading branch information
lweiss-fairphone authored and intel-lab-lkp committed Apr 8, 2022
1 parent df1f510 commit 3f23391
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
Expand Up @@ -295,6 +295,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";
Expand Down

0 comments on commit 3f23391

Please sign in to comment.