[PATCH] gpio: Add gpio_request_by_line_name()

Fabio Estevam festevam at gmail.com
Mon Jan 31 17:10:27 CET 2022


On Mon, Jan 31, 2022 at 9:55 AM Andrew Jeffery <andrew at aj.id.au> wrote:
>
> Add support for the upstream gpio-line-names property already described
> in the common GPIO binding document[1]. The ability to search for a line
> name allows boards to lift the implementation of common GPIO behaviours
> away from specific line indexes on a GPIO controller.
>
> [1] https://github.com/devicetree-org/dt-schema/blob/3c35bfee83c2e38e2ae7af5f83eb89ca94a521e8/dtschema/schemas/gpio/gpio.yaml#L17
>
> Signed-off-by: Andrew Jeffery <andrew at aj.id.au>

Please also add a user for the newly introduced gpio_request_by_line_name().

Otherwise, this is just dead code.

Thanks


More information about the U-Boot mailing list