Skip to content

Commit

Permalink
power: supply: Add bd718(27/28/78) charger driver
Browse files Browse the repository at this point in the history
Add charger driver for ROHM BD718(27/28/78) PMIC charger block.
Driver utilizes the swgauge for battery status / current polling,
CC correction and SOC estimation.

A version of driver which does not utilize swgauge can be seen
in ROHM venor specific Linux tree - comparison can visualize how
swgauge can simplify IC specific drivers.

https://github.com/RohmSemiconductor/Linux-Kernel-PMIC-Drivers/blob/stable-v5.4.6/drivers/power/supply/bd71827-power.c
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
  • Loading branch information
M-Vaittinen authored and intel-lab-lkp committed Dec 4, 2020
1 parent 570aba1 commit 9509c08
Show file tree
Hide file tree
Showing 3 changed files with 2,173 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/power/supply/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,16 @@ config CHARGER_BD70528
information and altering charger configurations from charger
block of the ROHM BD70528 Power Management IC.

config CHARGER_BD71828
tristate "Power-supply driver for ROHM BD71828 PMIC"
depends on MFD_ROHM_BD71828
select SW_GAUGE
help
Say Y here to enable support for charger, battery and fuel gauge
in ROHM BD71827 and ROHM BD71828 power management ICs. This driver
gets various bits of information about battery and charger states
and also implements fuel gauge based on coulomb counters on PMIC.

config CHARGER_BD99954
tristate "ROHM bd99954 charger driver"
depends on I2C
Expand Down
1 change: 1 addition & 0 deletions drivers/power/supply/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ obj-$(CONFIG_CHARGER_SC2731) += sc2731_charger.o
obj-$(CONFIG_FUEL_GAUGE_SC27XX) += sc27xx_fuel_gauge.o
obj-$(CONFIG_CHARGER_UCS1002) += ucs1002_power.o
obj-$(CONFIG_CHARGER_BD70528) += bd70528-charger.o
obj-$(CONFIG_CHARGER_BD71828) += bd71827-power.o
obj-$(CONFIG_CHARGER_BD99954) += bd99954-charger.o
obj-$(CONFIG_CHARGER_WILCO) += wilco-charger.o
obj-$(CONFIG_RN5T618_POWER) += rn5t618_power.o

0 comments on commit 9509c08

Please sign in to comment.