Lines Matching +full:drive +full:- +full:open +full:- +full:source
3 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/gpio/nordic-npm6001-gpio.h>
47 const struct gpio_npm6001_config *config = dev->config; in gpio_npm6001_port_get_raw()
53 return -EWOULDBLOCK; in gpio_npm6001_port_get_raw()
56 ret = i2c_write_read_dt(&config->bus, ®, sizeof(reg), &val, in gpio_npm6001_port_get_raw()
70 const struct gpio_npm6001_config *config = dev->config; in gpio_npm6001_port_set_bits_raw()
74 return -EWOULDBLOCK; in gpio_npm6001_port_set_bits_raw()
77 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in gpio_npm6001_port_set_bits_raw()
83 const struct gpio_npm6001_config *config = dev->config; in gpio_npm6001_port_clear_bits_raw()
87 return -EWOULDBLOCK; in gpio_npm6001_port_clear_bits_raw()
90 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in gpio_npm6001_port_clear_bits_raw()
96 const struct gpio_npm6001_config *config = dev->config; in gpio_npm6001_configure()
100 return -EWOULDBLOCK; in gpio_npm6001_configure()
104 return -EINVAL; in gpio_npm6001_configure()
115 /* open-drain/open-source not supported */ in gpio_npm6001_configure()
117 return -ENOTSUP; in gpio_npm6001_configure()
120 /* drive strength (defaults to normal) */ in gpio_npm6001_configure()
150 return -ENOTSUP; in gpio_npm6001_configure()
159 return -ENOTSUP; in gpio_npm6001_configure()
162 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in gpio_npm6001_configure()
206 const struct gpio_npm6001_config *config = dev->config; in gpio_npm6001_init()
208 if (!device_is_ready(config->bus.bus)) { in gpio_npm6001_init()
209 return -ENODEV; in gpio_npm6001_init()