From: "Rob Herring (Arm)" <robh@kernel.org>
To: Matti Vaittinen <matti.vaittinen@linux.dev>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
linux-rtc@vger.kernel.org, Stephen Boyd <sboyd@kernel.org>,
Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Bartosz Golaszewski <brgl@bgdev.pl>,
Pavel Machek <pavel@kernel.org>,
linux-leds@vger.kernel.org, Sebastian Reichel <sre@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
devicetree@vger.kernel.org, linux-gpio@vger.kernel.org,
Matti Vaittinen <mazziesaccount@gmail.com>,
Mark Brown <broonie@kernel.org>,
Andreas Kemnade <andreas@kemnade.info>,
Lee Jones <lee@kernel.org>,
linux-clk@vger.kernel.org,
Krzysztof Kozlowski <krzk+dt@kernel.org>
Subject: Re: [PATCH v3 04/16] dt-bindings: power: supply: BD72720 managed battery
Date: Wed, 05 Nov 2025 03:00:14 -0600 [thread overview]
Message-ID: <176233321101.143066.16817673032324313304.robh@kernel.org> (raw)
In-Reply-To: <a45e7230ecd08eed2081cbe7e7b4719d1fc8a581.1762327887.git.mazziesaccount@gmail.com>
On Wed, 05 Nov 2025 09:36:49 +0200, Matti Vaittinen wrote:
> From: Matti Vaittinen <mazziesaccount@gmail.com>
>
> The BD72720 PMIC has a battery charger + coulomb counter block. These
> can be used to manage charging of a lithium-ion battery and to do fuel
> gauging.
>
> ROHM has developed a so called "zero-correction" -algorithm to improve
> the fuel-gauging accuracy close to the point where battery is depleted.
> This relies on battery specific "VDR" tables, which are measured from
> the battery, and which describe the voltage drop rate. More thorough
> explanation about the "zero correction" and "VDR" parameters is here:
> https://lore.kernel.org/all/676253b9-ff69-7891-1f26-a8b5bb5a421b@fi.rohmeurope.com/
>
> Document the VDR zero-correction specific battery properties used by the
> BD72720 and some other ROHM chargers.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>
> ---
> NOTE:
> Linus' rb-tag holds only if there's no further comments from Rob.
>
> Revision history:
> v2 => v3:
> - Constrain VDR threshold voltage to 48V
> - Use standard '-bp' -suffix for the rohm,volt-drop-soc
>
> RFCv1 => v2:
> - Add units to rohm,volt-drop-soc (tenths of %)
> - Give real temperatures matching the VDR tables, instead of vague
> 'high', 'normal', 'low', 'very low'. (Add table of temperatures and
> use number matching the right temperature index in the VDR table name).
> - Fix typoed 'algorithm' in commit message.
>
> The parameters are describing the battery voltage drop rates - so they
> are properties of the battery, not the charger. Thus they do not belong
> in the charger node.
>
> The right place for them is the battery node, which is described by the
> generic "battery.yaml". I was not comfortable with adding these
> properties to the generic battery.yaml because they are:
> - Meaningful only for those charger drivers which have the VDR
> algorithm implemented. (And even though the algorithm is not charger
> specific, AFAICS, it is currently only used by some ROHM PMIC
> drivers).
> - Technique of measuring the VDR tables for a battery is not widely
> known. AFAICS, only folks at ROHM are measuring those for some
> customer products. We do have those tables available for some of the
> products though (Kobo?).
> ---
> .../power/supply/rohm,vdr-battery.yaml | 80 +++++++++++++++++++
> 1 file changed, 80 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/supply/rohm,vdr-battery.yaml
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/supply/rohm,vdr-battery.example.dtb: battery (simple-battery): 'degrade-cycle-microamp-hours', 'rohm,volt-drop-0-microvolt', 'rohm,volt-drop-1-microvolt', 'rohm,volt-drop-2-microvolt', 'rohm,volt-drop-3-temp-microvolt', 'rohm,volt-drop-soc-bp', 'rohm,volt-drop-temperatures-millicelsius', 'rohm,voltage-vdr-thresh-microvolt' do not match any of the regexes: '^ocv-capacity-table-[0-9]+$', '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/power/supply/battery.yaml
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/a45e7230ecd08eed2081cbe7e7b4719d1fc8a581.1762327887.git.mazziesaccount@gmail.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
next prev parent reply other threads:[~2025-11-05 9:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 7:34 [PATCH v3 00/16] Support ROHM BD72720 PMIC Matti Vaittinen
2025-11-05 7:35 ` [PATCH v3 01/16] dt-bindings: regulator: ROHM BD72720 Matti Vaittinen
2025-11-05 9:00 ` Rob Herring (Arm)
2025-11-05 11:22 ` Matti Vaittinen
2025-11-05 7:36 ` [PATCH v3 02/16] dt-bindings: battery: Clarify trickle-charge Matti Vaittinen
2025-11-06 8:00 ` Krzysztof Kozlowski
2025-11-10 23:04 ` Linus Walleij
2025-11-05 7:36 ` [PATCH v3 03/16] dt-bindings: battery: Add trickle-charge upper limit Matti Vaittinen
2025-11-06 8:01 ` Krzysztof Kozlowski
2025-11-05 7:36 ` [PATCH v3 04/16] dt-bindings: power: supply: BD72720 managed battery Matti Vaittinen
2025-11-05 9:00 ` Rob Herring (Arm) [this message]
2025-11-05 7:37 ` [PATCH v3 05/16] dt-bindings: mfd: ROHM BD72720 Matti Vaittinen
2025-11-05 9:00 ` Rob Herring (Arm)
2025-11-05 11:39 ` Matti Vaittinen
2025-11-05 7:37 ` [PATCH v3 06/16] dt-bindings: leds: bd72720: Add BD72720 Matti Vaittinen
2025-11-05 7:37 ` [PATCH v3 07/16] mfd: rohm-bd71828: Use regmap_reg_range() Matti Vaittinen
2025-11-05 7:37 ` [PATCH v3 08/16] mfd: bd71828: Support ROHM BD72720 Matti Vaittinen
2025-11-05 7:38 ` [PATCH v3 09/16] regulator: bd71828: rename IC specific entities Matti Vaittinen
2025-11-05 7:38 ` [PATCH v3 10/16] regulator: bd71828: Support ROHM BD72720 Matti Vaittinen
2025-11-05 7:38 ` [PATCH v3 11/16] gpio: Support ROHM BD72720 gpios Matti Vaittinen
2025-11-05 7:39 ` [PATCH v3 12/16] clk: clk-bd718x7: Support BD72720 clk gate Matti Vaittinen
2025-11-05 7:39 ` [PATCH v3 13/16] rtc: bd70528: Support BD72720 rtc Matti Vaittinen
2025-11-05 7:39 ` [PATCH v3 14/16] power: supply: bd71828: Support wider register addresses Matti Vaittinen
2025-11-05 7:39 ` [PATCH v3 15/16] power: supply: bd71828-power: Support ROHM BD72720 Matti Vaittinen
2025-11-05 7:40 ` [PATCH v3 16/16] MAINTAINERS: Add ROHM BD72720 PMIC Matti Vaittinen
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=176233321101.143066.16817673032324313304.robh@kernel.org \
--to=robh@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=andreas@kemnade.info \
--cc=brgl@bgdev.pl \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=matti.vaittinen@linux.dev \
--cc=mazziesaccount@gmail.com \
--cc=mturquette@baylibre.com \
--cc=pavel@kernel.org \
--cc=sboyd@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