Lines Matching +full:standby +full:- +full:gpios
4 * SPDX-License-Identifier: Apache-2.0
51 (void)gpio_pin_interrupt_configure(gpio, (find_msb_set(pins) - 1), in uart1_wui_isr()
54 /* Refresh console expired time if got UART Rx wake-up event */ in uart1_wui_isr()
59 * The pm state of it8xxx2 chip only supports standby, so here we in uart1_wui_isr()
60 * can directly set the constraint for standby. in uart1_wui_isr()
63 k_work_reschedule(&uart_console_data->rx_refresh_timeout_work, delay); in uart1_wui_isr()
71 (void)gpio_pin_interrupt_configure(gpio, (find_msb_set(pins) - 1), in uart2_wui_isr()
74 /* Refresh console expired time if got UART Rx wake-up event */ in uart2_wui_isr()
79 * The pm state of it8xxx2 chip only supports standby, so here we in uart2_wui_isr()
80 * can directly set the constraint for standby. in uart2_wui_isr()
83 k_work_reschedule(&uart_console_data->rx_refresh_timeout_work, delay); in uart2_wui_isr()
90 const struct uart_it8xxx2_config *const config = dev->config; in uart_it8xxx2_pm_action()
101 ret = gpio_pin_interrupt_configure_dt(&config->gpio_wui, in uart_it8xxx2_pm_action()
105 config->port, ret); in uart_it8xxx2_pm_action()
111 return -ENOTSUP; in uart_it8xxx2_pm_action()
130 const struct uart_it8xxx2_config *const config = dev->config; in uart_it8xxx2_init()
134 status = pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT); in uart_it8xxx2_init()
150 if (config->uart_dev == uart_console_dev) { in uart_it8xxx2_init()
152 uart_console_data = dev->data; in uart_it8xxx2_init()
153 k_work_init_delayable(&uart_console_data->rx_refresh_timeout_work, in uart_it8xxx2_init()
162 if (config->port == UART1) { in uart_it8xxx2_init()
166 BIT(config->gpio_wui.pin)); in uart_it8xxx2_init()
168 ret = gpio_add_callback(config->gpio_wui.port, &uart1_wui_cb); in uart_it8xxx2_init()
169 } else if (config->port == UART2) { in uart_it8xxx2_init()
173 BIT(config->gpio_wui.pin)); in uart_it8xxx2_init()
175 ret = gpio_add_callback(config->gpio_wui.port, &uart2_wui_cb); in uart_it8xxx2_init()
180 config->port, ret); in uart_it8xxx2_init()
193 .gpio_wui = GPIO_DT_SPEC_INST_GET(inst, gpios), \