mbox series

[v2,0/6] clk: qcom: Add clocks for MSM8909

Message ID 20220706134132.3623415-1-stephan.gerhold@kernkonzept.com
Headers show
Series clk: qcom: Add clocks for MSM8909 | expand

Message

Stephan Gerhold July 6, 2022, 1:41 p.m. UTC
Add a driver for the Global Clock Controller (GCC) that provides clocks,
resets and power domains for the various hardware blocks in the MSM8909
SoC. Make it possible to have longer delay between assertion/deassertion
of particular reset signals (this is needed for the USB PHY on MSM8909).
Finally, add the necessary definitions for the clocks controlled by the
RPM firmware on MSM8909.

The patch set is fairly large but most of it is just boring clock
definitions in the GCC driver. And compared to newer SoCs like SC8280XP
with 7k+ lines in the GCC driver this is still fairly small. :-)

---
Changes in v2:
  - Make "clocks" and "clock-names" required in DT schema
  - Add review tags from Konrad and Krzysztof

Stephan Gerhold (6):
  dt-bindings: clock: Add schema for MSM8909 GCC
  clk: qcom: Add driver for MSM8909 GCC
  clk: qcom: reset: Allow specifying custom reset delay
  clk: qcom: gcc-msm8909: Increase delay for USB PHY reset
  dt-bindings: clock: qcom,rpmcc: Add MSM8909
  clk: qcom: smd-rpm: Add clocks for MSM8909

 .../bindings/clock/qcom,gcc-msm8909.yaml      |   58 +
 .../devicetree/bindings/clock/qcom,rpmcc.yaml |    1 +
 drivers/clk/qcom/Kconfig                      |    8 +
 drivers/clk/qcom/Makefile                     |    1 +
 drivers/clk/qcom/clk-smd-rpm.c                |   37 +-
 drivers/clk/qcom/gcc-msm8909.c                | 2731 +++++++++++++++++
 drivers/clk/qcom/reset.c                      |    4 +-
 drivers/clk/qcom/reset.h                      |    1 +
 include/dt-bindings/clock/qcom,gcc-msm8909.h  |  218 ++
 9 files changed, 3057 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-msm8909.yaml
 create mode 100644 drivers/clk/qcom/gcc-msm8909.c
 create mode 100644 include/dt-bindings/clock/qcom,gcc-msm8909.h

Comments

Bjorn Andersson Sept. 15, 2022, 3:37 a.m. UTC | #1
On Wed, 6 Jul 2022 15:41:26 +0200, Stephan Gerhold wrote:
> Add a driver for the Global Clock Controller (GCC) that provides clocks,
> resets and power domains for the various hardware blocks in the MSM8909
> SoC. Make it possible to have longer delay between assertion/deassertion
> of particular reset signals (this is needed for the USB PHY on MSM8909).
> Finally, add the necessary definitions for the clocks controlled by the
> RPM firmware on MSM8909.
> 
> [...]

Applied, thanks!

[1/6] dt-bindings: clock: Add schema for MSM8909 GCC
      commit: c40668048f236da6f7725998f93f0d6180003da3
[2/6] clk: qcom: Add driver for MSM8909 GCC
      commit: bf37a05744ebc6a488e3cfd3ec6d502d626740cc
[3/6] clk: qcom: reset: Allow specifying custom reset delay
      commit: 2cb8a39b6781ea23accd1fa93b3ad000d0948aec
[4/6] clk: qcom: gcc-msm8909: Increase delay for USB PHY reset
      commit: dcc6c9fb712875bf1897eaeb0c9d4e4237861723
[5/6] dt-bindings: clock: qcom,rpmcc: Add MSM8909
      commit: 1727a402c1fcf2594923be47ed03fab2db0eacfb
[6/6] clk: qcom: smd-rpm: Add clocks for MSM8909
      commit: 94a70c873d56e8bb7bce52cfb68d004be174dfff

Best regards,