Skip to content

feat(battery): Support fuel gauge API#51

Draft
joelspadin wants to merge 61 commits intopetejohanson:core/move-to-zephyr-4-1from
joelspadin:zephyr-4-1-sensor-or-fuel-gauge
Draft

feat(battery): Support fuel gauge API#51
joelspadin wants to merge 61 commits intopetejohanson:core/move-to-zephyr-4-1from
joelspadin:zephyr-4-1-sensor-or-fuel-gauge

Conversation

@joelspadin
Copy link
Copy Markdown

Not well tested yet.

ZMK will now automatically detect whether the zmk,battery chosen node uses the fuel gauge or sensor API and fetch state of charge from it accordingly.

Add ability to assign a keyboard `input` device to a physical layout,
or use a chosen `zmk,matrix-input`.
Pass NULL user_data to input callbacks.
Handle additional read callback invocation once all matching
characteristic have been read.
Be sure we don't get back any uninitialized data by initializing
the channel data to 0 before calling into the sensor API.
Input callbacks now have a user_data parameter, adjust accordingly.
Small fixes and remove commented dead code left after the split
refactor.
Minor changes to snapshots based on newer Zephyr version.
Move to official upstream board definition for the Seeed XIAO BLE.
Upgrade the nice!nano board to HWMv2, under the proper nicekeyboards
vendor directory, and with proper revisions. Includes a breaking change
to default the `2.0.0` version instead of the much older v1 (`1.0.0`).
Disable the recently added Nordic dt-bindings header checks, which cause
issues for our HID related headers.
Use the correct memset call to clear our RPC memory.
Adjustments to our PM code to match Zephyr PM APIs.
Adjust for upstream Zephyr BT API changes for advertising options.
Run the HWMv2 script to convert the MakerDiary M2 board.
Fix up the RPC code that invoke the thread analyzer API to account for
API changes.
Leverage nanopb version that's used by Zephyr.
To trigger bootloaders that use a magic value in RAM to trigger
bootloader mode, add a mapping retained memory driver that maps
write/read of boot mode values to a special magic value stored
in the actually backing RAM.
Support new generic Zephyr retention boot mode API in the reset
behavior.
Add ability to enter the bootloader if double tapping reset within the
specified window.
Refactor nRFMicro to HWMv2, using proper SoC, revisions, and variants
(for flipped). Also move to devicetree setup of DCDC/HV DCDC.
Move Proton-C to HWMv2 for use with Zephyr 4.1.
Use correct board IDs, with qualifiers, for our core coverage testing.
@petejohanson petejohanson force-pushed the core/move-to-zephyr-4-1 branch 5 times, most recently from 7c371cb to c67bc03 Compare October 12, 2025 06:32
@petejohanson petejohanson force-pushed the core/move-to-zephyr-4-1 branch 2 times, most recently from 0620917 to 2b99650 Compare October 14, 2025 06:26
@petejohanson petejohanson force-pushed the core/move-to-zephyr-4-1 branch 9 times, most recently from 11bdea9 to a67859b Compare October 30, 2025 07:45
@petejohanson petejohanson force-pushed the core/move-to-zephyr-4-1 branch 5 times, most recently from 17d5ff9 to 0e20958 Compare November 5, 2025 18:39
@petejohanson petejohanson force-pushed the core/move-to-zephyr-4-1 branch 3 times, most recently from 569eda2 to 4e65661 Compare November 20, 2025 06:56
@petejohanson petejohanson force-pushed the core/move-to-zephyr-4-1 branch 6 times, most recently from cdb6558 to 1313b43 Compare December 9, 2025 23:23
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.

3 participants