Re: [PATCH v7 1/6] mfd: sy7636a: Initial commit

From: Lee Jones
Date: Tue Jul 20 2021 - 12:14:40 EST


On Tue, 20 Jul 2021, Mark Brown wrote:

> On Tue, Jul 20, 2021 at 03:53:25PM +0100, Lee Jones wrote:
> > On Thu, 08 Jul 2021, Alistair Francis wrote:
>
> > > +static const struct mfd_cell sy7636a_cells[] = {
> > > + { .name = "sy7636a-regulator", },
> > > + { .name = "sy7636a-temperature", },
> > > + { .name = "sy7636a-thermal", },
> > > +};
>
> > If you put these in the Device Tree, you can use "simple-mfd-i2c"
>
> At least the regulator probably shouldn't be - this is just a Linux
> specific grouping of devices, it's not really directly a block in the
> hardware in a way that's platform independent.

I've seen (and authored) regulator support in DT before.

What's changed? They're controlled by registers, right?

Is the problem that the registers are usually split?

--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog