[PATCH v3 7/7] iio: light: stk3310: add STK3331-A support
From: Roman Vivchar via B4 Relay
Date: Sun Nov 22 2026 - 12:17:24 EST
From: Roman Vivchar <rva333@xxxxxxxxxxxxxx>
STK3331 is a STK3337 with slightly bigger package. Add support for the A
revision.
Signed-off-by: Roman Vivchar <rva333@xxxxxxxxxxxxxx>
---
A revision has different chip ID compared to the base STK3331, but
otherwise chips are identical. Only this revision is added since I have
no other hardware with stk3331.
---
drivers/iio/light/stk3310.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c
index 83f40714b972..8f640ab10677 100644
--- a/drivers/iio/light/stk3310.c
+++ b/drivers/iio/light/stk3310.c
@@ -60,6 +60,7 @@
#define STK3311A_CHIP_ID_VAL 0x15
#define STK3311S34_CHIP_ID_VAL 0x1E
#define STK3311X_CHIP_ID_VAL 0x12
+#define STK3331A_CHIP_ID_VAL 0x5E
#define STK3335_CHIP_ID_VAL 0x51
#define STK3337_CHIP_ID_VAL 0x5F
#define STK36C61_CHIP_ID_VAL 0x95
@@ -112,6 +113,7 @@ static const u8 stk3310_chip_ids[] = {
STK3311S34_CHIP_ID_VAL,
STK3311X_CHIP_ID_VAL,
STK3311_CHIP_ID_VAL,
+ STK3331A_CHIP_ID_VAL,
STK3335_CHIP_ID_VAL,
STK3337_CHIP_ID_VAL,
STK36C61_CHIP_ID_VAL,
--
2.56.1