clk: qcom: mmcc-apq8084: use parent_hws/_data instead of parent_names
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 11 Jan 2023 06:04:01 +0000 (08:04 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 19 Jan 2023 00:27:35 +0000 (18:27 -0600)
commit2069c701fc815343ddeb0331eec85046bdc34a4c
tree3f200eb33babf853715349fbb791f6b5ab4395e3
parent7b347f4b677b6d84687e67d82b6b17c6f55ea2b4
clk: qcom: mmcc-apq8084: use parent_hws/_data instead of parent_names

Convert the clock driver to specify parent data rather than parent
names, to actually bind using 'clock-names' specified in the DTS rather
than global clock names. Use parent_hws where possible to refer parent
clocks directly, skipping the lookup.

Note, the system names for xo clocks were changed from "xo" to
"xo_board" to follow the example of other platforms. This switches the
clocks to use DT-provided "xo_board" clock instead of manually
registered "xo" clock and allows us to drop qcom_cc_register_board_clk()
call from the driver at some point.

In the same way change the looked up system "sleep_clk_src" clock to
"sleep_clk", which is registered from DT.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230111060402.1168726-12-dmitry.baryshkov@linaro.org
drivers/clk/qcom/mmcc-apq8084.c