From: Hermes Zhang <chenhuiz@axis.com>
To: <krzysztof.kozlowski+dt@linaro.org>, <sre@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <kernel@axis.com>,
Hermes Zhang <chenhuiz@axis.com>
Subject: [PATCH v3 0/2] Add new ti,no-thermistor property
Date: Thu, 23 Mar 2023 15:22:24 +0800 [thread overview]
Message-ID: <20230323072224.438467-1-chenhuiz@axis.com> (raw)
The TS pin is used to detect the temperature and suspend the charging
when it's voltage out of range. If the NTC is not connect in HW, the
TS_IGNORE bit need to be set to 1 to make charge work. The new
"ti,no-thermistor" is used to set TS_IGNORE to 1 when HW doesn't work
with NTC.
Description from datasheet:
Battery temperature qualification voltage input. Connect a negative temperature
coefficient thermistor (NTC). Program temperature window with a resistor divider
from REGN to TS to GND. Charge and Boost mode suspend when TS pin voltage is
out of range. When TS pin is not used, connect a 10-kΩ resistor from REGN to TS
and a 10-kΩ resistor from TS to GND or set TS_IGNORE to HIGH to ignore TS pin.
It is recommended to use a 103AT-2 thermistor.
Notes:
v2: change property name to ti,no-thermistor
v3: drop "|" in property description
Hermes Zhang (2):
dt-bindings: power: supply: bq256xx: Add ti,no-thermistor property
power: supply: bq256xx: Apply TS_IGNORE from devicetree
.../bindings/power/supply/bq256xx.yaml | 18 ++++++++++++
drivers/power/supply/bq256xx_charger.c | 28 +++++++++++++++++++
2 files changed, 46 insertions(+)
--
2.30.2
reply other threads:[~2023-03-23 7:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230323072224.438467-1-chenhuiz@axis.com \
--to=chenhuiz@axis.com \
--cc=kernel@axis.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.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
all inboxes | Powered by JetHome®