Lines Matching refs:propname
64 char propname[32];
74 snprintf(propname, sizeof(propname), "%s-%s", con_id, gpio_suffixes[i]);
76 snprintf(propname, sizeof(propname), "%s", gpio_suffixes[i]);
79 ret = of_gpio_named_count(dev->of_node, propname);
135 static void of_gpio_flags_quirks(struct device_node *np, const char *propname, enum of_gpio_flags *flags, int index)
143 (!(strcmp(propname, "enable-gpio") && strcmp(propname, "enable-gpios")) &&
174 if (IS_ENABLED(CONFIG_SPI_MASTER) && !strcmp(propname, "cs-gpios") && of_property_read_bool(np, "cs-gpios")) {
216 if (IS_ENABLED(CONFIG_STMMAC_ETH) && !strcmp(propname, "snps,reset-gpio") &&
225 * @propname: property name containing gpio specifier(s)
233 static struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, const char *propname, int index,
241 ret = of_parse_phandle_with_args_map(np, propname, "gpio", index, &gpiospec);
243 pr_debug("%s: can't parse '%s' property of node '%pOF[%d]'\n", __func__, propname, np, index);
259 of_gpio_flags_quirks(np, propname, flags, index);
262 pr_debug("%s: parsed '%s' property of node '%pOF[%d]' - status (%d)\n", __func__, propname, np, index,
287 * @propname: name of the DT property representing the GPIO
298 struct gpio_desc *gpiod_get_from_of_node(struct device_node *node, const char *propname, int index,
310 desc = of_get_named_gpiod_flags(node, propname, index, &flags);
352 ret = gpiod_configure_flags(desc, propname, lflags, dflags);