power: supply: Introduces bypass charging property
authorRicardo Rivera-Matos <rriveram@opensource.cirrus.com>
Tue, 15 Feb 2022 00:07:56 +0000 (18:07 -0600)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 24 Feb 2022 11:09:20 +0000 (12:09 +0100)
commit05f2281b4192320a20d746df6146b3dd82f96e39
tree506224c4413b0f39dd153b1ff39b176e733040eb
parente5372503d82b780ebc3fea3b893f04ca6f52fe42
power: supply: Introduces bypass charging property

Adds a POWER_SUPPLY_CHARGE_TYPE_BYPASS option to the POWER_SUPPLY_PROP_CHARGE_TYPE
property to facilitate bypass charging operation.

In bypass charging operation, the charger bypasses the charging path around the
integrated converter allowing for a "smart" wall adaptor to perform the power
conversion externally.

This operational mode is critical for the USB PPS standard of power adaptors and is
becoming a common feature in modern charging ICs such as:

- BQ25980
- BQ25975
- BQ25960
- LN8000
- LN8410

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/ABI/testing/sysfs-class-power
drivers/power/supply/power_supply_sysfs.c
include/linux/power_supply.h