Re: [PATCH 4/5] pinctrl: freescale: add the LX2160A RCW pad-mux driver
From: Linus Walleij
Date: Thu Nov 05 2026 - 03:51:43 EST
On Tue, Nov 3, 2026 at 10:52 AM Vincent Jardin via B4 Relay
<devnull+vjardin.free.fr@xxxxxxxxxx> wrote:
> From: Vincent Jardin <vjardin@xxxxxxx>
>
> The LX2160A muxes its IIC, XSPI, SDHC, UART, IRQ and EVT pads from
> fields of the RCW, read-only in RCWSR12..14 of DCFG and changed at
> runtime through the same fields of the override registers in its DCSR
> view, which read 0 until written.
>
> Since commit 8a1365c7bbc1 ("arm64: dts: lx2160a: add pinmux and i2c
> gpio to support bus recovery") Linux drives them with pinctrl-single on
> the override registers, so its first pin state clears every other field
> of the word: a board whose RCW programs a non-zero pad mux loses those
> pads at the first I2C probe.
>
> Add a driver for the pad mux as a child of the DCFG node: the fields
> of RCWSR12..14 and their encoding.
> Then pin states select them with the generic function and groups
> properties, and every change goes through the RCW override
> of fsl-guts, which reads the status register, writes the override and
> waits for the status register to follow.
>
> Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
Does this have compile-time dependencies on the other patches or
can it be applied separately to the pinctrl tree once the
maintainers are happy?
Yours,
Linus Walleij