mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 14:25:09 +07:00
8f73110f6b
It reverts commit a4b4e0461e
("of: Add standard property for poweroff capability").
As discussed on the mailing list, it makes more sense to rename back to the
old established property name, without the vendor prefix. Problem being that
the word "source" usually tends to be used for inputs and that is out of control
of the OS. The poweroff capability is an output which simply turns the
system-power off. Also, this property might be used by drivers which power-off
the system and power back on subsequent RTC alarms. This seems to suggest to
remove "poweroff" from the property name and to choose "system-power-controller"
as the more generic name. This patchs adds the required renaming changes and
defines an helper function which checks if this property is set.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
ACT88xx regulators
|
|
-------------------
|
|
|
|
Required properties:
|
|
- compatible: "active-semi,act8846" or "active-semi,act8865"
|
|
- reg: I2C slave address
|
|
|
|
Optional properties:
|
|
- system-power-controller: Telling whether or not this pmic is controlling
|
|
the system power. See Documentation/devicetree/bindings/power/power-controller.txt .
|
|
|
|
Any standard regulator properties can be used to configure the single regulator.
|
|
|
|
The valid names for regulators are:
|
|
- for act8846:
|
|
REG1, REG2, REG3, REG4, REG5, REG6, REG7, REG8, REG9, REG10, REG11, REG12
|
|
- for act8865:
|
|
DCDC_REG1, DCDC_REG2, DCDC_REG3, LDO_REG1, LDO_REG2, LDO_REG3, LDO_REG4.
|
|
|
|
Example:
|
|
--------
|
|
|
|
i2c1: i2c@f0018000 {
|
|
pmic: act8865@5b {
|
|
compatible = "active-semi,act8865";
|
|
reg = <0x5b>;
|
|
status = "disabled";
|
|
|
|
regulators {
|
|
vcc_1v8_reg: DCDC_REG1 {
|
|
regulator-name = "VCC_1V8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_1v2_reg: DCDC_REG2 {
|
|
regulator-name = "VCC_1V2";
|
|
regulator-min-microvolt = <1100000>;
|
|
regulator-max-microvolt = <1300000>;
|
|
regulator-suspend-mem-microvolt = <1150000>;
|
|
regulator-suspend-standby-microvolt = <1150000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_3v3_reg: DCDC_REG3 {
|
|
regulator-name = "VCC_3V3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vddana_reg: LDO_REG1 {
|
|
regulator-name = "VDDANA";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vddfuse_reg: LDO_REG2 {
|
|
regulator-name = "FUSE_2V5";
|
|
regulator-min-microvolt = <2500000>;
|
|
regulator-max-microvolt = <2500000>;
|
|
};
|
|
};
|
|
};
|
|
};
|