From 64a5e5cbe166f36f00651c8946fd9c8aef2dad1a Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 12 Dec 2018 19:13:13 -0600 Subject: Add PULLUP feature to of_find_gpio() --- .../linux-4.9-at91_gpio_set_single_ended.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/recipes-kernel/linux/linux-at91-4.9/linux-4.9-at91_gpio_set_single_ended.patch b/recipes-kernel/linux/linux-at91-4.9/linux-4.9-at91_gpio_set_single_ended.patch index c9ed24d..4a7d644 100644 --- a/recipes-kernel/linux/linux-at91-4.9/linux-4.9-at91_gpio_set_single_ended.patch +++ b/recipes-kernel/linux/linux-at91-4.9/linux-4.9-at91_gpio_set_single_ended.patch @@ -100,6 +100,18 @@ diff -Naru linux-4.9.orig/drivers/gpio/gpiolib.h linux-4.9/drivers/gpio/gpiolib. /* Connection label */ const char *label; +diff -Naru linux-4.9.orig/drivers/gpio/gpiolib-of.c linux-4.9/drivers/gpio/gpiolib-of.c +--- linux-4.9.orig/drivers/gpio/gpiolib-of.c 2018-12-12 18:52:33.000000000 -0600 ++++ linux-4.9/drivers/gpio/gpiolib-of.c 2018-12-12 19:10:16.669696602 -0600 +@@ -152,6 +152,8 @@ + else + *flags |= GPIO_OPEN_SOURCE; + } ++ if (of_flags & OF_GPIO_PULLUP) ++ *flags |= GPIO_PULLUP; + + return desc; + } diff -Naru linux-4.9.orig/drivers/pinctrl/pinctrl-at91.c linux-4.9/drivers/pinctrl/pinctrl-at91.c --- linux-4.9.orig/drivers/pinctrl/pinctrl-at91.c 2018-12-11 10:11:15.000000000 -0600 +++ linux-4.9/drivers/pinctrl/pinctrl-at91.c 2018-12-12 10:25:46.154628279 -0600 -- cgit v1.2.3