[PATCH 1/2] leds: is31fl32xx: Fix the IS31FL3293 reset register
From: Matt Moeller via B4 Relay
Date: Wed Dec 02 2026 - 12:36:33 EST
From: Matt Moeller <matthew.moeller@xxxxxxxxx>
The IS31FL3293 datasheet (Rev. A, 09/22/2022) lists the Reset Register
at 3Fh; there is no register at 3Ch. Writing the 0xc5 magic to 0x3c
does nothing, so is31fl3293_reset() leaves the chip in whatever state
it was in before probe.
That matters when a bootloader has already set the chip up. On our
board U-Boot turns the status LED on in current-level mode (register
0x02 = 0x2a, current level registers at 0xff); the chip then ignores the
PWM registers this driver writes, and the LED stays white whatever
brightness is set.
Write the magic to 0x3f. On that board, writing 0xc5 to 0x3c leaves
every register as it was, and writing it to 0x3f returns them to their
default values (register 0x02 = 0x00), after which the brightness set
through sysfs reaches the outputs.
The problem was found and this fix written with help from Claude
(Anthropic), and tested on hardware.
Fixes: a18983b95a61 ("leds: is31f132xx: Add support for is31fl3293")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Matt Moeller <matthew.moeller@xxxxxxxxx>
---
drivers/leds/leds-is31fl32xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c
index 513ada8445b4..2abc2d2fb29b 100644
--- a/drivers/leds/leds-is31fl32xx.c
+++ b/drivers/leds/leds-is31fl32xx.c
@@ -45,7 +45,7 @@
#define IS31FL3293_CL_REG 0x10
#define IS31FL3293_COLOR_UPDATE_REG 0x27
#define IS31FL3293_COLOR_UPDATE_MAGIC 0xc5
-#define IS31FL3293_RESET_REG 0x3c
+#define IS31FL3293_RESET_REG 0x3f
#define IS31FL3293_RESET_MAGIC 0xc5
#define IS31FL3293_MAX_MICROAMP 20000
--
2.53.0