Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PM / OPP: Reword binding supporting multiple regulators per device

On certain platforms (like TI), DVFS for a single device (CPU) requires
configuring multiple power supplies.

The OPP bindings already contains binding and example to explain this
case, but it isn't sufficient.

- There is no way for the code parsing these bindings to know which
voltage values belong to which power supply.

- It is not possible to know the order in which the supplies need to be
configured while switching OPPs.

This patch clarifies on those details by mentioning that such
information is left for the implementation specific bindings to explain.
They may want to hardcode such details or implement their own properties
to get such information. All implementations using multiple regulators
for their devices must provide a binding document explaining their
implementation.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
579c49ef 309fe8d6

+15 -6
+15 -6
Documentation/devicetree/bindings/opp/opp.txt
··· 86 86 Single entry is for target voltage and three entries are for <target min max> 87 87 voltages. 88 88 89 - Entries for multiple regulators must be present in the same order as 90 - regulators are specified in device's DT node. 89 + Entries for multiple regulators shall be provided in the same field separated 90 + by angular brackets <>. The OPP binding doesn't provide any provisions to 91 + relate the values to their power supplies or the order in which the supplies 92 + need to be configured and that is left for the implementation specific 93 + binding. 94 + 95 + Entries for all regulators shall be of the same size, i.e. either all use a 96 + single value or triplets. 91 97 92 98 - opp-microvolt-<name>: Named opp-microvolt property. This is exactly similar to 93 99 the above opp-microvolt property, but allows multiple voltage ranges to be ··· 110 104 111 105 Should only be set if opp-microvolt is set for the OPP. 112 106 113 - Entries for multiple regulators must be present in the same order as 114 - regulators are specified in device's DT node. If this property isn't required 115 - for few regulators, then this should be marked as zero for them. If it isn't 116 - required for any regulator, then this property need not be present. 107 + Entries for multiple regulators shall be provided in the same field separated 108 + by angular brackets <>. If current values aren't required for a regulator, 109 + then it shall be filled with 0. If current values aren't required for any of 110 + the regulators, then this field is not required. The OPP binding doesn't 111 + provide any provisions to relate the values to their power supplies or the 112 + order in which the supplies need to be configured and that is left for the 113 + implementation specific binding. 117 114 118 115 - opp-microamp-<name>: Named opp-microamp property. Similar to 119 116 opp-microvolt-<name> property, but for microamp instead.