[PATCH v3 0/7] iio: light: stk3310: refactoring and new chip support

From: Roman Vivchar via B4 Relay

Date: Sun Nov 22 2026 - 12:17:08 EST


This patch series adds support for stk3337 light sensor, found in the
Xiaomi Redmi Note 9 phone. The sensor is compatible with stk3310
registers, while having Clear channel, similar to the stk36c61.

It also adds support for stk3331-a sensor in Realme C3 phone.
It's stk3337 but in a different package.

Additionally, there's patch for vdd-supply property, since sensor can be
wired to the shared power supply.

Signed-off-by: Roman Vivchar <rva333@xxxxxxxxxxxxxx>
---
Changes in v3:
- Add patch to migrate to devm_* helpers (Joshua)
- Add stk3331 patches
- Link to v2: https://patch.msgid.link/20261117-6768-stk3337-v2-0-92f4c7be3bc6@xxxxxxxxxxxxxx

Changes in v2:
- Clarify that stk3337 is a subset of the stk36c61 in patch 4 commit message (Jonathan)
- Link to v1: https://patch.msgid.link/20261108-6768-stk3337-v1-0-0340c99b0e33@xxxxxxxxxxxxxx

---
Roman Vivchar (7):
iio: light: stk3310: migrate to devm_* API
dt-bindings: iio: light: stk33xx: add power supply support
iio: light: stk3310: add vdd regulator support
dt-bindings: iio: light: stk33xx: add stk3337
iio: light: stk3310: add stk3337 support
dt-bindings: iio: light: stk33xx: add stk3331
iio: light: stk3310: add STK3331-A support

.../devicetree/bindings/iio/light/stk33xx.yaml | 7 +++
drivers/iio/light/stk3310.c | 60 ++++++++++++++--------
2 files changed, 47 insertions(+), 20 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
change-id: 20261107-6768-stk3337-34f7a2db3a24

Best regards,
--
Roman Vivchar <rva333@xxxxxxxxxxxxxx>