Re: [PATCH v11 3/9] dt-bindings: power: supply: max17042: split on 2 files

From: Krzysztof Kozlowski
Date: Wed Dec 18 2024 - 02:56:24 EST


On 11/12/2024 15:59, Dzmitry Sankouski wrote:
> Ah, indeed, the device tree in this and previous patches doesn't
> reflect hardware wiring.
>
> MAX77705 fuel gauge has a separate i2c address, i.e. I may move it out of the
> MAX77705 MFD node. However, the device on that address has additional features,
> like measuring system and input current, which is out of fuel gauge
> responsibility.

This is fuel gauge job.

>
> So I guess I should create another MFD for fuel gauge, i. e. max77705 example
> would look like:
>
> ...
> pmic@66 {
> compatible = "maxim,max77705";
> ...
> };
>
> meter@36 {
> compatible = "maxim,max77705-meter";
>
No resources here, so not a MFD. This is one device.

Best regards,
Krzysztof