Skip to content

Add rpmcc and rpmpd for SM4250/6115

Iskren Chernev linux-arm-msm linux-clk lkml phone-devel 3 versions – Applied

Status from this message: Applied to clk-next with lots of effort

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v25 patches 6 repliesApplied
  3. v15 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- note that all except patch 3/5 of the v2 patches were merged in next, and patch 3/5 was split in 2
- split smd-rpm compat string addition in it's own patch

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2clk: qcom: smd: Add support for SM6115 rpm clocksdrivers/clk/qcom/clk-smd-rpm.c include/linux/soc/qcom/smd-rpm.h+55 -02 replies
2/2soc: qcom: smd-rpm: Add SM6115 compatibledrivers/soc/qcom/smd-rpm.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Add rpmcc and rpmpd for SM4250/6115

This patch adds support for the RPM clocks and power domains on QCom SM4250 and SM6115, codename bengal. The rpmcc code is converted from downstream code (OnePlus repo [1]), and the rpmpd is converted from downstream DT extracted from OnePlus Nord N100.

The downstream code has additional voter clocks, which let consumers vote and the driver to select the highest desired clock rate for a given (real) parent clock [2]. I might port that as well in the near future, let me know if there is a more elegant solution.

[1]: https://github.com/OnePlusOSS/android_kernel_oneplus_sm4250
[2]: https://source.codeaurora.org/quic/server/kernel/commit/?h=v4.9.137&id=6a4951a8308c5729ae8e502787cb705477c94251

v1: https://lkml.org/lkml/2021/6/22/1171
v2: https://lkml.org/lkml/2021/6/27/169

Changes from v2:
- note that all except patch 3/5 of the v2 patches were merged in next, and patch 3/5 was split in 2
- split smd-rpm compat string addition in it's own patch

Changes from v1:
- remove 4250 compatible, both platforms will share one dtsi
- reuse existing clocks as per a0384ecfe2aa ("clk: qcom: smd-rpm: De-duplicate identical entries")

Iskren Chernev (2):
clk: qcom: smd: Add support for SM6115 rpm clocks
soc: qcom: smd-rpm: Add SM6115 compatible

 drivers/clk/qcom/clk-smd-rpm.c   | 54 ++++++++++++++++++++++++++++++++
 drivers/soc/qcom/smd-rpm.c       |  1 +
 include/linux/soc/qcom/smd-rpm.h |  1 +
 3 files changed, 56 insertions(+)

base-commit: 8d4b477da1a807199ca60e0829357ce7aa6758d5 --
2.32.0