Re: [PATCH 01/11] dt-bindings: mfd: ti,bq25703a: Expand to include BQ25792

From: Krzysztof Kozlowski

Date: Wed Mar 04 2026 - 03:36:13 EST


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.

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

Best regards,
Krzysztof