Skip to contentSkip to conversation

gpio: ftgpio010: Add support for Faraday Technology FTGPIO010

PATCH Superseded Sergei Antonov 2 participants 2 messages Sep 4, 2022 GPIO

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpio: ftgpio010: Add support for Faraday Technology FTGPIO010

Add Faraday Technology's FTGPIO010 controller driver.

---
v1 -> v2:
Replace setbits_le32() with a simpler function out_le32(). Replace readl() with in_le32() to respect endianness.

 drivers/gpio/Kconfig     |   6 +++
 drivers/gpio/Makefile    |   1 +
 drivers/gpio/ftgpio010.c | 100 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+)
 create mode 100644 drivers/gpio/ftgpio010.c
drivers/gpio/Kconfig +6 -0
index c949f9d2f7cc..2a60478b476a 100644
@@ -605,4 +605,10 @@ config TURRIS_OMNIA_MCU
 	help
 	   Support for GPIOs on MCU connected to Turris Omnia via i2c.
 
+config FTGPIO010
+	bool "Faraday Technology FTGPIO010 driver"
+	depends on DM_GPIO
+	help
+	   Support for GPIOs on Faraday Technology's FTGPIO010 controller.
+
 endif
drivers/gpio/Makefile +1 -0
index 9d718a554e59..eee7908871d8 100644
@@ -75,3 +75,4 @@ obj-$(CONFIG_SL28CPLD_GPIO)	+= sl28cpld-gpio.o
 obj-$(CONFIG_ZYNQMP_GPIO_MODEPIN)	+= zynqmp_gpio_modepin.o
 obj-$(CONFIG_SLG7XL45106_I2C_GPO)	+= gpio_slg7xl45106.o
 obj-$(CONFIG_$(SPL_TPL_)TURRIS_OMNIA_MCU)	+= turris_omnia_mcu.o
+obj-$(CONFIG_FTGPIO010)		+= ftgpio010.o
drivers/gpio/ftgpio010.c new file +100 -0

100 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw
Quoted 8 lines · On Sunday 04 September 2022 13:22:00 Sergei Antonov wrote:

Add Faraday Technology's FTGPIO010 controller driver.

---
v1 -> v2:
Replace setbits_le32() with a simpler function out_le32(). Replace readl() with in_le32() to respect endianness.

Quoted 5 lines
 drivers/gpio/Kconfig     |   6 +++
 drivers/gpio/Makefile    |   1 +
 drivers/gpio/ftgpio010.c | 100 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+)
 create mode 100644 drivers/gpio/ftgpio010.c

Hello! I'm really not maintainer of ftgpio010.c driver, nor of gpio. So please do not send me emails about ftgpio010.c if you do not have really good reason. I'm getting tons of unrelated emails, so please do not spam me otherwise I would not be able to filter out those emails which are important and which I should review as maintainer.