Thread (9 messages) flat view 9 messages, 4 authors, 2012-07-04
DORMANTno replies

[PATCH 2/2] ARM: PRIMA2: add PINMUX map for primaII UART1 and SPI0/1

From: Linus Walleij <hidden>
Date: 2012-07-04 22:34:02

On Wed, Jul 4, 2012 at 4:25 PM, Barry Song [off-list ref] wrote:
2012/7/4 Arnd Bergmann [off-list ref]:
quoted
On Wednesday 04 July 2012, Barry Song wrote:
quoted
quoted
        of_platform_populate(NULL, sirfsoc_of_bus_ids, prima2_auxdata_lookup, NULL);
+       pinctrl_register_mappings(prima2_padmux_map, ARRAY_SIZE(prima2_padmux_map));
 }
I haven't been following pinctrl too closely, but isn't this something
that would normally be represented by putting the lookup table into the
device tree?
i'd like to see that. i am not sure whether i have missed anything
since i only saw the pinctrl_register_mappings samples.
would linus clarify?
You can do it either way, but for a DT:ed platform it makes sense to have
it in device tree.

Check drivers/pinctrl/devicetree.c for how that code works, the bindings
are in
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
There are example usecases in arch/arm/boot/dts/*

This was all implemented by Stephen Warren so he's the reference
to this codepath.

Yours,
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