mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890
@ 2026-11-26 19:21 Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs Joseph Telaak via B4 Relay
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Joseph Telaak via B4 Relay @ 2026-11-26 19:21 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Burton
  Cc: Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel, Joseph Telaak,
	Conor Dooley

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@gmail.com
[2] https://lore.kernel.org/r/20261125-sf19a2890-sysm-v6-0-181875c10682@telaak.dev

---
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@telaak.dev

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@telaak.dev

---
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@telaak.dev>



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs
  2026-11-26 19:21 [PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890 Joseph Telaak via B4 Relay
@ 2026-11-26 19:21 ` Joseph Telaak via B4 Relay
  2026-12-01  8:18   ` Thomas Bogendoerfer
  2026-11-26 19:21 ` [PATCH v3 2/5] dt-bindings: mips: Add Siflower SF19A2890 based boards Joseph Telaak via B4 Relay
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Joseph Telaak via B4 Relay @ 2026-11-26 19:21 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Burton
  Cc: Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel, Joseph Telaak

From: Chuanhong Guo <gch981213@gmail.com>

Siflower MIPS SoCs like SF19A2890 use a dual-core MIPS InterAptiv
processor, built-in GMAC, USB, dual-band WiFi and various other
peripherals.

Notably, they use some ARM PLxxx peripherals, and ARM_AMBA is
selected for the drivers.

Most devices on the market with this chip come with 64M or less
DRAM, so a MACH_SIFLOWER_MIPS is created with reduced features
instead of using the generic kernel.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
[Joseph Telaak:
  - rebase on v7.4-rc1 and use the "MIPS:" prefix
  - longer Kconfig help
  - commit message grammar and paragraphs
  - move the kmalloc.h override to a patch of its own]
Signed-off-by: Joseph Telaak <joseph@telaak.dev>
---
 arch/mips/Kconfig | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index ed17c9b1624c..549bc7d13dd9 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -937,6 +937,39 @@ config SIBYTE_BIGSUR
 	select ZONE_DMA32 if 64BIT
 	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
 
+config MACH_SIFLOWER_MIPS
+	bool "Siflower MIPS SoCs"
+	select MIPS_GENERIC
+	select MACH_GENERIC_CORE
+	select ARM_AMBA
+	select BOOT_RAW
+	select CEVT_R4K
+	select CLKSRC_MIPS_GIC
+	select COMMON_CLK
+	select CPU_MIPSR2_IRQ_EI
+	select CPU_MIPSR2_IRQ_VI
+	select CSRC_R4K
+	select DMA_NONCOHERENT
+	select IRQ_MIPS_CPU
+	select MIPS_CPU_SCACHE
+	select MIPS_GIC
+	select MIPS_L1_CACHE_SHIFT_5
+	select NO_EXCEPT_FILL
+	select SMP_UP if SMP
+	select SYS_HAS_CPU_MIPS32_R2
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select SYS_SUPPORTS_MIPS16
+	select SYS_SUPPORTS_MIPS_CPS
+	select SYS_SUPPORTS_MULTITHREADING
+	select USE_OF
+	help
+	  Select this to build a kernel which supports SoCs from Siflower
+	  with MIPS InterAptiv cores, like Siflower SF19A2890. These have
+	  ARM PrimeCell peripherals, so ARM_AMBA is selected. Most boards
+	  with them have 64M of DRAM or less, so this kernel leaves out the
+	  generic kernel's support for other boards.
+
 config SNI_RM
 	bool "SNI RM200/300/400"
 	select ARC_MEMORY

-- 
Git-155)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3 2/5] dt-bindings: mips: Add Siflower SF19A2890 based boards
  2026-11-26 19:21 [PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890 Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs Joseph Telaak via B4 Relay
@ 2026-11-26 19:21 ` Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 3/5] MIPS: siflower: Override the kmalloc alignment Joseph Telaak via B4 Relay
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Joseph Telaak via B4 Relay @ 2026-11-26 19:21 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Burton
  Cc: Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel, Conor Dooley,
	Joseph Telaak

From: Joseph Telaak <joseph@telaak.dev>

The SF19A2890 is a MIPS interAptiv SoC from Siflower (two cores, two
VPEs each) for home routers. Document its compatible and the first
board using it, the GL.iNet GL-SFT1200 ("Opal") travel router.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Joseph Telaak <joseph@telaak.dev>
---
 .../devicetree/bindings/mips/siflower.yaml         | 26 ++++++++++++++++++++++
 MAINTAINERS                                        |  7 ++++++
 2 files changed, 33 insertions(+)

diff --git a/Documentation/devicetree/bindings/mips/siflower.yaml b/Documentation/devicetree/bindings/mips/siflower.yaml
new file mode 100644
index 000000000000..33110f742cb7
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/siflower.yaml
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mips/siflower.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Siflower MIPS SoCs
+
+maintainers:
+  - Joseph Telaak <joseph@telaak.dev>
+
+properties:
+  $nodename:
+    const: '/'
+
+  compatible:
+    oneOf:
+      - description: Boards with the Siflower SF19A2890 SoC
+        items:
+          - enum:
+              - glinet,gl-sft1200
+          - const: siflower,sf19a2890
+
+additionalProperties: true
+
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 93abbb315065..7fb18c2d6959 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25698,6 +25698,13 @@ N:	sifive
 K:	fu[57]40
 K:	[^@]sifive
 
+SIFLOWER SF19A2890 SOC SUPPORT
+M:	Joseph Telaak <joseph@telaak.dev>
+L:	linux-mips@vger.kernel.org
+S:	Maintained
+F:	Documentation/devicetree/bindings/mips/siflower.yaml
+N:	sf19a2890
+
 SILEAD TOUCHSCREEN DRIVER
 M:	Hans de Goede <hansg@kernel.org>
 L:	linux-input@vger.kernel.org

-- 
Git-155)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3 3/5] MIPS: siflower: Override the kmalloc alignment
  2026-11-26 19:21 [PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890 Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 2/5] dt-bindings: mips: Add Siflower SF19A2890 based boards Joseph Telaak via B4 Relay
@ 2026-11-26 19:21 ` Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 4/5] MIPS: dts: Add Siflower SF19A2890 and GL.iNet GL-SFT1200 Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 5/5] MIPS: configs: Add sf19a2890_defconfig Joseph Telaak via B4 Relay
  4 siblings, 0 replies; 8+ messages in thread
From: Joseph Telaak via B4 Relay @ 2026-11-26 19:21 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Burton
  Cc: Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel, Joseph Telaak

From: Chuanhong Guo <gch981213@gmail.com>

Most devices on the market with Siflower MIPS SoCs come with 64M or
less DRAM. Their InterAptiv cores have 32-byte cache lines, so add a
kmalloc.h that sets ARCH_DMA_MINALIGN to 32 instead of the generic 128,
to conserve memory.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
[Joseph Telaak: split out of "MIPS: Add support for Siflower MIPS SoCs"]
Signed-off-by: Joseph Telaak <joseph@telaak.dev>
---
 MAINTAINERS                                   | 1 +
 arch/mips/generic/Platform                    | 1 +
 arch/mips/include/asm/mach-siflower/kmalloc.h | 9 +++++++++
 3 files changed, 11 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 7fb18c2d6959..3aa80a8dd785 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25703,6 +25703,7 @@ M:	Joseph Telaak <joseph@telaak.dev>
 L:	linux-mips@vger.kernel.org
 S:	Maintained
 F:	Documentation/devicetree/bindings/mips/siflower.yaml
+F:	arch/mips/include/asm/mach-siflower/
 N:	sf19a2890
 
 SILEAD TOUCHSCREEN DRIVER
diff --git a/arch/mips/generic/Platform b/arch/mips/generic/Platform
index 0c03623f3897..c09a8484db9b 100644
--- a/arch/mips/generic/Platform
+++ b/arch/mips/generic/Platform
@@ -10,6 +10,7 @@
 
 # Note: order matters, keep the asm/mach-generic include last.
 cflags-$(CONFIG_MACH_INGENIC_SOC)	+= -I$(srctree)/arch/mips/include/asm/mach-ingenic
+cflags-$(CONFIG_MACH_SIFLOWER_MIPS)	+= -I$(srctree)/arch/mips/include/asm/mach-siflower
 cflags-$(CONFIG_MIPS_GENERIC)	+= -I$(srctree)/arch/mips/include/asm/mach-generic
 
 load-$(CONFIG_MIPS_GENERIC)	+= 0xffffffff80100000
diff --git a/arch/mips/include/asm/mach-siflower/kmalloc.h b/arch/mips/include/asm/mach-siflower/kmalloc.h
new file mode 100644
index 000000000000..0887ae3575d7
--- /dev/null
+++ b/arch/mips/include/asm/mach-siflower/kmalloc.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef __ASM_MACH_SIFLOWER_KMALLOC_H
+#define __ASM_MACH_SIFLOWER_KMALLOC_H
+
+#ifdef CONFIG_DMA_NONCOHERENT
+#define ARCH_DMA_MINALIGN	32
+#endif
+
+#endif /* __ASM_MACH_SIFLOWER_KMALLOC_H */

-- 
Git-155)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3 4/5] MIPS: dts: Add Siflower SF19A2890 and GL.iNet GL-SFT1200
  2026-11-26 19:21 [PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890 Joseph Telaak via B4 Relay
                   ` (2 preceding siblings ...)
  2026-11-26 19:21 ` [PATCH v3 3/5] MIPS: siflower: Override the kmalloc alignment Joseph Telaak via B4 Relay
@ 2026-11-26 19:21 ` Joseph Telaak via B4 Relay
  2026-11-26 19:21 ` [PATCH v3 5/5] MIPS: configs: Add sf19a2890_defconfig Joseph Telaak via B4 Relay
  4 siblings, 0 replies; 8+ messages in thread
From: Joseph Telaak via B4 Relay @ 2026-11-26 19:21 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Burton
  Cc: Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel, Joseph Telaak

From: Joseph Telaak <joseph@telaak.dev>

Add a device tree for the Siflower SF19A2890 with its four interAptiv
CPUs (two cores with two VPEs each), the MIPS GIC and its timer, and
the PL011 UART that serves as the console, and one for the GL.iNet
GL-SFT1200 travel router built on it.

The SoC's clock controller has no driver yet, so fixed clocks stand
in for the rates the bootloader programs: 800 MHz for the CPU (and so
for the GIC timer), 100 MHz for the peripheral bus and 125 MHz for
the UART.

Signed-off-by: Joseph Telaak <joseph@telaak.dev>
---
 MAINTAINERS                                        |  1 +
 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 ++++++++++++++++++++++
 5 files changed, 128 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 3aa80a8dd785..23ad08c7d8d1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25703,6 +25703,7 @@ M:	Joseph Telaak <joseph@telaak.dev>
 L:	linux-mips@vger.kernel.org
 S:	Maintained
 F:	Documentation/devicetree/bindings/mips/siflower.yaml
+F:	arch/mips/boot/dts/siflower/
 F:	arch/mips/include/asm/mach-siflower/
 N:	sf19a2890
 
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
index 36c5e4c6e640..d33cf7f61aa7 100644
--- a/arch/mips/boot/dts/Makefile
+++ b/arch/mips/boot/dts/Makefile
@@ -14,4 +14,5 @@ subdir-y	+= pic32
 subdir-y	+= qca
 subdir-y	+= ralink
 subdir-y	+= realtek
+subdir-y	+= siflower
 subdir-y	+= xilfpga
diff --git a/arch/mips/boot/dts/siflower/Makefile b/arch/mips/boot/dts/siflower/Makefile
new file mode 100644
index 000000000000..b5986850aaa0
--- /dev/null
+++ b/arch/mips/boot/dts/siflower/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+dtb-$(CONFIG_MACH_SIFLOWER_MIPS)	+= sf19a2890-glinet-gl-sft1200.dtb
diff --git a/arch/mips/boot/dts/siflower/sf19a2890-glinet-gl-sft1200.dts b/arch/mips/boot/dts/siflower/sf19a2890-glinet-gl-sft1200.dts
new file mode 100644
index 000000000000..13e6a0c8be27
--- /dev/null
+++ b/arch/mips/boot/dts/siflower/sf19a2890-glinet-gl-sft1200.dts
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+/dts-v1/;
+
+#include "sf19a2890.dtsi"
+
+/ {
+	model = "GL.iNet GL-SFT1200";
+	compatible = "glinet,gl-sft1200", "siflower,sf19a2890";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x8000000>;
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
diff --git a/arch/mips/boot/dts/siflower/sf19a2890.dtsi b/arch/mips/boot/dts/siflower/sf19a2890.dtsi
new file mode 100644
index 000000000000..1c342cbaa8ba
--- /dev/null
+++ b/arch/mips/boot/dts/siflower/sf19a2890.dtsi
@@ -0,0 +1,97 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/interrupt-controller/mips-gic.h>
+
+/ {
+	compatible = "siflower,sf19a2890";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	/*
+	 * The bootloader sets up these clocks. They stand in for the system
+	 * clock controller until it has a driver.
+	 */
+	pbus_clk: clock-100000000 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <100000000>;
+	};
+
+	uart_clk: clock-125000000 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <125000000>;
+	};
+
+	cpu_clk: clock-800000000 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <800000000>;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu@0 {
+			device_type = "cpu";
+			compatible = "mti,interaptiv";
+			reg = <0>;
+			clocks = <&cpu_clk>;
+		};
+
+		cpu@1 {
+			device_type = "cpu";
+			compatible = "mti,interaptiv";
+			reg = <1>;
+			clocks = <&cpu_clk>;
+		};
+
+		cpu@2 {
+			device_type = "cpu";
+			compatible = "mti,interaptiv";
+			reg = <2>;
+			clocks = <&cpu_clk>;
+		};
+
+		cpu@3 {
+			device_type = "cpu";
+			compatible = "mti,interaptiv";
+			reg = <3>;
+			clocks = <&cpu_clk>;
+		};
+	};
+
+	soc {
+		compatible = "simple-bus";
+		ranges;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		interrupt-parent = <&gic>;
+
+		uart0: serial@18300000 {
+			compatible = "arm,pl011", "arm,primecell";
+			reg = <0x18300000 0x1000>;
+			interrupts = <GIC_SHARED 226 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&uart_clk>, <&pbus_clk>;
+			clock-names = "uartclk", "apb_pclk";
+
+			status = "disabled";
+		};
+
+		gic: interrupt-controller@1bdc0000 {
+			compatible = "mti,gic";
+			reg = <0x1bdc0000 0x20000>;
+			interrupt-controller;
+			#interrupt-cells = <3>;
+			mti,reserved-ipi-vectors = <0 8>;
+
+			timer {
+				compatible = "mti,gic-timer";
+				interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
+				clocks = <&cpu_clk>;
+			};
+		};
+	};
+};

-- 
Git-155)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3 5/5] MIPS: configs: Add sf19a2890_defconfig
  2026-11-26 19:21 [PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890 Joseph Telaak via B4 Relay
                   ` (3 preceding siblings ...)
  2026-11-26 19:21 ` [PATCH v3 4/5] MIPS: dts: Add Siflower SF19A2890 and GL.iNet GL-SFT1200 Joseph Telaak via B4 Relay
@ 2026-11-26 19:21 ` Joseph Telaak via B4 Relay
  4 siblings, 0 replies; 8+ messages in thread
From: Joseph Telaak via B4 Relay @ 2026-11-26 19:21 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Burton
  Cc: Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel, Joseph Telaak

From: Joseph Telaak <joseph@telaak.dev>

Add a defconfig for boards with the Siflower SF19A2890. It boots with
the device tree appended to the kernel, as the GL.iNet GL-SFT1200's
U-Boot passes none.

Signed-off-by: Joseph Telaak <joseph@telaak.dev>
---
 MAINTAINERS                           |  1 +
 arch/mips/configs/sf19a2890_defconfig | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 23ad08c7d8d1..4c8daaae5501 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25704,6 +25704,7 @@ L:	linux-mips@vger.kernel.org
 S:	Maintained
 F:	Documentation/devicetree/bindings/mips/siflower.yaml
 F:	arch/mips/boot/dts/siflower/
+F:	arch/mips/configs/sf19a2890_defconfig
 F:	arch/mips/include/asm/mach-siflower/
 N:	sf19a2890
 
diff --git a/arch/mips/configs/sf19a2890_defconfig b/arch/mips/configs/sf19a2890_defconfig
new file mode 100644
index 000000000000..ec0992ac6340
--- /dev/null
+++ b/arch/mips/configs/sf19a2890_defconfig
@@ -0,0 +1,15 @@
+CONFIG_SYSVIPC=y
+CONFIG_NO_HZ_IDLE=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_MACH_SIFLOWER_MIPS=y
+CONFIG_MIPS_CPS=y
+CONFIG_NR_CPUS=4
+CONFIG_MIPS_RAW_APPENDED_DTB=y
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+CONFIG_TMPFS=y
+CONFIG_PRINTK_TIME=y

-- 
Git-155)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs
  2026-11-26 19:21 ` [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs Joseph Telaak via B4 Relay
@ 2026-12-01  8:18   ` Thomas Bogendoerfer
  2026-12-01  9:27     ` Joseph Telaak
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Bogendoerfer @ 2026-12-01  8:18 UTC (permalink / raw)
  To: joseph
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Burton,
	Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel

On Thu, Nov 26, 2026 at 02:21:29PM -0500, Joseph Telaak via B4 Relay wrote:
> From: Chuanhong Guo <gch981213@gmail.com>
> 
> Siflower MIPS SoCs like SF19A2890 use a dual-core MIPS InterAptiv
> processor, built-in GMAC, USB, dual-band WiFi and various other
> peripherals.
> 
> Notably, they use some ARM PLxxx peripherals, and ARM_AMBA is
> selected for the drivers.
> 
> Most devices on the market with this chip come with 64M or less
> DRAM, so a MACH_SIFLOWER_MIPS is created with reduced features
> instead of using the generic kernel.
> 
> Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
> [Joseph Telaak:
>   - rebase on v7.4-rc1 and use the "MIPS:" prefix
>   - longer Kconfig help
>   - commit message grammar and paragraphs
>   - move the kmalloc.h override to a patch of its own]
> Signed-off-by: Joseph Telaak <joseph@telaak.dev>
> ---
>  arch/mips/Kconfig | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)

this looks like the same patch as in your clk patch set. It would be
better to have it in just one of it... So how is your plan to get
this merged ?

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs
  2026-12-01  8:18   ` Thomas Bogendoerfer
@ 2026-12-01  9:27     ` Joseph Telaak
  0 siblings, 0 replies; 8+ messages in thread
From: Joseph Telaak @ 2026-12-01  9:27 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Burton,
	Jiaxun Yang, Chuanhong Guo, Stephen Boyd, Brian Masney,
	linux-mips, devicetree, linux-kernel

On Tue, Dec 01, 2026 at 09:18:22AM +0100, Thomas Bogendoerfer wrote:
> this looks like the same patch as in your clk patch set. It would be
> better to have it in just one of it... So how is your plan to get
> this merged ?

Brian suggested on the clk series [1] carrying MACH_SIFLOWER_MIPS as a
patch of its own, so that whichever tree takes it first can put it on
an immutable branch for the other. That is why it is in both.

I'd suggest it goes through the MIPS tree with the rest of this series,
which does not depend on the clk series, and I'll drop it from the clk
series. If the clk drivers are ready in the same cycle, an immutable
branch with just this patch would let the clk tree pull it.

[1] https://lore.kernel.org/all/179545199778.209212.13754058672210050271.b4-review@b4/

Thanks,
Joseph

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-01  9:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 19:21 [PATCH v3 0/5] MIPS: Add support for the Siflower SF19A2890 Joseph Telaak via B4 Relay
2026-11-26 19:21 ` [PATCH v3 1/5] MIPS: Add support for Siflower MIPS SoCs Joseph Telaak via B4 Relay
2026-12-01  8:18   ` Thomas Bogendoerfer
2026-12-01  9:27     ` Joseph Telaak
2026-11-26 19:21 ` [PATCH v3 2/5] dt-bindings: mips: Add Siflower SF19A2890 based boards Joseph Telaak via B4 Relay
2026-11-26 19:21 ` [PATCH v3 3/5] MIPS: siflower: Override the kmalloc alignment Joseph Telaak via B4 Relay
2026-11-26 19:21 ` [PATCH v3 4/5] MIPS: dts: Add Siflower SF19A2890 and GL.iNet GL-SFT1200 Joseph Telaak via B4 Relay
2026-11-26 19:21 ` [PATCH v3 5/5] MIPS: configs: Add sf19a2890_defconfig Joseph Telaak via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®