]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: pinctrl: spacemit: add K3 SoC support
authorYixun Lan <dlan@gentoo.org>
Fri, 2 Jan 2026 07:00:23 +0000 (15:00 +0800)
committerLinus Walleij <linusw@kernel.org>
Wed, 7 Jan 2026 14:08:13 +0000 (15:08 +0100)
Add new compatible string for SpacemiT K3 SoC, the pinctrl IP shares
almost same logic with previous K1 generation, but has different register
offset and pin configuration, for example the drive strength and
schmitter trigger settings has been changed.

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 609d7db97822d48eb8aa40f789a1c91d468de484..9a76cffcbaee8eb465ebaad3f92c929c2a6815db 100644 (file)
@@ -11,7 +11,9 @@ maintainers:
 
 properties:
   compatible:
-    const: spacemit,k1-pinctrl
+    enum:
+      - spacemit,k1-pinctrl
+      - spacemit,k3-pinctrl
 
   reg:
     items:
@@ -81,6 +83,12 @@ patternProperties:
               - enum: [ 7, 10, 13, 16, 19, 23, 26, 29 ]
                 description: For K1 SoC, 3.3V voltage output
 
+              - enum: [ 2, 4, 6, 7, 9, 11, 13, 14, 21, 23, 25, 26, 28, 30, 31, 33 ]
+                description: For K3 SoC, 1.8V voltage output
+
+              - enum: [ 3, 5, 7, 9, 11, 13, 15, 17, 25, 27, 29, 31, 33, 35, 37, 38 ]
+                description: For K3 SoC, 1.8V voltage output
+
           input-schmitt:
             description: |
               typical threshold for schmitt trigger.