23 May, 2018
1 commit
-
The iMX8MM EVK board uses BD71837MWV pmic. Add its driver to u-boot.
Signed-off-by: Ye Li
24 Jan, 2018
1 commit
-
exynos5422 has the s2mps11 PMIC.
s2mps11 pmic has the 10-BUCK and 38-LDO regulators.
Each IP and devices in exynos5422 can be controlled by each regulators.
This patch is support for s2mps11 regulator driver.Signed-off-by: Jaehoon Chung
Reviewed-by: Simon Glass
Tested-by: Anand Moon
29 Dec, 2017
1 commit
-
Include dm/ofnode.h.
Signed-off-by: Peng Fan
Reviewed-by: Simon Glass
Cc: Stefano Babic
Reviewed-by: Fabio Estevam
13 Dec, 2017
2 commits
-
Texas Instrument's TPS65910 PMIC contains 3 buck DC-DC converts, one
boost DC-DC converter and 8 LDOs. This patch implements driver model
support for the TPS65910 PMIC and its regulators making the get/set
API for regulator value/enable available.
This patch depends on the patch "am33xx: Add a function to query MPU
voltage in uV" to build correctly. For boards relying on the DT
include file tps65910.dtsi the v3 patch "power: extend prefix match
to regulator-name property" and an appropriate regulator naming is
also required.Signed-off-by: Felix Brack
Reviewed-by: Simon Glass -
This patch extends pmic_bind_children prefix matching. In addition to
the node name the property regulator-name is used while trying to match
prefixes. This allows assigning different drivers to regulator nodes
named regulator@1 and regulator@10 for example.
I have discarded the idea of using other properties then regulator-name
as I do not see any benefit in using property compatible or even
regulator-compatible. Of course I am open to change this if there are
good reasons to do so.Signed-off-by: Felix Brack
Reviewed-by: Simon Glass
01 Aug, 2017
1 commit
-
Some LDOs have a bypass capability. Make sure that the bypass is disabled
when is the LDO is enabled (otherwise the voltage can't be changed).Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Keerthy
Reviewed-by: Tom Rini
29 Jul, 2017
3 commits
-
Convert this PMIC driver to driver model and fix up other users. The
regulator and GPIO functions are now handled by separate drivers.Update nyan-big to work correct. Three boards will need to be updated by
the maintainers: apalis-tk1, cei-tk1-som. Also the TODO in the code re
as3722_sd_set_voltage() needs to be completed.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
Tested-by: Marcel Ziswiler
Tested-on: Jetson-TK1
Tested-by: Stephen Warren -
This pmic includes GPIOs which should have their own driver. Add
a driver to support these.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren -
This pmic includes regulators which should have their own driver. Add
a driver to support these.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren
19 Jul, 2017
1 commit
-
Change get_enable return type to int so errors can be returned.
Signed-off-by: Keerthy
Reviewed-by: Simon Glass
11 Jul, 2017
1 commit
-
The RK818 PMIC contains a charger. Add very basic charger functionality
to be able to regulate the USB input current and charger shutdown limits.Signed-off-by: Wadim Egorov
Reviewed-by: Simon Glass
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
09 Jun, 2017
3 commits
-
The addresses of the registers in TI TPS65217 are not continuous.
There is a gap between ENABLE(0x16) and DEFUVLO(0x18). No 0x17
register available.Fixup the enum values by adding a 'reserved' placeholder to correct
the addresses higher than 0x17.Series-to: Heiko Schocher
Signed-off-by: Brock Zheng Techyauld Ltd
Reviewed-by: Lukasz Majewski -
Add support to bind the regulators/child nodes with the pmic.
Signed-off-by: Keerthy
Signed-off-by: Jaehoon Chung -
Add ddr voltage rail (dcdc3) configuration. Set the dcdc3
DDR supply to 1.35V.Signed-off-by: Keerthy
Reviewed-by: Tom Rini
Reviewed-by: Lokesh Vutla
01 Jun, 2017
1 commit
-
Update the pmic uclass and all pmics to support a live device tree.
Signed-off-by: Simon Glass
29 May, 2017
1 commit
-
Currently while setting the vsel value for dcdc1 and dcdc2
the driver is wrongly masking the entire 8 bits in the process
clearing PFM (bit7) field as well. Hence describe an appropriate
mask for vsel field and modify only those bits in the vsel
mask.Source: http://www.ti.com/lit/ds/symlink/tps65218.pdf
Signed-off-by: Keerthy
Fixes: 86db550b38 ("power: Add support for the TPS65218 PMIC")
Reviewed-by: Jaehoon Chung
12 May, 2017
1 commit
-
Update MPU frequencies and voltages as per the latest
DM[1] dated: OCT 2011 Revised APRIL 2016, Section 5.4.
Below is the consolidated data:MPU values for PG 2.0 and later(Package ZCZ and ZCE):
-------------------------------------------------------
| | ZCZ | ZCE |
|-------------------------------------------------------|
| | VDD[V] | ARM [MHz] | VDD[V] | ARM [MHz] |
|-------|----------|------------|----------|------------|
| NITRO | 1.325 | 1000 | NA | NA |
|-------|----------|------------|----------|------------|
| TURBO | 1.26 | 800 | NA | NA |
|-------|----------|------------|----------|------------|
|OPP120 | 1.20 | 720 | NA | NA |
|-------|----------|------------|----------|------------|
|OPP100 | 1.10 | 600 | 1.10 | 600 |
|-------|----------|------------|----------|------------|
| OPP50 | 0.95 | 300 | 0.95 | 300 |
-------------------------------------------------------There is no eFuse blown on PG1.0 Silicons due to which there is
no way to detect the maximum frequencies supported. So default
to OPP100 for which both frequency and voltages are common on both
the packages.[1] http://www.ti.com/lit/ds/symlink/am3356.pdf
Signed-off-by: Lokesh Vutla
Reviewed-by: Tom Rini
11 May, 2017
3 commits
-
Since this driver can be used for rk8xx series pmic,
let's rename rk808 to rk8xx, to make it clear.Configs parts are done by sed -i "s/RK808/RK8XX/g" `grep RK808 -lr ./`
Signed-off-by: Jacob Chen
-
The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld
devices.For boards use rk818, the input current should be set in the early stage, before
ddr initialization.Signed-off-by: Jacob Chen
-
Both RK808 and RK818 chips are using a similar register map,
so we can reuse them.I have also add reg prefix to exist registers, to keep them same style.
Signed-off-by: Jacob Chen
Reviewed-by: Simon Glass
19 Jan, 2017
2 commits
-
Signed-off-by: Hou Zhiqiang
Reviewed-by: Jaehoon Chung
Reviewed-by: York Sun -
This patch adds a simple pmic driver for the mc34vr500 pmic which
is used in conjunction with the fsl T1 and LS1 series SoC.Signed-off-by: Hou Zhiqiang
Reviewed-by: Jaehoon Chung
Reviewed-by: York Sun
16 Dec, 2016
1 commit
-
Add pfuze3000 voltage configuration macro for SW1AB, SW3 and VLDO1/2 according
to tables 53, 57 and 62 on PF3000 datasheet.Signed-off-by: Breno Lima
26 Nov, 2016
1 commit
-
In case we want to force a particular value on a regulator
irrespective of the min/max constraints for testing purposes
one can call regulator_set_value_force function.Signed-off-by: Keerthy
Reviewed-by: Simon Glass
12 Oct, 2016
4 commits
-
Add support to bind the regulators/child nodes with the pmic.
Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
Add support to bind the regulators/child nodes with the pmic.
Also adds the pmic i2c based read/write funtions to access pmic
registers.Signed-off-by: Keerthy
Reviewed-by: Simon Glass
Reviewed-by: Tom Rini -
The ctrl reg contains bit fields to enable and disable regulators,
and volt_reg has the bit fields to configure the voltage values.
The registers are frequently accessed hence make them part
of dm_regulator_uclass_platdata structure.Signed-off-by: Keerthy
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass -
Add support for gpio regulators. As of now this driver caters
to gpio regulators with one gpio. Supports setting voltage values to gpio
regulators and retrieving the values.Signed-off-by: Keerthy
Reviewed-by: Simon Glass
07 Oct, 2016
1 commit
-
Add device model enabled PMIC driver for Ricoh RN5T567 PMIC used
on Colibri iMX7.Signed-off-by: Stefan Agner
Reviewed-by: Simon Glass
28 Jul, 2016
1 commit
-
This new function is more convenient for callers, and handles pre-relocation
situations automatically.Signed-off-by: Simon Glass
10 Jun, 2016
1 commit
-
add the following defines, needed for the upcoming shc board
support:Signed-off-by: Heiko Schocher
Reviewed-by: Tom Rini
25 Feb, 2016
1 commit
-
Add the following functions:
tps65218_reg_read() for accessing redisters
tps65218_toggle_fseal() for toggling the fseal bit
tps65218_lock_fsea() for locking the fseal bit to 1Add the following defines:
All status register bitsCc: Tom Rini
Cc: Albert Aribaud
Cc: Igor Grinberg
Signed-off-by: Nikita Kiryanov
Reviewed-by: Tom Rini
22 Jan, 2016
1 commit
-
This Rockchip PMIC provides features suitable for battery-powered
applications. It is commonly used with Rockchip SoCs.Add a driver which provides register access. The regulator driver will use
this.Signed-off-by: Simon Glass
13 Jan, 2016
1 commit
-
include/power/pmic.h never used any generic spi code
from include/spi.h, but this has been added in below commit.
"dm: pmic: add implementation of driver model pmic uclass"
(sha1: 4d9057e82be11a862db411c4867e859fe0d4ca2a)Adding functionalities in include/spi.h will trigger a build
issue as this been added used in include/power/pmic.hBuild issue on trats2 with adding BIT macro on spi.h:
----------------------------------------------------
CC lib/asm-offsets.s
In file included from include/power/pmic.h:15:0,
from include/power/max77686_pmic.h:11,
from include/configs/trats2.h:212,
from include/config.h:5,
from include/common.h:18,
from lib/asm-offsets.c:15:
include/spi.h: In function 'spi_w8r8':
include/spi.h:327:2: warning: implicit declaration of function 'BIT' [-Wimplicit-function-declaration]Cc: Simon Glass
Cc: Przemyslaw Marczak
Reported-by: Tom Rini
Signed-off-by: Jagan Teki
Reviewed-by: Tom Rini
Acked-by: Simon Glass
02 Nov, 2015
3 commits
-
This commit adds unit tests for ADC uclass's methods using sandbox ADC.
Testing proper ADC binding:
- dm_test_adc_bind() - device binding
- dm_test_adc_wrong_channel_selection() - checking wrong channel selectionTesting ADC supply operations:
- dm_test_adc_supply():
- Vdd/Vss values validating
- Vdd regulator updated value validating
- Vdd regulator's auto enable state validatingTesting ADC operations results:
- dm_test_adc_single_channel_conversion() - single channel start/data
- dm_test_adc_single_channel_shot() - single channel shot
- dm_test_adc_multi_channel_conversion() - multi channel start/data
- dm_test_adc_multi_channel_shot() - multi channel single shotSigned-off-by: Przemyslaw Marczak
Cc: Simon Glass
Signed-off-by: Minkyu Kang -
Some devices are supplied by configurable regulator's output.
But there was no function for getting it. This commit adds
function, that allows for getting the supply device by it's phandle.The returned regulator device can be used with regulator uclass's API.
Signed-off-by: Przemyslaw Marczak
Cc: Simon Glass
Signed-off-by: Minkyu Kang -
This driver allows I/O operations on the Samsung S2MPS11 PMIC,
which provides lots of LDO/BUCK outputs.To enable it, update defconfig with:
- CONFIG_PMIC_S2MPS11
and additional, if were not defined:
- CONFIG_CMD_PMIC
- CONFIG_ERRNO_STRThe binding info: doc/device-tree-bindings/pmic/s2mps11.txt
Signed-off-by: Przemyslaw Marczak
Reviewed-by: Simon Glass
Tested-by: Anand Moon
Signed-off-by: Minkyu Kang
04 Sep, 2015
1 commit
03 Sep, 2015
1 commit
-
Add a driver for the ACT8846 PMIC. This supports several LDOs and BUCKs and
is connected to the I2C bus. This driver supports using a regulator driver
to access the regulators.Signed-off-by: Simon Glass
02 Sep, 2015
1 commit
-
* Add pmic pfuze3000 support, implement power_pfuze3000_init to be
used in power_init_board callback function.Signed-off-by: Adrian Alonso
Signed-off-by: Peng Fan