of_get_named_gpio_flags
The interface has the following parameters.
- Synopsis:
int of_get_named_gpio_flags(const struct device_node *np, const char *list_name, int index, enum of_gpio_flags *flags)
- Description: The function is used to obtain a GPIO number from the DTS file and analyze its GPIO properties.
- Parameter:
- np: Device node to get GPIO from.
- propname: Name of the property containing GPIO specifier(s).
- index: Index of the GPIO
- flags: Enumerate of_gpio_flags variables, including IO configuration, pull-up and pull-down settings, drive strength settings, etc.
- Return:
- Success: The GPIO index number.
- Failure: Error code.