Charging a Battery with Zephyr
summary
Zephyr now contains an upstreamed charger driver API with three handlers: get_property, set_property and charge_enable handler, plus a sample application that runs an infinite charging task loop polling the charger online status, switching on charging, reading charge type/health and ending on full. Device tree uses battery.yaml for static pack specs, properties are extensible for vendor fields, and an online notifier supports interrupt-based chips; limiting charge to 85% is done in application by setting the appropriate property.
AI-written summary · about
chapters (8)
- 0:00Battery charging with Zephyr
- 2:33Charger fundamentals overview
- 10:02Software-controlled charging
- 11:25Zephyr charger driver API
- 15:40Property caching and interrupts
- 17:09Charger sample app
- 21:46Future Zephyr charging
- 23:52Q&A on charge limits
related talks
36mPower Management on Zephyr
31mA Zephyr User Story
36mZephyr on a Hearing Aid
41mFuture of Zephyr Device Model
23mA Dive into Zephyr Device Driver Model
53mHow to Contribute a Zephyr Sensor Driver
41mZephyr & Linux Devicetree, Similarities and Differences – Practical Guide To Boards, Shields and Con
39mZephyr Power Management for Wearable Devices
