tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Regulator




> On Jan 12, 2022, at 6:34 AM, Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
> 
> Hello
> 
> I am still working on Goodix touchpanel as told in [1] and [2]. I
> wrote a driver for the Intel GPIO chip that interfaces with Goodix
> chipreset and interrupt pins. I have not committed yet, because it
> remains untested.
> 
> There is another readblock. The Linux driver for Goodix touchpanel 
> uses a beast called regulator, which seems to control the chip
> power supply:
>        ts->avdd28 = devm_regulator_get(dev, "AVDD28");
> (...)
>        ts->vddio = devm_regulator_get(dev, "VDDIO");
> (...)
>        /* power up the controller */
>        error = regulator_enable(ts->avdd28);
> (...)
>        error = regulator_enable(ts->vddio);
> 
> Is it another chip that neds another driver? Or a feature of the
> Goodix chip?  What support do we have for thins kind of thing? 
> grep -r regulator returns manu hits in src/sys/dev/i2c and
> src/sys/dev/fdt but we do not have any generic API for that, right?

We support regulators using FDT.

-- thorpej



Home | Main Index | Thread Index | Old Index