[PATCH 06/23] ARM: OMAP: add OMAP5 DSI muxing
Tony Lindgren
tony at atomide.com
Mon Apr 28 09:45:28 PDT 2014
* Tomi Valkeinen <tomi.valkeinen at ti.com> [140427 23:53]:
> On 25/04/14 18:31, Tony Lindgren wrote:
>
> > Chances are any mux register in the syscon area already works with
> > pinctrl-single,pins or pinctrl-single,bits option. The ones in the
> > padconf area should be already mapped so the driver just has to
> > request them.
>
> If using the padconf (say omap4_padconf_global for omap4), doesn't that
> mean we need to have platform specific bits in the driver? Isn't that
> something we've been trying to remove all the time?
No, it's all done in a Linux generic way during driver probe, see
drivers/base/pinctrl.c. You just need to define the default pins
in the .dts files. If you need dynamic remuxing in the driver,
you can define other named states that the driver can then toggle
with pinctrl_select_state().
Regards,
Tony
More information about the linux-arm-kernel
mailing list