]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dt-bindings: pinctrl: sunxi: Allow pinmux sub-pattern with leading numbers
authorChen-Yu Tsai <wens@kernel.org>
Thu, 25 Dec 2025 10:36:13 +0000 (18:36 +0800)
committerLinus Walleij <linusw@kernel.org>
Wed, 7 Jan 2026 14:12:39 +0000 (15:12 +0100)
commit34f2866b3548608a636a4ab37ede8749f50782f0
treeb565dc75f822bf22d6609cbab9164eea9b6a37dc
parent3f20bdf7151834547a85231c28538f49601481ee
dt-bindings: pinctrl: sunxi: Allow pinmux sub-pattern with leading numbers

The pattern for pinmux node names is typically the peripheral name and
instance number, followed by pingroup name if there are multiple options.

Normally the instance number is directly appended to the peripheral
name, like "mmc0" or "i2c2". But if the peripheral name ends with a
number, then it becomes confusing.

On the A20, the PS2 interface controller has two instances. This
produces pinmux node names like "ps2-0-pins". Make the sub-pattern
"[0-9]-" valid to fit this pattern. Avoid having to confusing "ps20-pins"
name.

Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml