gpio: Add gpio_request_by_line_name()
authorAndrew Jeffery <andrew@aj.id.au>
Mon, 31 Jan 2022 03:24:05 +0000 (13:54 +1030)
committerTom Rini <trini@konsulko.com>
Fri, 8 Apr 2022 19:17:23 +0000 (15:17 -0400)
commit34be6968c3570d8e03fcafcd60c02f315b8f4602
treefcf1c015718882b32986a9f650867b6eb4f28722
parent965b989fb6cfdca194a65b7bf1f41483afbc2fd0
gpio: Add gpio_request_by_line_name()

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@aj.id.au>
drivers/gpio/gpio-uclass.c
include/asm-generic/gpio.h