Skip to content

Add Texas Instruments BQ25703A Charger

Chris Morgan linux-devicetree linux-pm linux-rockchip 8 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 7 repliesApplied
  2. v75 patches 1 replySuperseded
  3. v65 patches 3 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches3 repliesSuperseded
v45 patches4 repliesSuperseded
v35 patches8 repliesSuperseded
v25 patches2 repliesSuperseded
v1 RFC5 patches7 repliesSuperseded

Changes in v8 from the cover letter

- Changed regmap cache type in mfd to REGCACHE_MAPLE.
- Corrected mfd_cell struct location.
- Added whitespace for readability.

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/5dt-bindings: mfd: ti,bq25703a: Add TI BQ25703A ChargerDocumentation/devicetree/bindings/mfd/ti,bq25703a.yaml+117 -00 replies
2/5mfd: bq257xx: Add support for BQ25703A core driverdrivers/mfd/Kconfig drivers/mfd/Makefile drivers/mfd/bq257xx.c +1 more+215 -00 replies
3/5power: supply: bq257xx: Add support for BQ257XX chargerdrivers/power/supply/Kconfig drivers/power/supply/Makefile drivers/power/supply/bq257xx_charger.c+763 -00 replies
4/5regulator: bq257xx: Add bq257xx boost regulator driverdrivers/regulator/Kconfig drivers/regulator/Makefile drivers/regulator/bq257xx-regulator.c+195 -00 replies
5/5arm64: dts: rockchip: Add USB and charger to Gameforce Acearch/arm64/boot/dts/rockchip/rk3588s-gameforce-ace.dts+122 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiSebastian ReichelMark Brown
1/5R-b
2/5
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/5] Add Texas Instruments BQ25703A Charger

From: Chris Morgan <[email protected]>

Add support for the Texas Instruments BQ25703A charger manager. The device integrates a boost converter with the charger manager. This series adds the device as an MFD with separate regulator and power supply drivers. This allows us to manage a circular dependency with a type-c port manager which depends on the regulator for usb-otg but supplies power to the BQ25703A charger.

---
Changes since RFC
- Corrected some minor issues with code and device-tree labels.
- Replaced most of the manufacturer specific device-tree properties with monitored-battery properties.
Changes since V2
- Added reference to power-supply.yaml and removed note for i2c address per recommendation from Sebastian.
- Corrected documentation error for charger driver found by kernel test robot.
- Corrected duplicate POWER_SUPPLY_USB_TYPE_PD entry and corrected ichg logic in power supply changed function.
- Corrected missing linux/bitfield.h header in regulator driver found by kernel test robot.
Changes since V3
- Changed name of regulator from usb_otg_vbus to just vbus to align with datasheet.
- Additional cleanup of the device tree documentation.
Changes since V4
- Replaced instances of dev_err followed by a return in the probe functions with a return of dev_err_probe instead.
- Simplified cell definition of main driver for probe.
- Updated copyright year to 2025 on copyright strings.
Changes since V5
- Removed erroneous Reviewed-by tag from mfd patch.
- Made mfd_cells static const in mfd probe function.
- Removed unneeded enum from header file.
Changes since V6
- Fixed https://lore.kernel.org/all/[email protected]/
by explicitly setting the register in question to 0 and adding a note to describe the change.
- Fixed https://lore.kernel.org/all/[email protected]/
by changing an IS_ERR_OR_NULL() to just an IS_ERR().
- Fixed https://lore.kernel.org/all/[email protected]/
by removing the uninitalized variable in question which is not needed.
Changes since V7:
- Changed regmap cache type in mfd to REGCACHE_MAPLE.
- Corrected mfd_cell struct location.
- Added whitespace for readability.

Chris Morgan (5):
dt-bindings: mfd: ti,bq25703a: Add TI BQ25703A Charger
mfd: bq257xx: Add support for BQ25703A core driver
power: supply: bq257xx: Add support for BQ257XX charger
regulator: bq257xx: Add bq257xx boost regulator driver
arm64: dts: rockchip: Add USB and charger to Gameforce Ace

 .../devicetree/bindings/mfd/ti,bq25703a.yaml  | 117 +++
 .../dts/rockchip/rk3588s-gameforce-ace.dts    | 122 +++
 drivers/mfd/Kconfig                           |  11 +
 drivers/mfd/Makefile                          |   1 +
 drivers/mfd/bq257xx.c                         |  99 +++
 drivers/power/supply/Kconfig                  |   7 +
 drivers/power/supply/Makefile                 |   1 +
 drivers/power/supply/bq257xx_charger.c        | 755 ++++++++++++++++++
 drivers/regulator/Kconfig                     |   8 +
 drivers/regulator/Makefile                    |   1 +
 drivers/regulator/bq257xx-regulator.c         | 186 +++++
 include/linux/mfd/bq257xx.h                   | 104 +++
 12 files changed, 1412 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml
 create mode 100644 drivers/mfd/bq257xx.c
 create mode 100644 drivers/power/supply/bq257xx_charger.c
 create mode 100644 drivers/regulator/bq257xx-regulator.c
 create mode 100644 include/linux/mfd/bq257xx.h
Signature · 1 line
2.43.0