LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2 0/5] Add rpmcc and rpmpd for SM4250/6115
@ 2021-06-27 18:59 Iskren Chernev
  2021-06-27 18:59 ` [PATCH v2 1/5] dt-bindings: soc: qcom: smd-rpm: Add SM6115 compatible Iskren Chernev
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Iskren Chernev @ 2021-06-27 18:59 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Kathiravan T, Michael Turquette, Rajendra Nayak,
	Rob Herring, Stephen Boyd, devicetree, linux-arm-msm, linux-clk,
	linux-kernel, phone-devel, ~postmarketos/upstreaming,
	Iskren Chernev

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

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 (5):
  dt-bindings: soc: qcom: smd-rpm: Add SM6115 compatible
  dt-bindings: clock: qcom: rpmcc: Document SM6115 compatible
  clk: qcom: smd: Add support for SM6115 rpm clocks
  dt-bindings: power: rpmpd: Add SM6115 to rpmpd binding
  drivers: soc: qcom: rpmpd: Add SM6115 RPM Power Domains

 .../devicetree/bindings/clock/qcom,rpmcc.txt  |  1 +
 .../devicetree/bindings/power/qcom,rpmpd.yaml |  1 +
 .../bindings/soc/qcom/qcom,smd-rpm.yaml       |  1 +
 drivers/clk/qcom/clk-smd-rpm.c                | 54 +++++++++++++++++++
 drivers/soc/qcom/rpmpd.c                      | 28 ++++++++++
 drivers/soc/qcom/smd-rpm.c                    |  1 +
 include/dt-bindings/clock/qcom,rpmcc.h        | 10 ++++
 include/dt-bindings/power/qcom-rpmpd.h        | 10 ++++
 include/linux/soc/qcom/smd-rpm.h              |  1 +
 9 files changed, 107 insertions(+)


base-commit: 8702f95941c215501826ea8743a8b64b83479209
prerequisite-patch-id: 07d651c82e8f1fd3069d1a03fad5b529d8756a66
prerequisite-patch-id: 5767ec002a675cd486a56663d422a267f0d51a8a
prerequisite-patch-id: 2f407fff6d711a8c0610be7166b19174253d2bba
prerequisite-patch-id: 28e53420187ed7a994ea8b6531b42fb1756f69a6
--
2.32.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-07-27 21:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-27 18:59 [PATCH v2 0/5] Add rpmcc and rpmpd for SM4250/6115 Iskren Chernev
2021-06-27 18:59 ` [PATCH v2 1/5] dt-bindings: soc: qcom: smd-rpm: Add SM6115 compatible Iskren Chernev
2021-07-14 20:47   ` Rob Herring
2021-06-27 18:59 ` [PATCH v2 2/5] dt-bindings: clock: qcom: rpmcc: Document " Iskren Chernev
2021-07-14 20:50   ` Rob Herring
2021-07-14 20:50   ` Rob Herring
2021-07-27 21:41   ` Stephen Boyd
2021-06-27 18:59 ` [PATCH v2 3/5] clk: qcom: smd: Add support for SM6115 rpm clocks Iskren Chernev
2021-07-27 21:40   ` Stephen Boyd
2021-06-27 18:59 ` [PATCH v2 4/5] dt-bindings: power: rpmpd: Add SM6115 to rpmpd binding Iskren Chernev
2021-07-14 20:50   ` Rob Herring
2021-06-27 18:59 ` [PATCH v2 5/5] drivers: soc: qcom: rpmpd: Add SM6115 RPM Power Domains Iskren Chernev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).