Lines Matching +full:tri +full:- +full:state
4 * SPDX-License-Identifier: Apache-2.0
23 const struct ti_tps382x_config *config = dev->config; in ti_tps382x_init()
25 if (!gpio_is_ready_dt(&config->wdi_gpio)) { in ti_tps382x_init()
27 return -ENODEV; in ti_tps382x_init()
35 const struct ti_tps382x_config *config = dev->config; in ti_tps382x_setup()
37 return gpio_pin_configure_dt(&config->wdi_gpio, GPIO_OUTPUT); in ti_tps382x_setup()
42 const struct ti_tps382x_config *config = dev->config; in ti_tps382x_disable()
45 * the system. Do this by changing the gpio to an input (tri-state). in ti_tps382x_disable()
47 return gpio_pin_configure_dt(&config->wdi_gpio, GPIO_INPUT); in ti_tps382x_disable()
53 const struct ti_tps382x_config *config = dev->config; in ti_tps382x_install_timeout()
55 if (cfg->window.max != config->timeout) { in ti_tps382x_install_timeout()
57 config->timeout, cfg->window.max); in ti_tps382x_install_timeout()
58 return -EINVAL; in ti_tps382x_install_timeout()
59 } else if (cfg->window.min != 0) { in ti_tps382x_install_timeout()
61 return -EINVAL; in ti_tps382x_install_timeout()
62 } else if (cfg->callback != NULL) { in ti_tps382x_install_timeout()
64 return -EINVAL; in ti_tps382x_install_timeout()
72 const struct ti_tps382x_config *config = dev->config; in ti_tps382x_feed()
74 return gpio_pin_toggle_dt(&config->wdi_gpio); in ti_tps382x_feed()