diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 14:03:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 14:03:58 -0400 |
commit | 50aaa6bc047ab3b20321c2a1fdc224401fcd899d (patch) | |
tree | ef09d36800385d448a9f3c0fff21dacb449716ea | |
parent | bb93109e1544e2a4d12c2c35bf1af84c25a2699d (diff) | |
parent | 37c3f0144c806e026b8d1ce0f41a5f57b25e44f5 (diff) |
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
-rw-r--r-- | Documentation/devicetree/bindings/regulator/max8997-regulator.txt | 2 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt | 14 | ||||
-rw-r--r-- | MAINTAINERS | 2 | ||||
-rw-r--r-- | drivers/regulator/s2mps11.c | 7 | ||||
-rw-r--r-- | include/linux/mfd/samsung/s2mps11.h | 1 |
5 files changed, 16 insertions, 10 deletions
diff --git a/Documentation/devicetree/bindings/regulator/max8997-regulator.txt b/Documentation/devicetree/bindings/regulator/max8997-regulator.txt index 9e5e51d78868..5c186a7a77ba 100644 --- a/Documentation/devicetree/bindings/regulator/max8997-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/max8997-regulator.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | * Maxim MAX8997 Voltage and Current Regulator | 1 | * Maxim MAX8997 Voltage and Current Regulator |
2 | 2 | ||
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 |
4 | current regulators, rtc, charger controller and other sub-blocks. It is | 4 | current regulators, rtc, charger controller and other sub-blocks. It is |
5 | interfaced to the host controller using a i2c interface. Each sub-block is | 5 | interfaced to the host controller using a i2c interface. Each sub-block is |
6 | addressed by the host system using different i2c slave address. This document | 6 | addressed by the host system using different i2c slave address. This document |
diff --git a/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt b/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt index a35ff99003a5..d1660a90fc06 100644 --- a/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | * Samsung S5M8767 Voltage and Current Regulator | 1 | * Samsung S5M8767 Voltage and Current Regulator |
2 | 2 | ||
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 |
4 | current regulators, rtc, charger controller and other sub-blocks. It is | 4 | current regulators, rtc, charger controller and other sub-blocks. It is |
5 | interfaced to the host controller using a i2c interface. Each sub-block is | 5 | interfaced to the host controller using a i2c interface. Each sub-block is |
6 | addressed by the host system using different i2c slave address. This document | 6 | addressed by the host system using different i2c slave address. This document |
@@ -103,13 +103,13 @@ Example: | |||
103 | 103 | ||
104 | s5m8767,pmic-buck-default-dvs-idx = <0>; | 104 | s5m8767,pmic-buck-default-dvs-idx = <0>; |
105 | 105 | ||
106 | s5m8767,pmic-buck-dvs-gpios = <&gpx0 0 1 0 0>, /* DVS1 */ | 106 | s5m8767,pmic-buck-dvs-gpios = <&gpx0 0 0>, /* DVS1 */ |
107 | <&gpx0 1 1 0 0>, /* DVS2 */ | 107 | <&gpx0 1 0>, /* DVS2 */ |
108 | <&gpx0 2 1 0 0>; /* DVS3 */ | 108 | <&gpx0 2 0>; /* DVS3 */ |
109 | 109 | ||
110 | s5m8767,pmic-buck-ds-gpios = <&gpx2 3 1 0 0>, /* SET1 */ | 110 | s5m8767,pmic-buck-ds-gpios = <&gpx2 3 0>, /* SET1 */ |
111 | <&gpx2 4 1 0 0>, /* SET2 */ | 111 | <&gpx2 4 0>, /* SET2 */ |
112 | <&gpx2 5 1 0 0>; /* SET3 */ | 112 | <&gpx2 5 0>; /* SET3 */ |
113 | 113 | ||
114 | s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>, | 114 | s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>, |
115 | <1250000>, <1200000>, | 115 | <1250000>, <1200000>, |
diff --git a/MAINTAINERS b/MAINTAINERS index d7e0cfb17745..293c762f23d1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -8976,7 +8976,7 @@ M: Liam Girdwood <lgirdwood@gmail.com> | |||
8976 | M: Mark Brown <broonie@kernel.org> | 8976 | M: Mark Brown <broonie@kernel.org> |
8977 | W: http://opensource.wolfsonmicro.com/node/15 | 8977 | W: http://opensource.wolfsonmicro.com/node/15 |
8978 | W: http://www.slimlogic.co.uk/?p=48 | 8978 | 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 |
8980 | S: Supported | 8980 | S: Supported |
8981 | F: drivers/regulator/ | 8981 | F: drivers/regulator/ |
8982 | F: include/linux/regulator/ | 8982 | F: include/linux/regulator/ |
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index c9f16e17920f..2f62564ca936 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c | |||
@@ -42,7 +42,7 @@ static int get_ramp_delay(int ramp_delay) | |||
42 | { | 42 | { |
43 | unsigned char cnt = 0; | 43 | unsigned char cnt = 0; |
44 | 44 | ||
45 | ramp_delay /= 6; | 45 | ramp_delay /= 6250; |
46 | 46 | ||
47 | while (true) { | 47 | while (true) { |
48 | ramp_delay = ramp_delay >> 1; | 48 | ramp_delay = ramp_delay >> 1; |
@@ -113,6 +113,7 @@ static struct regulator_ops s2mps11_buck_ops = { | |||
113 | .min_uV = S2MPS11_BUCK_MIN1, \ | 113 | .min_uV = S2MPS11_BUCK_MIN1, \ |
114 | .uV_step = S2MPS11_BUCK_STEP1, \ | 114 | .uV_step = S2MPS11_BUCK_STEP1, \ |
115 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ | 115 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ |
116 | .ramp_delay = S2MPS11_RAMP_DELAY, \ | ||
116 | .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \ | 117 | .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \ |
117 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ | 118 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ |
118 | .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \ | 119 | .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \ |
@@ -128,6 +129,7 @@ static struct regulator_ops s2mps11_buck_ops = { | |||
128 | .min_uV = S2MPS11_BUCK_MIN1, \ | 129 | .min_uV = S2MPS11_BUCK_MIN1, \ |
129 | .uV_step = S2MPS11_BUCK_STEP1, \ | 130 | .uV_step = S2MPS11_BUCK_STEP1, \ |
130 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ | 131 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ |
132 | .ramp_delay = S2MPS11_RAMP_DELAY, \ | ||
131 | .vsel_reg = S2MPS11_REG_B5CTRL2, \ | 133 | .vsel_reg = S2MPS11_REG_B5CTRL2, \ |
132 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ | 134 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ |
133 | .enable_reg = S2MPS11_REG_B5CTRL1, \ | 135 | .enable_reg = S2MPS11_REG_B5CTRL1, \ |
@@ -143,6 +145,7 @@ static struct regulator_ops s2mps11_buck_ops = { | |||
143 | .min_uV = S2MPS11_BUCK_MIN1, \ | 145 | .min_uV = S2MPS11_BUCK_MIN1, \ |
144 | .uV_step = S2MPS11_BUCK_STEP1, \ | 146 | .uV_step = S2MPS11_BUCK_STEP1, \ |
145 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ | 147 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ |
148 | .ramp_delay = S2MPS11_RAMP_DELAY, \ | ||
146 | .vsel_reg = S2MPS11_REG_B6CTRL2 + (num - 6) * 2, \ | 149 | .vsel_reg = S2MPS11_REG_B6CTRL2 + (num - 6) * 2, \ |
147 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ | 150 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ |
148 | .enable_reg = S2MPS11_REG_B6CTRL1 + (num - 6) * 2, \ | 151 | .enable_reg = S2MPS11_REG_B6CTRL1 + (num - 6) * 2, \ |
@@ -158,6 +161,7 @@ static struct regulator_ops s2mps11_buck_ops = { | |||
158 | .min_uV = S2MPS11_BUCK_MIN3, \ | 161 | .min_uV = S2MPS11_BUCK_MIN3, \ |
159 | .uV_step = S2MPS11_BUCK_STEP3, \ | 162 | .uV_step = S2MPS11_BUCK_STEP3, \ |
160 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ | 163 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ |
164 | .ramp_delay = S2MPS11_RAMP_DELAY, \ | ||
161 | .vsel_reg = S2MPS11_REG_B9CTRL2, \ | 165 | .vsel_reg = S2MPS11_REG_B9CTRL2, \ |
162 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ | 166 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ |
163 | .enable_reg = S2MPS11_REG_B9CTRL1, \ | 167 | .enable_reg = S2MPS11_REG_B9CTRL1, \ |
@@ -173,6 +177,7 @@ static struct regulator_ops s2mps11_buck_ops = { | |||
173 | .min_uV = S2MPS11_BUCK_MIN2, \ | 177 | .min_uV = S2MPS11_BUCK_MIN2, \ |
174 | .uV_step = S2MPS11_BUCK_STEP2, \ | 178 | .uV_step = S2MPS11_BUCK_STEP2, \ |
175 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ | 179 | .n_voltages = S2MPS11_BUCK_N_VOLTAGES, \ |
180 | .ramp_delay = S2MPS11_RAMP_DELAY, \ | ||
176 | .vsel_reg = S2MPS11_REG_B10CTRL2, \ | 181 | .vsel_reg = S2MPS11_REG_B10CTRL2, \ |
177 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ | 182 | .vsel_mask = S2MPS11_BUCK_VSEL_MASK, \ |
178 | .enable_reg = S2MPS11_REG_B10CTRL1, \ | 183 | .enable_reg = S2MPS11_REG_B10CTRL1, \ |
diff --git a/include/linux/mfd/samsung/s2mps11.h b/include/linux/mfd/samsung/s2mps11.h index ad2252f239d7..4e94dc65f987 100644 --- a/include/linux/mfd/samsung/s2mps11.h +++ b/include/linux/mfd/samsung/s2mps11.h | |||
@@ -189,6 +189,7 @@ enum s2mps11_regulators { | |||
189 | #define S2MPS11_ENABLE_SHIFT 0x06 | 189 | #define S2MPS11_ENABLE_SHIFT 0x06 |
190 | #define S2MPS11_LDO_N_VOLTAGES (S2MPS11_LDO_VSEL_MASK + 1) | 190 | #define S2MPS11_LDO_N_VOLTAGES (S2MPS11_LDO_VSEL_MASK + 1) |
191 | #define S2MPS11_BUCK_N_VOLTAGES (S2MPS11_BUCK_VSEL_MASK + 1) | 191 | #define S2MPS11_BUCK_N_VOLTAGES (S2MPS11_BUCK_VSEL_MASK + 1) |
192 | #define S2MPS11_RAMP_DELAY 25000 /* uV/us */ | ||
192 | 193 | ||
193 | #define S2MPS11_PMIC_EN_SHIFT 6 | 194 | #define S2MPS11_PMIC_EN_SHIFT 6 |
194 | #define S2MPS11_REGULATOR_MAX (S2MPS11_REG_MAX - 3) | 195 | #define S2MPS11_REGULATOR_MAX (S2MPS11_REG_MAX - 3) |