RE: [PATCH 1/2] regulator: fp9931: Fix VPOS/VNEG voltage selector table
"Robby Cai (OSS)" <[email protected]> Fri, 31 Jul 2026 08:42:38 +0000
| Newsgroups | dev.linux.lists.imx,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <AS8PR04MB8150F517AC1AFB311919FCA9F2C82@AS8PR04MB8150.eurprd04.prod.outlook.com> |
>-----Original Message----- >From: Andreas Kemnade <[email protected]> >Sent: Tuesday, July 28, 2026 4:05 AM >To: Robby Cai (OSS) <[email protected]> >Cc: [email protected]; [email protected]; [email protected]; >[email protected] >Subject: Re: [PATCH 1/2] regulator: fp9931: Fix VPOS/VNEG voltage selector >table > >On Tue, 21 Jul 2026 17:59:58 +0800 >[email protected] wrote: > >> From: Robby Cai <[email protected]> >> >> 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 <[email protected]> > >Reviewed-by: Andreas Kemnade <[email protected]> Thanks for the review. Just a note that there is a v2 available:=20 https://lore.kernel.org/imx/[email protected]/ Compared to v1, the table has been updated to cover the full selector range= defined by the datasheet. In particular, selectors 0x29-0x3f are now clamp= ed to 15.06V, matching the hardware definition. The main issue fixed by v1 remains the same, but v2 also ensures the voltag= e table correctly represents all valid selector values. Regards, Robby