Skip to contentSkip to conversation

regulator: tps62360: support force PWM mode via regulator mode

PATCH Applied Laxman Dewangan 2 participants 2 messages May 14, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: tps62360: support force PWM mode via regulator mode

Change the mechanism of enabling the force PWM mode through regulator set mode. This can be dynamically configured now. In the REGULATOR_MODE_FAST the force PWM is enabled and in REGULATOR_MODE_NORMAL the force PWM is disabled.

---
There was discussion on the dt support patch that force pwm should be mapped to regulator mode. Although modern regulator does not need this to be enable but still saw some latest regulator having this configuration and it is better to have this support in driver and hence sending the patch.

 .../bindings/regulator/tps62360-regulator.txt      |    1 -
 drivers/regulator/tps62360-regulator.c             |  102 +++++++++++++-------
 include/linux/regulator/tps62360.h                 |    2 -
 3 files changed, 65 insertions(+), 40 deletions(-)
Documentation/devicetree/bindings/regulator/tps62360-regulator.txt +0 -1
index f411b57..c8ca6b8 100644
@@ -9,7 +9,6 @@ Required properties:
 - reg: I2C slave address
 
 Optional properties:
-- ti,enable-force-pwm: Enable force PWM mode. This is boolean value.
 - ti,enable-vout-discharge: Enable output discharge. This is boolean value.
 - ti,enable-pull-down: Enable pull down. This is boolean value.
 - ti,vsel0-gpio: GPIO for controlling VSEL0 line.
drivers/regulator/tps62360-regulator.c +65 -37

150 lines not on this page · raw message

include/linux/regulator/tps62360.h +0 -2
index 5e11d50..a4c4939 100644
@@ -30,7 +30,6 @@
  * struct tps62360_regulator_platform_data - tps62360 regulator platform data.
  *
  * @reg_init_data: The regulator init data.
- * @en_force_pwm: Enable force pwm or not.
  * @en_discharge: Enable discharge the output capacitor via internal
  *                register.
  * @en_internal_pulldn: internal pull down enable or not.
@@ -43,7 +42,6 @@
  */
 struct tps62360_regulator_platform_data {
 	struct regulator_init_data *reg_init_data;
-	bool en_force_pwm;
 	bool en_discharge;
 	bool en_internal_pulldn;
 	int vsel0_gpio;
Signature · 1 line
1.7.1.1
Applied
#1 lore raw
Quoted 4 lines · Laxman Dewangan

Change the mechanism of enabling the force PWM mode through regulator set mode. This can be dynamically configured now. In the REGULATOR_MODE_FAST the force PWM is enabled and in REGULATOR_MODE_NORMAL the force PWM is disabled.

Applied, thanks.