[PATCH v2 4/5] pinctrl: Add Cortina Systems CS7542 pin multiplexer
Linus Walleij
linusw at kernel.org
Tue Nov 24 01:56:26 PST 2026
On Mon, Nov 23, 2026 at 9:27 PM Fil Dunsky via B4 Relay
<devnull+filipp.dunsky.gmail.com at kernel.org> wrote:
> From: Fil Dunsky <filipp.dunsky at gmail.com>
>
> 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 at gmail.com>
This looks good to me:
Reviewed-by: Linus Walleij <linusw at kernel.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list