regulator: tps6594-regulator: Correct multi-phase configuration
authorNeha Malcom Francis <n-francis@ti.com>
Tue, 21 May 2024 09:47:58 +0000 (15:17 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 21 May 2024 11:27:36 +0000 (12:27 +0100)
commit74b38cd77d3eb63c6d0ad9cf2ae59812ae54d3ee
treed088f7b7c6d3e0f5d049f51da1fd8783620b2fb3
parent1ace99d7c7c4c801c0660246f741ff846a9b8e3c
regulator: tps6594-regulator: Correct multi-phase configuration

According to the TPS6594 PMIC Manual (linked) 8.3.2.1.4 Multi-Phase BUCK
Regulator Configurations section, the PMIC ignores all the other bucks'
except the primary buck's regulator registers. This is BUCK1 for
configurations BUCK12, BUCK123 and BUCK1234 while it is BUCK3 for
BUCK34. Correct the registers mapped for these configurations
accordingly.

Fixes: f17ccc5deb4d ("regulator: tps6594-regulator: Add driver for TI TPS6594 regulators")
Link: https://www.ti.com/lit/gpn/tps6594-q1
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Link: https://msgid.link/r/20240521094758.2190331-1-n-francis@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps6594-regulator.c