[PATCH 0/2] pinctrl: sx150x: OSCIO fix and block register transfers

From: Dean Sellers

Date: Wed Nov 18 2026 - 02:03:16 EST


Two changes to the SX150x driver, from bring-up of an SX1509Q-based
board.

Patch 1 stops sx150x_gpio_oscio_set() from writing the whole of
RegClock. That write set the fOSC source in RegClock[6:5] to 00, which
the datasheet documents as disabling the LED driver, keypad engine and
debouncer.

Patch 2 moves 16- and 32-bit registers in one i2c block transfer on the
789 models, relying on the register auto-increment that RegMisc[1]
enables by default. This halves the number of transfers on the
interrupt path.

Testing: these were developed and tested on an SX1509Q on a 5.15-based
kernel. I no longer have access to that hardware, so the versions here,
rebased onto pinctrl devel, are compile-tested only (x86_64
allmodconfig, W=1). Any testing on SX1508/SX1509 hardware would be
welcome.

The rebase onto mainline and the changelogs were prepared with help
from Claude (Anthropic); the code changes are my original work.

Dean Sellers (2):
pinctrl: sx150x: don't clobber the oscillator source when driving
OSCIO
pinctrl: sx150x: move wide registers in a single block transfer

drivers/pinctrl/pinctrl-sx150x.c | 55 ++++++++++++++++++++++++++++++--
1 file changed, 52 insertions(+), 3 deletions(-)


base-commit: 95ebc96dcb373d7d278625fc91e602c839f1f388
--
2.43.0