BQ27XXXSW-LINUX

用于 BQ27XXX 的 Linux 驱动程序

BQ27XXXSW-LINUX

概述

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.

 

电池电量监测
BQ27200 具有 12C 接口的单节锂电池和锂聚合物电池电量监测计 IC BQ27210 适用于便携应用、带 I2C 接口的锂离子和锂聚合物电池电量监测计 IC BQ27421-G1 具有集成感应电阻器的 System-side™ 电量监测计 | 电池电量监测计 BQ27425-G1 具有直接电池连接功能的系统侧 Impedance Track™ 电量监测计 | 电池电量监测计 BQ27426 带有预编程化学成分的单节电池系统侧电池电量监测计 BQ27441-G1 系统侧 Impedance Track™ 电池电量监测计 BQ27500 系统侧 Impedance Track™ 电量监测计,固件版本为 v1.06 BQ27510 具有集成 LDO 的系统侧 Impedance Track™ 电量监测计 BQ27530-G1 具有直接电池连接功能的系统侧 Impedance Track 电量监测计 BQ27531-G1 适用于 bq2419x 充电器控制器的电池管理单元 Impedance Track™ 电量监测计 BQ27541 用于电池组集成的单节锂离子电池电量监测计 BQ27542-G1 采用 SON 封装的单节电池 Impedance Track™ 电池组侧电量监测计 BQ27546-G1 采用 DSBGA 封装的单节电池 Impedance Track™ 电池组侧电量监测计 BQ27621-G1 具有动态电压相关性的系统侧电量监测计,电池电量监测计 BQ27742-G1 具有集成保护功能的单节锂离子电池电量监测计 | 电池电量监测计

支持与培训

可获得 TI E2E™ 论坛的工程师技术支持

查看所有论坛主题 查看英文版所有论坛主题

所有内容均由 TI 和社区网友按“原样”提供,并不构成 TI 规范。参阅使用条款

如果您对质量、包装或订购 TI 产品有疑问,请参阅 TI 支持

视频