[PATCH v8 9/9] arm64: dts: qcom: sdm660-xiaomi-lavender: Enable haptics
From: David Heidelberg via B4 Relay
Date: Sun Nov 29 2026 - 19:15:08 EST
From: David Heidelberg <david@xxxxxxx>
The Xiaomi Redmi Note 7 (lavender) uses an ERM vibrator driven by the
PM660 haptics module with up to 3132 mV (the vendor's 3200 mV rounded
down to the 116 mV step of VMAX) in direct mode and a 6665 us sample play
rate (the vendor's 6667 us rounded down to the 5 us step of RATE_CFG).
The downstream lavender-base.dtsi also sets qcom,lra-resonance-sig-shape,
which the vendor qti-haptics driver ignores for ERM actuators.
Signed-off-by: David Heidelberg <david@xxxxxxx>
---
arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
index a9926ad6c6f9f..81d1289c98642 100644
--- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
+++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
@@ -6,16 +6,17 @@
/dts-v1/;
#include "sdm660.dtsi"
#include "pm660.dtsi"
#include "pm660l.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/gpio-keys.h>
+#include <dt-bindings/input/qcom,haptics.h>
/ {
model = "Xiaomi Redmi Note 7";
compatible = "xiaomi,lavender", "qcom,sdm660";
chassis-type = "handset";
aliases {
serial0 = &blsp1_uart2;
@@ -88,16 +89,26 @@ extcon_usb: extcon-usb {
id-gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
};
};
&blsp1_uart2 {
status = "okay";
};
+&pm660_haptics {
+ qcom,actuator-type = <QCOM_HAPTICS_ACTUATOR_ERM>;
+ qcom,vmax-microvolt = <3132000>;
+ qcom,play-mode = <QCOM_HAPTICS_PLAY_MODE_DIRECT>;
+ qcom,play-rate-us = <6665>;
+ qcom,brake-pattern = <0x3 0x3 0x0 0x0>;
+
+ status = "okay";
+};
+
&pon_pwrkey {
status = "okay";
};
&pon_resin {
status = "okay";
linux,code = <KEY_VOLUMEDOWN>;
--
2.55.0