Lines Matching +full:chip +full:- +full:selects
1 // SPDX-License-Identifier: GPL-2.0+
23 #include "gpiolib-swnode.h"
25 #define GPIOLIB_SWNODE_UNDEFINED_NAME "swnode-gpio-undefined"
33 if (!gdev_node || !gdev_node->name) in swnode_get_gpio_device()
34 return ERR_PTR(-EINVAL); in swnode_get_gpio_device()
38 * primarily used as a key for internal chip selects in SPI bindings. in swnode_get_gpio_device()
41 !strcmp(gdev_node->name, GPIOLIB_SWNODE_UNDEFINED_NAME)) in swnode_get_gpio_device()
42 return ERR_PTR(-ENOENT); in swnode_get_gpio_device()
44 gdev = gpio_device_find_by_label(gdev_node->name); in swnode_get_gpio_device()
45 return gdev ?: ERR_PTR(-EPROBE_DEFER); in swnode_get_gpio_device()
53 * We expect all swnode-described GPIOs have GPIO number and in swnode_gpio_get_reference()
71 return ERR_PTR(-EINVAL); in swnode_find_gpio()
97 pr_debug("%s: parsed '%s' property of node '%pfwP[%d]' - status (%d)\n", in swnode_find_gpio()
104 * swnode_gpio_count - count the GPIOs associated with a device / function
106 * system-global GPIOs
110 * The number of GPIOs associated with a device / function or %-ENOENT,
133 return -ENOENT; in swnode_gpio_count()
139 * a key for internal chip selects in SPI bindings.