Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17b7cad0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dt-bindings: regulator: add stub regulator bindings"

parents 77ef8a53 375a0fcd
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
Stub Voltage Regulators

stub-regulators are place-holder regulator devices which do not impact any
hardware state.  They provide a means for consumer devices to utilize all
regulator features for testing purposes.

Required properties:
- compatible:      Must be "qcom,stub-regulator".
- regulator-name:  A string used as a descriptive name for regulator outputs.

Optional properties:
- parent-supply:     phandle to the parent supply/regulator node if one exists.
- qcom,hpm-min-load: Load current in uA which corresponds to the minimum load
			which requires the regulator to be in high power mode.
- qcom,system-load:  Load in uA present on regulator that is not captured by any
			consumer request.

All properties specified within the core regulator framework can also be used.
These bindings can be found in regulator.txt.

Example:

/ {
	pm8026_s3: regulator-s3 {
		compatible = "qcom,stub-regulator";
		regulator-name = "8026_s3";
		qcom,hpm-min-load = <100000>;
		regulator-min-microvolt = <1300000>;
		regulator-max-microvolt = <1300000>;
	};

	pm8026_l1: regulator-l1 {
		compatible = "qcom,stub-regulator";
		regulator-name = "8026_l1";
		parent-supply = <&pm8026_s3>;
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <1225000>;
		regulator-max-microvolt = <1225000>;
	};

	pm8026_l20: regulator-l20 {
		compatible = "qcom,stub-regulator";
		regulator-name = "8026_l20";
		qcom,hpm-min-load = <5000>;
		regulator-min-microvolt = <3075000>;
		regulator-max-microvolt = <3075000>;
	};
};