[PATCH v2 0/2] pinctrl: starfive: jh7100: validate pins/pinmux groups

From: Zhiqi Zhang

Date: Fri Dec 04 2026 - 07:46:44 EST


The JH7100 binding documents each pin group as using exactly one of
"pins" or "pinmux". This series encodes that rule in the schema and
keeps a small driver-side validation helper so unvalidated DTs do not get
silently accepted.

OpenAI Codex helped draft this revision, and I reviewed the result.

Tested with:
- scripts/checkpatch.pl --strict --ignore UNKNOWN_COMMIT_ID --git HEAD~2..HEAD
- gmake DT_SCHEMA_FILES=starfive,jh7100-pinctrl.yaml dt_binding_check

Changes in v2:
- Add schema validation requiring exactly one of "pins" or "pinmux".
- Factor the driver property presence/count checks into a static helper.

Zhiqi Zhang (2):
dt-bindings: pinctrl: starfive,jh7100: Require pins or pinmux
pinctrl: starfive: jh7100: Reject malformed pin properties

.../pinctrl/starfive,jh7100-pinctrl.yaml | 6 ++
.../starfive/pinctrl-starfive-jh7100.c | 61 +++++++++++++------
2 files changed, 49 insertions(+), 18 deletions(-)

--
2.54.0 (Apple Git-157)