[PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890
From: Joseph Telaak via B4 Relay
Date: Thu Nov 26 2026 - 14:21:57 EST
This series adds basic support for the Siflower SF19A2890, a MIPS
interAptiv SoC (two cores, two VPEs each) for home routers, and for the
GL.iNet GL-SFT1200 ("Opal") travel router built on it. It boots to a
shell on the PL011 console with all four CPUs up.
Patches 1 and 3 are Chuanhong Guo's patch from January 2025 [1], rebased
and split in two: patch 1 adds MACH_SIFLOWER_MIPS, patch 3 the kmalloc.h
override. Jiaxun asked then why it does not use MIPS_GENERIC. It does:
MACH_SIFLOWER_MIPS selects MIPS_GENERIC and MACH_GENERIC_CORE and boots
through arch/mips/generic, the way MACH_REALTEK_RTL and MACH_INGENIC_SOC
do. What it avoids is MIPS_GENERIC_KERNEL, which selects
MIPS_L1_CACHE_SHIFT_7 and takes ARCH_DMA_MINALIGN 128 from
mach-generic/kmalloc.h, so that with DMA_NONCOHERENT no kmalloc cache
below 128 bytes exists. The interAptiv's L1 and L2 lines are 32 bytes
(the boot log reports both).
On a GL-SFT1200 (128 MB) booted to an idle initramfs, 62 s after boot:
MemFree Slab kmalloc-128 objs
this series (MACH_SIFLOWER_MIPS) 107444 4832 1497
MIPS_GENERIC_KERNEL 106442 5252 5538
MIPS_GENERIC_KERNEL, DMA_MINALIGN 32 107660 4732 1497
(kB, means of two boots.) So the whole difference, about 1 MB, comes
from the 128-byte kmalloc alignment; the larger L1_CACHE_SHIFT costs
nothing measurable. If the generic kernel sized its kmalloc alignment
from the probed cache lines at run time, as arm64 does, this board could
use MIPS_GENERIC_KERNEL, and I can send that change in place of a
platform of its own if you prefer.
The SoC's clock controller has a driver of its own, sent to the clk
tree [2]. Its drivers depend on MACH_SIFLOWER_MIPS, so the clk series
carries patch 1 of this series as its own patch 1, unchanged, and
whichever of the MIPS and clk trees takes it first can put it on an
immutable branch for the other. Thomas, would you ack it there, or
take it and provide the branch?
Until that driver is merged, the dtsi describes the clock rates the
bootloader programs with fixed clocks; a later patch replaces them. The
pin controller, GPIO, USB PHY, DWC2 and GMAC drivers go to their own
trees.
Patch 2 adds a MAINTAINERS entry for the SoC. Its "N: sf19a2890" also
matches the SoC's drivers in other trees, which add entries of their
own.
Tested on a GL-SFT1200, booted from U-Boot over TFTP: the initramfs
shell on ttyAMA0; four CPUs, with CPUs 1-3 taken offline and back
online; the GIC timer within 0.06 s of a reference clock over 298 s; and
the UART divisors U-Boot programs (IBRD 0x43, FBRD 0x34), which confirm
the 125 MHz UART clock in the device tree.
[1] https://lore.kernel.org/r/20250120015254.124447-1-gch981213@xxxxxxxxx
[2] https://lore.kernel.org/r/20261125-sf19a2890-sysm-v6-0-181875c10682@xxxxxxxxxx
---
Changes in v3:
- Split Chuanhong's patch: MACH_SIFLOWER_MIPS first, as the clk series
carries it, and the kmalloc.h override in patch 3 (Brian, on the clk
series).
- Lengthen the MACH_SIFLOWER_MIPS help.
- Put the platform patch first and the bindings and MAINTAINERS entry
second; the kmalloc.h patch adds its F: line.
- Collect Conor's Acked-by on the bindings.
- Link to v2: https://patch.msgid.link/20261111-sf19a2890-mips-v2-0-36730fa4f5a6@xxxxxxxxxx
Changes in v2:
- Write my note on Chuanhong's patch as a list.
- Drop drivers/gpio/gpio-siflower.c from the MAINTAINERS entry; the GPIO
series now adds an entry of its own (Conor).
- Use the current SPDX identifiers in the new files.
- Order the dtsi's nodes and properties as dt-check-style --mode=strict
expects, with a blank line before status.
- Link to v1: https://patch.msgid.link/20261104-sf19a2890-mips-v1-0-eae80820af68@xxxxxxxxxx
---
Chuanhong Guo (2):
MIPS: Add support for Siflower MIPS SoCs
MIPS: siflower: Override the kmalloc alignment
Joseph Telaak (3):
dt-bindings: mips: Add Siflower SF19A2890 based boards
MIPS: dts: Add Siflower SF19A2890 and GL.iNet GL-SFT1200
MIPS: configs: Add sf19a2890_defconfig
.../devicetree/bindings/mips/siflower.yaml | 26 ++++++
MAINTAINERS | 10 +++
arch/mips/Kconfig | 33 ++++++++
arch/mips/boot/dts/Makefile | 1 +
arch/mips/boot/dts/siflower/Makefile | 2 +
.../dts/siflower/sf19a2890-glinet-gl-sft1200.dts | 27 ++++++
arch/mips/boot/dts/siflower/sf19a2890.dtsi | 97 ++++++++++++++++++++++
arch/mips/configs/sf19a2890_defconfig | 15 ++++
arch/mips/generic/Platform | 1 +
arch/mips/include/asm/mach-siflower/kmalloc.h | 9 ++
10 files changed, 221 insertions(+)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261102-sf19a2890-mips-ab72d99af797
Best regards,
--
Joseph Telaak <joseph@xxxxxxxxxx>