Skip to content

Commit 50aaa6b

Browse files
committed
Merge tag 'regulator-v3.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown: "Fixes for the merge window A set of small fixes for issues noticed during the merge window, all very much non-invasive" * tag 'regulator-v3.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: MAINTAINERS: Update git repository regulator: max8997: Fix a trivial typo in documentation regulator: s5m8767: Fix a trivial typo in documentation regulator: s2mps11: Convert ramp rate to uV/us and set default ramp rate regulator: s5m8767: Update s5m8767-regulator bindings document
2 parents bb93109 + 37c3f01 commit 50aaa6b

5 files changed

Lines changed: 16 additions & 10 deletions

File tree

‎Documentation/devicetree/bindings/regulator/max8997-regulator.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
* Maxim MAX8997 Voltage and Current Regulator
22

3-
The Maxim MAX8997 is a multi-function device which includes volatage and
3+
The Maxim MAX8997 is a multi-function device which includes voltage and
44
current regulators, rtc, charger controller and other sub-blocks. It is
55
interfaced to the host controller using a i2c interface. Each sub-block is
66
addressed by the host system using different i2c slave address. This document

‎Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
* Samsung S5M8767 Voltage and Current Regulator
22

3-
The Samsung S5M8767 is a multi-function device which includes volatage and
3+
The Samsung S5M8767 is a multi-function device which includes voltage and
44
current regulators, rtc, charger controller and other sub-blocks. It is
55
interfaced to the host controller using a i2c interface. Each sub-block is
66
addressed by the host system using different i2c slave address. This document
@@ -103,13 +103,13 @@ Example:
103103

104104
s5m8767,pmic-buck-default-dvs-idx = <0>;
105105

106-
s5m8767,pmic-buck-dvs-gpios = <&gpx0 0 1 0 0>, /* DVS1 */
107-
<&gpx0 1 1 0 0>, /* DVS2 */
108-
<&gpx0 2 1 0 0>; /* DVS3 */
106+
s5m8767,pmic-buck-dvs-gpios = <&gpx0 0 0>, /* DVS1 */
107+
<&gpx0 1 0>, /* DVS2 */
108+
<&gpx0 2 0>; /* DVS3 */
109109

110-
s5m8767,pmic-buck-ds-gpios = <&gpx2 3 1 0 0>, /* SET1 */
111-
<&gpx2 4 1 0 0>, /* SET2 */
112-
<&gpx2 5 1 0 0>; /* SET3 */
110+
s5m8767,pmic-buck-ds-gpios = <&gpx2 3 0>, /* SET1 */
111+
<&gpx2 4 0>, /* SET2 */
112+
<&gpx2 5 0>; /* SET3 */
113113

114114
s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
115115
<1250000>, <1200000>,

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8976,7 +8976,7 @@ M: Liam Girdwood <lgirdwood@gmail.com>
89768976
M: Mark Brown <broonie@kernel.org>
89778977
W: http://opensource.wolfsonmicro.com/node/15
89788978
W: http://www.slimlogic.co.uk/?p=48
8979-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/lrg/regulator.git
8979+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git
89808980
S: Supported
89818981
F: drivers/regulator/
89828982
F: include/linux/regulator/

‎drivers/regulator/s2mps11.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static int get_ramp_delay(int ramp_delay)
4242
{
4343
unsigned char cnt = 0;
4444

45-
ramp_delay /= 6;
45+
ramp_delay /= 6250;
4646

4747
while (true) {
4848
ramp_delay = ramp_delay >> 1;
@@ -113,6 +113,7 @@ static struct regulator_ops s2mps11_buck_ops = {
113113
.min_uV = S2MPS11_BUCK_MIN1, \
114114
.uV_step = S2MPS11_BUCK_STEP1, \
115115
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
116+
.ramp_delay = S2MPS11_RAMP_DELAY, \
116117
.vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \
117118
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
118119
.enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \
@@ -128,6 +129,7 @@ static struct regulator_ops s2mps11_buck_ops = {
128129
.min_uV = S2MPS11_BUCK_MIN1, \
129130
.uV_step = S2MPS11_BUCK_STEP1, \
130131
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
132+
.ramp_delay = S2MPS11_RAMP_DELAY, \
131133
.vsel_reg = S2MPS11_REG_B5CTRL2, \
132134
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
133135
.enable_reg = S2MPS11_REG_B5CTRL1, \
@@ -143,6 +145,7 @@ static struct regulator_ops s2mps11_buck_ops = {
143145
.min_uV = S2MPS11_BUCK_MIN1, \
144146
.uV_step = S2MPS11_BUCK_STEP1, \
145147
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
148+
.ramp_delay = S2MPS11_RAMP_DELAY, \
146149
.vsel_reg = S2MPS11_REG_B6CTRL2 + (num - 6) * 2, \
147150
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
148151
.enable_reg = S2MPS11_REG_B6CTRL1 + (num - 6) * 2, \
@@ -158,6 +161,7 @@ static struct regulator_ops s2mps11_buck_ops = {
158161
.min_uV = S2MPS11_BUCK_MIN3, \
159162
.uV_step = S2MPS11_BUCK_STEP3, \
160163
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
164+
.ramp_delay = S2MPS11_RAMP_DELAY, \
161165
.vsel_reg = S2MPS11_REG_B9CTRL2, \
162166
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
163167
.enable_reg = S2MPS11_REG_B9CTRL1, \
@@ -173,6 +177,7 @@ static struct regulator_ops s2mps11_buck_ops = {
173177
.min_uV = S2MPS11_BUCK_MIN2, \
174178
.uV_step = S2MPS11_BUCK_STEP2, \
175179
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
180+
.ramp_delay = S2MPS11_RAMP_DELAY, \
176181
.vsel_reg = S2MPS11_REG_B10CTRL2, \
177182
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
178183
.enable_reg = S2MPS11_REG_B10CTRL1, \

‎include/linux/mfd/samsung/s2mps11.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ enum s2mps11_regulators {
189189
#define S2MPS11_ENABLE_SHIFT 0x06
190190
#define S2MPS11_LDO_N_VOLTAGES (S2MPS11_LDO_VSEL_MASK + 1)
191191
#define S2MPS11_BUCK_N_VOLTAGES (S2MPS11_BUCK_VSEL_MASK + 1)
192+
#define S2MPS11_RAMP_DELAY 25000 /* uV/us */
192193

193194
#define S2MPS11_PMIC_EN_SHIFT 6
194195
#define S2MPS11_REGULATOR_MAX (S2MPS11_REG_MAX - 3)

0 commit comments

Comments
 (0)