[PATCH v2 1/2] dt-bindings: pinctrl: starfive,jh7100: Require pins or pinmux
From: Zhiqi Zhang
Date: Fri Dec 04 2026 - 07:46:51 EST
Each JH7100 pin group is documented as using either "pins" or
"pinmux", but the schema only described that rule in prose.
Encode the rule with oneOf so binding validation rejects groups that
provide both properties or neither property.
Fixes: ec648f6b7686 ("pinctrl: starfive: Add pinctrl driver for StarFive SoCs")
Signed-off-by: Zhiqi Zhang <zhiqizhangg@xxxxxxxxx>
---
.../bindings/pinctrl/starfive,jh7100-pinctrl.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/starfive,jh7100-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/starfive,jh7100-pinctrl.yaml
index 3f14eab01c..f70e2e5fbd 100644
--- a/Documentation/devicetree/bindings/pinctrl/starfive,jh7100-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/starfive,jh7100-pinctrl.yaml
@@ -154,6 +154,12 @@ patternProperties:
description: enable strong pull-up.
type: boolean
+ oneOf:
+ - required:
+ - pins
+ - required:
+ - pinmux
+
additionalProperties: false
additionalProperties: false
--
2.54.0 (Apple Git-157)