From: Alexey Minnekhanov <alexeymin@minlexx.ru>
To: david@ixit.cz, Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Lee Jones <lee@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>
Cc: David Collins <david.collins@oss.qualcomm.com>,
Subbaraman Narayanamurthy
<subbaraman.narayanamurthy@oss.qualcomm.com>,
Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
Fenglin Wu <fenglin.wu@oss.qualcomm.com>,
Casey Connolly <casey@connolly.tech>,
linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
mfd@lists.linux.dev, phone-devel@vger.kernel.org
Subject: Re: [PATCH v8 9/9] arm64: dts: qcom: sdm660-xiaomi-lavender: Enable haptics
Date: Mon, 30 Nov 2026 13:38:24 +0300 [thread overview]
Message-ID: <3cabda58-7fdc-49c8-9d5a-cdbb43663f44@minlexx.ru> (raw)
In-Reply-To: <20261130-qcom-pmi8998-haptics-v8-9-a64ecd72d3bb@ixit.cz>
On 11/30/26 03:13, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david@ixit.cz>
>
> 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@ixit.cz>
> ---
> 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>;
>
It vibrates! Thanks.
Tested-by: Alexey Minnekhanov <alexeymin@minlexx.ru>
--
Regards,
Alexey Minnekhanov
prev parent reply other threads:[~2026-11-30 10:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 0:13 [PATCH v8 0/9] input: Add support for the Qualcomm PMI8998 and PM660 haptics David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 1/9] dt-bindings: input: Add Qualcomm PMI8998 / " David Heidelberg via B4 Relay
2026-11-30 13:59 ` Rob Herring (Arm)
2026-11-30 0:13 ` [PATCH v8 2/9] dt-bindings: mfd: qcom,spmi-pmic: Allow the PMI8998 haptics child node David Heidelberg via B4 Relay
2026-11-30 13:59 ` Rob Herring (Arm)
2026-11-30 0:13 ` [PATCH v8 3/9] Input: qcom-pmi8998-haptics - Add Qualcomm PMI8998 haptics driver David Heidelberg via B4 Relay
2026-11-30 9:33 ` Uwe Kleine-König
2026-11-30 10:36 ` Alexey Minnekhanov
2026-11-30 11:36 ` Uwe Kleine-König
2026-11-30 0:13 ` [PATCH v8 4/9] arm64: dts: qcom: pmi8998: Add haptics node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 5/9] arm64: dts: qcom: sdm845-oneplus: Enable haptics David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 6/9] arm64: dts: qcom: sdm845-xiaomi-beryllium: " David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 7/9] arm64: dts: qcom: sdm845-shift-axolotl: " David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 8/9] arm64: dts: qcom: pm660: Add haptics node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 9/9] arm64: dts: qcom: sdm660-xiaomi-lavender: Enable haptics David Heidelberg via B4 Relay
2026-11-30 10:38 ` Alexey Minnekhanov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3cabda58-7fdc-49c8-9d5a-cdbb43663f44@minlexx.ru \
--to=alexeymin@minlexx.ru \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=casey@connolly.tech \
--cc=conor+dt@kernel.org \
--cc=david.collins@oss.qualcomm.com \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=fenglin.wu@oss.qualcomm.com \
--cc=kamal.wadhwa@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=subbaraman.narayanamurthy@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®