Thread (2 messages) 2 messages, 2 authors, 2018-02-07

[PATCH] gpio: davinci: add support for pinmux gpio ranges

From: Linus Walleij <hidden>
Date: 2018-02-07 13:00:46
Also in: linux-gpio, lkml

On Mon, Jan 22, 2018 at 12:09 AM, David Lechner [off-list ref] wrote:
This adds support for the pinmux gpio ranges feature to the DaVinci gpio
driver. Only device tree is supported since the non-DT boards don't
use a generic pinmux controller.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Linus Walleij <redacted>
Signed-off-by: David Lechner <david@lechnology.com>
Nice, patch applied!
+       if (of_property_read_bool(dev->of_node, "gpio-ranges")) {
+               chips->chip.request = gpiochip_generic_request;
+               chips->chip.free = gpiochip_generic_free;
+       }
If the backing pin controller can do things like debounce
or open drain pin control, consider using also the
gpiochip_generic_config() callback in the future.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help