Re: [PATCH v3 2/3] pinctrl: core: configure pinmux from pins debug file

From: Tony Lindgren
Date: Tue May 25 2021 - 01:15:26 EST


Hi,

* Vladimir Zapolskiy <vz@xxxxxxxxx> [210524 18:52]:
> Thus a higher level of abstraction is wanted:
>
> * writing data to I/O mem -- not good enough,
> * writing data to pinmux/pinconf I/O mem -- better, but not good enough,
> * writing *valid* data to pinmux/pinconf I/O mem -- that's right.
>
> The validity of data is defined by a developer, the abstraction name
> has been mentioned multiple times, it's pin groups and pin group functions.

Sounds like the planned interface should only allow changing between
already defined pingroups, and only if the pins are unclaimed. That
would leave out the issues tinkering with raw register data.

And it probably should also allow adding and removing new pingroups out
of the already defined pin functions that are unclaimed.

I also think such interface should be sysfs and not debugfs eventually.

Regards,

Tony