Re: [RFC] pinctrl: ingenic: impossible MACH_* guards can drop OF match data

From: H. Nikolaus Schaller

Date: Thu Dec 03 2026 - 01:57:58 EST


Hi Pengpeng,

> Am 03.12.2026 um 05:01 schrieb Pengpeng Hou <pengpeng@xxxxxxxxxxx>:
>
> Hi Nikolaus,
>
> Comparing the OF match data in pinctrl-ingenic.c with the MACH entries
> in arch/mips/ingenic/Kconfig, the names I can't find in that Kconfig
> are JZ4730, JZ4750, JZ4755, JZ4760, JZ4775, X1500, X1600, X2000 and
> X2100 (all with the MACH_ prefix).
>
> That is a list of missing upstream configuration entries, not a list
> of unsupported chips. In particular your Letux configuration is a
> counterexample to calling JZ4730, X1600 or X2000 impossible.

As a distribution kernel it is adding the missing entries to upstream Kconfig.

> Removing
> the guards would also take away the size choice you described. I'm
> not proposing that change.

Yes, not all configs that the driver assumes are selectable in upstream kernels.

Some of the missing configs (x1600, x2000, x2600, jz4730) are (will be) fixed by:

https://lore.kernel.org/all/887d9b55de3804fa798781ca03b99402040cf833.camel@xxxxxxxxxxxxxxx/
https://lore.kernel.org/all/a8706b933ed64eee14bcceaccda292a7e2ddf0a2.camel@xxxxxxxxxxxxxxx/

Several entries in pinctrl were added years ago by multiple authors and likely some
patch to arch/mips/ingenic/Kconfig was forgotten back then.

I'd suggest to wait until the new pinctrl series is merged and then you can add
the missing MACH_ definitions to Kconfig.

As a side-note: I think the entries for

.compatible = "ingenic,x1000e-pinctrl",
.compatible = "ingenic,x2000e-pinctrl",

could be removed since the "e" suffix denotes a different RAM size but not to add
different pinmux controller and they share the same chip_info anyways.

BR and thanks,
Nikolaus