Skip to contentSkip to conversation

gpio: ftgpio010: Add support for Faraday Technology FTGPIO010

PATCH In review Sergei Antonov 3 participants 4 messages Sep 12, 2022 – Oct 7, 2022 GPIO

lore
Share & tools
lore
#0 lore raw

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

Add Faraday Technology's FTGPIO010 controller driver.

---
v2 -> v3:
Implement .get_function to make "gpio status" command work.

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 | 111 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 118 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 +111 -0

111 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw
Quoted 11 lines · Sergei Antonov

Add Faraday Technology's FTGPIO010 controller driver.

---
v2 -> v3:
Implement .get_function to make "gpio status" command work.

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

+andre.przywara
+pali
+sr
+samuel

Hello! There has been no feedback to this patch. Anyone? I think it is ready to be committed.

#2 lore raw
Quoted 18 lines · On Friday 07 October 2022 12:27:43 Sergei Antonov wrote:
Quoted 11 lines · Sergei Antonov

Add Faraday Technology's FTGPIO010 controller driver.

---
v2 -> v3:
Implement .get_function to make "gpio status" command work.

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

(quoted diff) +4 -0
+andre.przywara
+pali
+sr
+samuel
Quoted 2 lines

Hello! There has been no feedback to this patch. Anyone? I think it is ready to be committed.

I have already sent feedback for ftgpio010.c:
https://lore.kernel.org/u-boot/20220904102653.3vconq3kdegki34s@pali/t/#u

How many times should I repeat it? 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.