Lines Matching +full:pmic +full:- +full:int +full:- +full:pin

4  * SPDX-License-Identifier: Apache-2.0
41 * @brief Maximum number of GPIOs supported by AXP192 PMIC.
64 * @brief Request a GPIO pin to be configured to a specific function. GPIO0..5
74 * @retval -EINVAL if an invalid GPIO number is passed
75 * @retval -ENOTSUP if the requested function is not supported by the given
76 * @retval -errno in case of any bus error
78 int mfd_axp192_gpio_func_ctrl(const struct device *dev, const struct device *client_dev,
82 * @brief Read out current configuration of a specific GPIO pin.
88 * @retval -EINVAL if an invalid GPIO number is passed
89 * @retval -errno in case of any bus error
91 int mfd_axp192_gpio_func_get(const struct device *dev, uint8_t gpio, enum axp192_gpio_func *func);
94 * @brief Enable pull-down on specified GPIO pin. AXP192 only supports
95 * pull-down on GPIO3..5. Pull-ups are not supported.
98 * @param gpio GPIO to control pull-downs
99 * @param enable true to enable, false to disable pull-down
101 * @retval -EINVAL if an invalid argument is given (e.g. invalid GPIO number)
102 * @retval -ENOTSUP if pull-down is not supported by the givenn GPIO
103 * @retval -errno in case of any bus error
105 int mfd_axp192_gpio_pd_ctrl(const struct device *dev, uint8_t gpio, bool enable);
108 * @brief Read out the current pull-down configuration of a specific GPIO.
111 * @param gpio GPIO to control pull-downs
112 * @param enabled Pointer to current pull-down configuration (true: pull-down
113 * enabled/ false: pull-down disabled)
114 * @retval -EINVAL if an invalid argument is given (e.g. invalid GPIO number)
115 * @retval -ENOTSUP if pull-down is not supported by the givenn GPIO
116 * @retval -errno in case of any bus error
118 int mfd_axp192_gpio_pd_get(const struct device *dev, uint8_t gpio, bool *enabled);
126 * @retval -errno in case of any bus error
128 int mfd_axp192_gpio_read_port(const struct device *dev, uint8_t *value);
135 * @param mask pin mask within the port
137 * @retval -errno in case of any bus error
139 int mfd_axp192_gpio_write_port(const struct device *dev, uint8_t value, uint8_t mask);