Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some changes for Qgauge driver #35

Open
wants to merge 7 commits into
base: v6.13
Choose a base branch
from

Conversation

z3ntu
Copy link

@z3ntu z3ntu commented Dec 20, 2024

Re-open of #34 due to GitHub shenanigans

Notably stop hardcoding the SDAM address and instead of the qcom,spmi-sdam driver and access the SDAM via the nvmem framework.

Please test on pm6150 if this works as expected, the driver seems to need some changes for pm7250b to get ocv values there, we just get 0. (edit: this is explained in #34 (comment))

Signed-off-by: Luca Weiss <[email protected]>
It's equivalent but this makes it a bit more unified instead of
mix-and-match.

Signed-off-by: Luca Weiss <[email protected]>
And invert the condition for PROP_CHARGE_FULL
It's 1/10th degree celsius (see sysfs docs) and not 1/1000th degree
celsius (see vadc driver)
While PM7250B appears to also support Li-polymer batteries, it's
primarily for Li-ion batteries.
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