mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 22:03:15 +00:00
dfb0a70a1a
This adds a driver for the FAN53555 family of regulators and wraps it in a PMIC implementation. While these devices support a 'normal' and 'suspend' mode (controlled via an external pin) to switch between two programmable voltages, this incarnation of the driver assumes that the device is always operating in 'normal' mode. Only setting/reading the programmed voltage is supported at this time and the following device functionality remains unsupported: - switching the selected voltage (via a GPIO) - disabling the voltage output via software-control This matches the functionality of the Linux driver. Tested on a RK3399-Q7 (with 'option 5' devices): setting voltages from the U-Boot shell and verifying output voltages on the board. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
23 lines
659 B
Text
23 lines
659 B
Text
Binding for Fairchild FAN53555 regulators
|
|
|
|
Required properties:
|
|
- compatible: "fcs,fan53555"
|
|
- reg: I2C address
|
|
|
|
Optional properties:
|
|
- fcs,suspend-voltage-selector: declare which of the two available
|
|
voltage selector registers should be used for the suspend
|
|
voltage. The other one is used for the runtime voltage setting
|
|
Possible values are either <0> or <1>
|
|
- vin-supply: regulator supplying the vin pin
|
|
|
|
Example:
|
|
|
|
regulator@40 {
|
|
compatible = "fcs,fan53555";
|
|
regulator-name = "fan53555";
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&parent_reg>;
|
|
fcs,suspend-voltage-selector = <1>;
|
|
};
|