public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] pinctrl: spacemit: support I/O power domain configuration
@ 2026-01-08  6:42 Troy Mitchell
  2026-01-08  6:42 ` [PATCH v2 1/3] dt-bindings: pinctrl: spacemit: add syscon property Troy Mitchell
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Troy Mitchell @ 2026-01-08  6:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
	Linus Walleij
  Cc: devicetree, linux-riscv, spacemit, linux-kernel, linux-gpio,
	Troy Mitchell

This series adds support for configuring IO power domain voltage for
dual-voltage GPIO banks on the Spacemit K1 SoC.

On K1, IO domain power control registers determine whether a GPIO bank
operates at 1.8V or 3.3V. These registers default to 3.3V operation,
which may lead to functional failures when GPIO banks are externally
supplied with 1.8V but internally remain configured for 3.3V.

The IO power domain registers are implemented as secure registers and
require an explicit unlock sequence via the AIB Secure Access Register
(ASAR), located in the APBC register space.

This series ensures that pin voltage configuration correctly reflects
hardware requirements.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
---
Troy Mitchell (3):
      dt-bindings: pinctrl: spacemit: add syscon property
      pinctrl: spacemit: support I/O power domain configuration
      riscv: dts: spacemit: modify pinctrl node in dtsi

 .../bindings/pinctrl/spacemit,k1-pinctrl.yaml      |   5 +
 arch/riscv/boot/dts/spacemit/k1.dtsi               |   3 +-
 drivers/pinctrl/spacemit/pinctrl-k1.c              | 129 ++++++++++++++++++++-
 3 files changed, 133 insertions(+), 4 deletions(-)
---
base-commit: 168d19e604855cfa6024e9854f8ea9b1c8efa2d9
change-id: 20251223-kx-pinctrl-aib-io-pwr-domain-b02da255f95c

Best regards,
-- 
Troy Mitchell <troy.mitchell@linux.spacemit.com>


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

end of thread, other threads:[~2026-01-20  0:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08  6:42 [PATCH v2 0/3] pinctrl: spacemit: support I/O power domain configuration Troy Mitchell
2026-01-08  6:42 ` [PATCH v2 1/3] dt-bindings: pinctrl: spacemit: add syscon property Troy Mitchell
2026-01-15 16:02   ` Rob Herring (Arm)
2026-01-08  6:42 ` [PATCH v2 2/3] pinctrl: spacemit: support I/O power domain configuration Troy Mitchell
2026-01-08  6:42 ` [PATCH v2 3/3] riscv: dts: spacemit: modify pinctrl node in dtsi Troy Mitchell
2026-01-08  7:37   ` Yixun Lan
2026-01-09  1:31     ` Troy Mitchell
2026-01-19 23:53   ` Linus Walleij
2026-01-19 23:52 ` [PATCH v2 0/3] pinctrl: spacemit: support I/O power domain configuration Linus Walleij
2026-01-20  0:31   ` Yixun Lan
2026-01-20  0:55 ` (subset) " Yixun Lan

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