devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bruno Meneguele <bruno.meneguele@smartgreen.net>
To: sre@kernel.org, robh+dt@kernel.org
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org,
	Bruno Meneguele <bruno.meneguele@smartgreen.net>
Subject: [PATCH v4 0/2] add Watchdog Timer delay support for BQ24735
Date: Mon, 16 Aug 2021 13:52:43 -0300	[thread overview]
Message-ID: <20210816165245.40416-1-bruno.meneguele@smartgreen.net> (raw)

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".

Changelog:
  v3 - add specific patch for the dt bidings change.
     - patch 1/2 was already queued to the tree, so it's not present in this
	   patchset anymore.
  v2 - unfortunately I used a default gitconfig that was pointing to my
  default user.email and email smtp. This new version corrects it.

Bruno Meneguele (2):
  power: supply: bq24735: add watchdog timer delay support
  dt-bindings: power: supply: bq24735: document the watchdog timer delay
    feature

 .../bindings/power/supply/bq24735.yaml        | 15 ++++++
 drivers/power/supply/bq24735-charger.c        | 54 +++++++++++++++++++
 include/linux/power/bq24735-charger.h         |  1 +
 3 files changed, 70 insertions(+)

-- 
2.31.1


             reply	other threads:[~2021-08-16 17:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-16 16:52 Bruno Meneguele [this message]
2021-08-16 16:52 ` [PATCH v4 1/2] power: supply: bq24735: add watchdog timer delay support Bruno Meneguele
2021-09-27 16:15   ` Sebastian Reichel
2021-08-16 16:52 ` [PATCH v4 2/2] dt-bindings: power: supply: bq24735: document the watchdog timer delay feature Bruno Meneguele
2021-08-18  1:09   ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210816165245.40416-1-bruno.meneguele@smartgreen.net \
    --to=bruno.meneguele@smartgreen.net \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).