u-boot/drivers/power/pmic
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.c power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU 2021-07-14 16:48:14 -04:00
act8846.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
as3722.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
as3722_gpio.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
bd71837.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
da9063.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fan53555.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
i2c_pmic_emul.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
Kconfig power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU 2021-07-14 16:48:14 -04:00
lp873x.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
lp87565.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU 2021-07-14 16:48:14 -04:00
max8997.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
max8998.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
max77686.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mc34708.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mp5416.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
muic_max8997.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
palmas.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pca9450.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pfuze100.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pm8916.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
pmic-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
pmic_hi6553.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pmic_ltc3676.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_mc34vr500.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_pca9450.c power: pca9450: add a new parameter for power_pca9450_init 2021-04-08 09:18:29 +02:00
pmic_pfuze100.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_pfuze3000.c power: pmic: Let PFUZE3000 see all 256 registers 2018-06-27 09:47:46 +02:00
pmic_tps62362.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
pmic_tps65217.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
pmic_tps65218.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
pmic_tps65910.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
pmic_tps65910_dm.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
rk8xx.c dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS 2021-01-05 12:26:35 -07:00
rn5t567.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s2mps11.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s5m8767.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sandbox.c power: pmic: Correct debug/error output 2018-11-29 09:30:05 -07:00
stpmic1.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
tps65090.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
tps65941.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00