From: Keerthy <j-keerthy@ti.com>
To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-omap@vger.kernel.org
Cc: mark.rutland@arm.com, galak@codeaurora.org, robh+dt@kernel.org,
linux@arm.linux.org.uk, balbi@ti.com, tony@atomide.com,
kishon@ti.com, broonie@kernel.org, Keerthy <j-keerthy@ti.com>
Subject: [PATCH v3 1/7] regulator: tps65218: Add fixed_uV fields for dcdc5 and dcdc6
Date: Wed, 9 Jul 2014 11:06:27 +0530 [thread overview]
Message-ID: <1404884193-20580-2-git-send-email-j-keerthy@ti.com> (raw)
In-Reply-To: <1404884193-20580-1-git-send-email-j-keerthy@ti.com>
Add fixed_uV fields for dcdc5 and dcdc6.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
Changes from V2:
* Added fixed_uV fields for the regulator_desc structures.
drivers/regulator/tps65218-regulator.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c
index 9effe48..27dc70d 100644
--- a/drivers/regulator/tps65218-regulator.c
+++ b/drivers/regulator/tps65218-regulator.c
@@ -30,7 +30,7 @@
enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 };
#define TPS65218_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _er, _em, _t, \
- _lr, _nlr, _delay) \
+ _lr, _nlr, _delay, _fuv) \
{ \
.name = _name, \
.id = _id, \
@@ -46,6 +46,7 @@ enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 };
.linear_ranges = _lr, \
.n_linear_ranges = _nlr, \
.ramp_delay = _delay, \
+ .fixed_uV = _fuv \
} \
#define TPS65218_INFO(_id, _nm, _min, _max) \
@@ -186,33 +187,33 @@ static const struct regulator_desc regulators[] = {
TPS65218_REG_CONTROL_DCDC1,
TPS65218_CONTROL_DCDC1_MASK,
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC1_EN, NULL,
- dcdc1_dcdc2_ranges, 2, 4000),
+ dcdc1_dcdc2_ranges, 2, 4000, 0),
TPS65218_REGULATOR("DCDC2", TPS65218_DCDC_2, tps65218_dcdc12_ops, 64,
TPS65218_REG_CONTROL_DCDC2,
TPS65218_CONTROL_DCDC2_MASK,
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC2_EN, NULL,
- dcdc1_dcdc2_ranges, 2, 4000),
+ dcdc1_dcdc2_ranges, 2, 4000, 0),
TPS65218_REGULATOR("DCDC3", TPS65218_DCDC_3, tps65218_ldo1_dcdc34_ops,
64, TPS65218_REG_CONTROL_DCDC3,
TPS65218_CONTROL_DCDC3_MASK, TPS65218_REG_ENABLE1,
TPS65218_ENABLE1_DC3_EN, NULL,
- ldo1_dcdc3_ranges, 2, 0),
+ ldo1_dcdc3_ranges, 2, 0, 0),
TPS65218_REGULATOR("DCDC4", TPS65218_DCDC_4, tps65218_ldo1_dcdc34_ops,
53, TPS65218_REG_CONTROL_DCDC4,
TPS65218_CONTROL_DCDC4_MASK,
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC4_EN, NULL,
- dcdc4_ranges, 2, 0),
+ dcdc4_ranges, 2, 0, 0),
TPS65218_REGULATOR("DCDC5", TPS65218_DCDC_5, tps65218_dcdc56_pmic_ops,
1, -1, -1, TPS65218_REG_ENABLE1,
- TPS65218_ENABLE1_DC5_EN, NULL, NULL, 0, 0),
+ TPS65218_ENABLE1_DC5_EN, NULL, NULL, 0, 0, 1000000),
TPS65218_REGULATOR("DCDC6", TPS65218_DCDC_6, tps65218_dcdc56_pmic_ops,
1, -1, -1, TPS65218_REG_ENABLE1,
- TPS65218_ENABLE1_DC6_EN, NULL, NULL, 0, 0),
+ TPS65218_ENABLE1_DC6_EN, NULL, NULL, 0, 0, 1800000),
TPS65218_REGULATOR("LDO1", TPS65218_LDO_1, tps65218_ldo1_dcdc34_ops, 64,
TPS65218_REG_CONTROL_LDO1,
TPS65218_CONTROL_LDO1_MASK, TPS65218_REG_ENABLE2,
TPS65218_ENABLE2_LDO1_EN, NULL, ldo1_dcdc3_ranges,
- 2, 0),
+ 2, 0, 0),
};
static int tps65218_regulator_probe(struct platform_device *pdev)
--
1.7.9.5
next prev parent reply other threads:[~2014-07-09 5:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-09 5:36 [PATCH v3 0/7] ARM: dts: AM43x: Add devcice tree nodes Keerthy
2014-07-09 5:36 ` Keerthy [this message]
2014-07-09 9:14 ` [PATCH v3 1/7] regulator: tps65218: Add fixed_uV fields for dcdc5 and dcdc6 Mark Brown
2014-07-09 9:36 ` Keerthy
[not found] ` <1404884193-20580-2-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>
2014-07-09 10:22 ` [PATCH v4] " Keerthy
2014-07-10 12:12 ` Mark Brown
2014-07-10 13:10 ` Keerthy
2014-07-10 14:50 ` Mark Brown
2014-07-09 5:36 ` [PATCH v3 2/7] mfd: Add DT bindings for tps65218 PMIC Keerthy
2014-07-09 5:36 ` [PATCH v3 3/7] regulator: Add DT bindings for tps65218 PMIC regulators Keerthy
2014-07-09 5:36 ` [PATCH v3 4/7] ARM: dts: AM43x: Add TPS65218 device tree nodes Keerthy
2014-07-09 5:36 ` [PATCH v3 5/7] ARM: dts: AM437x: Fix i2c nodes indentation Keerthy
2014-07-09 5:36 ` [PATCH v3 6/7] ARM: dts: AM437x: Add TPS65218 device tree nodes Keerthy
2014-07-09 5:36 ` [PATCH v3 7/7] ARM: configs: omap2plus_defconfig: enable TPS65218 configs Keerthy
2014-07-09 8:31 ` [PATCH v3 0/7] ARM: dts: AM43x: Add devcice tree nodes Tony Lindgren
[not found] ` <20140709083114.GH28884-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2014-07-09 10:59 ` Keerthy
[not found] ` <53BD208E.6000507-l0cyMroinI0@public.gmane.org>
2014-07-09 11:51 ` Tony Lindgren
2014-07-10 13:25 ` Keerthy
[not found] ` <53BE9442.4070101-l0cyMroinI0@public.gmane.org>
2014-07-10 13:50 ` Keerthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1404884193-20580-2-git-send-email-j-keerthy@ti.com \
--to=j-keerthy@ti.com \
--cc=balbi@ti.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox