Skip to content

Commit 74e3f62

Browse files
S-Bhavinsre
authored andcommitted
power: supply: Add STC3117 fuel gauge unit driver
Adds initial support for the STC3117 fuel gauge. The driver provides functionality to monitor key parameters including: Voltage, Current, State of Charge (SOC), Temperature, Status Co-developed-by: Hardevsinh Palaniya <[email protected]> Signed-off-by: Hardevsinh Palaniya <[email protected]> Signed-off-by: Bhavin Sharma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 69a3761 commit 74e3f62

File tree

4 files changed

+630
-0
lines changed

4 files changed

+630
-0
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22165,6 +22165,14 @@ T: git git://linuxtv.org/media.git
2216522165
F: Documentation/devicetree/bindings/media/i2c/st,st-mipid02.yaml
2216622166
F: drivers/media/i2c/st-mipid02.c
2216722167

22168+
ST STC3117 FUEL GAUGE DRIVER
22169+
M: Hardevsinh Palaniya <[email protected]>
22170+
M: Bhavin Sharma <[email protected]>
22171+
22172+
S: Maintained
22173+
F: Documentation/devicetree/bindings/power/supply/st,stc3117.yaml
22174+
F: drivers/power/supply/stc3117_fuel_gauge.c
22175+
2216822176
ST STM32 FIREWALL
2216922177
M: Gatien Chevallier <[email protected]>
2217022178
S: Maintained

drivers/power/supply/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,15 @@ config FUEL_GAUGE_SC27XX
918918
Say Y here to enable support for fuel gauge with SC27XX
919919
PMIC chips.
920920

921+
config FUEL_GAUGE_STC3117
922+
tristate "STMicroelectronics STC3117 fuel gauge driver"
923+
depends on CRC8
924+
depends on I2C
925+
select REGMAP_I2C
926+
help
927+
Say Y here to enable support for fuel gauge with STC3117
928+
chip.
929+
921930
config CHARGER_UCS1002
922931
tristate "Microchip UCS1002 USB Port Power Controller"
923932
depends on I2C

drivers/power/supply/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ obj-$(CONFIG_CHARGER_CROS_USBPD) += cros_usbpd-charger.o
108108
obj-$(CONFIG_CHARGER_CROS_PCHG) += cros_peripheral_charger.o
109109
obj-$(CONFIG_CHARGER_SC2731) += sc2731_charger.o
110110
obj-$(CONFIG_FUEL_GAUGE_SC27XX) += sc27xx_fuel_gauge.o
111+
obj-$(CONFIG_FUEL_GAUGE_STC3117) += stc3117_fuel_gauge.o
111112
obj-$(CONFIG_CHARGER_UCS1002) += ucs1002_power.o
112113
obj-$(CONFIG_CHARGER_BD99954) += bd99954-charger.o
113114
obj-$(CONFIG_CHARGER_WILCO) += wilco-charger.o

0 commit comments

Comments
 (0)