Re: [PATCH 01/11] dt-bindings: mfd: ti,bq25703a: Expand to include BQ25792
From: Alexey Charkov
Date: Wed Mar 04 2026 - 03:50:49 EST
On Wed, Mar 4, 2026 at 12:32 PM Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
>
> On Tue, Mar 03, 2026 at 07:32:46PM +0400, Alexey Charkov wrote:
> > 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@xxxxxxxxxxx>
> > ---
> > .../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@xxxxxxxxxxx>
> > @@ -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
>
> Broadest constraints allways stay. See writing bindings and writing schema.
Ack, will make the common part a superset of both variants' allowed
ranges. Thanks for pointing this out.
Best regards,
Alexey