public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] pinctrl: spacemit: add support for K3 SoC
@ 2026-01-02  7:00 Yixun Lan
  2026-01-02  7:00 ` [PATCH v3 1/4] dt-bindings: pinctrl: spacemit: convert drive strength to schema format Yixun Lan
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Yixun Lan @ 2026-01-02  7:00 UTC (permalink / raw)
  To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Troy Mitchell, linux-gpio, devicetree, linux-riscv, spacemit,
	linux-kernel, Yixun Lan

This series attempt to add pinctrl support for SpacemiT K3 SoC,

I've removed the RFC tag as the driver is tested on K3 SoC.

The K3 pinctrl IP shares almost same logic with previous K1 SoC generation,
but has different register offset and pin configuration, I've introduced
a pin_to_offset() function to handle the difference of register offset.
for the drive strength and schmitter trigger settings, they are also changed.

Patch #1 convert the dt-binding's drive-strength property from free text to
a more standard schema format, then patch #2 try to add pin support which
should handle pin mux, while patch #3 adjust drive strength and schmitter trigger
settings accordingly for new SoC.

Signed-off-by: Yixun Lan <dlan@gentoo.org>
---
Changes in v3:
- convert drive-strength to schema format
- Link to v2: https://lore.kernel.org/r/20251226-02-k3-pinctrl-v2-0-5172397e6831@gentoo.org

Changes in v2:
- RFC tag removed
- update dt-binding docs for drive strength
- fix wrong argument for drive strength
- Link to v1: https://lore.kernel.org/r/20251220-02-k3-pinctrl-v1-0-f6f4aea60abf@gentoo.org

---
Yixun Lan (4):
      dt-bindings: pinctrl: spacemit: convert drive strength to schema format
      dt-bindings: pinctrl: spacemit: add K3 SoC support
      pinctrl: spacemit: k3: add initial pin support
      pinctrl: spacemit: k3: adjust drive strength and schmitter trigger

 .../bindings/pinctrl/spacemit,k1-pinctrl.yaml      |  22 +-
 drivers/pinctrl/spacemit/Kconfig                   |   4 +-
 drivers/pinctrl/spacemit/pinctrl-k1.c              | 517 +++++++++++++++++++--
 3 files changed, 485 insertions(+), 58 deletions(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251125-02-k3-pinctrl-738cbddbe49d

Best regards,
-- 
Yixun Lan


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-01-09 22:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-02  7:00 [PATCH v3 0/4] pinctrl: spacemit: add support for K3 SoC Yixun Lan
2026-01-02  7:00 ` [PATCH v3 1/4] dt-bindings: pinctrl: spacemit: convert drive strength to schema format Yixun Lan
2026-01-02 11:01   ` Krzysztof Kozlowski
2026-01-02  7:00 ` [PATCH v3 2/4] dt-bindings: pinctrl: spacemit: add K3 SoC support Yixun Lan
2026-01-02 11:01   ` Krzysztof Kozlowski
2026-01-09 12:20   ` Guodong Xu
2026-01-09 22:56     ` Yixun Lan
2026-01-02  7:00 ` [PATCH v3 3/4] pinctrl: spacemit: k3: add initial pin support Yixun Lan
2026-01-02  7:00 ` [PATCH v3 4/4] pinctrl: spacemit: k3: adjust drive strength and schmitter trigger Yixun Lan
2026-01-07 14:09 ` [PATCH v3 0/4] pinctrl: spacemit: add support for K3 SoC Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox