Skip to content

Commit

Permalink
arm64: dts: qcom: msm8953: xiaomi-vince: enable haptics
Browse files Browse the repository at this point in the history
Signed-off-by: Gianluca Boiano <[email protected]>
  • Loading branch information
M0Rf30 authored and barni2000 committed Nov 19, 2024
1 parent 1e5835f commit a7a705d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8953-xiaomi-vince.dts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@
regulator-min-microvolt = <1200000>;
};

&pmi8950_haptics {
qcom,actuator-type = <HAP_TYPE_ERM>;
qcom,brake-pattern = <0x3 0x3 0x0 0x0>;
qcom,wave-play-rate-us = <5263>;
qcom,wave-shape = <HAP_WAVE_SQUARE>;

status = "okay";
};

&pmi8950_wled {
qcom,external-pfet;
qcom,cabc;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/pmi8950.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>,
<0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>;
interrupt-names = "short", "play";
qcom,play-mode = <HAP_PLAY_BUFFER>;
qcom,play-mode = <HAP_PLAY_DIRECT>;

status = "disabled";
};
Expand Down

0 comments on commit a7a705d

Please sign in to comment.