Re: [RFC PATCH 1/2] dt-bindings: power: supply: Add TI BQ25630 charger
From: Conor Dooley
Date: Fri Feb 27 2026 - 12:35:16 EST
On Fri, Feb 27, 2026 at 04:35:33PM +0100, Waqar Hameed wrote:
> Add devicetree bindings for the TI BQ25630 battery charger. It's I2C
> controlled and sends interrupts.
>
> Signed-off-by: Waqar Hameed <waqar.hameed@xxxxxxxx>
> ---
> .../bindings/power/supply/bq25630.yaml | 68 +++++++++++++++++++
> 1 file changed, 68 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/supply/bq25630.yaml
>
> diff --git a/Documentation/devicetree/bindings/power/supply/bq25630.yaml b/Documentation/devicetree/bindings/power/supply/bq25630.yaml
> new file mode 100644
> index 0000000000000..57e4286dac7e9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/bq25630.yaml
Filename is missing "ti," to match the compatible.
> @@ -0,0 +1,68 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/supply/bq25630.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TI BQ25630 battery charger
> +
> +maintainers:
> + - Waqar Hameed <waqar.hameed@xxxxxxxx>
> +
> +description: |
> + I2C controlled single cell Li-ion and Li-polymer 5A buck charger.
> + Datasheet: https://www.ti.com/lit/gpn/bq25630
> +
> +allOf:
> + - $ref: power-supply.yaml#
> +
> +properties:
> + compatible:
> + const: ti,bq25630
> +
> + reg:
> + const: 0x6b
> + description:
> + Device I2C address.
> +
> + interrupts:
> + maxItems: 1
> + description: |
> + Device sends active low 256 µs pulse. Type should therefore be
> + IRQ_TYPE_EDGE_FALLING.
> +
> + monitored-battery: true
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - monitored-battery
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + bat: battery {
> + compatible = "simple-battery";
> + voltage-min-design-microvolt = <1800000>;
> + constant-charge-current-max-microamp = <1344000>;
> + constant-charge-voltage-max-microvolt = <3700000>;
> + charge-term-current-microamp = <128000>;
> + precharge-current-microamp = <1000000>;
> + };
This whole battery node can go, the tooling will falsify the phandle.
I wouldn't ack this anyway cos you're looking for RFC feedback, but the
binding looks pretty sane (although when it's simple enough it should!).
Marking it cr from a dt pov cos of the filename.
pw-bot: changes-requested
Cheers,
Conor.
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + charger@6b {
> + compatible = "ti,bq25630";
> + reg = <0x6b>;
> + interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
> + monitored-battery = <&bat>;
> + };
> + };
> +...
> --
> 2.39.5
>
Attachment:
signature.asc
Description: PGP signature