Skip to content

refactor(shields): Move to upstream voltage-divider driver#3269

Open
VeyPatch wants to merge 2 commits intozmkfirmware:mainfrom
VeyPatch:upstream-voltage-divider-driver
Open

refactor(shields): Move to upstream voltage-divider driver#3269
VeyPatch wants to merge 2 commits intozmkfirmware:mainfrom
VeyPatch:upstream-voltage-divider-driver

Conversation

@VeyPatch
Copy link

@VeyPatch VeyPatch commented Mar 2, 2026

As mentioned in #3248, move to the upstream zephyr driver. Have been testing this on a custom board without any issues.

I tried my best to update everything correctly but can't test any of the boards updated.

Additional question, do we want to set power-on-sample-delay-us to 10000 to match the old zmk driver for these boards?

PR check-list

  • Branch has a clean commit history
  • Additional tests are included, if changing behaviors/core code that is testable.
  • Proper Copyright + License headers added to applicable files (Generally, we stick to "The ZMK Contributors" for copyrights to help avoid churn when files get edited)
  • Pre-commit used to check formatting of files, commit messages, etc.
  • Includes any necessary documentation changes.

VeyPatch added 2 commits March 2, 2026 14:43
- Change compatible to "voltage-divider"
- Add ADC configuration
- Set CONFIG_ZMK_BATTERY_REPORTING_FETCH_MODE_LITHIUM_VOLTAGE=y
Change reference to the upstream driver.
@VeyPatch VeyPatch requested review from a team as code owners March 2, 2026 13:52
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