mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
1757df4693
This commit adds support to MAX77686 regulator driver, based on a driver model regulator's API. It implements almost all regulator operations, beside those for setting and geting the Current value. For proper bind and operation it requires the MAX77686 PMIC driver. New file: drivers/power/regulator/max77686.c New config: CONFIG_DM_REGULATOR_MAX77686 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
70 lines
1.6 KiB
Text
70 lines
1.6 KiB
Text
MAXIM, MAX77686 regulators
|
|
|
|
This device uses two drivers:
|
|
- drivers/power/pmic/max77686.c (as parent I/O device)
|
|
- drivers/power/regulator/max77686.c (for child regulators)
|
|
|
|
This file describes the binding info for the REGULATOR driver.
|
|
|
|
First, please read the binding info for the pmic:
|
|
- doc/device-tree-bindings/pmic/max77686.txt
|
|
|
|
Required subnode:
|
|
- voltage-regulators: required for the PMIC driver
|
|
|
|
Required properties:
|
|
- regulator-name: used for regulator uclass platform data '.name'
|
|
|
|
Optional:
|
|
- regulator-min-microvolt: minimum allowed Voltage to set
|
|
- regulator-max-microvolt: minimum allowed Voltage to set
|
|
- regulator-always-on: regulator should be never disabled
|
|
- regulator-boot-on: regulator should be enabled by the bootloader
|
|
|
|
Example:
|
|
(subnode of max77686 pmic node)
|
|
voltage-regulators {
|
|
ldo1 {
|
|
regulator-name = "VDD_ALIVE_1.0V";
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1000000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
ldo2 {
|
|
regulator-name = "VDDQ_VM1M2_1.2V";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
.
|
|
.
|
|
.
|
|
ldo26 {
|
|
regulator-name = "nc";
|
|
regulator-min-microvolt = <3000000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
buck1 {
|
|
regulator-compatible = "BUCK1";
|
|
regulator-name = "VDD_MIF_1.0V";
|
|
regulator-min-microvolt = <8500000>;
|
|
regulator-max-microvolt = <1100000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
.
|
|
.
|
|
.
|
|
buck9 {
|
|
regulator-compatible = "BUCK9";
|
|
regulator-name = "nc";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
};
|
|
};
|