Skip to content

input: misc: qcom-spmi-haptics: make auto res mode and vmax configureable via DT prop#217

Merged
barni2000 merged 3 commits intomsm8953-mainline:6.12/mainfrom
Smankusors:haptic-auto-res-vmax-dt-prop
Jan 19, 2025
Merged

input: misc: qcom-spmi-haptics: make auto res mode and vmax configureable via DT prop#217
barni2000 merged 3 commits intomsm8953-mainline:6.12/mainfrom
Smankusors:haptic-auto-res-vmax-dt-prop

Conversation

@Smankusors
Copy link
Copy Markdown

@Smankusors Smankusors commented Nov 23, 2024

This has been tested on my Zenfone 3 ZE520KL with pmi8952, and it works as I wanted using qcom,auto-res-mode = <HAP_AUTO_RES_QWD> and qcom,vmax-millivolt = <1500>.

On another note, I noticed that the pm660 has only two available auto res modes to select:
https://github.com/Zenfone-5-X00QD-4-19/kernel_asus_sdm660/blob/3163b5f4e036f69e43626ae60f4b67b8bb61b733/drivers/soc/qcom/qpnp-haptic.c#L232-L235

I think supporting the pm660 is outside the scope of this PR, and the haptics on my Zenfone 5 with pm660 seem to be functioning normally anyway.

Wdyt?

@barni2000
Copy link
Copy Markdown
Member

barni2000 commented Jan 1, 2025

I think one of your commit prefix is not correct. Check this https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/submitting-patches.rst

You should separte schema modifications from the code modification

…DT prop

Signed-off-by: Antony K. S <postmarketos@smankusors.com>
also:
* remove unused HAP_VMAX_MAX_MV_STRONG
* adjust spmi_haptics_play_effect so that it's not overriding the vmax from DT

Signed-off-by: Antony K. S <postmarketos@smankusors.com>
…he Qualcomm SPMI haptics

Signed-off-by: Antony K. S <postmarketos@smankusors.com>
@Smankusors Smankusors force-pushed the haptic-auto-res-vmax-dt-prop branch from 971559b to e0741e1 Compare January 5, 2025 14:06
@Smankusors
Copy link
Copy Markdown
Author

I think one of your commit prefix is not correct. Check this https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/submitting-patches.rst

You should separte schema modifications from the code modification

ok, updated and rebased 👍

@barni2000 barni2000 merged commit 69561a0 into msm8953-mainline:6.12/main Jan 19, 2025
@barni2000
Copy link
Copy Markdown
Member

Thanks!

@Smankusors Smankusors deleted the haptic-auto-res-vmax-dt-prop branch September 27, 2025 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants