Add support for clocks, resets and power domains provided by the global clock controller (GCC) and clocks controlled by the RPM firmware on MSM8917/QM215 SoCs. The only clock configuration difference between QM215 and MSM8917 is the source mapping of the GPU clock, so a single driver is used for both SoCs. Changes in v2: - Added Krzysztof's Acked-by and Reviewed-by - Rebased onto linux-next-20230223 - Fixed address in oxili_gx_gdsc - Mentioned QM215 in Kconfig - Switched to index-based device tree clock lookup - Switched to of_device_get_match_data for determining the SoC variant - Formatting fixes as suggested by Konrad - Added depends on ARM64 || COMPILE_TEST as suggested by Krzysztof Otto Pflüger (4): dt-bindings: clock: Add MSM8917 global clock controller clk: qcom: Add global clock controller driver for MSM8917 dt-bindings: clock: qcom,rpmcc: Add MSM8917 clk: qcom: smd-rpm: Add clocks for MSM8917 .../bindings/clock/qcom,gcc-msm8909.yaml | 13 +- .../devicetree/bindings/clock/qcom,rpmcc.yaml | 2 + drivers/clk/qcom/Kconfig | 10 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-smd-rpm.c | 35 + drivers/clk/qcom/gcc-msm8917.c | 3303 +++++++++++++++++ include/dt-bindings/clock/qcom,gcc-msm8917.h | 190 + 7 files changed, 3550 insertions(+), 4 deletions(-) create mode 100644 drivers/clk/qcom/gcc-msm8917.c create mode 100644 include/dt-bindings/clock/qcom,gcc-msm8917.h -- 2.39.1