Thread (142 messages) 142 messages, 11 authors, 2017-07-31

Re: [PATCH 00/13] Ingenic JZ4740 / JZ4780 pinctrl driver

From: Linus Walleij <hidden>
Date: 2017-01-19 06:40:29
Also in: linux-devicetree, linux-gpio, linux-mips, linux-mmc, linux-pwm, lkml

On Wed, Jan 18, 2017 at 12:14 AM, Paul Cercueil [off-list ref] wrote:
One problem still unresolved: the pinctrl framework does not allow us to
configure each pin on demand (someone please prove me wrong), when the
various PWM channels are requested or released. For instance, the PWM
channels can be configured from sysfs, which would require all PWM pins
to be configured properly beforehand for the PWM function, eventually
causing conflicts with other platform or board drivers.
Why do you think this?

- Pincontrol handles can be obtained at runtime.
- Pincontrol states can be changed at runtime.

The fact that a the handle is retrived by the device core and set to
the states named "init" or "default" during boot is just a convenience.

You can have as many and as fine-grained states as you want. They
can pertain to just one pin too.

Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help