Skip to content

Commit 122e951

Browse files
robimarkobroonie
authored andcommitted
regulator: qcom_smd: correct MP5496 ranges
Currently set MP5496 Buck and LDO ranges dont match its datasheet[1]. According to the datasheet: Buck range is 0.6-2.1875V with a 12.5mV step LDO range is 0.8-3.975V with a 25mV step. So, correct the ranges according to the datasheet[1]. [1] https://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/Datasheet/lang/en/sku/MP5496GR/document_id/6906/ Signed-off-by: Robert Marko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f2906aa commit 122e951

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/regulator/qcom_smd-regulator.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,19 +723,19 @@ static const struct regulator_desc pms405_pldo600 = {
723723

724724
static const struct regulator_desc mp5496_smpa2 = {
725725
.linear_ranges = (struct linear_range[]) {
726-
REGULATOR_LINEAR_RANGE(725000, 0, 27, 12500),
726+
REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500),
727727
},
728728
.n_linear_ranges = 1,
729-
.n_voltages = 28,
729+
.n_voltages = 128,
730730
.ops = &rpm_mp5496_ops,
731731
};
732732

733733
static const struct regulator_desc mp5496_ldoa2 = {
734734
.linear_ranges = (struct linear_range[]) {
735-
REGULATOR_LINEAR_RANGE(1800000, 0, 60, 25000),
735+
REGULATOR_LINEAR_RANGE(800000, 0, 127, 25000),
736736
},
737737
.n_linear_ranges = 1,
738-
.n_voltages = 61,
738+
.n_voltages = 128,
739739
.ops = &rpm_mp5496_ops,
740740
};
741741

0 commit comments

Comments
 (0)