Re: [PATCH v6 2/2] dt-bindings: power: supply: add support for MAX77759 fuel gauge

From: André Draszik

Date: Fri Sep 19 2025 - 09:17:29 EST


Hi,

On Fri, 2025-09-19 at 00:32 +0200, Sebastian Reichel wrote:
> Hi,
>
> On Thu, Sep 18, 2025 at 02:02:55PM +0100, André Draszik wrote:
> >
> > Additionally, the FG block can also measure temperature and battery ID. For
> > those, a combination of (top-level) PMIC and FG registers are needed
> > unfortunately. Which means that the FG should probably be an MFD child
> > device, even though the FG itself doesn't depend on the top-level. Otherwise
> > it'd be hard to access the top-level PMIC register.
>
> My understanding is, that the FG has a dedicated I2C device address

Yes, that is correct. It also has its own dedicated interrupt output.

> and thus cannot be a simple MFD child of the PMIC.

The core can still create child devices if a child uses a different
i2c address, as already done by the max77759 core driver for the charger
(which e.g. doesn't have its own interrupt). Some MFD other core drivers
also use such an approach.


[...]

> Assuming I understood things correctly, I think I suggest to model
> things like this for the battery temperature/ID:

Nice, yes, that should work - didn't think of that...

Cheers,
Andre'