xref: /rk3399_rockchip-uboot/drivers/power/regulator/Kconfig (revision 2690619bcceae10954ff37f4b7311f6bd19de9ea)
1af41e8dbSPrzemyslaw Marczakconfig DM_REGULATOR
2af41e8dbSPrzemyslaw Marczak	bool "Enable Driver Model for REGULATOR drivers (UCLASS_REGULATOR)"
3af41e8dbSPrzemyslaw Marczak	depends on DM
4af41e8dbSPrzemyslaw Marczak	---help---
5af41e8dbSPrzemyslaw Marczak	This config enables the driver model regulator support.
6af41e8dbSPrzemyslaw Marczak	UCLASS_REGULATOR - designed to provide a common API for basic regulator's
7af41e8dbSPrzemyslaw Marczak	functions, like get/set Voltage or Current value, enable state, etc...
8af41e8dbSPrzemyslaw Marczak	Note:
9af41e8dbSPrzemyslaw Marczak	When enabling this, please read the description, found in the files:
10af41e8dbSPrzemyslaw Marczak	- 'include/power/pmic.h'
11af41e8dbSPrzemyslaw Marczak	- 'include/power/regulator.h'
12af41e8dbSPrzemyslaw Marczak	- 'drivers/power/pmic/pmic-uclass.c'
13af41e8dbSPrzemyslaw Marczak	- 'drivers/power/pmic/regulator-uclass.c'
14af41e8dbSPrzemyslaw Marczak	It's important to call the device_bind() with the proper node offset,
15af41e8dbSPrzemyslaw Marczak	when binding the regulator devices. The pmic_bind_childs() can be used
162e3f1ff6SSimon Glass	for this purpose if PMIC I/O driver is implemented or dm_scan_fdt_dev()
173b880757SPrzemyslaw Marczak	otherwise. Detailed information can be found in the header file.
181757df46SPrzemyslaw Marczak
191f2b4b06SSimon Glassconfig SPL_DM_REGULATOR
201f2b4b06SSimon Glass	bool "Enable regulators for SPL"
211f2b4b06SSimon Glass	depends on DM_REGULATOR
221f2b4b06SSimon Glass	---help---
231f2b4b06SSimon Glass	Regulators are seldom needed in SPL. Even if they are accessed, some
241f2b4b06SSimon Glass	code space can be saved by accessing the PMIC registers directly.
251f2b4b06SSimon Glass	Enable this option if you need regulators in SPL and can cope with
261f2b4b06SSimon Glass	the extra code size.
271f2b4b06SSimon Glass
289119820bSSimon Glassconfig REGULATOR_ACT8846
299119820bSSimon Glass	bool "Enable driver for ACT8846 regulator"
309119820bSSimon Glass	depends on DM_REGULATOR && PMIC_ACT8846
319119820bSSimon Glass	---help---
329119820bSSimon Glass	Enable support for the regulator functions of the ACT8846 PMIC. The
339119820bSSimon Glass	driver implements get/set api for the various BUCKS and LDOS supported
349119820bSSimon Glass	by the PMIC device. This driver is controlled by a device tree node
359119820bSSimon Glass	which includes voltage limits.
369119820bSSimon Glass
37deea211aSSimon Glassconfig REGULATOR_AS3722
38deea211aSSimon Glass	bool "Enable driver for AS7322 regulator"
39deea211aSSimon Glass	depends on DM_REGULATOR && PMIC_AS3722
40deea211aSSimon Glass	help
41deea211aSSimon Glass	  Enable support for the regulator functions of the AS3722. The
42deea211aSSimon Glass	  driver implements enable/disable for step-down bucks and LDOs,
43deea211aSSimon Glass	  but does not yet support change voltages. Currently this must be
44deea211aSSimon Glass	  done using direct register writes to the PMIC.
45deea211aSSimon Glass
46d50ae201SChaoyi Chenconfig REGULATOR_FP9931
47d50ae201SChaoyi Chen	bool "Enable driver for FP9931 PMIC regulators"
48d50ae201SChaoyi Chen	depends on PMIC_FP9931
49d50ae201SChaoyi Chen	---help---
50d50ae201SChaoyi Chen	This enables the regulator features of the FP9931, allowing VCOM
51d50ae201SChaoyi Chen	VPOS/VNEG voltages to be set, etc.
52d50ae201SChaoyi Chen
538fa46350SPeng Fanconfig DM_REGULATOR_PFUZE100
548fa46350SPeng Fan	bool "Enable Driver Model for REGULATOR PFUZE100"
558fa46350SPeng Fan	depends on DM_REGULATOR && DM_PMIC_PFUZE100
568fa46350SPeng Fan	---help---
578fa46350SPeng Fan	This config enables implementation of driver-model regulator uclass
588fa46350SPeng Fan	features for REGULATOR PFUZE100. The driver implements get/set api for:
598fa46350SPeng Fan	value, enable and mode.
608fa46350SPeng Fan
61e54cf6dbSElaine Zhangconfig REGULATOR_FAN53555
62e54cf6dbSElaine Zhang	bool "Enable driver for fan53555 regulators"
63e54cf6dbSElaine Zhang	depends on DM_REGULATOR
64e54cf6dbSElaine Zhang	---help---
65e54cf6dbSElaine Zhang	Enable support for the regulator functions of the fan53555 DCDC. The
66e54cf6dbSElaine Zhang	driver implements get/set api for the various BUCK.This driver is
67e54cf6dbSElaine Zhang	controlled by a device tree node which includes voltage limits.
68e54cf6dbSElaine Zhang
691a016956SKever Yangconfig REGULATOR_PWM
701a016956SKever Yang	bool "Enable driver for PWM regulators"
711a016956SKever Yang	depends on DM_REGULATOR
721a016956SKever Yang	---help---
731a016956SKever Yang	Enable support for the PWM regulator functions which voltage are
741a016956SKever Yang	controlled by PWM duty ratio. Some of Rockchip board using this kind
751a016956SKever Yang	of regulator. The driver implements get/set api for the various BUCKS.
761a016956SKever Yang	This driver is controlled by a device tree node
771a016956SKever Yang	which includes voltage limits.
781a016956SKever Yang
791757df46SPrzemyslaw Marczakconfig DM_REGULATOR_MAX77686
801757df46SPrzemyslaw Marczak	bool "Enable Driver Model for REGULATOR MAX77686"
811757df46SPrzemyslaw Marczak	depends on DM_REGULATOR && DM_PMIC_MAX77686
821757df46SPrzemyslaw Marczak	---help---
831757df46SPrzemyslaw Marczak	This config enables implementation of driver-model regulator uclass
841757df46SPrzemyslaw Marczak	features for REGULATOR MAX77686. The driver implements get/set api for:
851757df46SPrzemyslaw Marczak	value, enable and mode.
869923a8b4SPrzemyslaw Marczak
879923a8b4SPrzemyslaw Marczakconfig DM_REGULATOR_FIXED
889923a8b4SPrzemyslaw Marczak	bool "Enable Driver Model for REGULATOR Fixed value"
899923a8b4SPrzemyslaw Marczak	depends on DM_REGULATOR
909923a8b4SPrzemyslaw Marczak	---help---
919923a8b4SPrzemyslaw Marczak	This config enables implementation of driver-model regulator uclass
929923a8b4SPrzemyslaw Marczak	features for fixed value regulators. The driver implements get/set api
939923a8b4SPrzemyslaw Marczak	for enable and get only for voltage value.
945d387d0dSPrzemyslaw Marczak
95ea32c351SPhilipp Tomsichconfig SPL_DM_REGULATOR_FIXED
96ea32c351SPhilipp Tomsich	bool "Enable Driver Model for REGULATOR Fixed value in SPL"
97ea32c351SPhilipp Tomsich	depends on DM_REGULATOR_FIXED
98ea32c351SPhilipp Tomsich	---help---
99ea32c351SPhilipp Tomsich	This config enables implementation of driver-model regulator uclass
100ea32c351SPhilipp Tomsich	features for fixed value regulators in SPL.
101ea32c351SPhilipp Tomsich
102477dfe2fSKeerthyconfig DM_REGULATOR_GPIO
103477dfe2fSKeerthy	bool "Enable Driver Model for GPIO REGULATOR"
104477dfe2fSKeerthy	depends on DM_REGULATOR
105477dfe2fSKeerthy	---help---
106477dfe2fSKeerthy	This config enables implementation of driver-model regulator uclass
107477dfe2fSKeerthy	features for gpio regulators. The driver implements get/set for
108477dfe2fSKeerthy	voltage value.
109477dfe2fSKeerthy
110*2690619bSJoseph Chenconfig REGULATOR_RK801
111*2690619bSJoseph Chen	bool "Enable driver for rk801 regulators"
112*2690619bSJoseph Chen	depends on DM_REGULATOR
113*2690619bSJoseph Chen	---help---
114*2690619bSJoseph Chen	Enable support for the regulator functions of the rk801 DCDC/LDO/SWITCH.
115*2690619bSJoseph Chen	This driver is controlled by a device tree node which includes voltage limits.
116*2690619bSJoseph Chen
117a09f237bSElaine Zhangconfig REGULATOR_RK860X
118a09f237bSElaine Zhang	bool "Enable driver for rk860x regulators"
119a09f237bSElaine Zhang	depends on DM_REGULATOR
120a09f237bSElaine Zhang	---help---
121a09f237bSElaine Zhang	Enable support for the regulator functions of the rk860x DCDC. The
122a09f237bSElaine Zhang	driver implements get/set api for the various BUCK.This driver is
123a09f237bSElaine Zhang	controlled by a device tree node which includes voltage limits.
124a09f237bSElaine Zhang
125453c5a92SJacob Chenconfig REGULATOR_RK8XX
126453c5a92SJacob Chen	bool "Enable driver for RK8XX regulators"
127ef9c5d10Sshengfei Xu	depends on DM_REGULATOR && (PMIC_RK8XX || PMIC_SPI_RK8XX)
128e1227764SSimon Glass	---help---
129453c5a92SJacob Chen	Enable support for the regulator functions of the RK8XX PMIC. The
130e1227764SSimon Glass	driver implements get/set api for the various BUCKS and LDOs supported
131e1227764SSimon Glass	by the PMIC device. This driver is controlled by a device tree node
132e1227764SSimon Glass	which includes voltage limits.
133e1227764SSimon Glass
134f615e6a6SSimon Glassconfig REGULATOR_S5M8767
135f615e6a6SSimon Glass	bool "Enable support for S5M8767 regulator"
136f615e6a6SSimon Glass	depends on DM_REGULATOR && PMIC_S5M8767
137f615e6a6SSimon Glass	---help---
138f615e6a6SSimon Glass	This enables the regulator features of the S5M8767, allowing voltages
139f615e6a6SSimon Glass	to be set, etc. The driver is not fully complete but supports most
140f615e6a6SSimon Glass	common requirements, including all LDOs and BUCKs. This allows many
141f615e6a6SSimon Glass	supplies to be set automatically using the device tree values.
142f615e6a6SSimon Glass
1435d387d0dSPrzemyslaw Marczakconfig DM_REGULATOR_SANDBOX
1445d387d0dSPrzemyslaw Marczak	bool "Enable Driver Model for Sandbox PMIC regulator"
1455d387d0dSPrzemyslaw Marczak	depends on DM_REGULATOR && DM_PMIC_SANDBOX
1465d387d0dSPrzemyslaw Marczak	---help---
1475d387d0dSPrzemyslaw Marczak	Enable the regulator driver for emulated Sandbox PMIC.
1485d387d0dSPrzemyslaw Marczak	The emulated PMIC device depends on two drivers:
1495d387d0dSPrzemyslaw Marczak	- sandbox PMIC I/O driver - implements dm pmic operations
1505d387d0dSPrzemyslaw Marczak	- sandbox PMIC regulator driver - implements dm regulator operations
1515d387d0dSPrzemyslaw Marczak	- sandbox PMIC i2c emul driver - emulates the PMIC's I2C transmission
1525d387d0dSPrzemyslaw Marczak
1535d387d0dSPrzemyslaw Marczak	The regulator driver provides uclass operations for sandbox PMIC's
1545d387d0dSPrzemyslaw Marczak	regulators. The driver implements get/set api for: voltage, current,
1555d387d0dSPrzemyslaw Marczak	operation mode and enable state.
1565d387d0dSPrzemyslaw Marczak	The driver supports LDO and BUCK regulators.
1575d387d0dSPrzemyslaw Marczak
1585d387d0dSPrzemyslaw Marczak	The Sandbox PMIC info:
1595d387d0dSPrzemyslaw Marczak	* I/O interface:
1605d387d0dSPrzemyslaw Marczak	  - I2C chip address:       0x40
1615d387d0dSPrzemyslaw Marczak	  - first register address: 0x0
1625d387d0dSPrzemyslaw Marczak	  - register count:         0x10
1635d387d0dSPrzemyslaw Marczak	* Adjustable outputs:
1645d387d0dSPrzemyslaw Marczak	  - 2x LDO
1655d387d0dSPrzemyslaw Marczak	  - 2x BUCK
1665d387d0dSPrzemyslaw Marczak	  - Each, with a different operating conditions (header).
1675d387d0dSPrzemyslaw Marczak	* Reset values:
1685d387d0dSPrzemyslaw Marczak	  - set by i2c emul driver's probe() (defaults in header)
1695d387d0dSPrzemyslaw Marczak
1705d387d0dSPrzemyslaw Marczak	A detailed information can be found in header: '<power/sandbox_pmic.h>'
1715d387d0dSPrzemyslaw Marczak	Binding info: 'doc/device-tree-bindings/pmic/max77686.txt'
1721c88b67eSSimon Glass
17312e25d6dSChaoyi Chenconfig REGULATOR_SY7636A
17412e25d6dSChaoyi Chen	bool "Enable driver for SY7636A PMIC regulators"
17512e25d6dSChaoyi Chen	depends on PMIC_SY7636A
17612e25d6dSChaoyi Chen	---help---
17712e25d6dSChaoyi Chen	This enables the regulator features of the SY7636A, allowing VCOM
17812e25d6dSChaoyi Chen	voltages to be set, etc.
17912e25d6dSChaoyi Chen
1801c88b67eSSimon Glassconfig REGULATOR_TPS65090
1811c88b67eSSimon Glass	bool "Enable driver for TPS65090 PMIC regulators"
1821c88b67eSSimon Glass	depends on PMIC_TPS65090
1831c88b67eSSimon Glass	---help---
1841c88b67eSSimon Glass	The TPS65090 provides several FETs (Field-effect Transistors,
1851c88b67eSSimon Glass	effectively switches) which are supported by this driver as
1861c88b67eSSimon Glass	regulators, one for each FET. The standard regulator interface is
1871c88b67eSSimon Glass	supported, but it is only possible to turn the regulators on or off.
1881c88b67eSSimon Glass	There is no voltage/current control.
189884d88bcSKeerthy
190884d88bcSKeerthyconfig DM_REGULATOR_PALMAS
191884d88bcSKeerthy	bool "Enable driver for PALMAS PMIC regulators"
192884d88bcSKeerthy       depends on PMIC_PALMAS
193884d88bcSKeerthy	---help---
194884d88bcSKeerthy	This enables implementation of driver-model regulator uclass
195884d88bcSKeerthy	features for REGULATOR PALMAS and the family of PALMAS PMICs.
196884d88bcSKeerthy	The driver implements get/set api for: value and enable.
19799785de8SKeerthy
19899785de8SKeerthyconfig DM_REGULATOR_LP873X
19999785de8SKeerthy	bool "Enable driver for LP873X PMIC regulators"
20099785de8SKeerthy        depends on PMIC_LP873X
20199785de8SKeerthy	---help---
20299785de8SKeerthy	This enables implementation of driver-model regulator uclass
20399785de8SKeerthy	features for REGULATOR LP873X and the family of LP873X PMICs.
20499785de8SKeerthy	The driver implements get/set api for: value and enable.
2052dd9dc02SKeerthy
2062dd9dc02SKeerthyconfig DM_REGULATOR_LP87565
2072dd9dc02SKeerthy	bool "Enable driver for LP87565 PMIC regulators"
2082dd9dc02SKeerthy        depends on PMIC_LP87565
2092dd9dc02SKeerthy	---help---
2102dd9dc02SKeerthy	This enables implementation of driver-model regulator uclass
2112dd9dc02SKeerthy	features for REGULATOR LP87565 and the family of LP87565 PMICs.
2122dd9dc02SKeerthy	LP87565 series of PMICs have 4 single phase BUCKs that can also
2132dd9dc02SKeerthy	be configured in multi phase modes. The driver implements
2142dd9dc02SKeerthy	get/set api for value and enable.
215