[PATCH v2 0/2] pinctrl: Add the Siflower SF19A2890 pin controller

From: Joseph Telaak via B4 Relay

Date: Mon Nov 23 2026 - 23:42:32 EST


This series adds a binding and a driver for the pin controller of the
Siflower SF19A2890, a MIPS SoC for home routers. Each of its 49 pins has
a register pair of its own: one for bias, input enable, Schmitt trigger
and drive strength, one for the mux.

The driver is based on Chuanhong Guo's OpenWrt driver, which exposed the
four mux modes as functions "func0" to "func3". Here the functions are
named after the peripheral they connect, and each lists the pins it can
use with the mode that selects it there. The tables cover the functions
that the vendor firmware and the OpenWrt port use; the other modes are
not documented.

checkpatch warns about -ENOTSUPP twice. That is what pinconf expects
from pin_config_get() and pin_config_set() for a parameter the hardware
lacks.

The SoC support itself (MACH_SIFLOWER_MIPS) goes through the MIPS tree;
until then the driver builds with COMPILE_TEST.

Tested on a GL.iNet GL-SFT1200: pinmux-pins gives every pin its owner:
SPI, UART0, I2C0, RGMII and MDIO, and the GPIOs for the switch reset, the
mode switch, the SPI chip select and the reset button. The console, the
SPI NAND, the ET6326 on I2C and Ethernet work with the mux this driver
sets. For all 49 pins, the bias, input enable, Schmitt trigger and drive
strength in debugfs pinconf-pins match the pin configuration registers
read with devmem; this board uses 6 and 27 mA, the two ends of the drive
strength field.

---
Changes in v2:
- Order the example's child nodes and properties by name, for
dt-check-style --mode=strict.
- Add a MAINTAINERS entry for the driver and its binding.
- Include <linux/device-id/of.h> instead of <linux/mod_devicetable.h>
(Uwe).
- Prefix the register macros with SF19A2890_: REG_PC clashed with an SH
ptrace header (kernel test robot). Convert the drive strength in one
helper, to keep the longer names within 80 columns.
- Reference pincfg-node.yaml and pinmux-node.yaml the same way, both
under allOf (Conor).
- Keep the named pins and the per-pin groups: the generic
dt_node_to_map helpers take pin numbers (Conor).
- Link to v1: https://patch.msgid.link/20261104-sf19a2890-pinctrl-v1-0-4bb83afdbacf@xxxxxxxxxx

---
Joseph Telaak (2):
dt-bindings: pinctrl: Add Siflower SF19A2890 pin controller
pinctrl: Add Siflower SF19A2890 pin controller driver

.../pinctrl/siflower,sf19a2890-pinctrl.yaml | 113 +++++
MAINTAINERS | 7 +
drivers/pinctrl/Kconfig | 14 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl-sf19a2890.c | 549 +++++++++++++++++++++
5 files changed, 684 insertions(+)
---
base-commit: f33a24cc012d34f25bb9942681bd478a1757b806
change-id: 20261102-sf19a2890-pinctrl-c0ad967de156

Best regards,
--
Joseph Telaak <joseph@xxxxxxxxxx>