Skip to contentSkip to conversation

riscv: add Siflower RISC-V SoC family Kconfig support

PATCH In review Chuanhong Guo 2 participants 4 messages Jan 20, 2025 – Jan 21, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 riscv: add Siflower RISC-V SoC family Kconfig support

Siflower RISC-V SoCs, including SF21A6826, SF21H8898 and some other upcomping chips, are RISC-V chips with T-Head C908 cores for home routers and gateways. Add a Kconfig entry named ARCH_SIFLOWER for them.
Notably these chips uses ARM PL011 for UART. ARM_AMBA is selected for its driver.

---

Changes since v1:
* removed deprecated SOC_ symbol

 arch/riscv/Kconfig.socs | 6 ++++++
 1 file changed, 6 insertions(+)
arch/riscv/Kconfig.socs +6 -0
index 1916cf7ba450..64a49e7ea03e 100644
@@ -19,6 +19,12 @@ config ARCH_SIFIVE
 	help
 	  This enables support for SiFive SoC platform hardware.
 
+config ARCH_SIFLOWER
+	bool "Siflower RISC-V SoCs"
+	select ARM_AMBA if TTY
+	help
+	  This enables support for Siflower RISC-V SoC platform hardware.
+
 config ARCH_SOPHGO
 	bool "Sophgo SoCs"
 	help
Signature · 1 line
2.48.1
#1 lore raw
Quoted 8 lines · Chuanhong Guo

Siflower RISC-V SoCs, including SF21A6826, SF21H8898 and some other upcomping chips, are RISC-V chips with T-Head C908 cores for home routers and gateways. Add a Kconfig entry named ARCH_SIFLOWER for them.
Notably these chips uses ARM PL011 for UART. ARM_AMBA is selected for its driver.

This needs to be in a series with the user (your dts)

Quoted 29 lines

---

Changes since v1:
* removed deprecated SOC_ symbol

 arch/riscv/Kconfig.socs | 6 ++++++
 1 file changed, 6 insertions(+)
arch/riscv/Kconfig.socs +6 -0
index 1916cf7ba450..64a49e7ea03e 100644
@@ -19,6 +19,12 @@ config ARCH_SIFIVE
 	help
 	  This enables support for SiFive SoC platform hardware.
 
+config ARCH_SIFLOWER
+	bool "Siflower RISC-V SoCs"
+	select ARM_AMBA if TTY
+	help
+	  This enables support for Siflower RISC-V SoC platform hardware.
+
 config ARCH_SOPHGO
 	bool "Sophgo SoCs"
 	help
Signature · 1 line
2.48.1
#2 lore raw

Hello!

Quoted 9 lines · Conor Dooley
Quoted 7 lines · Chuanhong Guo

Siflower RISC-V SoCs, including SF21A6826, SF21H8898 and some other upcomping chips, are RISC-V chips with T-Head C908 cores for home routers and gateways. Add a Kconfig entry named ARCH_SIFLOWER for them.
Notably these chips uses ARM PL011 for UART. ARM_AMBA is selected for its driver.

Quoted 3 lines
Quoted 1 line

This needs to be in a series with the user (your dts)

Could the user be a driver Kconfig instead? When submitting a GPIO driver I was suggested to not depend on architecture symbol and add soc-specific ones to arch/ first. [0]

I still need to polish the clock/reset driver a bit before submitting them. Without a clock driver I can't really submit a dts with meaningful content.

[0] https://lore.kernel.org/linux-gpio/CACRpkdYi_+aQ5L-c4=w9MK-6Uh0e9dX0nnU6LcZcHd90j97q7w@mail.gmail.com/T/#mf2352fb36ed2cb8c6574d9eb0d4c261d9346bf10

Signature · 2 lines
Regards,
Chuanhong Guo
#3 lore raw
Quoted 16 lines · Chuanhong Guo

Hello!

Quoted 9 lines · Conor Dooley
Quoted 7 lines · Chuanhong Guo

Siflower RISC-V SoCs, including SF21A6826, SF21H8898 and some other upcomping chips, are RISC-V chips with T-Head C908 cores for home routers and gateways. Add a Kconfig entry named ARCH_SIFLOWER for them.
Notably these chips uses ARM PL011 for UART. ARM_AMBA is selected for its driver.

Quoted 3 lines
Quoted 1 line

This needs to be in a series with the user (your dts)

Quoted 8 lines

Could the user be a driver Kconfig instead? When submitting a GPIO driver I was suggested to not depend on architecture symbol and add soc-specific ones to arch/ first. [0]

I still need to polish the clock/reset driver a bit before submitting them. Without a clock driver I can't really submit a dts with meaningful content.

[0] https://lore.kernel.org/linux-gpio/CACRpkdYi_+aQ5L-c4=w9MK-6Uh0e9dX0nnU6LcZcHd90j97q7w@mail.gmail.com/T/#mf2352fb36ed2cb8c6574d9eb0d4c261d9346bf10

Send it with the GPIO driver then please.