u-boot/include/power
Stephan Gerhold 3f6e4ec7c3 power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU
All devices based on ST-Ericsson Ux500 use a PMIC similar to AB8500
(Analog Baseband). There is AB8500, AB8505, AB9540 and AB8540
although in practice only AB8500 and AB8505 are relevant since the
platforms with AB9540 and AB8540 were cancelled and never used in
production.

In general, the AB8500 PMIC uses I2C as control interface, where the
different register banks are represented as separate I2C devices.
However, in practice AB8500 is always connected to a special I2C bus
on the DB8500 SoC that is controlled by the power/reset/clock
management unit (PRCMU) firmware.

Add a simple driver that allows reading/writing registers of the
AB8500 PMIC. The driver directly accesses registers from the PRCMU
parent device (represented by syscon in U-Boot). Abstracting it
further (e.g. with the i2c uclass) would not provide any advantage
because the PRCMU I2C bus is always just connected to AB8500 and
vice-versa.

The ab8500.h header is mostly taken as-is from Linux (with some
minor adjustments) to allow using similar code in both Linux and
U-Boot.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-07-14 16:48:14 -04:00
..
ab8500.h power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU 2021-07-14 16:48:14 -04:00
acpi_pmc.h dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
act8846_pmic.h
as3722.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
battery.h
bd71837.h
da9063_pmic.h power: regulator: add driver for Dialog DA9063 PMIC 2020-01-27 19:54:20 -05:00
fan53555.h power: fan53555: add support for Silergy SYR82X and SYR83X 2019-11-23 22:29:49 +08:00
fg_battery_cell_params.h
hi6553_pmic.h
lp873x.h
lp87565.h
ltc3676_pmic.h
max8997_muic.h
max8997_pmic.h
max8998_pmic.h
max17042_fg.h
max77686_pmic.h
max77693_fg.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
max77693_muic.h
max77693_pmic.h
mc34vr500_pmic.h
mp5416.h power: pmic: add driver for Monolithic Power mp5416 2021-01-18 15:23:06 -05:00
palmas.h
pca9450.h power: pca9450: add a new parameter for power_pca9450_init 2021-04-08 09:18:29 +02:00
pfuze100_pmic.h
pfuze3000_pmic.h
pmic.h
power_chrg.h
regulator.h power: regulator: Add support for regulator-force-boot-off 2021-04-29 07:38:57 +02:00
rk8xx_pmic.h power: pmic: rk809: support rk809 pmic 2019-11-10 20:34:10 +08:00
rn5t567_pmic.h
s2mps11.h
s5m8767.h
sandbox_pmic.h
stpmic1.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tps62362.h
tps65090.h
tps65217.h
tps65218.h
tps65910.h
tps65910_pmic.h
tps65941.h power: pmic: tps65941: Add support for tps65941 family of PMICs 2019-11-07 18:39:16 -05:00