Skip to content

R35s battery fixes#2922

Draft
bruno-gregorio wants to merge 2 commits into
ROCKNIX:nextfrom
bruno-gregorio:r36s-battery-fixes
Draft

R35s battery fixes#2922
bruno-gregorio wants to merge 2 commits into
ROCKNIX:nextfrom
bruno-gregorio:r36s-battery-fixes

Conversation

@bruno-gregorio

@bruno-gregorio bruno-gregorio commented Jun 22, 2026

Copy link
Copy Markdown

Summary

This PR fixes a bug on R35s devices where the battery gauge is permanently at zero.

Testing

This change was manually tested on my R35s.


AI Usage

I had a lot of help from Claude Opus to iterate on possible solutions to the problem. I pointed it at this project as it doesn't have the mentioned bug.

…ounters

Some RK3326 R36S/R35S clones ship an uncalibrated coulomb counter that
reads ~0, so SOC sticks at 0% and never recovers. Re-seed SOC from an OCV
lookup of the power-on voltage when the counter reports implausibly low,
mirroring the vendor rk817_battery driver.
…ry OCV table

The shared r3xs base node uses the ODROID-GO2 OCV curve, which is wrong for
the R36S clone cell and makes the gauge report empty early. Override the
r36s battery node with the clone curve and a lower min-design voltage.
@bruno-gregorio bruno-gregorio changed the title R36s battery fixes R35s battery fixes Jun 22, 2026
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.

1 participant