[PATCH v8 7/9] arm64: dts: qcom: sdm845-shift-axolotl: Enable haptics

From: David Heidelberg via B4 Relay

Date: Sun Nov 29 2026 - 19:14:40 EST


From: David Heidelberg <david@xxxxxxx>

The SHIFT6mq inherits the haptics configuration of the QRD, it uses an
LRA resonating at 230 Hz, a 4345 us period (4347 us rounded down to the
5 us step of the RATE_CFG registers), driven with up to 1392 mV (the
vendor's 1400 mV rounded down to the 116 mV step of VMAX).

The vendor driver uses the quarter wave detection with a calibration
period of 4 cycles and the direct mode. It drives the LRA with a square
wave, the QRD does not override the default of the vendor driver.

Signed-off-by: David Heidelberg <david@xxxxxxx>
---
arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
index 1b0eaeafbd517..c15b01a5767d0 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
@@ -4,16 +4,17 @@
* Copyright (c) 2022, Casey Connolly <casey.connolly@xxxxxxxxxx>
* Copyright (c) 2022, Dylan Van Assche <me@xxxxxxxxxxxxxxxxx>
*/

/dts-v1/;

#include <dt-bindings/arm/qcom,ids.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/qcom,haptics.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "sdm845.dtsi"
#include "pm8998.dtsi"
#include "pmi8998.dtsi"

/ {
model = "SHIFT SHIFT6mq";
@@ -600,16 +601,28 @@ pinconf {
};

&pmi8998_charger {
monitored-battery = <&battery>;

status = "okay";
};

+&pmi8998_haptics {
+ qcom,lra-period-us = <4345>;
+ qcom,vmax-microvolt = <1392000>;
+ qcom,lra-auto-res-mode = <QCOM_LRA_AUTO_RES_MODE_QWD>;
+ qcom,lra-res-cal-period = <4>;
+ qcom,play-mode = <QCOM_HAPTICS_PLAY_MODE_DIRECT>;
+ qcom,wave-shape = <QCOM_HAPTICS_WAVE_SHAPE_SQUARE>;
+ qcom,lra-high-z = <QCOM_HAPTICS_LRA_HIGH_Z_OPT1>;
+
+ status = "okay";
+};
+
&pm8998_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
};

&pmi8998_lpg {
status = "okay";


--
2.55.0