clk: qcom: gcc-msm8916: Add rates to the GP clocks
authorNikita Travkin <nikita@trvn.ru>
Sun, 12 Jun 2022 14:59:55 +0000 (19:59 +0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 1 Jul 2022 03:34:13 +0000 (22:34 -0500)
commitbf8bb8eaccf4e68d79743da631f61252753ca7cd
tree608ebcd85d3a5a9c046c0cd0ddda35746cc883ec
parentd0696770cef35a1fd16ea2167e2198c18aa6fbfe
clk: qcom: gcc-msm8916: Add rates to the GP clocks

msm8916 has (at least) 6 "General Purpose" clocks that can be muxed to
SoC pins. These clocks are:

GP_CLK{0, 1} : GPIO_{31, 32} (Belongs to CAMSS according to Linux)
GP_CLK_{1-3}{A, B} : GPIO_{49-51, 97, 12, 13} (Belongs to GCC itself)
GP_MN : GPIO_110 (Doesn't seem to be described in gcc,
    ignored in this patch)

Those clocks may be used as e.g. PWM sources for external peripherals.
Add more frequencies to the table for those clocks so it's possible
for arbitrary peripherals to make use of them.

Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220612145955.385787-5-nikita@trvn.ru
drivers/clk/qcom/gcc-msm8916.c