12 May, 2013
1 commit
-
All the drivers that need delay for the regulator voltage output voltage to
stabilize after being enabled or after being set to a new value has been
converted to implement enable_time and set_voltage_time_sel callbacks.
Then regulator core will take care of the necessary delay.This patch removes the unneeded include of linux/delay.h in regulator drivers.
Signed-off-by: Axel Lin
Cc: Daniel Jeong
Cc: Sangbeom Kim
Cc: Chiwoong Byun
Signed-off-by: Mark Brown
28 Apr, 2013
1 commit
-
Ensure max77686->opmode always has correct status.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
14 Feb, 2013
1 commit
-
Signed-off-by: Thiago Farina
Signed-off-by: Mark Brown
27 Jan, 2013
1 commit
-
Use &pdev->dev rather than iodev->dev for dev_err().
Use &pdev->dev rather than iodev->dev for devm_kzalloc() and
of_regulator_match(), this fixes memory leak.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
10 Dec, 2012
1 commit
20 Nov, 2012
3 commits
-
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown -
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown -
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown
22 Oct, 2012
1 commit
-
This patch fixes a sparse warning. Since max77686_enable() is a callback,so it
should be static.Signed-off-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown
17 Oct, 2012
2 commits
-
This patch implements set_suspend_disable callback for BUCKs which
support only switch ON/OFF modes during system suspend state, and
set_suspend_mode callbacks for LDOs which also suport Low power mode and
switch ON/OFF modes.Signed-off-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown -
This patch adds basic support to take care of opmode(if any) which can be set by
set_suspend_[disable/mode] callbacks.Signed-off-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown
29 Aug, 2012
2 commits
-
MAX77686_REGULATORS is known in compile time.
Use array to save pointer to rdev makes the code simpler.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Initialize config.of_node for regulator before registering.
This is needed for DT based regulator support.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
07 Jul, 2012
1 commit
-
Now of_regulator_match() returns without finding the match if match->of_node
is not NULL.Signed-off-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown
05 Jul, 2012
1 commit
-
This patch device tree support for regulator driver. It uses the parent
(mfd's) DT node to parse the regulator data for max77686.Signed-off-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown
20 Jun, 2012
2 commits
-
This patch implements the .set_ramp_delay callback to set the ramp_delay on
hardware for BUCK2/3/4 if ramp_delay is set in regulator constraints.This patch also do some cleaning work for unrequired members of
struct max77686_data.Signed-off-by: Yadwinder Singh Brar
Acked-by: MyungJoo Ham
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
19 Jun, 2012
1 commit
-
This patch converts the driver to use regulator_set_voltage_time_sel() as
.set_voltage_time_sel() callback. It also sets ramp_delay as 100000 uV/us for
LDOs & normal BUCKs and 27500 uV/us(default/reset value) for BUCKs[2/3/4] in
regulator_desc[].Signed-off-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown
11 Jun, 2012
2 commits
-
rdev->desc->uV_step * abs(new_selector - old_selector) returns uV.
The unit of ramp_rate is mV/us.
Thus 1000 should be multiplied.Signed-off-by: Axel Lin
Reviewed-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown -
If this driver only works when pdata->num_regulators == MAX77686_REGULATORS,
let's check it earlier.Also remove unused num_regulators from struct max77686_data.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
04 Jun, 2012
2 commits
-
Fix below checkpatch warnings:
$ scripts/checkpatch.pl -f drivers/regulator/max77686.c
ERROR: return is not a function, parentheses are not required
+ return (DIV_ROUND_UP(rdev->desc->uV_stepWARNING: line over 80 characters
+ .ops = &max77686_buck_dvs_ops, \total: 1 errors, 1 warnings, 339 lines checked
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Both max77686_ops and max77686_buck_dvs_ops use simple linear voltage maps.
Thus use regulator_map_voltage_linear is more efficient than using the defult
regulator_map_voltage_iterate.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
03 Jun, 2012
1 commit
-
Add driver for support max77686 regulator.
MAX77686 provides LDOs[1~26] and BUCKs[1~9]. It support to set or get the
volatege of regulator on max77686 chip with using regmap.Signed-off-by: Chiwoong Byun
Signed-off-by: Jonghwa Lee
Signed-off-by: Myungjoo Ham
Signed-off-by: Kyungmin Park
Reviewed-by: Yadwinder Singh Brar
Signed-off-by: Mark Brown