Home
last modified time | relevance | path

Searched refs:host_int_gpios (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/mfd/
Dmfd_npm2100.c69 struct gpio_dt_spec host_int_gpios; member
122 gpio_pin_interrupt_configure_dt(&config->host_int_gpios, GPIO_INT_DISABLE); in gpio_callback()
157 if (gpio_pin_get_dt(&config->host_int_gpios) != 0) { in work_callback()
165 gpio_pin_interrupt_configure_dt(&config->host_int_gpios, config->host_int_flags); in work_callback()
262 if (config->host_int_gpios.port == NULL) { in mfd_npm2100_init()
272 if (!gpio_is_ready_dt(&config->host_int_gpios)) { in mfd_npm2100_init()
276 ret = gpio_pin_configure_dt(&config->host_int_gpios, GPIO_INPUT); in mfd_npm2100_init()
281 gpio_init_callback(&mfd_data->gpio_cb, gpio_callback, BIT(config->host_int_gpios.pin)); in mfd_npm2100_init()
283 ret = gpio_add_callback_dt(&config->host_int_gpios, &mfd_data->gpio_cb); in mfd_npm2100_init()
290 return gpio_pin_interrupt_configure_dt(&config->host_int_gpios, config->host_int_flags); in mfd_npm2100_init()
[all …]
Dmfd_npm1300.c47 struct gpio_dt_spec host_int_gpios; member
120 if (gpio_pin_get_dt(&config->host_int_gpios) != 0) { in work_callback()
139 if (config->host_int_gpios.port != NULL) { in mfd_npm1300_init()
148 if (!gpio_is_ready_dt(&config->host_int_gpios)) { in mfd_npm1300_init()
152 ret = gpio_pin_configure_dt(&config->host_int_gpios, GPIO_INPUT); in mfd_npm1300_init()
158 BIT(config->host_int_gpios.pin)); in mfd_npm1300_init()
160 ret = gpio_add_callback(config->host_int_gpios.port, &mfd_data->gpio_cb); in mfd_npm1300_init()
167 ret = gpio_pin_interrupt_configure_dt(&config->host_int_gpios, in mfd_npm1300_init()
316 .host_int_gpios = GPIO_DT_SPEC_INST_GET_OR(inst, host_int_gpios, {0}), \