diff options
author | Denis Kalashnikov <denis281089@gmail.com> | 2021-05-27 11:16:44 +0300 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2021-06-21 10:48:27 +0200 |
commit | 7b8931678c36c8d8c333b446258a653b1358bf70 (patch) | |
tree | f00022f0d3991f06c1dbb8a9b8c328eb3ae5c3ae /target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch | |
parent | fd0d9909bf50f114d5e7f7cedf53e542de878a2c (diff) | |
download | upstream-7b8931678c36c8d8c333b446258a653b1358bf70.tar.gz upstream-7b8931678c36c8d8c333b446258a653b1358bf70.tar.bz2 upstream-7b8931678c36c8d8c333b446258a653b1358bf70.zip |
ath79: add gpio-latch driver for MikroTik RouterBOARDs
This is a slighty modified version of ar71xx gpio-latch driver
written by Gabor Juhos <juhosg@openwrt.org>.
Changes:
* DTS support,
* New gpio API (gpiod_*).
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Denis Kalashnikov <denis281089@gmail.com>
Diffstat (limited to 'target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch')
-rw-r--r-- | target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch b/target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch new file mode 100644 index 0000000000..477993c8bf --- /dev/null +++ b/target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch @@ -0,0 +1,26 @@ +--- a/drivers/gpio/Kconfig ++++ b/drivers/gpio/Kconfig +@@ -341,6 +341,13 @@ config GPIO_IXP4XX + IXP4xx series of chips. + + If unsure, say N. ++ ++config GPIO_LATCH ++ tristate "MikroTik RouterBOARD GPIO latch support" ++ depends on ATH79 ++ help ++ GPIO driver for latch on some MikroTik RouterBOARDs. ++ + config GPIO_LOGICVC + tristate "Xylon LogiCVC GPIO support" + depends on MFD_SYSCON && OF +--- a/drivers/gpio/Makefile ++++ b/drivers/gpio/Makefile +@@ -72,6 +72,7 @@ obj-$(CONFIG_GPIO_IT87) += gpio-it87.o + obj-$(CONFIG_GPIO_IXP4XX) += gpio-ixp4xx.o + obj-$(CONFIG_GPIO_JANZ_TTL) += gpio-janz-ttl.o + obj-$(CONFIG_GPIO_KEMPLD) += gpio-kempld.o ++obj-$(CONFIG_GPIO_LATCH) += gpio-latch.o + obj-$(CONFIG_GPIO_LOGICVC) += gpio-logicvc.o + obj-$(CONFIG_GPIO_LOONGSON1) += gpio-loongson1.o + obj-$(CONFIG_GPIO_LOONGSON) += gpio-loongson.o |