Skip to contentSkip to conversation

gpio: Add MT7621 GPIO support

PATCH New Stefan Roese 2 participants 3 messages Oct 8, 2018 – Oct 28, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpio: Add MT7621 GPIO support

This patch adds GPIO support for the Mediatek MT7621 SoC, tested on MT7688 (Gardena smart-gateway). The driver is loosly based on the Linux kernel version.

Cc Daniel Schwierzeck <[email protected]>

---
v2:
- Dropped IO wrappers completely
- Dropped gpio_bank_name()
- Used dev_read_first_subnode() and dev_read_next_subnode() to be compatible with DM live tree

 drivers/gpio/Kconfig       |   8 ++
 drivers/gpio/Makefile      |   1 +
 drivers/gpio/mt7621_gpio.c | 183 +++++++++++++++++++++++++++++++++++++
 3 files changed, 192 insertions(+)
 create mode 100644 drivers/gpio/mt7621_gpio.c
drivers/gpio/Kconfig +8 -0
index 5cd8b34400..35344e57c6 100644
@@ -314,4 +314,12 @@ config MPC8XXX_GPIO
 	  Aside from the standard functions of input/output mode, and output
 	  value setting, the open-drain feature, which can configure individual
 	  GPIOs to work as open-drain outputs, is supported.
+
+config MT7621_GPIO
+	bool "MediaTek MT7621 GPIO driver"
+	depends on DM_GPIO && ARCH_MT7620
+	default y
+	help
+	  Say yes here to support MediaTek MT7621 compatible GPIOs.
+
 endmenu
drivers/gpio/Makefile +1 -0
index f186120684..7ed9a4ec42 100644
@@ -58,3 +58,4 @@ obj-$(CONFIG_MVEBU_GPIO)	+= mvebu_gpio.o
 obj-$(CONFIG_MSM_GPIO)		+= msm_gpio.o
 obj-$(CONFIG_$(SPL_)PCF8575_GPIO)	+= pcf8575_gpio.o
 obj-$(CONFIG_PM8916_GPIO)	+= pm8916_gpio.o
+obj-$(CONFIG_MT7621_GPIO)	+= mt7621_gpio.o
drivers/gpio/mt7621_gpio.c new file +183 -0

183 lines not on this page · raw message

Signature · 1 line
2.19.1
#1 lore raw

PATCH v2 1/1 gpio: Add MT7621 GPIO support

Quoted 13 lines · Stefan Roese

This patch adds GPIO support for the Mediatek MT7621 SoC, tested on MT7688 (Gardena smart-gateway). The driver is loosly based on the Linux kernel version.

Cc Daniel Schwierzeck <[email protected]>

---
v2:
- Dropped IO wrappers completely
- Dropped gpio_bank_name()
- Used dev_read_first_subnode() and dev_read_next_subnode() to be compatible with DM live tree

Quoted 6 lines
 drivers/gpio/Kconfig       |   8 ++
 drivers/gpio/Makefile      |   1 +
 drivers/gpio/mt7621_gpio.c | 183 +++++++++++++++++++++++++++++++++++++
 3 files changed, 192 insertions(+)
 create mode 100644 drivers/gpio/mt7621_gpio.c
Signature · 9 lines
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181014/f2ee23b5/attachment.sig>
#2 lore raw

PATCH v2 1/1 gpio: Add MT7621 GPIO support

In reply to Stefan Roese

Am 08.10.18 um 12:38 schrieb Stefan Roese:

Quoted 13 lines

This patch adds GPIO support for the Mediatek MT7621 SoC, tested on MT7688 (Gardena smart-gateway). The driver is loosly based on the Linux kernel version.

Cc Daniel Schwierzeck <[email protected]>

---
v2:
- Dropped IO wrappers completely
- Dropped gpio_bank_name()
- Used dev_read_first_subnode() and dev_read_next_subnode() to be compatible with DM live tree

Quoted 5 lines
 drivers/gpio/Kconfig       |   8 ++
 drivers/gpio/Makefile      |   1 +
 drivers/gpio/mt7621_gpio.c | 183 +++++++++++++++++++++++++++++++++++++
 3 files changed, 192 insertions(+)
 create mode 100644 drivers/gpio/mt7621_gpio.c

applied to u-boot-mips/next, thanks.

Signature · 9 lines
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181028/41750adb/attachment.sig>