Skip to content

Conversation

@erikas9987
Copy link

Asus ZenFone 2 Laser/Selfie includes a battery measured by voltage mode BMS and a simple GPIO hall effect sensor. This commit includes support for these components.

Changes in v3:

  • reworded battery commit to include a link to the downstream DTS for the battery used for information in the commit
  • separated hall sensor pin configuration from gpio-keys-default-state
  • added voltage tables for all temperature points, not only for 25C

LKML link: https://lore.kernel.org/linux-arm-msm/[email protected]/

Note: this PR includes changes from v2 as well.

This device tracks remaining battery capacity percentage using voltage
mode BMS. This commit enables the pm8916_bms node and adds a battery
node to track its capacity. Battery properties were taken from the
information printed on the battery itself and downstream device tree
for a battery named "nvt+atl_3000mah" [1]

[1] https://github.com/Asus-MSM8916/android_kernel_asus_msm8916/blob/10.x/arch/arm/boot/dts/qcom/ASUS_ZE550KL_1936167_3000mAh_3p4COV_VBMS_Final.dtsi

Reviewed-by: Konrad Dybcio <[email protected]>
Signed-off-by: Erikas Bitovtas <[email protected]>
This device uses ANPEC APX9131 hall sensor. It is a basic GPIO hall
sensor for which a generic "gpio-keys" device tree node configuration
suffices.

Reviewed-by: Konrad Dybcio <[email protected]>
Signed-off-by: Erikas Bitovtas <[email protected]>
@erikas9987 erikas9987 changed the base branch from wip/msm8916/6.18-rc6 to wip/msm8916/6.19-rc3 January 5, 2026 16:08
@erikas9987
Copy link
Author

@TravMurav
Copy link
Member

Added to wip/msm8916/6.19-rc6, thanks!

https://github.com/msm8916-mainline/linux/tree/wip/msm8916/6.19-rc6

@TravMurav TravMurav closed this Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants