u-boot/drivers/power/regulator
Quentin Schulz f172575d92 power: rk8xx: add support for RK806
This adds support for RK806, only the SPI variant has been tested.

The communication "protocol" over SPI is the following:
 - write three bytes:
   - 1 byte: [0:3] length of the payload, [6] Enable CRC, [7] Write
   - 1 byte: LSB register address
   - 1 byte: MSB register address
 - write/read length of payload

The CRC is always disabled for now.

The RK806 technically supports I2C as well, and this should be able to
support it without any change, but it wasn't tested.

The DT node name prefix for the buck converters has changed in the
Device Tree and is now dcdc-reg. The logic for buck converters is
however manageable within the current logic inside the rk8xx regulator
driver. The same cannot be said for the NLDO and PLDO.

Because pmic_bind_children() parses the DT nodes and extracts the LDO
index from the DT node name, NLDO and PLDO will have overlapping
indices. Therefore, we need a separate logic from the already-existing
ldo callbacks. Let's reuse as much as possible though.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2024-03-14 18:19:44 +08:00
..
act8846.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
anatop_regulator.c power: regulator: add driver for ANATOP regulator 2021-04-20 07:31:12 -04:00
as3722_regulator.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
axp_regulator.c power: regulator: add AXP313 support 2023-11-12 16:47:16 +00:00
axp_usb_power.c power: regulator: Add a driver for the AXP USB power supply 2023-04-28 01:29:40 +01:00
bd71837.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
da9063.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
fan53555.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
fixed.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
gpio-regulator.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
Kconfig power: regulator: tps65911: add regulator support 2023-11-03 12:37:15 -04:00
lp873x_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
lp87565_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
Makefile power: regulator: tps65911: add regulator support 2023-11-03 12:37:15 -04:00
max77663_regulator.c power: regulator: max77663: add regulator support 2023-11-03 12:37:15 -04:00
max77686.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
npcm8xx_regulator.c power: regulator: Add support for NPCM8xx 2022-12-26 15:44:00 +09:00
palmas_regulator.c power: regulator: palmas: fix ldoln and ldousb detection 2023-11-03 12:37:15 -04:00
pbias_regulator.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
pca9450.c power: pmic: Add NXP PCA9451A PMIC support 2023-03-30 00:45:39 +02:00
pfuze100.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
pwm_regulator.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
regulator_common.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
regulator_common.h regulator: rename dev_pdata to plat 2023-07-04 11:21:07 +09:00
regulator-uclass.c power: regulator: Only run autoset once for each regulator 2023-10-07 16:49:41 +08:00
rk8xx.c power: rk8xx: add support for RK806 2024-03-14 18:19:44 +08:00
s2mps11_regulator.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
s5m8767.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
sandbox.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
scmi_regulator.c scmi: refactor the code to hide a channel from devices 2023-10-13 16:59:23 -04:00
stm32-vrefbuf.c power: regulator: stm32-verfbuf: define LOG_CATEGORY 2021-01-13 09:52:58 +01:00
stpmic1.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
tps62360_regulator.c tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
tps65090_regulator.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
tps65219_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
tps65910_regulator.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
tps65911_regulator.c power: regulator: tps65911: add regulator support 2023-11-03 12:37:15 -04:00
tps65941_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
tps80031_regulator.c power: regulator: tps80031: add regulator support 2023-11-03 12:37:15 -04:00