Linux Driver for BQ27XXX BQ27XXXSW-LINUX (ACTIVE)

Description & Features

Technical Documents

Support & Training

Order Now



Description

The Linux driver supports the BQ27x series of Battery Fuel Gauges. The Linux driver supports communication through the I2C/HDQ bus and interfaces with the power supply sub-system to monitor battery properties.

 

Linux Mainline Status

Available in Linux Main line: Yes
Available through git.ti.com: N/A

Supported Devices:

  • bq27200
  • bq27210
  • bq27500
  • bq27510
  • bq27520
  • bq27521
  • bq27530
  • bq27531
  • bq27541
  • bq27542
  • bq27546
  • bq27742
  • bq27545
  • bq27421
  • bq27425
  • bq27441
  • bq27621

 

Linux Source Files

The files associated with this device are:

  1. drivers/power/supply/bq27xxx_battery.c
  2. drivers/power/supply/bq27xxx_battery_i2c.c
  3. drivers/power/supply/bq27xxx_battery_hdq.c
  4. include/linux/power/bq27xxx_battery.h

Source Files

drivers/power/supply/bq27xxx_battery.c
drivers/power/supply/bq27xxx_battery_i2c.c
drivers/power/supply/bq27xxx_battery_hdq.c

Other Files

include/linux/power/bq27xxx_battery.h

 

Enabling Driver Support

Configure kernel with "make menuconfig" (alternatively use "make xconfig" or "make nconfig")

Menuconfig Location

Symbol: BATTERY_BQ27XXX [=y]
Type  : tristate
Prompt: BQ27xxx battery driver
  Location:
    -> Device Drivers
      -> Power supply class support (POWER_SUPPLY [=y])
  Defined at drivers/power/supply/Kconfig:187
  Depends on: POWER_SUPPLY [=y]


Symbol: BATTERY_BQ27XXX_DT_UPDATES_NVM [=y]
Type  : boolean
Prompt: BQ27xxx support for update of NVM/flash data memory
  Location:
    -> Device Drivers
      -> Power supply class support (POWER_SUPPLY [=y])
  Defined at drivers/power/supply/Kconfig:210
  Depends on: POWER_SUPPLY [=y] && BATTERY_BQ27XXX_I2C [=y]


Symbol: BATTERY_BQ27XXX_HDQ [=y]
Type  : tristate
Prompt: BQ27xxx HDQ support
  Location:
    -> Device Drivers
      -> Power supply class support (POWER_SUPPLY [=y])
        -> BQ27xxx battery driver (BATTERY_BQ27XXX [=y])
  Defined at drivers/power/supply/Kconfig:201
  Depends on: POWER_SUPPLY [=y] && BATTERY_BQ27XXX [=y] && W1 [=y]


Symbol: BATTERY_BQ27XXX_I2C [=y]
Type  : tristate
Prompt: BQ27xxx I2C support
  Location:
    -> Device Drivers
      -> Power supply class support (POWER_SUPPLY [=y])
        -> BQ27xxx battery driver (BATTERY_BQ27XXX [=y])
  Defined at drivers/power/supply/Kconfig:192
  Depends on: POWER_SUPPLY [=y] && BATTERY_BQ27XXX [=y] && I2C [=y]

Fixes and Code Enhancements

If there are fixes and or code enhancements that need to be added to this
driver please either

1. Send the patches to the relevant Linux Kernel community as listed in the maintainers file located: Here

or

2.  Contact your TI representative.

 

TI Devices (14)

Part Number Name Product Family
BQ27200  Single-Cell Li-Ion and Li-Pol Battery Gas Gauge IC with I2C Interface  Battery management 
BQ27210  Li-Ion and Li-Pol Battery Gas Gauge IC for Portable Applications (bqJUNIOR)  Battery management 
BQ27421-G1  System-Side(tm) Fuel Gauge With Integrated Sense Resistor | Battery Gas Gauge  Battery management 
BQ27425-G1  System-Side Impedance Track™ Fuel Gauge With Direct Battery Connection | Gas Gauge Battery  Battery management 
BQ27441-G1  System-Side Impedance Track™ Battery Fuel (Gas) Gauge  Battery management 
BQ27500  System-Side Impedance Track™ Fuel Gauge  Battery management 
BQ27510  System Side Impedance Track™ Fuel Gauge with Integrated LDO  Battery management 
BQ27530-G1  System-Side Impedance-Track Fuel (Gas) Gauge With Direct Battery Connection  Battery management 
BQ27531-G1  Battery Management Unit Impedance Track Fuel (Gas) Gauge for bq2419x Charger Controller  Battery management 
BQ27541  Single Cell Li-Ion Battery Fuel Gauge for Battery Pack Integration  Battery management 
BQ27542-G1  Single Cell Impedance Track Pack Side Fuel Gauge  Battery management 
BQ27546-G1  Single Cell Impedance Track Pack Side Fuel Gauge  Battery management 
BQ27621-G1  System-Side Fuel Gauge with Dynamic Voltage Correlation, Battery Gas Gauge  Battery management 
BQ27742-G1  bq27742-G1 Single Cell Li-Ion Battery Fuel Gauge With Integrated Protection | Battery Gas Gauge  Battery management 

Support & training

Search our extensive online knowledge base where millions of technical questions and answers are available 24/7.

Search answers from TI experts

Content is provided 'AS IS' by the respective TI and Community contributors and does not constitute TI specifications.
See terms of use.

If you have questions about quality, packaging, or ordering TI products visit our Support page.

Technical articles