27 Apr, 2020
1 commit
-
The iMX8MM EVK board uses BD71837MWV pmic. Add its Non-DM driver to u-boot.
Signed-off-by: Ye Li
(cherry picked from commit e9a3bec2e95a4b2b4641223c8ee4ebd8da76d7f9)
06 Feb, 2020
2 commits
-
At present dm/device.h includes the linux-compatible features. This
requires including linux/compat.h which in turn includes a lot of headers.
One of these is malloc.h which we thus end up including in every file in
U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
which needs to use the system malloc() in some files.Move the compatibility features into a separate header file.
Signed-off-by: Simon Glass
-
This currently reads the uclass's private data in the ofdata_to_platdata
method which is not allowed, since the uclass has not read it from the
device tree. This happens in the probe method.Fix it by adding a probe() method and moving the code there.
Signed-off-by: Simon Glass
28 Jan, 2020
1 commit
-
This adds the basic register access operations and child regulator
binding (if a regulator driver exists).Robert Beckett: simplify accesses by using bottom bit of address as
offset overflow. This avoids the need to track which page we are on.
Add an option CONFIG_SPL_DM_PMIC_DA9063.Signed-off-by: Martin Fuzzey
Signed-off-by: Robert Beckett
08 Jan, 2020
1 commit
-
PCA9450 PMIC series is used to support iMX8MM (PCA9450A) and
iMX8MN (PCA9450B). Add the PMIC driver for both PCA9450A and PCA9450B.Signed-off-by: Robin Gong
Signed-off-by: Ye Li
Signed-off-by: Peng Fan
03 Dec, 2019
1 commit
-
This function belongs in time.h so move it over and add a comment.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
23 Nov, 2019
1 commit
-
SYR82X and SYR83X are almost identical to FAN53555, the only difference
is different die ID and revision, voltage ranges and steps.Signed-off-by: Vasily Khoruzhick
Tested-by: Anand Moon
Reviewed-by: Kever Yang
12 Nov, 2019
1 commit
-
- Add support for rockchip pmic rk805,rk809, rk816, rk817
- Add rk3399 board Leez support
- Fix bug in rk3328 ram driver
- Adapt SPL to support ATF bl31 with entry at 0x40000
- Fix the u8 type comparision with '-1'.
- Fix checkpatch warning for multi blank line and review signature.
10 Nov, 2019
4 commits
-
The RK809 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(5*BUCKs, 9*LDOs, 2*SWITCHes)
- RTC
- ClockingSigned-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
Reviewed-by: Kever Yang -
The RK817 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1* BOOST, 9*LDOs, 1*SWITCH)
- RTC
- ClockingSigned-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
Reviewed-by: Kever Yang -
The RK805 are a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 3*LDOs)
- RTC
- ClockingSigned-off-by: Elaine Zhang
Reviewed-by: Kever Yang -
The RK816 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1*BOOST, 6*LDOs, 1*SWITCH)
- RTC
- ClockingSigned-off-by: Elaine Zhang
Reviewed-by: Kever Yang
08 Nov, 2019
1 commit
-
Add support to bind the regulators/child nodes with the pmic.
Signed-off-by: Keerthy
04 Nov, 2019
2 commits
-
Add CONFIG_SPL_DM_PMIC_BD71837 to make this driver could be
used in SPL stageSigned-off-by: Peng Fan
-
Drop DEBUG macro definition which is used for debug purpose.
Signed-off-by: Peng Fan
27 Aug, 2019
2 commits
-
Retrieve parent device from dev->parent instead of
calling uclass_get_device_by_driver()Signed-off-by: Patrick Delaunay
-
Use MISC u-class to export the NVM register (starting at 0xF8 offset)
and avoid specific API.
- SHADOW have offset < 0.
- NVM have register > 0Signed-off-by: Patrick Delaunay
19 Aug, 2019
1 commit
-
This is a generic implementation. Add CONFIG_SYSRESET_CMD_POWEROFF
to signal when we need it. Enable it from the STPMIC1 config and in
sandbox.The config flag is transitionary, that is it can be removed after all
poweroff implementations use sysreset, and just have CMD_POWEROFF depend
on sysreset.Signed-off-by: Urja Rannikko
Reviewed-by: Patrice Chotard
Reviewed-by: Patrick Delaunay
Tested-by: Patrick Delaunay
19 Jul, 2019
1 commit
-
BD71837 and BD71847 is PMIC intended for powering single-core,
dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847
is used for example on NXP imx8mm EVK.Add regulator driver for ROHM BD71837 and BD71847 PMICs.
BD71837 contains 8 bucks and 7 LDOS. BD71847 is reduced
version containing 6 bucks and 6 LDOs. Voltages for DVS
bucks (1-4 on BD71837, 1 and 2 on BD71847) can be adjusted
when regulators are enabled. For other bucks and LDOs we may
have over- or undershooting if voltage is adjusted when
regulator is enabled. Thus this is prevented by default.BD718x7 has a quirk which may leave power output disabled
after reset if enable/disable state was controlled by SW.
Thus the SW control is only allowed for BD71837 bucks
3 and 4 by default. The impact of this limitation must be
evaluated board-by board and restrictions may need to be
modified. (Linux driver get's these limitations from DT and we
may want to implement same on u-Boot driver).Signed-off-by: Matti Vaittinen
Reviewed-by: Simon Glass
14 Jul, 2019
1 commit
-
- syscon: add support for power off
- stm32mp1: add op-tee config
- stm32mp1: add specific commands: stboard and stm32key
- add stm32 mailbox driver
- solve many stm32 warnings when building with W=1
- update stm32 gpio driver
13 Jul, 2019
1 commit
-
Add SPL_PMIC configs for palmas/lp873x/lp87565. These were missing
and the Makefile already assumes them to be defined. Add the corresponding
SPL config options. This enables the pmics in SPL.Signed-off-by: Keerthy
12 Jul, 2019
1 commit
-
Adds support for SYSRESET_POWER_OFF = PMIC power off used by command
power off and introduced by commit 751fed426f87 ("sysreset: Add a way
to find the last reset").
The driver use SYSRESET_POWER for the PMIC-level power cycle, with restart.Signed-off-by: Patrick Delaunay
11 Jun, 2019
1 commit
-
https://source.codeaurora.org/external/imx/uboot-imx
cherry picked, styled and merged commits:
- MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a
- MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96Signed-off-by: Ye Li
Signed-off-by: Matti Vaittinen
Reviewed-by: Simon Glass
12 Apr, 2019
4 commits
-
Add functions to read/update the non volatile memory of STPMIC1
(8 bytes-register at 0xF8 address) and allow access
with fuse command (bank=1, word > 0xF8).For example:
STM32MP> fuse read 1 0xf8 8
Reading bank 1:Word 0x000000f8: 000000ee 00000092 000000c0 00000002
Word 0x000000fc: 000000f2 00000080 00000002 00000033Signed-off-by: Patrick Delaunay
-
Add sysreset support, and support power switch off request,
needed by poweroff command.Signed-off-by: Patrick Delaunay
-
Alignment with kernel driver name & binding
introduced by https://patchwork.kernel.org/cover/10761943/
to use the final marketing name = STPMIC1.Signed-off-by: Patrick Delaunay
Reviewed-by: Lukasz Majewski -
Prepare file modification for kernel alignment and
rename driver to stpmic1.Signed-off-by: Patrick Delaunay
Reviewed-by: Lukasz Majewski
10 Dec, 2018
3 commits
-
Improvements:
- init DRAM for RK322x in SPL
- add FAN53555 PMIC/regulator driver
- update MicroCrystal RV3029 driver to Kconfig and sync from Linux
- add bootcount uclass and first DM-driver for bootcount -
This adds a driver for the FAN53555 family of regulators and wraps it
in a PMIC implementation.While these devices support a 'normal' and 'suspend' mode (controlled
via an external pin) to switch between two programmable voltages, this
incarnation of the driver assumes that the device is always operating
in 'normal' mode.Only setting/reading the programmed voltage is supported at this time
and the following device functionality remains unsupported:
- switching the selected voltage (via a GPIO)
- disabling the voltage output via software-control
This matches the functionality of the Linux driver.Tested on a RK3399-Q7 (with 'option 5' devices): setting voltages from
the U-Boot shell and verifying output voltages on the board.Signed-off-by: Philipp Tomsich
Tested-by: Klaus Goger -
Those driver are not DM drivers per se (not using the PMIC/regulator
framework) and are using the legacy I2C API. Make them compatible with
the DM_I2C API.This impacts the following drivers:
- palmas (used by am57xx/dra7xx evms)
- tps65218 (used by am43xx evms)
- tps65217 and tps65910 (used by am335x evms and am335x boneblack vboot)
- twl4030 (used by omap3_logicpd)
- tps65217 (used by brppt1)
- twl6030Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher
30 Nov, 2018
2 commits
-
Update the device tree, sandbox i2c driver and tests to use the new
emulation parent to hold emulators.Signed-off-by: Simon Glass
-
There is a newline missing from quite a few printf() strings in these pmic
files. Fix them.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
30 Jul, 2018
1 commit
-
Remove additional trailing whitespaces in prompt reported by kconfiglib:
warning: DM_PMIC_SANDBOX (defined at drivers/power/pmic/Kconfig:133) has
leading or trailing whitespace in its prompt
warning: (defined at dts/Kconfig:204) has leading or trailing
whitespace in its promptSigned-off-by: Michal Simek
Reviewed-by: Felix Brack
27 Jun, 2018
1 commit
-
The PFUZE3000 uses registers addresses up to 0xff.
The DM pfuze100 driver supports both pfuze100 and pfuze3000. Allow it
to use the device type to return the correct number of registers.Also rename the too generic PMIC_NUM_OF_REGS enumeration value for
pfuze3000 to match the other "PFUZE3000_" prefixed enumerations and the
pfuze100 enumeration value PFUZE100_NUM_OF_REGS.Cc: Peng Fan
Cc: Jaehoon Chung
Cc: Stefano Babic
Cc: Fabio Estevam
Signed-off-by: Trent Piepho
Reviewed-by: Fabio Estevam
18 May, 2018
4 commits
-
This change enables support for MC34708 PMIC in sandbox. Now we can
emulate the I2C transfers larger than 1 byte.Notable changes for this driver:
- From now on the register number is not equal to index in the buffer,
which emulates the PMIC registers- The PMIC register's pool is now dynamically allocated up till
64 regs * 3 bytes each = 192 BSigned-off-by: Lukasz Majewski
Reviewed-by: Simon Glass -
This patch adds support for MC34708 PMIC, to be used with driver model
(DM).Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass -
This commit provides support for transmissions larger than 1 byte for
PMIC devices used with DM (e.g. MC34708 from NXP).Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass -
The struct uc_pmic_priv's trans_len field stores the number of types to
be transmitted per PMIC transfer.Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
09 May, 2018
1 commit
08 May, 2018
1 commit
-
Add regulator bindings to get access to regulator managed
by drivers/power/regulator/stpmu1.c regulator driver.Signed-off-by: Christophe Kerello
Signed-off-by: Patrick Delaunay
Signed-off-by: Patrice Chotard