[PATCH v2] leds: leds-gpio: adopt pinctrl support
linus.walleij at linaro.org
Wed Oct 3 08:36:10 EDT 2012
On Wed, Oct 3, 2012 at 12:52 PM, AnilKumar, Chimata <anilkumar at ti.com> wrote:
> On Tue, Oct 02, 2012 at 01:29:37, Linus Walleij wrote:
>> 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:
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
#define DB8500_PIN_SLEEP(pin, conf, dev) \
PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_SLEEP, "pinctrl-db8500", \
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.)
More information about the linux-arm-kernel