...
That should read add mode feature
Yes and no ...
The user space aspect is what I mean. But I'm speaking about pin muxing. That is
- all that GPIO stuff in your document, as well as
- the ball mode feature (GPIO, CAP, PWM, ...) and
- pullup /pulldown restistor settings.
Instead of several folders and files in sysfs and human readable parameters, I'd like to see
- a single entry that
- gets opened once and can
- controll all free pins by a single write access,
- receiving a single parameter that is a combination of ball#/value (or register offset/value - like in the device tree source).
The pins to operate on could get defined in the device tree. But it'd be better when the driver could auto-determine them (the not reserved one).
In short, I'm searching for a solution to set the parameters of a device tree entry like
B08_28: 08_28 {pinctrl-single,pins = <0x020 0x28>;};
at run time via sysfs.
Regards,
Thomas