Thread (5 messages) 5 messages, 4 authors, 2012-11-05

[PATCH v2] leds: leds-gpio: adopt pinctrl support

From: Linus Walleij <hidden>
Date: 2012-10-03 12:36:10
Also in: linux-devicetree, linux-omap

Possibly related (same subject, not in this thread)

On Wed, Oct 3, 2012 at 12:52 PM, AnilKumar, Chimata [off-list ref] wrote:
On Tue, Oct 02, 2012 at 01:29:37, Linus Walleij wrote:
quoted
This is what we're doing for ux500 and should be a good model.
I have looked into this, but not seen any named modes.
OK maybe it's not easy to find. If you look into:
arch/arm/mach-ux500/board-mop500-pins.c
you find our work in progress. Note that this is not (yet)
using device tree. (We want to migrate all our pinctrl
stuff first, then do DT.)

So for example this macro:

#define DB8500_PIN(pin,conf,dev) \
        PIN_MAP_CONFIGS_PIN_DEFAULT(dev, "pinctrl-db8500", pin, conf)

Will define a config for the "default" mode for a certain
pin.

This:

#define DB8500_PIN_SLEEP(pin, conf, dev) \
        PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_SLEEP, "pinctrl-db8500", \
                            pin, conf)

Will mutatis mutandis define a "sleep" mode for a pin.

Sorry for the macros. We'll get rid of them in the DT.
(Now that Stephen has patched in preprocessing it will
even look good.)

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