Skip to content

add Watchdog Timer delay support for BQ24735

Bruno Meneguele linux-pm lkml 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2power: supply: bq24735: reorganize ChargeOption command macrosdrivers/power/supply/bq24735-charger.c+15 -120 replies
2/2power: supply: bq24735: add watchdog timer delay supportDocumentation/devicetree/bindings/power/supply/bq24735.yaml drivers/power/supply/bq24735-charger.c include/linux/power/bq24735-charger.h+62 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] add Watchdog Timer delay support for BQ24735

The IC BQ24735 has the ability to suspend the battery charging in case the system freezes for some reason: the IC observes consecutive writes for either CargeCurrent of ChargVoltage registers in a maximum period of time.

This period of time can be configured by the user through the ChargeOption register in the bits 13 and 14, but it's only possible to change if the user sends the value directly accessing the I2C bus through userspace, because the kernel driver doesn't read or write to the Watchdog bits.

This patchset enables the user to configure the value through the device-tree option "ti,wdt-timeout".

Bruno Meneguele (2):
power: supply: bq24735: reorganize ChargeOption command macros
power: supply: bq24735: add watchdog timer delay support

 .../bindings/power/supply/bq24735.yaml        | 13 ++++
 drivers/power/supply/bq24735-charger.c        | 75 ++++++++++++++++---
 include/linux/power/bq24735-charger.h         |  1 +
 3 files changed, 77 insertions(+), 12 deletions(-)
Signature · 1 line
2.31.1