[PATCH 1/2] regulator: fp9931: Fix VPOS/VNEG voltage selector table

From: robby . cai

Date: Tue Jul 21 2026 - 05:56:56 EST


From: Robby Cai <robby.cai@xxxxxxx>

The VPOSNEG_table[] mapping does not match the FP9931/JD9930 datasheet.

The datasheet defines the VPOS/VNEG voltage mapping as:

00h-04h -> 7.04V (-7.04V)
05h -> 7.26V (-7.26V)
06h -> 7.49V (-7.49V)
...
28h-3Fh -> 15.06V (-15.06V)

However, the current table maps selector 0x05 to 7.04V instead of
7.26V, causing all subsequent entries to be shifted by one position.

Update VPOSNEG_table[] to match the documented register encoding.

Fixes: 12d821bd13d4 ("regulator: Add FP9931/JD9930 driver")
Signed-off-by: Robby Cai <robby.cai@xxxxxxx>
---
drivers/regulator/fp9931.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/regulator/fp9931.c b/drivers/regulator/fp9931.c
index 002b41f53eff..5eee21034f6b 100644
--- a/drivers/regulator/fp9931.c
+++ b/drivers/regulator/fp9931.c
@@ -42,7 +42,6 @@ static const unsigned int VPOSNEG_table[] = {
7040000,
7040000,
7040000,
- 7040000,
7260000,
7490000,
7710000,
--
2.50.1