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

From: Linus Walleij

Date: Thu Dec 03 2026 - 02:54:30 EST


On Tue, Nov 24, 2026 at 5:42 AM Joseph Telaak via B4 Relay
<devnull+joseph.telaak.dev@xxxxxxxxxx> wrote:

> 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.

The driver looks good and compact, the bindings are standard compliant,
Sashiko is just saying nonsense I don't care about.

Patch applied so it gets some rotation in linux-next, if there is some problem
with it we can always pull it out.

Yours,
Linus Walleij