Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-14 12:09:56 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-14 12:10:15 +0100
commitc02ca32ad3a37842386f5d62ceb66c1e25280007 (patch)
treecd83acb04808c4e312b1691206cd60fd2faba73a
parent85939137f902d86e98d5bca9b6d65d43a54fb56f (diff)
pinctrl: meson: meson8: fix the GPIO function for the GPIOAO
pins (bsc#1051510).
-rw-r--r--patches.drivers/pinctrl-meson-meson8-fix-the-GPIO-function-for-the-G.patch51
-rw-r--r--series.conf1
2 files changed, 52 insertions, 0 deletions
diff --git a/patches.drivers/pinctrl-meson-meson8-fix-the-GPIO-function-for-the-G.patch b/patches.drivers/pinctrl-meson-meson8-fix-the-GPIO-function-for-the-G.patch
new file mode 100644
index 0000000000..7a30d4f9b4
--- /dev/null
+++ b/patches.drivers/pinctrl-meson-meson8-fix-the-GPIO-function-for-the-G.patch
@@ -0,0 +1,51 @@
+From 42f9b48cc5402be11d2364275eb18c257d2a79e8 Mon Sep 17 00:00:00 2001
+From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
+Date: Sun, 9 Dec 2018 20:50:50 +0100
+Subject: [PATCH] pinctrl: meson: meson8: fix the GPIO function for the GPIOAO pins
+Git-commit: 42f9b48cc5402be11d2364275eb18c257d2a79e8
+Patch-mainline: v5.0-rc1
+References: bsc#1051510
+
+The GPIOAO pins (as well as the two exotic GPIO_BSD_EN and GPIO_TEST_N)
+only belong to the pin controller in the AO domain. With the current
+definition these pins cannot be referred to in .dts files as group
+(which is possible on GXBB and GXL for example).
+
+Add a separate "gpio_aobus" function to fix the mapping between the pin
+controller and the GPIO pins in the AO domain. This is similar to how
+the GXBB and GXL drivers implement this functionality.
+
+Fixes: 9dab1868ec0db4 ("pinctrl: amlogic: Make driver independent from two-domain configuration")
+Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
+Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ drivers/pinctrl/meson/pinctrl-meson8.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/pinctrl/meson/pinctrl-meson8.c b/drivers/pinctrl/meson/pinctrl-meson8.c
+index c6d79315218f..8863841d0dba 100644
+--- a/drivers/pinctrl/meson/pinctrl-meson8.c
++++ b/drivers/pinctrl/meson/pinctrl-meson8.c
+@@ -807,7 +807,9 @@ static const char * const gpio_groups[] = {
+ "BOOT_5", "BOOT_6", "BOOT_7", "BOOT_8", "BOOT_9",
+ "BOOT_10", "BOOT_11", "BOOT_12", "BOOT_13", "BOOT_14",
+ "BOOT_15", "BOOT_16", "BOOT_17", "BOOT_18",
++};
+
++static const char * const gpio_aobus_groups[] = {
+ "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3",
+ "GPIOAO_4", "GPIOAO_5", "GPIOAO_6", "GPIOAO_7",
+ "GPIOAO_8", "GPIOAO_9", "GPIOAO_10", "GPIOAO_11",
+@@ -1030,6 +1032,7 @@ static struct meson_pmx_func meson8_cbus_functions[] = {
+ };
+
+ static struct meson_pmx_func meson8_aobus_functions[] = {
++ FUNCTION(gpio_aobus),
+ FUNCTION(uart_ao),
+ FUNCTION(remote),
+ FUNCTION(i2c_slave_ao),
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index af8d25f1e1..653e392e5a 100644
--- a/series.conf
+++ b/series.conf
@@ -20126,6 +20126,7 @@
patches.drivers/pinctrl-sx150x-handle-failure-case-of-devm_kstrdup.patch
patches.drivers/pinctrl-sunxi-a64-Rename-function-csi0-to-csi.patch
patches.drivers/pinctrl-sunxi-a64-Rename-function-ts0-to-ts.patch
+ patches.drivers/pinctrl-meson-meson8-fix-the-GPIO-function-for-the-G.patch
patches.drivers/pinctrl-sh-pfc-r8a7740-Add-missing-REF125CK-pin-to-g.patch
patches.drivers/pinctrl-sh-pfc-r8a7740-Add-missing-LCD0-marks-to-lcd.patch
patches.drivers/pinctrl-sh-pfc-r8a7791-Remove-bogus-ctrl-marks-from-.patch