remoteproc: qcom_q6v5_mss: Allow replacing regulators with power domains
authorStephan Gerhold <stephan@gerhold.net>
Wed, 16 Sep 2020 10:41:31 +0000 (12:41 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 26 Oct 2020 15:22:16 +0000 (10:22 -0500)
commit8750cf39239404abbdf727f246723d4e03b54bab
treeb91566bf84a550c303beeac1d67b7ec469bbbb98
parent0711ae454b2da902d6bb661e722ab69b6b02cf17
remoteproc: qcom_q6v5_mss: Allow replacing regulators with power domains

Newer platforms vote for necessary power domains through the power
domain subsystem. For historical reasons older platforms like MSM8916
or MSM8974 still control these as regulators.

Managing them as power domains is preferred since that allows us
to vote for corners instead of raw voltages.

Make it possible for MSM8916 and MSM8974 to manage these as power
domains. For compatibility with old device trees we still need to
support falling back to the regulators when necessary.

The way this is implemented here is that the deprecated regulators
are defined as "fallback_proxy_supply". Only if attaching the power
domains fails because they are not specified (-ENODATA) we request
and manage the fallback regulators instead.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200916104135.25085-7-stephan@gerhold.net
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_mss.c