All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] pinctrl: starfive: jh7100: validate pins/pinmux groups
@ 2026-12-04 12:45 Zhiqi Zhang
  2026-12-04 12:45 ` [PATCH v2 1/2] dt-bindings: pinctrl: starfive,jh7100: Require pins or pinmux Zhiqi Zhang
  2026-12-04 12:45 ` [PATCH v2 2/2] pinctrl: starfive: jh7100: Reject malformed pin properties Zhiqi Zhang
  0 siblings, 2 replies; 4+ messages in thread
From: Zhiqi Zhang @ 2026-12-04 12:45 UTC (permalink / raw)
  To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Emil Renner Berthing, Hal Feng, Drew Fustini, linux-gpio,
	devicetree, linux-kernel, Zhiqi Zhang

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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-04 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 12:45 [PATCH v2 0/2] pinctrl: starfive: jh7100: validate pins/pinmux groups Zhiqi Zhang
2026-12-04 12:45 ` [PATCH v2 1/2] dt-bindings: pinctrl: starfive,jh7100: Require pins or pinmux Zhiqi Zhang
2026-12-04 13:16   ` sashiko-bot
2026-12-04 12:45 ` [PATCH v2 2/2] pinctrl: starfive: jh7100: Reject malformed pin properties Zhiqi Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.