* [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 @ 2022-06-04 19:32 Robert Marko 2022-06-04 19:33 ` [PATCH 2/2] regulator: qcom_smd: correct MP5496 ranges Robert Marko 2022-06-08 10:49 ` [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 Mark Brown 0 siblings, 2 replies; 5+ messages in thread From: Robert Marko @ 2022-06-04 19:32 UTC (permalink / raw) To: agross, bjorn.andersson, lgirdwood, broonie, linux-arm-msm, linux-kernel Cc: Robert Marko Add the get_voltage OP to MP5496 ops using the generic rpm_reg_get_voltage. Signed-off-by: Robert Marko <robimarko@gmail.com> --- drivers/regulator/qcom_smd-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 8490aa8eecb1..5ec68250e79d 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -205,6 +205,7 @@ static const struct regulator_ops rpm_mp5496_ops = { .is_enabled = rpm_reg_is_enabled, .list_voltage = regulator_list_voltage_linear_range, + .get_voltage = rpm_reg_get_voltage, .set_voltage = rpm_reg_set_voltage, }; -- 2.36.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] regulator: qcom_smd: correct MP5496 ranges 2022-06-04 19:32 [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 Robert Marko @ 2022-06-04 19:33 ` Robert Marko 2022-06-07 19:21 ` Mark Brown 2022-06-08 10:49 ` [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 Mark Brown 1 sibling, 1 reply; 5+ messages in thread From: Robert Marko @ 2022-06-04 19:33 UTC (permalink / raw) To: agross, bjorn.andersson, lgirdwood, broonie, linux-arm-msm, linux-kernel Cc: Robert Marko 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 <robimarko@gmail.com> --- drivers/regulator/qcom_smd-regulator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 5ec68250e79d..6c69359b3ef2 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -724,19 +724,19 @@ static const struct regulator_desc pms405_pldo600 = { static const struct regulator_desc mp5496_smpa2 = { .linear_ranges = (struct linear_range[]) { - REGULATOR_LINEAR_RANGE(725000, 0, 27, 12500), + REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500), }, .n_linear_ranges = 1, - .n_voltages = 28, + .n_voltages = 128, .ops = &rpm_mp5496_ops, }; static const struct regulator_desc mp5496_ldoa2 = { .linear_ranges = (struct linear_range[]) { - REGULATOR_LINEAR_RANGE(1800000, 0, 60, 25000), + REGULATOR_LINEAR_RANGE(800000, 0, 127, 25000), }, .n_linear_ranges = 1, - .n_voltages = 61, + .n_voltages = 128, .ops = &rpm_mp5496_ops, }; -- 2.36.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] regulator: qcom_smd: correct MP5496 ranges 2022-06-04 19:33 ` [PATCH 2/2] regulator: qcom_smd: correct MP5496 ranges Robert Marko @ 2022-06-07 19:21 ` Mark Brown 2022-06-07 20:49 ` Robert Marko 0 siblings, 1 reply; 5+ messages in thread From: Mark Brown @ 2022-06-07 19:21 UTC (permalink / raw) To: Robert Marko Cc: agross, bjorn.andersson, lgirdwood, linux-arm-msm, linux-kernel [-- Attachment #1: Type: text/plain, Size: 415 bytes --] On Sat, Jun 04, 2022 at 09:33:00PM +0200, Robert Marko wrote: > 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. Doesn't make much difference here but in general fixes like this should come before new features in a series so they can be applied without dependency issues. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] regulator: qcom_smd: correct MP5496 ranges 2022-06-07 19:21 ` Mark Brown @ 2022-06-07 20:49 ` Robert Marko 0 siblings, 0 replies; 5+ messages in thread From: Robert Marko @ 2022-06-07 20:49 UTC (permalink / raw) To: Mark Brown Cc: Andy Gross, Bjorn Andersson, lgirdwood, linux-arm-msm, open list On Tue, 7 Jun 2022 at 21:21, Mark Brown <broonie@kernel.org> wrote: > > On Sat, Jun 04, 2022 at 09:33:00PM +0200, Robert Marko wrote: > > 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. > > Doesn't make much difference here but in general fixes like this should > come before new features in a series so they can be applied without > dependency issues. Will do it next time, thanks for the heads up. Regards, Robert ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 2022-06-04 19:32 [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 Robert Marko 2022-06-04 19:33 ` [PATCH 2/2] regulator: qcom_smd: correct MP5496 ranges Robert Marko @ 2022-06-08 10:49 ` Mark Brown 1 sibling, 0 replies; 5+ messages in thread From: Mark Brown @ 2022-06-08 10:49 UTC (permalink / raw) To: linux-kernel, agross, linux-arm-msm, lgirdwood, robimarko, bjorn.andersson On Sat, 4 Jun 2022 21:32:59 +0200, Robert Marko wrote: > Add the get_voltage OP to MP5496 ops using the generic rpm_reg_get_voltage. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/2] regulator: qcom_smd: add get_voltage to MP5496 commit: f210f387c8c05ae0bd5312b8b6b85398c20b94f9 [2/2] regulator: qcom_smd: correct MP5496 ranges commit: 122e951eb8045338089b086c8bd9b0b9afb04a92 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-06-08 10:49 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-06-04 19:32 [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 Robert Marko 2022-06-04 19:33 ` [PATCH 2/2] regulator: qcom_smd: correct MP5496 ranges Robert Marko 2022-06-07 19:21 ` Mark Brown 2022-06-07 20:49 ` Robert Marko 2022-06-08 10:49 ` [PATCH 1/2] regulator: qcom_smd: add get_voltage to MP5496 Mark Brown
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox