]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: pinctrl: spacemit: convert drive strength to schema format
authorYixun Lan <dlan@gentoo.org>
Fri, 2 Jan 2026 07:00:22 +0000 (15:00 +0800)
committerLinus Walleij <linusw@kernel.org>
Wed, 7 Jan 2026 14:08:13 +0000 (15:08 +0100)
In order to better extend the pinctrl support for future new SoC, convert
drive strength setting from free form text to more standard schema format.

Signed-off-by: Yixun Lan <dlan@gentoo.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml

index d80e88aa07b45f4a3d90e8217caf93d32655927d..609d7db97822d48eb8aa40f789a1c91d468de484 100644 (file)
@@ -72,10 +72,14 @@ patternProperties:
             enum: [ 0, 1 ]
 
           drive-strength:
-            description: |
-              typical current when output high level.
-              1.8V output: 11, 21, 32, 42 (mA)
-              3.3V output: 7, 10, 13, 16, 19, 23, 26, 29 (mA)
+            description:
+              typical current (in mA) when the output at high level.
+            oneOf:
+              - enum: [ 11, 21, 32, 42 ]
+                description: For K1 SoC, 1.8V voltage output
+
+              - enum: [ 7, 10, 13, 16, 19, 23, 26, 29 ]
+                description: For K1 SoC, 3.3V voltage output
 
           input-schmitt:
             description: |