spi: qup: Parse OPP table for DVFS support
authorStephan Gerhold <stephan.gerhold@kernkonzept.com>
Tue, 19 Sep 2023 11:59:49 +0000 (13:59 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Sep 2023 12:19:37 +0000 (14:19 +0200)
commit287fcdaa35fc666640f805310095c52f2d818d26
treeea13fac0b7d5eb6c2fe290161269b37e6b72cee2
parente6419c35f0d92632e06708c5610a31957f1bd6b3
spi: qup: Parse OPP table for DVFS support

Parse the OPP table from the device tree and use dev_pm_opp_set_rate()
instead of clk_set_rate() to allow making performance state for power
domains specified in the OPP table.

This is needed to guarantee correct behavior of the clock, especially
with the higher clock/SPI bus frequencies.

Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
Link: https://lore.kernel.org/r/20230919-spi-qup-dvfs-v2-2-1bac2e9ab8db@kernkonzept.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c