Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -16206,7 +16206,7 @@ MAXIM MAX77759 BATTERY CHARGER DRIVER
M: Amit Sunil Dhamne <amitsd@google.com>
L: linux-kernel@vger.kernel.org
S: Maintained
F: drivers/power/supply/max77759_charger.c
F: drivers/power/supply/max77759_charger*

MAXIM MAX77779 FUEL GAUGE AND CHARGER DRIVERS
M: W4HO <87742609+W4HO-ham@users.noreply.github.com>
Expand Down
6 changes: 6 additions & 0 deletions drivers/mfd/max77759.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ static const struct regmap_range max77759_charger_ro_registers[] = {
static const struct regmap_range max77759_charger_volatile_registers[] = {
regmap_reg_range(0xb0, 0xb1), /* INTx */
regmap_reg_range(0xb4, 0xb8),
/*
* CNFG_00 to CNFG_04 (mode, current, float): the charger driver reads
* them back to check what the chip really holds, which a cached
* read would not tell.
*/
regmap_reg_range(0xb9, 0xbd),
};

static const struct regmap_access_table max77759_charger_wr_table = {
Expand Down
15 changes: 15 additions & 0 deletions drivers/power/supply/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,21 @@ config CHARGER_MAX77759

If built as a module, it will be called max77759_charger.

config CHARGER_MAX77759_KUNIT_TEST
bool "KUnit tests for the MAX77759 charger temperature guard" if !KUNIT_ALL_TESTS
depends on CHARGER_MAX77759 && KUNIT
depends on KUNIT=y || CHARGER_MAX77759=m
default KUNIT_ALL_TESTS
help
KUnit tests for the step-charging tables of the MAX77759 charger
driver's battery temperature guard: the temperature bands and
their hysteresis, the voltage tiers, the limits from the battery
description and the table of each board.

The tests are built into the driver. They touch no hardware.

If unsure, say N.

config CHARGER_MAX77976
tristate "Maxim MAX77976 battery charger driver"
depends on I2C
Expand Down
Loading