Re: [PATCH v4 5/6] pinctrl: Add Cortina Systems CS7542 pin multiplexer

From: Linus Walleij

Date: Tue Dec 01 2026 - 08:34:18 EST


Hi Fil,

On Wed, Nov 25, 2026 at 11:34 AM Fil Dunsky via B4 Relay
<devnull+filipp.dunsky.gmail.com@xxxxxxxxxx> wrote:

> From: Fil Dunsky <filipp.dunsky@xxxxxxxxx>
>
> Use the global syscon regmap for the five GPIO mux registers. Each
> bit selects GPIO when set and a peripheral signal when clear. Support
> GPIO on all 160 lines and the six UART pins exercised by the OpenWrt
> port. Do not guess mux settings for the other peripherals.
>
> Use masked regmap updates so independent pins and users of the shared
> block retain their settings. No register changes are made merely by
> probing; only a selected state or a GPIO request changes a pin.
> Register and initialize the controller before enabling its own hogs.
>
> AI assistance: Codex prepared this change from the existing OpenWrt port
> and GPL vendor sources.
>
> Signed-off-by: Fil Dunsky <filipp.dunsky@xxxxxxxxx>

This looks good. I'm just waiting for DT bindings review
before queuing the two pinctrl patches.

If nothing happens for a week or two, poke me about
it and I might apply it as-is.

Yours,
Linus Walleij