From: Alexey Charkov <alchark@flipper.net>
To: Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Chris Morgan <macromorgan@hotmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Sebastian Reichel <sre@kernel.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Sebastian Reichel <sebastian.reichel@collabora.com>,
linux-pm@vger.kernel.org, Alexey Charkov <alchark@flipper.net>
Subject: [PATCH 01/11] dt-bindings: mfd: ti,bq25703a: Expand to include BQ25792
Date: Tue, 03 Mar 2026 19:32:46 +0400 [thread overview]
Message-ID: <20260303-bq25792-v1-1-e6e5e0033458@flipper.net> (raw)
In-Reply-To: <20260303-bq25792-v1-0-e6e5e0033458@flipper.net>
TI BQ25792 is similar in operation to BQ25703A, but has a different
register layout and different current/voltage capabilities.
Expand the existing BQ25703A binding to include BQ25792, and move the
voltage and current limits into per-variant conditional statements.
Signed-off-by: Alexey Charkov <alchark@flipper.net>
---
.../devicetree/bindings/mfd/ti,bq25703a.yaml | 79 +++++++++++++++++-----
1 file changed, 62 insertions(+), 17 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml b/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml
index ba14663c9266..99b4fba7c1d4 100644
--- a/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml
+++ b/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml
@@ -4,7 +4,7 @@
$id: http://devicetree.org/schemas/mfd/ti,bq25703a.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: BQ25703A Charger Manager/Buck/Boost Converter
+title: BQ257xx Charger Manager/Buck/Boost Converter
maintainers:
- Chris Morgan <macromorgan@hotmail.com>
@@ -14,7 +14,9 @@ allOf:
properties:
compatible:
- const: ti,bq25703a
+ enum:
+ - ti,bq25703a
+ - ti,bq25792
reg:
const: 0x6b
@@ -23,9 +25,6 @@ properties:
description:
Maximum total input current allowed used for both charging and
powering the device.
- minimum: 50000
- maximum: 6400000
- default: 3250000
interrupts:
maxItems: 1
@@ -50,18 +49,10 @@ properties:
properties:
regulator-name: true
- regulator-min-microamp:
- minimum: 0
- maximum: 6350000
- regulator-max-microamp:
- minimum: 0
- maximum: 6350000
- regulator-min-microvolt:
- minimum: 4480000
- maximum: 20800000
- regulator-max-microvolt:
- minimum: 4480000
- maximum: 20800000
+ regulator-min-microamp: true
+ regulator-max-microamp: true
+ regulator-min-microvolt: true
+ regulator-max-microvolt: true
enable-gpios:
description:
The BQ25703 may require both a register write and a GPIO
@@ -74,6 +65,60 @@ properties:
- regulator-min-microvolt
- regulator-max-microvolt
+ allOf:
+ - if:
+ properties:
+ compatible:
+ const: ti,bq25703a
+ then:
+ properties:
+ input-current-limit-microamp:
+ minimum: 500000
+ maximum: 6350000
+ default: 5000000
+ regulators:
+ properties:
+ vbus:
+ properties:
+ regulator-min-microamp:
+ minimum: 0
+ maximum: 6350000
+ regulator-max-microamp:
+ minimum: 0
+ maximum: 6350000
+ regulator-min-microvolt:
+ minimum: 4480000
+ maximum: 20800000
+ regulator-max-microvolt:
+ minimum: 4480000
+ maximum: 20800000
+ - if:
+ properties:
+ compatible:
+ const: ti,bq25792
+ then:
+ properties:
+ input-current-limit-microamp:
+ minimum: 1000000
+ maximum: 3300000
+ default: 3000000
+ regulators:
+ properties:
+ vbus:
+ properties:
+ regulator-min-microamp:
+ minimum: 0
+ maximum: 3320000
+ regulator-max-microamp:
+ minimum: 0
+ maximum: 3320000
+ regulator-min-microvolt:
+ minimum: 2800000
+ maximum: 22000000
+ regulator-max-microvolt:
+ minimum: 2800000
+ maximum: 22000000
+
unevaluatedProperties: false
required:
--
2.52.0
next prev parent reply other threads:[~2026-03-03 15:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 15:32 [PATCH 00/11] Add support for the TI BQ25792 battery charger Alexey Charkov
2026-03-03 15:32 ` Alexey Charkov [this message]
2026-03-03 16:26 ` [PATCH 01/11] dt-bindings: mfd: ti,bq25703a: Expand to include BQ25792 Rob Herring (Arm)
2026-03-04 9:34 ` Alexey Charkov
2026-03-04 8:32 ` Krzysztof Kozlowski
2026-03-04 8:50 ` Alexey Charkov
2026-03-04 8:33 ` Krzysztof Kozlowski
2026-03-04 8:53 ` Alexey Charkov
2026-03-03 15:32 ` [PATCH 02/11] regulator: bq257xx: Remove reference to the parent MFD's dev Alexey Charkov
2026-03-03 15:32 ` [PATCH 03/11] regulator: bq257xx: Drop the regulator_dev from the driver data Alexey Charkov
2026-03-03 15:32 ` [PATCH 04/11] regulator: bq257xx: Make OTG enable GPIO really optional Alexey Charkov
2026-03-03 15:32 ` [PATCH 05/11] power: supply: bq257xx: Fix VSYSMIN clamping logic Alexey Charkov
2026-03-03 15:32 ` [PATCH 06/11] power: supply: bq257xx: Make the default current limit a per-chip attribute Alexey Charkov
2026-03-03 15:32 ` [PATCH 07/11] power: supply: bq257xx: Consistently use indirect get/set helpers Alexey Charkov
2026-03-03 15:32 ` [PATCH 08/11] power: supply: bq257xx: Add fields for 'charging' and 'overvoltage' states Alexey Charkov
2026-03-03 15:32 ` [PATCH 09/11] mfd: bq257xx: Add BQ25792 support Alexey Charkov
2026-03-06 14:15 ` Lee Jones
2026-03-09 7:39 ` Alexey Charkov
2026-03-03 15:32 ` [PATCH 10/11] regulator: bq257xx: Add support for BQ25792 Alexey Charkov
2026-03-03 15:32 ` [PATCH 11/11] power: supply: " Alexey Charkov
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=20260303-bq25792-v1-1-e6e5e0033458@flipper.net \
--to=alchark@flipper.net \
--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=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=macromorgan@hotmail.com \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--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®