]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: pinctrl: spacemit: fix drive-strength check warning
authorYixun Lan <dlan@kernel.org>
Fri, 30 Jan 2026 11:22:15 +0000 (19:22 +0800)
committerLinus Walleij <linusw@kernel.org>
Tue, 3 Feb 2026 00:04:51 +0000 (01:04 +0100)
The problem is that one value from drive-strength may match to more than
two different enum groups which lead to DT complaint, switch to use 'anyOf'
to fix this kind warning.

Fixes: c3efac0592f8 ("dt-bindings: pinctrl: spacemit: convert drive strength to schema format")
Signed-off-by: Yixun Lan <dlan@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reported-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml

index ebcbaf4d85bb5c85da389fb246081ad362e1551c..3e734aeb01cc9da5953ac29417c73790f05134cf 100644 (file)
@@ -80,7 +80,7 @@ patternProperties:
           drive-strength:
             description:
               typical current (in mA) when the output at high level.
-            oneOf:
+            anyOf:
               - enum: [ 11, 21, 32, 42 ]
                 description: For K1 SoC, 1.8V voltage output