# SPDX-License-Identifier: GPL-2.0-only menuconfig QCOM_POWER_SUPPLY bool "Support for Qualcomm Technologies, Inc. power supply" depends on ARCH_QCOM help Say Y here to enable Qualcomm Technologies, Inc. specific power supply drivers. This allows adding support for various charging peripherals and battery management features. (if selected below). if QCOM_POWER_SUPPLY config QPNP_QNOVO5 tristate "QPNP QNOVO5 driver" depends on MFD_SPMI_PMIC help Say Y here to enable the Qnovo5 PBS-based pulse charging engine. Qnovo5 driver accepts pulse parameters via sysfs entries and programs the hardware module. It also allows userspace code to read diagnostics of voltage and current measured during certain phases of the pulses. config QPNP_QG tristate "QPNP Qgauge driver" depends on MFD_SPMI_PMIC depends on IIO help Say Y here to enable the Qualcomm Technologies, Inc. QGauge driver which uses the periodic sampling of the battery voltage and current to determine the battery state-of-charge (SOC) and supports other battery management features. To compile this driver as a module, choose M here: the module will be called qcom-qpnp-qg. config QPNP_FG_GEN3 tristate "QPNP GEN3 fuel gauge driver" depends on MFD_SPMI_PMIC depends on IIO help Say Y here to enable the GEN3 Fuel Gauge driver. This adds support for battery fuel gauging and state of charge of battery connected to the fuel gauge. The state of charge is reported through a BMS power supply property and also sends uevents when the capacity is updated. To compile this driver as a module, choose M here: the module will be called qpnp-fg-gen3-main. config QPNP_FG_GEN4 tristate "QPNP GEN4 fuel gauge driver" depends on MFD_SPMI_PMIC depends on IIO help Say Y here to enable the GEN4 Fuel Gauge driver. This adds support for battery fuel gauging and state of charge of battery connected to the device that has QTI PMICs like PM8150B. The state of charge is reported through a BMS power supply property and also sends uevents when the capacity is updated. To compile this driver as a module, choose M here: the module will be called qpnp-fg-gen4-main. config QPNP_SMB2 tristate "SMB2 Battery Charger" depends on MFD_SPMI_PMIC && IIO help Say Y to enables support for the SMB2 charging peripheral. The QPNP SMB2 charger driver supports the charger peripheral present in the PMICOBALT chip. The power supply and iio frameworks are used to communicate battery and usb properties to userspace and other driver consumers such as fuel gauge, USB, and USB-PD. VBUS and VCONN regulators are registered for supporting OTG, and powered Type-C cables respectively. To compile this driver as a module, choose M here: the module will be called qpnp-smb2-main. config QPNP_SMB5 tristate "SMB5 Battery Charger" depends on MFD_SPMI_PMIC && IIO && TYPEC help Say Y to enables support for the SMB5 charging peripheral. The QPNP SMB5 charger driver supports the charger peripheral present in the chip. The power supply and iio frameworks are used to communicate battery and usb properties to userspace and other driver consumers such as fuel gauge, USB, and USB-PD. VBUS and VCONN regulators are registered for supporting OTG, and powered Type-C cables respectively. To compile this driver as a module, choose M here: the module will be called qpnp-smb5-main. config QPNP_SMBLITE tristate "SMBLITE Battery Charger" depends on MFD_SPMI_PMIC help Say Y to enable support for the SMBLITE charging peripheral. The QPNP SMBLITE charger driver supports the charger peripheral present in the chip. The power supply framework is used to communicate battery and usb properties to userspace and other driver consumers such as fuel gauge and USB. VBUS regulator is registered for supporting OTG. config SMB1398_CHARGER tristate "SMB1398 power supply framework based driver" depends on MFD_I2C_PMIC && IIO help Say Y to include the support of SMB1398 Charge driver based on power supply framework. SMB1398 is a combo charger chip which can work in different modes: (1) DIV2 charge pump mode to work as a companion charger to be paired with Qualcomm Technologies, Inc.’s family of standalone chargers; (2) DIV2 and 3-level buck combo mode to regulate the output power from wireless charger receiver and provide the input for downstream chargers. config SMB1355_SLAVE_CHARGER tristate "SMB1355 Slave Battery Charger" depends on MFD_I2C_PMIC && IIO help Say Y to include support for SMB1355 Battery Charger. SMB1355 is a single phase 5A battery charger. The driver supports charger enable/disable. The driver reports the charger status via the power supply framework. A charger status change triggers an IRQ via the device STAT pin. config SMB1390_CHARGE_PUMP_PSY tristate "SMB1390 power supply framework based driver" depends on MFD_I2C_PMIC && IIO help Say Y to include support for SMB1390 Charge Pump driver based on power supply framework. SMB1390 is a div2 charge pump capable of delivering 6A charge current with very high efficiency. It can work either as 2s to 1s pre-regulator or as a companion charger when paired with Qualcomm Technologies, Inc.’s family of standalone chargers to enable a high current, low profile Li+ battery charging system. config SMB23X_CHARGER tristate "SMB23X Battery Charger" depends on I2C help Say Y to include support for SMB23X Battery Charger. SMB23X is a single path linear charger capable of charging the battery with 1Amps of current. The driver supports charger enable/disable. The driver reports the charger status via the power supply framework. A charger status change triggers an IRQ via the device STAT pin. config SMB358_CHARGER tristate "SMB358 Battery Charger" depends on I2C help Say Y to include support for SMB358 Battery Charger. SMB358 is a single path switching mode charger capable of charging the battery with 2Amps of current. The driver supports charger enable/disable. The driver reports the charger status via the power supply framework. A charger status change triggers an IRQ via the device STAT pin. config QTI_QBG tristate "QTI Battery Gauge" depends on MFD_SPMI_PMIC && IIO help Say Y here to enable the Qualcomm Technologies, Inc. Battery Gauge driver which uses the periodic samples of the battery voltage and current to determine the battery state-of-charge (SOC) and supports other battery management features. To compile this driver as a module, choose M here: the module will be called qti-qbg-main. endif