Date 1 - 2 of 2
Charger / Battery detection
Andy Pont <andy.pont@...>
Is there standard functionality to build into an image for an i.MX8 that
will allow me to detect, at application level, whether the device is
running on charger, battery, and what the battery level is? Does it
depend on what is used as the PMIC and charging device?
On Sun, Nov 20, 2022 at 10:36 AM Andy Pont <andy.pont@...> wrote:
Yes, you need a charger device driver. Take a look at
drivers/power/supply/ for some examples.
The charger devices can expose to userspace information as you describe above.
You can check details at:
BTW, this is off-topic on this list.
|1 - 2 of 2|