Re: [RFC PATCH 1/2] dt-bindings: power: supply: Add TI BQ25630 charger
From: Conor Dooley
Date: Mon Mar 02 2026 - 12:48:00 EST
On Mon, Mar 02, 2026 at 02:44:19PM +0100, Waqar Hameed wrote:
> On Fri, Feb 27, 2026 at 17:31 +0000 Conor Dooley <conor@xxxxxxxxxx> wrote:
>
> > 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.
>
> The majority of TI devices in this folder do not contain the `ti,`
> prefix, so I just followed that. But I'll make sure to add it in the
> next version then!
>
> [...]
>
> >> +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,
>
> Alright, will remove in the next version!
>
> > the tooling will falsify the phandle.
>
> I'm guessing you mean that when extracting the example, the insertion of
> `/plugin/` to the `*.example.dts`-file will "falsify the phandle"?
I'll be honest, I don't know exactly what the mechanism is that fakes
the phandles, but it means that any sort of generic device doesn't need
to be included in the example.
> There are some other examples in this folder that include this node. Not
> sure if it's worth the churn to fix those as well to help the next
> person?
Probably isn't worth the churn /shrug
Attachment:
signature.asc
Description: PGP signature