]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dt-bindings: power: supply: gpio-charger: add support for default charge current...
authorDimitri Fedrau <dimitri.fedrau@liebherr.com>
Wed, 18 Dec 2024 08:35:00 +0000 (09:35 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 19 Dec 2024 23:52:31 +0000 (00:52 +0100)
commit0a219d6fd7ab89177a6fa49539def43694154d50
tree17835a355996b7f161c8612c496dc74b634b994c
parent04d9741493e7a1d17d2109f4c9ea21f3314666b4
dt-bindings: power: supply: gpio-charger: add support for default charge current limit

With DT properties charge-current-limit-gpios and
charge-current-limit-mapping one can define charge current limits in uA
using up to 32 GPIOs. Add property charge-current-limit-default-microamp
which selects a default charge current limit that must be listed in
charge-current-limit-mapping.
This is helpful when the smallest possible charge current limit is 0uA. The
driver defaults to the smallest possible value at the moment, which
disables charging on probe. With the default its possible to setup a safe
charge current limit.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
Link: https://lore.kernel.org/r/20241218-default-charge-current-limit-v3-1-b26118cf06b5@liebherr.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/devicetree/bindings/power/supply/gpio-charger.yaml