]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: nuvoton: ma35d1: fix MFP register offset and pin table
authorJoey Lu <a0987203069@gmail.com>
Mon, 11 May 2026 03:17:49 +0000 (11:17 +0800)
committerLinus Walleij <linusw@kernel.org>
Wed, 27 May 2026 12:17:14 +0000 (14:17 +0200)
commitce4e27247ca643645c6d3043aad1c1c67bf7fdac
treea415f93e37bb9f2f1cd708db8ae773297c459080
parentcecbdf69ba4333ea66e8c227d4c1011b517de82e
pinctrl: nuvoton: ma35d1: fix MFP register offset and pin table

Each GPIO bank has two 32-bit MFP registers: MFPL covering pins 0-7
at the bank base offset, and MFPH covering pins 8-15 at base offset+4.
ma35_pinctrl_parse_groups() computed the register address without
accounting for this split, so any pin with an index >= 8 within its
bank was written to the wrong register.

Also fix the pin descriptor table in pinctrl-ma35d1.c: switch from
sequential to 16-per-bank pin numbering, add missing PC8-PC11 pins
and their mux options, and remove the duplicate PN10-PN15 entries.

Fixes: f805e356313b ("pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver")
Signed-off-by: Joey Lu <a0987203069@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/nuvoton/pinctrl-ma35.c
drivers/pinctrl/nuvoton/pinctrl-ma35d1.c