Skip to content

Commit 37c3507

Browse files
quic-manafmdmantre
authored andcommitted
FROMLIST: hwmon: Add Qualcomm PMIC BCL hardware monitor driver
Add support for Qualcomm PMIC Battery Current Limiting (BCL) hardware monitor driver. The BCL peripheral is present in Qualcomm PMICs and provides real-time monitoring and protection against battery overcurrent and under voltage conditions. The driver monitors: - Battery voltage with configurable low voltage thresholds - Battery current with configurable high current thresholds - Two limit alarm interrupts (max/min, critical) The driver integrates with the Linux hwmon subsystem and provides standard hwmon attributes for monitoring battery conditions. Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260206-qcom-bcl-hwmon-v1-2-7b426f0b77a1@oss.qualcomm.com
1 parent 25dd59f commit 37c3507

5 files changed

Lines changed: 1312 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21056,6 +21056,15 @@ S: Maintained
2105621056
F: Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml
2105721057
F: drivers/net/wwan/qcom_bam_dmux.c
2105821058

21059+
QUALCOMM BCL HARDWARE MONITOR DRIVER
21060+
M: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
21061+
L: linux-hwmon@vger.kernel.org
21062+
L: linux-arm-msm@vger.kernel.org
21063+
S: Maintained
21064+
F: Documentation/devicetree/bindings/hwmon/qcom,bcl-hwmon.yaml
21065+
F: drivers/hwmon/qcom-bcl-hwmon.c
21066+
F: drivers/hwmon/qcom-bcl-hwmon.h
21067+
2105921068
QUALCOMM BLUETOOTH DRIVER
2106021069
L: linux-arm-msm@vger.kernel.org
2106121070
S: Maintained

drivers/hwmon/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,15 @@ config SENSORS_PWM_FAN
18931893
This driver can also be built as a module. If so, the module
18941894
will be called pwm-fan.
18951895

1896+
config SENSORS_QCOM_BCL
1897+
tristate "Qualcomm BCL hardware monitoring"
1898+
help
1899+
Say yes here to enable support for Qualcomm battery over current
1900+
and under voltage alarms monitor.
1901+
1902+
This driver can also be built as a module. If so, the module
1903+
will be called qcom-bcl-hwmon.
1904+
18961905
config SENSORS_QNAP_MCU_HWMON
18971906
tristate "QNAP MCU hardware monitoring"
18981907
depends on MFD_QNAP_MCU

drivers/hwmon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ obj-$(CONFIG_SENSORS_POWERZ) += powerz.o
196196
obj-$(CONFIG_SENSORS_POWR1220) += powr1220.o
197197
obj-$(CONFIG_SENSORS_PT5161L) += pt5161l.o
198198
obj-$(CONFIG_SENSORS_PWM_FAN) += pwm-fan.o
199+
obj-$(CONFIG_SENSORS_QCOM_BCL) += qcom-bcl-hwmon.o
199200
obj-$(CONFIG_SENSORS_QNAP_MCU_HWMON) += qnap-mcu-hwmon.o
200201
obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON) += raspberrypi-hwmon.o
201202
obj-$(CONFIG_SENSORS_SA67MCU) += sa67mcu-hwmon.o

0 commit comments

Comments
 (0)