Messages in this thread | | | Date | Wed, 29 Jan 2014 12:45:16 +0000 | From | Mark Brown <> | Subject | Re: About gpio-regulator setting on DT |
| |
On Wed, Jan 29, 2014 at 12:38:19AM -0800, Kuninori Morimoto wrote:
> How to set GPIOF_OUT_INIT_HIGH via DT ? > Or, am I misunderstanding ?
The combination of the enable-active-high and enable-at-boot properties ought be able to cause the driver to do the right thing, the flags do this:
if (config->enabled_at_boot) { if (config->enable_high) cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH; else cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW; } else { if (config->enable_high) cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW; else cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH; }
of_get_named_gpio() just looks up the GPIO number, it doesn't request the GPIO. [unhandled content-type:application/pgp-signature] | |