
Siflower SF21A6826/SF21H8898 are a family of RISC-V SoCs with: * Quad-core T-Head C908 (1.125G for SF21A6826, 1.25G for SF21H8898) * DDR3/DDR4 memory controller * 1 QSGMII 4x1G * 1 SGMII/2500Base-X 2.5G * 1 additional RGMII on SF21H8898 * Network offloading engine for L2 switching and L3 NAT * 2 PCIE Gen2 lanes, operating in either one PCIE Gen2x2 or two PCIE Gen2x1 mode * 1 USB2.0 Link: https://github.com/openwrt/openwrt/pull/17115 Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
From: Chuanhong Guo <gch981213@gmail.com>
|
|
Date: Tue, 20 Aug 2024 08:33:57 +0800
|
|
Subject: [PATCH 07/20] gpio: add support for siflower socs
|
|
|
|
Add support for the GPIO controller on Siflower SoCs.
|
|
This controller is found on Siflower SF19A2890 (MIPS) and SF21A6826
|
|
(RISC-V)
|
|
|
|
Signed-off-by: Qingfang Deng <qingfang.deng@siflower.com.cn>
|
|
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
|
|
---
|
|
drivers/gpio/Kconfig | 8 ++++++++
|
|
drivers/gpio/Makefile | 1 +
|
|
2 files changed, 9 insertions(+)
|
|
|
|
--- a/drivers/gpio/Kconfig
|
|
+++ b/drivers/gpio/Kconfig
|
|
@@ -576,6 +576,14 @@ config GPIO_SIFIVE
|
|
help
|
|
Say yes here to support the GPIO device on SiFive SoCs.
|
|
|
|
+config GPIO_SIFLOWER
|
|
+ tristate "SiFlower GPIO support"
|
|
+ depends on OF_GPIO
|
|
+ depends on MACH_SIFLOWER_MIPS || RISCV || COMPILE_TEST
|
|
+ select GPIOLIB_IRQCHIP
|
|
+ help
|
|
+ GPIO controller driver for SiFlower SoCs.
|
|
+
|
|
config GPIO_SIOX
|
|
tristate "SIOX GPIO support"
|
|
depends on SIOX
|
|
--- a/drivers/gpio/Makefile
|
|
+++ b/drivers/gpio/Makefile
|
|
@@ -143,6 +143,7 @@ obj-$(CONFIG_GPIO_SAMA5D2_PIOBU) += gpio
|
|
obj-$(CONFIG_GPIO_SCH311X) += gpio-sch311x.o
|
|
obj-$(CONFIG_GPIO_SCH) += gpio-sch.o
|
|
obj-$(CONFIG_GPIO_SIFIVE) += gpio-sifive.o
|
|
+obj-$(CONFIG_GPIO_SIFLOWER) += gpio-siflower.o
|
|
obj-$(CONFIG_GPIO_SIM) += gpio-sim.o
|
|
obj-$(CONFIG_GPIO_SIOX) += gpio-siox.o
|
|
obj-$(CONFIG_GPIO_SL28CPLD) += gpio-sl28cpld.o
|