2022-02-15 00:52:16

by Rivera-Matos, Ricardo

[permalink] [raw]
Subject: [PATCH v3 0/3] Introduces bypass charge type property

Hello,

This patch series introduces a new POWER_SUPPLY_CHARGE_TYPE for bypass charging
operation.

In fast charging ICs, the bypass operation is used to bypass the charging path
around the charging IC's integrated power converter to its load. This allows
for "smart" wall adaptors (such as USB PPS standard power adaptors) to handle
the power conversion and heat dissipation externally.

Best Regards,
Ricardo

Ricardo Rivera-Matos (2):
power: supply: Introduces bypass charging property
power: supply: bq25980: Implements POWER_SUPPLY_CHARGE_TYPE_BYPASS

drivers/power/supply/bq25980_charger.c | 2 +-
drivers/power/supply/power_supply_sysfs.c | 1 +
include/linux/power_supply.h | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)

--
2.25.1


2022-02-15 00:52:24

by Rivera-Matos, Ricardo

[permalink] [raw]
Subject: [PATCH v3 2/3] power: supply: bq25980: Implements POWER_SUPPLY_CHARGE_TYPE_BYPASS

This patch remaps the bypass operation from POWER_SUPPLY_CHARGE_TYPE_FAST
to POWER_SUPPLY_CHARGE_TYPE_BYPASS.

Signed-off-by: Ricardo Rivera-Matos <[email protected]>
---
drivers/power/supply/bq25980_charger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/bq25980_charger.c b/drivers/power/supply/bq25980_charger.c
index 0008c229fd9c..296b221a70fd 100644
--- a/drivers/power/supply/bq25980_charger.c
+++ b/drivers/power/supply/bq25980_charger.c
@@ -764,7 +764,7 @@ static int bq25980_get_charger_property(struct power_supply *psy,
if (!state.ce)
val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE;
else if (state.bypass)
- val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST;
+ val->intval = POWER_SUPPLY_CHARGE_TYPE_BYPASS;
else if (!state.bypass)
val->intval = POWER_SUPPLY_CHARGE_TYPE_STANDARD;
break;
--
2.25.1

2022-02-15 09:07:49

by Rivera-Matos, Ricardo

[permalink] [raw]
Subject: [PATCH v3 3/3] ABI: testing: sysfs-class-power: Adds "Long Life" entry

Adds a brief desciption of the "Long Life" charge type and adds "Long Life"
to the list of valid values.

Signed-off-by: Ricardo Rivera-Matos <[email protected]>
---
Documentation/ABI/testing/sysfs-class-power | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power
index 8e3bf1aa6268..b304fa9c1482 100644
--- a/Documentation/ABI/testing/sysfs-class-power
+++ b/Documentation/ABI/testing/sysfs-class-power
@@ -380,16 +380,17 @@ Description:
algorithm to adjust the charge rate dynamically, without
any user configuration required. "Custom" means that the charger
uses the charge_control_* properties as configuration for some
- different algorithm. "Bypass" means the charger bypasses the
- charging path around the integrated converter allowing for a
- "smart" wall adaptor to perform the power conversion
- externally.
+ different algorithm. "Long Life" means the charger reduces its
+ charging rate in order to prolong the battery health. "Bypass"
+ means the charger bypasses the charging path around the
+ integrated converter allowing for a "smart" wall adaptor to
+ perform the power conversion externally.

Access: Read, Write

Valid values:
"Unknown", "N/A", "Trickle", "Fast", "Standard",
- "Adaptive", "Custom", "Bypass"
+ "Adaptive", "Custom", "Long Life", "Bypass"

What: /sys/class/power_supply/<supply_name>/charge_term_current
Date: July 2014
--
2.25.1

2022-02-24 14:41:22

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH v3 0/3] Introduces bypass charge type property

Hi,

On Mon, Feb 14, 2022 at 06:07:55PM -0600, Ricardo Rivera-Matos wrote:
> This patch series introduces a new POWER_SUPPLY_CHARGE_TYPE for bypass charging
> operation.
>
> In fast charging ICs, the bypass operation is used to bypass the charging path
> around the charging IC's integrated power converter to its load. This allows
> for "smart" wall adaptors (such as USB PPS standard power adaptors) to handle
> the power conversion and heat dissipation externally.

Thanks, queued.

-- Sebastian


Attachments:
(No filename) (514.00 B)
signature.asc (849.00 B)
Download all attachments