12 Feb, 2016
2 commits
-
This patch adds support for TPS65912 PMIC regulators.
The regulators set consists of 4 DCDCs and 10 LDOs. The output
voltages are configurable and are meant to supply power to the
main processor and other components.Signed-off-by: Andrew F. Davis
Acked-by: Mark Brown
Signed-off-by: Lee Jones -
The old tps65912 driver is being replaced, delete old driver.
Signed-off-by: Andrew F. Davis
Acked-by: Mark Brown
Acked-by: Linus Walleij
Signed-off-by: Lee Jones
20 Oct, 2014
1 commit
-
A platform_driver does not need to set an owner, it will be populated by the
driver core.Signed-off-by: Wolfram Sang
24 Oct, 2013
1 commit
11 Oct, 2013
2 commits
-
Add REGULATOR_LINEAR_RANGE macro and convert regulator drivers to use it.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
linear ranges means each range has linear voltage settings.
So we can calculate max_uV for each linear range in regulator core rather than
set the max_uV field in drivers.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
17 Sep, 2013
1 commit
-
devm_* simplifies the code.
Signed-off-by: Sachin Kamat
Signed-off-by: Mark Brown
24 Jul, 2013
1 commit
-
The ldo voltage table is composed of linear ranges.
Below is the equation in original code (tps65912_vsel_to_uv_ldo):
0 ... 32: uv = vsel * 25000 + 800000;
33 ... 60: uv = (vsel - 32) * 50000 + 1600000;
= (vsel -33) * 50000 + 1650000;
61 ...63: uv = (vsel - 60) * 100000 + 3000000;
= (vsel - 61) * 100000 + 3100000;This patch converts tps65912_ops_ldo to use multiple linear ranges APIs.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
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
23 Apr, 2012
2 commits
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
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.For the drivers that don't need the delay, don't need to include linux/delay.h.
This patch removes the unneeded include of linux/delay.h in regulator drivers.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
11 Apr, 2012
1 commit
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
09 Apr, 2012
1 commit
-
Rather than adding new arguments to regulator_register() every time we
want to add a new bit of dynamic information at runtime change the function
to take these via a struct. By doing this we avoid needing to do further
changes like the recent addition of device tree support which required each
regulator driver to be updated to take an additional parameter.The regulator_desc which should (mostly) be static data is still passed
separately as most drivers are able to configure this statically at build
time.Signed-off-by: Mark Brown
01 Apr, 2012
2 commits
-
Now tps65912_get_voltage_dcdc and tps65912_get_voltage_ldo has exactly the same
implementation. We can merge them to tps65912_get_voltage function.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Merge tps65912_list_voltage_dcdc and tps65912_list_voltage_ldo to
tps65912_list_voltage. This change does not add too much complexity in
tps65912_list_voltage function.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
14 Mar, 2012
3 commits
-
Call tps65912_get_sel_register instead of duplicating the same code.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
commit 42b5ef "regulator: tps65912: Use simple equations to get register address"
uses tps65912_get_sel_register to replace tps65912_get_dcdc_sel_register
and tps65912_get_ldo_sel_register.Now tps65912_set_voltage_dcdc_sel and tps65912_set_voltage_ldo_sel has exactly
the same implementation. Merge them to tps65912_set_voltage_sel function.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
The address of ctrl and sel registers can be calculated by simple equations.
This patch simplifies the implementation in tps65912_get_ctrl_register and
implements tps65912_get_sel_register to replace tps65912_get_dcdc_sel_register
and tps65912_get_ldo_sel_register.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
12 Mar, 2012
3 commits
-
Then we can use the regulator id as array index to access the array.
This change makes the code simpler.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
This change improves readability.
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Call tps65912_list_voltage_dcdc instead of duplicating the same code.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
24 Nov, 2011
1 commit
-
With device tree support for regulators, its needed that the
regulator_dev->dev device has the right of_node attached.
To be able to do this add an additional parameter to the
regulator_register() api, wherein the dt-adapted driver can
then pass this additional info onto the regulator core.Signed-off-by: Rajendra Nayak
Signed-off-by: Mark Brown
09 Aug, 2011
1 commit
-
Currently we define TPS65912_MAX_REG_ID as TPS65912_REG_LDO_10,
but TPS65912_REG_LDO_10 is not defined at all.
( It looks like a typo of TPS65912_REG_LDO10 )
Currently, TPS65912_MAX_REG_ID is not used in this driver,
it is safe to just remove it.Signed-off-by: Axel Lin
Acked-by: Mark Brown
Signed-off-by: Liam Girdwood
01 Aug, 2011
2 commits
-
get_ctrl_reg() returns -EINVAL so the error handling won't work here
if reg is a u8.Signed-off-by: Dan Carpenter
Signed-off-by: Samuel Ortiz -
The tps65912 consist of 4 DCDCs and 10 LDOs. The output voltages can be
configured by the SPI or I2C interface, they are meant to supply power
to the main processor and other components.Signed-off-by: Margarita Olaya Cabrera
Acked-by: Mark Brown
Acked-by: Liam Girdwood
Signed-off-by: Samuel Ortiz