Messages in this thread | | | Date | Wed, 29 Jan 2014 00:38:19 -0800 (PST) | From | Kuninori Morimoto <> | Subject | About gpio-regulator setting on DT |
| |
Hi Lee, Mark, Liam
I would like to use ${LINUX}/drivers/gpio-regulator.c via DT. My board needs "GPIOF_OUT_INIT_HIGH" on struct gpio :: flags
But, current of_get_gpio_regulator_config() seems doesn't have such setting method. This means it will be "GPIOF_OUT_INIT_LOW"
for (i = 0; i < config->nr_gpios; i++) { gpio = of_get_named_gpio(np, "gpios", i); if (gpio < 0) break; config->gpios[i].gpio = gpio; }
How to set GPIOF_OUT_INIT_HIGH via DT ? Or, am I misunderstanding ?
Best regards --- Kuninori Morimoto
| |