Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4921

Raspberry Pi OS • Re: What is gpio-charger overlay?

$
0
0
https://github.com/raspberrypi/linux/bl ... verlay.dts
the "charger" node has compatible = "gpio-charger";

the official docs are at:
https://github.com/raspberrypi/linux/bl ... arger.yaml

the overlay configures a single pin, gpio4, as an input, that signals if the battery is charging or not

linux will check that pin, to report if the battery is currently charging or not

so if you have an added board with a battery and charger, it can use this overlay to report if its charging or not

Statistics: Posted by cleverca22 — Mon Feb 26, 2024 4:42 am



Viewing all articles
Browse latest Browse all 4921

Trending Articles