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>
---
.../devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml
index 609d7db97822..9a76cffcbaee 100644
--- a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml
@@ -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.
--
2.52.0
Hi, Yixun On Fri, Jan 2, 2026 at 3:04 PM Yixun Lan <dlan@gentoo.org> wrote: > > 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> > --- > .../devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml > index 609d7db97822..9a76cffcbaee 100644 > --- a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml > @@ -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 Should one of these be 3.3V? Both descriptions currently specify 1.8V. Best regards, Guodong Xu > + > input-schmitt: > description: | > typical threshold for schmitt trigger. > > -- > 2.52.0 > >
Hi Guodong, On 20:20 Fri 09 Jan , Guodong Xu wrote: > Hi, Yixun > > On Fri, Jan 2, 2026 at 3:04 PM Yixun Lan <dlan@gentoo.org> wrote: > > > > 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> > > --- > > .../devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml | 10 +++++++++- > > 1 file changed, 9 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml > > index 609d7db97822..9a76cffcbaee 100644 > > --- a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml > > +++ b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml > > @@ -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 > > Should one of these be 3.3V? Both descriptions currently specify 1.8V. > right, the latter one should be changed to 3.3V, I will send a patch to fix this. -- Yixun Lan (dlan)
On Fri, Jan 02, 2026 at 03:00:23PM +0800, Yixun Lan wrote: > 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> > --- > .../devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Best regards, Krzysztof
© 2016 - 2026 Red Hat, Inc.