xref: /rk3399_rockchip-uboot/drivers/power/regulator/Kconfig (revision d50ae2019e8c020d508dcfe7bf68a933dbd70e9e)
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
46*d50ae201SChaoyi Chenconfig REGULATOR_FP9931
47*d50ae201SChaoyi Chen	bool "Enable driver for FP9931 PMIC regulators"
48*d50ae201SChaoyi Chen	depends on PMIC_FP9931
49*d50ae201SChaoyi Chen	---help---
50*d50ae201SChaoyi Chen	This enables the regulator features of the FP9931, allowing VCOM
51*d50ae201SChaoyi Chen	VPOS/VNEG voltages to be set, etc.
52*d50ae201SChaoyi 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
110a09f237bSElaine Zhangconfig REGULATOR_RK860X
111a09f237bSElaine Zhang	bool "Enable driver for rk860x regulators"
112a09f237bSElaine Zhang	depends on DM_REGULATOR
113a09f237bSElaine Zhang	---help---
114a09f237bSElaine Zhang	Enable support for the regulator functions of the rk860x DCDC. The
115a09f237bSElaine Zhang	driver implements get/set api for the various BUCK.This driver is
116a09f237bSElaine Zhang	controlled by a device tree node which includes voltage limits.
117a09f237bSElaine Zhang
118453c5a92SJacob Chenconfig REGULATOR_RK8XX
119453c5a92SJacob Chen	bool "Enable driver for RK8XX regulators"
120ef9c5d10Sshengfei Xu	depends on DM_REGULATOR && (PMIC_RK8XX || PMIC_SPI_RK8XX)
121e1227764SSimon Glass	---help---
122453c5a92SJacob Chen	Enable support for the regulator functions of the RK8XX PMIC. The
123e1227764SSimon Glass	driver implements get/set api for the various BUCKS and LDOs supported
124e1227764SSimon Glass	by the PMIC device. This driver is controlled by a device tree node
125e1227764SSimon Glass	which includes voltage limits.
126e1227764SSimon Glass
127f615e6a6SSimon Glassconfig REGULATOR_S5M8767
128f615e6a6SSimon Glass	bool "Enable support for S5M8767 regulator"
129f615e6a6SSimon Glass	depends on DM_REGULATOR && PMIC_S5M8767
130f615e6a6SSimon Glass	---help---
131f615e6a6SSimon Glass	This enables the regulator features of the S5M8767, allowing voltages
132f615e6a6SSimon Glass	to be set, etc. The driver is not fully complete but supports most
133f615e6a6SSimon Glass	common requirements, including all LDOs and BUCKs. This allows many
134f615e6a6SSimon Glass	supplies to be set automatically using the device tree values.
135f615e6a6SSimon Glass
1365d387d0dSPrzemyslaw Marczakconfig DM_REGULATOR_SANDBOX
1375d387d0dSPrzemyslaw Marczak	bool "Enable Driver Model for Sandbox PMIC regulator"
1385d387d0dSPrzemyslaw Marczak	depends on DM_REGULATOR && DM_PMIC_SANDBOX
1395d387d0dSPrzemyslaw Marczak	---help---
1405d387d0dSPrzemyslaw Marczak	Enable the regulator driver for emulated Sandbox PMIC.
1415d387d0dSPrzemyslaw Marczak	The emulated PMIC device depends on two drivers:
1425d387d0dSPrzemyslaw Marczak	- sandbox PMIC I/O driver - implements dm pmic operations
1435d387d0dSPrzemyslaw Marczak	- sandbox PMIC regulator driver - implements dm regulator operations
1445d387d0dSPrzemyslaw Marczak	- sandbox PMIC i2c emul driver - emulates the PMIC's I2C transmission
1455d387d0dSPrzemyslaw Marczak
1465d387d0dSPrzemyslaw Marczak	The regulator driver provides uclass operations for sandbox PMIC's
1475d387d0dSPrzemyslaw Marczak	regulators. The driver implements get/set api for: voltage, current,
1485d387d0dSPrzemyslaw Marczak	operation mode and enable state.
1495d387d0dSPrzemyslaw Marczak	The driver supports LDO and BUCK regulators.
1505d387d0dSPrzemyslaw Marczak
1515d387d0dSPrzemyslaw Marczak	The Sandbox PMIC info:
1525d387d0dSPrzemyslaw Marczak	* I/O interface:
1535d387d0dSPrzemyslaw Marczak	  - I2C chip address:       0x40
1545d387d0dSPrzemyslaw Marczak	  - first register address: 0x0
1555d387d0dSPrzemyslaw Marczak	  - register count:         0x10
1565d387d0dSPrzemyslaw Marczak	* Adjustable outputs:
1575d387d0dSPrzemyslaw Marczak	  - 2x LDO
1585d387d0dSPrzemyslaw Marczak	  - 2x BUCK
1595d387d0dSPrzemyslaw Marczak	  - Each, with a different operating conditions (header).
1605d387d0dSPrzemyslaw Marczak	* Reset values:
1615d387d0dSPrzemyslaw Marczak	  - set by i2c emul driver's probe() (defaults in header)
1625d387d0dSPrzemyslaw Marczak
1635d387d0dSPrzemyslaw Marczak	A detailed information can be found in header: '<power/sandbox_pmic.h>'
1645d387d0dSPrzemyslaw Marczak	Binding info: 'doc/device-tree-bindings/pmic/max77686.txt'
1651c88b67eSSimon Glass
16612e25d6dSChaoyi Chenconfig REGULATOR_SY7636A
16712e25d6dSChaoyi Chen	bool "Enable driver for SY7636A PMIC regulators"
16812e25d6dSChaoyi Chen	depends on PMIC_SY7636A
16912e25d6dSChaoyi Chen	---help---
17012e25d6dSChaoyi Chen	This enables the regulator features of the SY7636A, allowing VCOM
17112e25d6dSChaoyi Chen	voltages to be set, etc.
17212e25d6dSChaoyi Chen
1731c88b67eSSimon Glassconfig REGULATOR_TPS65090
1741c88b67eSSimon Glass	bool "Enable driver for TPS65090 PMIC regulators"
1751c88b67eSSimon Glass	depends on PMIC_TPS65090
1761c88b67eSSimon Glass	---help---
1771c88b67eSSimon Glass	The TPS65090 provides several FETs (Field-effect Transistors,
1781c88b67eSSimon Glass	effectively switches) which are supported by this driver as
1791c88b67eSSimon Glass	regulators, one for each FET. The standard regulator interface is
1801c88b67eSSimon Glass	supported, but it is only possible to turn the regulators on or off.
1811c88b67eSSimon Glass	There is no voltage/current control.
182884d88bcSKeerthy
183884d88bcSKeerthyconfig DM_REGULATOR_PALMAS
184884d88bcSKeerthy	bool "Enable driver for PALMAS PMIC regulators"
185884d88bcSKeerthy       depends on PMIC_PALMAS
186884d88bcSKeerthy	---help---
187884d88bcSKeerthy	This enables implementation of driver-model regulator uclass
188884d88bcSKeerthy	features for REGULATOR PALMAS and the family of PALMAS PMICs.
189884d88bcSKeerthy	The driver implements get/set api for: value and enable.
19099785de8SKeerthy
19199785de8SKeerthyconfig DM_REGULATOR_LP873X
19299785de8SKeerthy	bool "Enable driver for LP873X PMIC regulators"
19399785de8SKeerthy        depends on PMIC_LP873X
19499785de8SKeerthy	---help---
19599785de8SKeerthy	This enables implementation of driver-model regulator uclass
19699785de8SKeerthy	features for REGULATOR LP873X and the family of LP873X PMICs.
19799785de8SKeerthy	The driver implements get/set api for: value and enable.
1982dd9dc02SKeerthy
1992dd9dc02SKeerthyconfig DM_REGULATOR_LP87565
2002dd9dc02SKeerthy	bool "Enable driver for LP87565 PMIC regulators"
2012dd9dc02SKeerthy        depends on PMIC_LP87565
2022dd9dc02SKeerthy	---help---
2032dd9dc02SKeerthy	This enables implementation of driver-model regulator uclass
2042dd9dc02SKeerthy	features for REGULATOR LP87565 and the family of LP87565 PMICs.
2052dd9dc02SKeerthy	LP87565 series of PMICs have 4 single phase BUCKs that can also
2062dd9dc02SKeerthy	be configured in multi phase modes. The driver implements
2072dd9dc02SKeerthy	get/set api for value and enable.
208