]> www.infradead.org Git - users/willy/xarray.git/commit
power: supply: max77693: Expose input current limit and CC current properties
authorArtur Weber <aweber.kernel@gmail.com>
Fri, 16 Aug 2024 08:19:09 +0000 (10:19 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 27 Aug 2024 16:54:42 +0000 (18:54 +0200)
commitba7e053ec89f61be9d27bfb244de52849b5138aa
tree67cab61f987828c26b51e8be3bc4ccb88e42e538
parent3a3acf839b2cedf092bdd1ff65b0e9895df1656b
power: supply: max77693: Expose input current limit and CC current properties

There are two charger current limit registers:

- Fast charge current limit (which controls current going from the
  charger to the battery);
- CHGIN input current limit (which controls current going into the
  charger through the cable).

Add the necessary functions to retrieve the CHGIN input limit (from CHARGER
regulator) and maximum fast charge current values, and expose them as power
supply properties.

Tested-by: Henrik Grimler <henrik@grimler.se>
Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240816-max77693-charger-extcon-v4-3-050a0a9bfea0@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max77693_charger.c
include/linux/mfd/max77693-private.h